github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/cmd/batch-rotate_gen.go (about)

     1  package cmd
     2  
     3  // Code generated by github.com/tinylib/msgp DO NOT EDIT.
     4  
     5  import (
     6  	"github.com/tinylib/msgp/msgp"
     7  )
     8  
     9  // DecodeMsg implements msgp.Decodable
    10  func (z *BatchJobKeyRotateEncryption) DecodeMsg(dc *msgp.Reader) (err error) {
    11  	var field []byte
    12  	_ = field
    13  	var zb0001 uint32
    14  	zb0001, err = dc.ReadMapHeader()
    15  	if err != nil {
    16  		err = msgp.WrapError(err)
    17  		return
    18  	}
    19  	for zb0001 > 0 {
    20  		zb0001--
    21  		field, err = dc.ReadMapKeyPtr()
    22  		if err != nil {
    23  			err = msgp.WrapError(err)
    24  			return
    25  		}
    26  		switch msgp.UnsafeString(field) {
    27  		case "Type":
    28  			{
    29  				var zb0002 string
    30  				zb0002, err = dc.ReadString()
    31  				if err != nil {
    32  					err = msgp.WrapError(err, "Type")
    33  					return
    34  				}
    35  				z.Type = BatchKeyRotationType(zb0002)
    36  			}
    37  		case "Key":
    38  			z.Key, err = dc.ReadString()
    39  			if err != nil {
    40  				err = msgp.WrapError(err, "Key")
    41  				return
    42  			}
    43  		case "Context":
    44  			z.Context, err = dc.ReadString()
    45  			if err != nil {
    46  				err = msgp.WrapError(err, "Context")
    47  				return
    48  			}
    49  		default:
    50  			err = dc.Skip()
    51  			if err != nil {
    52  				err = msgp.WrapError(err)
    53  				return
    54  			}
    55  		}
    56  	}
    57  	return
    58  }
    59  
    60  // EncodeMsg implements msgp.Encodable
    61  func (z BatchJobKeyRotateEncryption) EncodeMsg(en *msgp.Writer) (err error) {
    62  	// map header, size 3
    63  	// write "Type"
    64  	err = en.Append(0x83, 0xa4, 0x54, 0x79, 0x70, 0x65)
    65  	if err != nil {
    66  		return
    67  	}
    68  	err = en.WriteString(string(z.Type))
    69  	if err != nil {
    70  		err = msgp.WrapError(err, "Type")
    71  		return
    72  	}
    73  	// write "Key"
    74  	err = en.Append(0xa3, 0x4b, 0x65, 0x79)
    75  	if err != nil {
    76  		return
    77  	}
    78  	err = en.WriteString(z.Key)
    79  	if err != nil {
    80  		err = msgp.WrapError(err, "Key")
    81  		return
    82  	}
    83  	// write "Context"
    84  	err = en.Append(0xa7, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74)
    85  	if err != nil {
    86  		return
    87  	}
    88  	err = en.WriteString(z.Context)
    89  	if err != nil {
    90  		err = msgp.WrapError(err, "Context")
    91  		return
    92  	}
    93  	return
    94  }
    95  
    96  // MarshalMsg implements msgp.Marshaler
    97  func (z BatchJobKeyRotateEncryption) MarshalMsg(b []byte) (o []byte, err error) {
    98  	o = msgp.Require(b, z.Msgsize())
    99  	// map header, size 3
   100  	// string "Type"
   101  	o = append(o, 0x83, 0xa4, 0x54, 0x79, 0x70, 0x65)
   102  	o = msgp.AppendString(o, string(z.Type))
   103  	// string "Key"
   104  	o = append(o, 0xa3, 0x4b, 0x65, 0x79)
   105  	o = msgp.AppendString(o, z.Key)
   106  	// string "Context"
   107  	o = append(o, 0xa7, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74)
   108  	o = msgp.AppendString(o, z.Context)
   109  	return
   110  }
   111  
   112  // UnmarshalMsg implements msgp.Unmarshaler
   113  func (z *BatchJobKeyRotateEncryption) UnmarshalMsg(bts []byte) (o []byte, err error) {
   114  	var field []byte
   115  	_ = field
   116  	var zb0001 uint32
   117  	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
   118  	if err != nil {
   119  		err = msgp.WrapError(err)
   120  		return
   121  	}
   122  	for zb0001 > 0 {
   123  		zb0001--
   124  		field, bts, err = msgp.ReadMapKeyZC(bts)
   125  		if err != nil {
   126  			err = msgp.WrapError(err)
   127  			return
   128  		}
   129  		switch msgp.UnsafeString(field) {
   130  		case "Type":
   131  			{
   132  				var zb0002 string
   133  				zb0002, bts, err = msgp.ReadStringBytes(bts)
   134  				if err != nil {
   135  					err = msgp.WrapError(err, "Type")
   136  					return
   137  				}
   138  				z.Type = BatchKeyRotationType(zb0002)
   139  			}
   140  		case "Key":
   141  			z.Key, bts, err = msgp.ReadStringBytes(bts)
   142  			if err != nil {
   143  				err = msgp.WrapError(err, "Key")
   144  				return
   145  			}
   146  		case "Context":
   147  			z.Context, bts, err = msgp.ReadStringBytes(bts)
   148  			if err != nil {
   149  				err = msgp.WrapError(err, "Context")
   150  				return
   151  			}
   152  		default:
   153  			bts, err = msgp.Skip(bts)
   154  			if err != nil {
   155  				err = msgp.WrapError(err)
   156  				return
   157  			}
   158  		}
   159  	}
   160  	o = bts
   161  	return
   162  }
   163  
   164  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   165  func (z BatchJobKeyRotateEncryption) Msgsize() (s int) {
   166  	s = 1 + 5 + msgp.StringPrefixSize + len(string(z.Type)) + 4 + msgp.StringPrefixSize + len(z.Key) + 8 + msgp.StringPrefixSize + len(z.Context)
   167  	return
   168  }
   169  
   170  // DecodeMsg implements msgp.Decodable
   171  func (z *BatchJobKeyRotateFlags) DecodeMsg(dc *msgp.Reader) (err error) {
   172  	var field []byte
   173  	_ = field
   174  	var zb0001 uint32
   175  	zb0001, err = dc.ReadMapHeader()
   176  	if err != nil {
   177  		err = msgp.WrapError(err)
   178  		return
   179  	}
   180  	for zb0001 > 0 {
   181  		zb0001--
   182  		field, err = dc.ReadMapKeyPtr()
   183  		if err != nil {
   184  			err = msgp.WrapError(err)
   185  			return
   186  		}
   187  		switch msgp.UnsafeString(field) {
   188  		case "Filter":
   189  			err = z.Filter.DecodeMsg(dc)
   190  			if err != nil {
   191  				err = msgp.WrapError(err, "Filter")
   192  				return
   193  			}
   194  		case "Notify":
   195  			err = z.Notify.DecodeMsg(dc)
   196  			if err != nil {
   197  				err = msgp.WrapError(err, "Notify")
   198  				return
   199  			}
   200  		case "Retry":
   201  			err = z.Retry.DecodeMsg(dc)
   202  			if err != nil {
   203  				err = msgp.WrapError(err, "Retry")
   204  				return
   205  			}
   206  		default:
   207  			err = dc.Skip()
   208  			if err != nil {
   209  				err = msgp.WrapError(err)
   210  				return
   211  			}
   212  		}
   213  	}
   214  	return
   215  }
   216  
   217  // EncodeMsg implements msgp.Encodable
   218  func (z *BatchJobKeyRotateFlags) EncodeMsg(en *msgp.Writer) (err error) {
   219  	// map header, size 3
   220  	// write "Filter"
   221  	err = en.Append(0x83, 0xa6, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72)
   222  	if err != nil {
   223  		return
   224  	}
   225  	err = z.Filter.EncodeMsg(en)
   226  	if err != nil {
   227  		err = msgp.WrapError(err, "Filter")
   228  		return
   229  	}
   230  	// write "Notify"
   231  	err = en.Append(0xa6, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79)
   232  	if err != nil {
   233  		return
   234  	}
   235  	err = z.Notify.EncodeMsg(en)
   236  	if err != nil {
   237  		err = msgp.WrapError(err, "Notify")
   238  		return
   239  	}
   240  	// write "Retry"
   241  	err = en.Append(0xa5, 0x52, 0x65, 0x74, 0x72, 0x79)
   242  	if err != nil {
   243  		return
   244  	}
   245  	err = z.Retry.EncodeMsg(en)
   246  	if err != nil {
   247  		err = msgp.WrapError(err, "Retry")
   248  		return
   249  	}
   250  	return
   251  }
   252  
   253  // MarshalMsg implements msgp.Marshaler
   254  func (z *BatchJobKeyRotateFlags) MarshalMsg(b []byte) (o []byte, err error) {
   255  	o = msgp.Require(b, z.Msgsize())
   256  	// map header, size 3
   257  	// string "Filter"
   258  	o = append(o, 0x83, 0xa6, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72)
   259  	o, err = z.Filter.MarshalMsg(o)
   260  	if err != nil {
   261  		err = msgp.WrapError(err, "Filter")
   262  		return
   263  	}
   264  	// string "Notify"
   265  	o = append(o, 0xa6, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79)
   266  	o, err = z.Notify.MarshalMsg(o)
   267  	if err != nil {
   268  		err = msgp.WrapError(err, "Notify")
   269  		return
   270  	}
   271  	// string "Retry"
   272  	o = append(o, 0xa5, 0x52, 0x65, 0x74, 0x72, 0x79)
   273  	o, err = z.Retry.MarshalMsg(o)
   274  	if err != nil {
   275  		err = msgp.WrapError(err, "Retry")
   276  		return
   277  	}
   278  	return
   279  }
   280  
   281  // UnmarshalMsg implements msgp.Unmarshaler
   282  func (z *BatchJobKeyRotateFlags) UnmarshalMsg(bts []byte) (o []byte, err error) {
   283  	var field []byte
   284  	_ = field
   285  	var zb0001 uint32
   286  	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
   287  	if err != nil {
   288  		err = msgp.WrapError(err)
   289  		return
   290  	}
   291  	for zb0001 > 0 {
   292  		zb0001--
   293  		field, bts, err = msgp.ReadMapKeyZC(bts)
   294  		if err != nil {
   295  			err = msgp.WrapError(err)
   296  			return
   297  		}
   298  		switch msgp.UnsafeString(field) {
   299  		case "Filter":
   300  			bts, err = z.Filter.UnmarshalMsg(bts)
   301  			if err != nil {
   302  				err = msgp.WrapError(err, "Filter")
   303  				return
   304  			}
   305  		case "Notify":
   306  			bts, err = z.Notify.UnmarshalMsg(bts)
   307  			if err != nil {
   308  				err = msgp.WrapError(err, "Notify")
   309  				return
   310  			}
   311  		case "Retry":
   312  			bts, err = z.Retry.UnmarshalMsg(bts)
   313  			if err != nil {
   314  				err = msgp.WrapError(err, "Retry")
   315  				return
   316  			}
   317  		default:
   318  			bts, err = msgp.Skip(bts)
   319  			if err != nil {
   320  				err = msgp.WrapError(err)
   321  				return
   322  			}
   323  		}
   324  	}
   325  	o = bts
   326  	return
   327  }
   328  
   329  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   330  func (z *BatchJobKeyRotateFlags) Msgsize() (s int) {
   331  	s = 1 + 7 + z.Filter.Msgsize() + 7 + z.Notify.Msgsize() + 6 + z.Retry.Msgsize()
   332  	return
   333  }
   334  
   335  // DecodeMsg implements msgp.Decodable
   336  func (z *BatchJobKeyRotateV1) DecodeMsg(dc *msgp.Reader) (err error) {
   337  	var field []byte
   338  	_ = field
   339  	var zb0001 uint32
   340  	zb0001, err = dc.ReadMapHeader()
   341  	if err != nil {
   342  		err = msgp.WrapError(err)
   343  		return
   344  	}
   345  	for zb0001 > 0 {
   346  		zb0001--
   347  		field, err = dc.ReadMapKeyPtr()
   348  		if err != nil {
   349  			err = msgp.WrapError(err)
   350  			return
   351  		}
   352  		switch msgp.UnsafeString(field) {
   353  		case "APIVersion":
   354  			z.APIVersion, err = dc.ReadString()
   355  			if err != nil {
   356  				err = msgp.WrapError(err, "APIVersion")
   357  				return
   358  			}
   359  		case "Flags":
   360  			var zb0002 uint32
   361  			zb0002, err = dc.ReadMapHeader()
   362  			if err != nil {
   363  				err = msgp.WrapError(err, "Flags")
   364  				return
   365  			}
   366  			for zb0002 > 0 {
   367  				zb0002--
   368  				field, err = dc.ReadMapKeyPtr()
   369  				if err != nil {
   370  					err = msgp.WrapError(err, "Flags")
   371  					return
   372  				}
   373  				switch msgp.UnsafeString(field) {
   374  				case "Filter":
   375  					err = z.Flags.Filter.DecodeMsg(dc)
   376  					if err != nil {
   377  						err = msgp.WrapError(err, "Flags", "Filter")
   378  						return
   379  					}
   380  				case "Notify":
   381  					err = z.Flags.Notify.DecodeMsg(dc)
   382  					if err != nil {
   383  						err = msgp.WrapError(err, "Flags", "Notify")
   384  						return
   385  					}
   386  				case "Retry":
   387  					err = z.Flags.Retry.DecodeMsg(dc)
   388  					if err != nil {
   389  						err = msgp.WrapError(err, "Flags", "Retry")
   390  						return
   391  					}
   392  				default:
   393  					err = dc.Skip()
   394  					if err != nil {
   395  						err = msgp.WrapError(err, "Flags")
   396  						return
   397  					}
   398  				}
   399  			}
   400  		case "Bucket":
   401  			z.Bucket, err = dc.ReadString()
   402  			if err != nil {
   403  				err = msgp.WrapError(err, "Bucket")
   404  				return
   405  			}
   406  		case "Prefix":
   407  			z.Prefix, err = dc.ReadString()
   408  			if err != nil {
   409  				err = msgp.WrapError(err, "Prefix")
   410  				return
   411  			}
   412  		case "Encryption":
   413  			err = z.Encryption.DecodeMsg(dc)
   414  			if err != nil {
   415  				err = msgp.WrapError(err, "Encryption")
   416  				return
   417  			}
   418  		default:
   419  			err = dc.Skip()
   420  			if err != nil {
   421  				err = msgp.WrapError(err)
   422  				return
   423  			}
   424  		}
   425  	}
   426  	return
   427  }
   428  
   429  // EncodeMsg implements msgp.Encodable
   430  func (z *BatchJobKeyRotateV1) EncodeMsg(en *msgp.Writer) (err error) {
   431  	// map header, size 5
   432  	// write "APIVersion"
   433  	err = en.Append(0x85, 0xaa, 0x41, 0x50, 0x49, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e)
   434  	if err != nil {
   435  		return
   436  	}
   437  	err = en.WriteString(z.APIVersion)
   438  	if err != nil {
   439  		err = msgp.WrapError(err, "APIVersion")
   440  		return
   441  	}
   442  	// write "Flags"
   443  	err = en.Append(0xa5, 0x46, 0x6c, 0x61, 0x67, 0x73)
   444  	if err != nil {
   445  		return
   446  	}
   447  	// map header, size 3
   448  	// write "Filter"
   449  	err = en.Append(0x83, 0xa6, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72)
   450  	if err != nil {
   451  		return
   452  	}
   453  	err = z.Flags.Filter.EncodeMsg(en)
   454  	if err != nil {
   455  		err = msgp.WrapError(err, "Flags", "Filter")
   456  		return
   457  	}
   458  	// write "Notify"
   459  	err = en.Append(0xa6, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79)
   460  	if err != nil {
   461  		return
   462  	}
   463  	err = z.Flags.Notify.EncodeMsg(en)
   464  	if err != nil {
   465  		err = msgp.WrapError(err, "Flags", "Notify")
   466  		return
   467  	}
   468  	// write "Retry"
   469  	err = en.Append(0xa5, 0x52, 0x65, 0x74, 0x72, 0x79)
   470  	if err != nil {
   471  		return
   472  	}
   473  	err = z.Flags.Retry.EncodeMsg(en)
   474  	if err != nil {
   475  		err = msgp.WrapError(err, "Flags", "Retry")
   476  		return
   477  	}
   478  	// write "Bucket"
   479  	err = en.Append(0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74)
   480  	if err != nil {
   481  		return
   482  	}
   483  	err = en.WriteString(z.Bucket)
   484  	if err != nil {
   485  		err = msgp.WrapError(err, "Bucket")
   486  		return
   487  	}
   488  	// write "Prefix"
   489  	err = en.Append(0xa6, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78)
   490  	if err != nil {
   491  		return
   492  	}
   493  	err = en.WriteString(z.Prefix)
   494  	if err != nil {
   495  		err = msgp.WrapError(err, "Prefix")
   496  		return
   497  	}
   498  	// write "Encryption"
   499  	err = en.Append(0xaa, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e)
   500  	if err != nil {
   501  		return
   502  	}
   503  	err = z.Encryption.EncodeMsg(en)
   504  	if err != nil {
   505  		err = msgp.WrapError(err, "Encryption")
   506  		return
   507  	}
   508  	return
   509  }
   510  
   511  // MarshalMsg implements msgp.Marshaler
   512  func (z *BatchJobKeyRotateV1) MarshalMsg(b []byte) (o []byte, err error) {
   513  	o = msgp.Require(b, z.Msgsize())
   514  	// map header, size 5
   515  	// string "APIVersion"
   516  	o = append(o, 0x85, 0xaa, 0x41, 0x50, 0x49, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e)
   517  	o = msgp.AppendString(o, z.APIVersion)
   518  	// string "Flags"
   519  	o = append(o, 0xa5, 0x46, 0x6c, 0x61, 0x67, 0x73)
   520  	// map header, size 3
   521  	// string "Filter"
   522  	o = append(o, 0x83, 0xa6, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72)
   523  	o, err = z.Flags.Filter.MarshalMsg(o)
   524  	if err != nil {
   525  		err = msgp.WrapError(err, "Flags", "Filter")
   526  		return
   527  	}
   528  	// string "Notify"
   529  	o = append(o, 0xa6, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79)
   530  	o, err = z.Flags.Notify.MarshalMsg(o)
   531  	if err != nil {
   532  		err = msgp.WrapError(err, "Flags", "Notify")
   533  		return
   534  	}
   535  	// string "Retry"
   536  	o = append(o, 0xa5, 0x52, 0x65, 0x74, 0x72, 0x79)
   537  	o, err = z.Flags.Retry.MarshalMsg(o)
   538  	if err != nil {
   539  		err = msgp.WrapError(err, "Flags", "Retry")
   540  		return
   541  	}
   542  	// string "Bucket"
   543  	o = append(o, 0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74)
   544  	o = msgp.AppendString(o, z.Bucket)
   545  	// string "Prefix"
   546  	o = append(o, 0xa6, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78)
   547  	o = msgp.AppendString(o, z.Prefix)
   548  	// string "Encryption"
   549  	o = append(o, 0xaa, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e)
   550  	o, err = z.Encryption.MarshalMsg(o)
   551  	if err != nil {
   552  		err = msgp.WrapError(err, "Encryption")
   553  		return
   554  	}
   555  	return
   556  }
   557  
   558  // UnmarshalMsg implements msgp.Unmarshaler
   559  func (z *BatchJobKeyRotateV1) UnmarshalMsg(bts []byte) (o []byte, err error) {
   560  	var field []byte
   561  	_ = field
   562  	var zb0001 uint32
   563  	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
   564  	if err != nil {
   565  		err = msgp.WrapError(err)
   566  		return
   567  	}
   568  	for zb0001 > 0 {
   569  		zb0001--
   570  		field, bts, err = msgp.ReadMapKeyZC(bts)
   571  		if err != nil {
   572  			err = msgp.WrapError(err)
   573  			return
   574  		}
   575  		switch msgp.UnsafeString(field) {
   576  		case "APIVersion":
   577  			z.APIVersion, bts, err = msgp.ReadStringBytes(bts)
   578  			if err != nil {
   579  				err = msgp.WrapError(err, "APIVersion")
   580  				return
   581  			}
   582  		case "Flags":
   583  			var zb0002 uint32
   584  			zb0002, bts, err = msgp.ReadMapHeaderBytes(bts)
   585  			if err != nil {
   586  				err = msgp.WrapError(err, "Flags")
   587  				return
   588  			}
   589  			for zb0002 > 0 {
   590  				zb0002--
   591  				field, bts, err = msgp.ReadMapKeyZC(bts)
   592  				if err != nil {
   593  					err = msgp.WrapError(err, "Flags")
   594  					return
   595  				}
   596  				switch msgp.UnsafeString(field) {
   597  				case "Filter":
   598  					bts, err = z.Flags.Filter.UnmarshalMsg(bts)
   599  					if err != nil {
   600  						err = msgp.WrapError(err, "Flags", "Filter")
   601  						return
   602  					}
   603  				case "Notify":
   604  					bts, err = z.Flags.Notify.UnmarshalMsg(bts)
   605  					if err != nil {
   606  						err = msgp.WrapError(err, "Flags", "Notify")
   607  						return
   608  					}
   609  				case "Retry":
   610  					bts, err = z.Flags.Retry.UnmarshalMsg(bts)
   611  					if err != nil {
   612  						err = msgp.WrapError(err, "Flags", "Retry")
   613  						return
   614  					}
   615  				default:
   616  					bts, err = msgp.Skip(bts)
   617  					if err != nil {
   618  						err = msgp.WrapError(err, "Flags")
   619  						return
   620  					}
   621  				}
   622  			}
   623  		case "Bucket":
   624  			z.Bucket, bts, err = msgp.ReadStringBytes(bts)
   625  			if err != nil {
   626  				err = msgp.WrapError(err, "Bucket")
   627  				return
   628  			}
   629  		case "Prefix":
   630  			z.Prefix, bts, err = msgp.ReadStringBytes(bts)
   631  			if err != nil {
   632  				err = msgp.WrapError(err, "Prefix")
   633  				return
   634  			}
   635  		case "Encryption":
   636  			bts, err = z.Encryption.UnmarshalMsg(bts)
   637  			if err != nil {
   638  				err = msgp.WrapError(err, "Encryption")
   639  				return
   640  			}
   641  		default:
   642  			bts, err = msgp.Skip(bts)
   643  			if err != nil {
   644  				err = msgp.WrapError(err)
   645  				return
   646  			}
   647  		}
   648  	}
   649  	o = bts
   650  	return
   651  }
   652  
   653  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   654  func (z *BatchJobKeyRotateV1) Msgsize() (s int) {
   655  	s = 1 + 11 + msgp.StringPrefixSize + len(z.APIVersion) + 6 + 1 + 7 + z.Flags.Filter.Msgsize() + 7 + z.Flags.Notify.Msgsize() + 6 + z.Flags.Retry.Msgsize() + 7 + msgp.StringPrefixSize + len(z.Bucket) + 7 + msgp.StringPrefixSize + len(z.Prefix) + 11 + z.Encryption.Msgsize()
   656  	return
   657  }
   658  
   659  // DecodeMsg implements msgp.Decodable
   660  func (z *BatchKeyRotateFilter) DecodeMsg(dc *msgp.Reader) (err error) {
   661  	var field []byte
   662  	_ = field
   663  	var zb0001 uint32
   664  	zb0001, err = dc.ReadMapHeader()
   665  	if err != nil {
   666  		err = msgp.WrapError(err)
   667  		return
   668  	}
   669  	for zb0001 > 0 {
   670  		zb0001--
   671  		field, err = dc.ReadMapKeyPtr()
   672  		if err != nil {
   673  			err = msgp.WrapError(err)
   674  			return
   675  		}
   676  		switch msgp.UnsafeString(field) {
   677  		case "NewerThan":
   678  			z.NewerThan, err = dc.ReadDuration()
   679  			if err != nil {
   680  				err = msgp.WrapError(err, "NewerThan")
   681  				return
   682  			}
   683  		case "OlderThan":
   684  			z.OlderThan, err = dc.ReadDuration()
   685  			if err != nil {
   686  				err = msgp.WrapError(err, "OlderThan")
   687  				return
   688  			}
   689  		case "CreatedAfter":
   690  			z.CreatedAfter, err = dc.ReadTime()
   691  			if err != nil {
   692  				err = msgp.WrapError(err, "CreatedAfter")
   693  				return
   694  			}
   695  		case "CreatedBefore":
   696  			z.CreatedBefore, err = dc.ReadTime()
   697  			if err != nil {
   698  				err = msgp.WrapError(err, "CreatedBefore")
   699  				return
   700  			}
   701  		case "Tags":
   702  			var zb0002 uint32
   703  			zb0002, err = dc.ReadArrayHeader()
   704  			if err != nil {
   705  				err = msgp.WrapError(err, "Tags")
   706  				return
   707  			}
   708  			if cap(z.Tags) >= int(zb0002) {
   709  				z.Tags = (z.Tags)[:zb0002]
   710  			} else {
   711  				z.Tags = make([]BatchJobKV, zb0002)
   712  			}
   713  			for za0001 := range z.Tags {
   714  				err = z.Tags[za0001].DecodeMsg(dc)
   715  				if err != nil {
   716  					err = msgp.WrapError(err, "Tags", za0001)
   717  					return
   718  				}
   719  			}
   720  		case "Metadata":
   721  			var zb0003 uint32
   722  			zb0003, err = dc.ReadArrayHeader()
   723  			if err != nil {
   724  				err = msgp.WrapError(err, "Metadata")
   725  				return
   726  			}
   727  			if cap(z.Metadata) >= int(zb0003) {
   728  				z.Metadata = (z.Metadata)[:zb0003]
   729  			} else {
   730  				z.Metadata = make([]BatchJobKV, zb0003)
   731  			}
   732  			for za0002 := range z.Metadata {
   733  				err = z.Metadata[za0002].DecodeMsg(dc)
   734  				if err != nil {
   735  					err = msgp.WrapError(err, "Metadata", za0002)
   736  					return
   737  				}
   738  			}
   739  		case "KMSKeyID":
   740  			z.KMSKeyID, err = dc.ReadString()
   741  			if err != nil {
   742  				err = msgp.WrapError(err, "KMSKeyID")
   743  				return
   744  			}
   745  		default:
   746  			err = dc.Skip()
   747  			if err != nil {
   748  				err = msgp.WrapError(err)
   749  				return
   750  			}
   751  		}
   752  	}
   753  	return
   754  }
   755  
   756  // EncodeMsg implements msgp.Encodable
   757  func (z *BatchKeyRotateFilter) EncodeMsg(en *msgp.Writer) (err error) {
   758  	// map header, size 7
   759  	// write "NewerThan"
   760  	err = en.Append(0x87, 0xa9, 0x4e, 0x65, 0x77, 0x65, 0x72, 0x54, 0x68, 0x61, 0x6e)
   761  	if err != nil {
   762  		return
   763  	}
   764  	err = en.WriteDuration(z.NewerThan)
   765  	if err != nil {
   766  		err = msgp.WrapError(err, "NewerThan")
   767  		return
   768  	}
   769  	// write "OlderThan"
   770  	err = en.Append(0xa9, 0x4f, 0x6c, 0x64, 0x65, 0x72, 0x54, 0x68, 0x61, 0x6e)
   771  	if err != nil {
   772  		return
   773  	}
   774  	err = en.WriteDuration(z.OlderThan)
   775  	if err != nil {
   776  		err = msgp.WrapError(err, "OlderThan")
   777  		return
   778  	}
   779  	// write "CreatedAfter"
   780  	err = en.Append(0xac, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x66, 0x74, 0x65, 0x72)
   781  	if err != nil {
   782  		return
   783  	}
   784  	err = en.WriteTime(z.CreatedAfter)
   785  	if err != nil {
   786  		err = msgp.WrapError(err, "CreatedAfter")
   787  		return
   788  	}
   789  	// write "CreatedBefore"
   790  	err = en.Append(0xad, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65)
   791  	if err != nil {
   792  		return
   793  	}
   794  	err = en.WriteTime(z.CreatedBefore)
   795  	if err != nil {
   796  		err = msgp.WrapError(err, "CreatedBefore")
   797  		return
   798  	}
   799  	// write "Tags"
   800  	err = en.Append(0xa4, 0x54, 0x61, 0x67, 0x73)
   801  	if err != nil {
   802  		return
   803  	}
   804  	err = en.WriteArrayHeader(uint32(len(z.Tags)))
   805  	if err != nil {
   806  		err = msgp.WrapError(err, "Tags")
   807  		return
   808  	}
   809  	for za0001 := range z.Tags {
   810  		err = z.Tags[za0001].EncodeMsg(en)
   811  		if err != nil {
   812  			err = msgp.WrapError(err, "Tags", za0001)
   813  			return
   814  		}
   815  	}
   816  	// write "Metadata"
   817  	err = en.Append(0xa8, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61)
   818  	if err != nil {
   819  		return
   820  	}
   821  	err = en.WriteArrayHeader(uint32(len(z.Metadata)))
   822  	if err != nil {
   823  		err = msgp.WrapError(err, "Metadata")
   824  		return
   825  	}
   826  	for za0002 := range z.Metadata {
   827  		err = z.Metadata[za0002].EncodeMsg(en)
   828  		if err != nil {
   829  			err = msgp.WrapError(err, "Metadata", za0002)
   830  			return
   831  		}
   832  	}
   833  	// write "KMSKeyID"
   834  	err = en.Append(0xa8, 0x4b, 0x4d, 0x53, 0x4b, 0x65, 0x79, 0x49, 0x44)
   835  	if err != nil {
   836  		return
   837  	}
   838  	err = en.WriteString(z.KMSKeyID)
   839  	if err != nil {
   840  		err = msgp.WrapError(err, "KMSKeyID")
   841  		return
   842  	}
   843  	return
   844  }
   845  
   846  // MarshalMsg implements msgp.Marshaler
   847  func (z *BatchKeyRotateFilter) MarshalMsg(b []byte) (o []byte, err error) {
   848  	o = msgp.Require(b, z.Msgsize())
   849  	// map header, size 7
   850  	// string "NewerThan"
   851  	o = append(o, 0x87, 0xa9, 0x4e, 0x65, 0x77, 0x65, 0x72, 0x54, 0x68, 0x61, 0x6e)
   852  	o = msgp.AppendDuration(o, z.NewerThan)
   853  	// string "OlderThan"
   854  	o = append(o, 0xa9, 0x4f, 0x6c, 0x64, 0x65, 0x72, 0x54, 0x68, 0x61, 0x6e)
   855  	o = msgp.AppendDuration(o, z.OlderThan)
   856  	// string "CreatedAfter"
   857  	o = append(o, 0xac, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x66, 0x74, 0x65, 0x72)
   858  	o = msgp.AppendTime(o, z.CreatedAfter)
   859  	// string "CreatedBefore"
   860  	o = append(o, 0xad, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65)
   861  	o = msgp.AppendTime(o, z.CreatedBefore)
   862  	// string "Tags"
   863  	o = append(o, 0xa4, 0x54, 0x61, 0x67, 0x73)
   864  	o = msgp.AppendArrayHeader(o, uint32(len(z.Tags)))
   865  	for za0001 := range z.Tags {
   866  		o, err = z.Tags[za0001].MarshalMsg(o)
   867  		if err != nil {
   868  			err = msgp.WrapError(err, "Tags", za0001)
   869  			return
   870  		}
   871  	}
   872  	// string "Metadata"
   873  	o = append(o, 0xa8, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61)
   874  	o = msgp.AppendArrayHeader(o, uint32(len(z.Metadata)))
   875  	for za0002 := range z.Metadata {
   876  		o, err = z.Metadata[za0002].MarshalMsg(o)
   877  		if err != nil {
   878  			err = msgp.WrapError(err, "Metadata", za0002)
   879  			return
   880  		}
   881  	}
   882  	// string "KMSKeyID"
   883  	o = append(o, 0xa8, 0x4b, 0x4d, 0x53, 0x4b, 0x65, 0x79, 0x49, 0x44)
   884  	o = msgp.AppendString(o, z.KMSKeyID)
   885  	return
   886  }
   887  
   888  // UnmarshalMsg implements msgp.Unmarshaler
   889  func (z *BatchKeyRotateFilter) UnmarshalMsg(bts []byte) (o []byte, err error) {
   890  	var field []byte
   891  	_ = field
   892  	var zb0001 uint32
   893  	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
   894  	if err != nil {
   895  		err = msgp.WrapError(err)
   896  		return
   897  	}
   898  	for zb0001 > 0 {
   899  		zb0001--
   900  		field, bts, err = msgp.ReadMapKeyZC(bts)
   901  		if err != nil {
   902  			err = msgp.WrapError(err)
   903  			return
   904  		}
   905  		switch msgp.UnsafeString(field) {
   906  		case "NewerThan":
   907  			z.NewerThan, bts, err = msgp.ReadDurationBytes(bts)
   908  			if err != nil {
   909  				err = msgp.WrapError(err, "NewerThan")
   910  				return
   911  			}
   912  		case "OlderThan":
   913  			z.OlderThan, bts, err = msgp.ReadDurationBytes(bts)
   914  			if err != nil {
   915  				err = msgp.WrapError(err, "OlderThan")
   916  				return
   917  			}
   918  		case "CreatedAfter":
   919  			z.CreatedAfter, bts, err = msgp.ReadTimeBytes(bts)
   920  			if err != nil {
   921  				err = msgp.WrapError(err, "CreatedAfter")
   922  				return
   923  			}
   924  		case "CreatedBefore":
   925  			z.CreatedBefore, bts, err = msgp.ReadTimeBytes(bts)
   926  			if err != nil {
   927  				err = msgp.WrapError(err, "CreatedBefore")
   928  				return
   929  			}
   930  		case "Tags":
   931  			var zb0002 uint32
   932  			zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
   933  			if err != nil {
   934  				err = msgp.WrapError(err, "Tags")
   935  				return
   936  			}
   937  			if cap(z.Tags) >= int(zb0002) {
   938  				z.Tags = (z.Tags)[:zb0002]
   939  			} else {
   940  				z.Tags = make([]BatchJobKV, zb0002)
   941  			}
   942  			for za0001 := range z.Tags {
   943  				bts, err = z.Tags[za0001].UnmarshalMsg(bts)
   944  				if err != nil {
   945  					err = msgp.WrapError(err, "Tags", za0001)
   946  					return
   947  				}
   948  			}
   949  		case "Metadata":
   950  			var zb0003 uint32
   951  			zb0003, bts, err = msgp.ReadArrayHeaderBytes(bts)
   952  			if err != nil {
   953  				err = msgp.WrapError(err, "Metadata")
   954  				return
   955  			}
   956  			if cap(z.Metadata) >= int(zb0003) {
   957  				z.Metadata = (z.Metadata)[:zb0003]
   958  			} else {
   959  				z.Metadata = make([]BatchJobKV, zb0003)
   960  			}
   961  			for za0002 := range z.Metadata {
   962  				bts, err = z.Metadata[za0002].UnmarshalMsg(bts)
   963  				if err != nil {
   964  					err = msgp.WrapError(err, "Metadata", za0002)
   965  					return
   966  				}
   967  			}
   968  		case "KMSKeyID":
   969  			z.KMSKeyID, bts, err = msgp.ReadStringBytes(bts)
   970  			if err != nil {
   971  				err = msgp.WrapError(err, "KMSKeyID")
   972  				return
   973  			}
   974  		default:
   975  			bts, err = msgp.Skip(bts)
   976  			if err != nil {
   977  				err = msgp.WrapError(err)
   978  				return
   979  			}
   980  		}
   981  	}
   982  	o = bts
   983  	return
   984  }
   985  
   986  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   987  func (z *BatchKeyRotateFilter) Msgsize() (s int) {
   988  	s = 1 + 10 + msgp.DurationSize + 10 + msgp.DurationSize + 13 + msgp.TimeSize + 14 + msgp.TimeSize + 5 + msgp.ArrayHeaderSize
   989  	for za0001 := range z.Tags {
   990  		s += z.Tags[za0001].Msgsize()
   991  	}
   992  	s += 9 + msgp.ArrayHeaderSize
   993  	for za0002 := range z.Metadata {
   994  		s += z.Metadata[za0002].Msgsize()
   995  	}
   996  	s += 9 + msgp.StringPrefixSize + len(z.KMSKeyID)
   997  	return
   998  }
   999  
  1000  // DecodeMsg implements msgp.Decodable
  1001  func (z *BatchKeyRotateNotification) DecodeMsg(dc *msgp.Reader) (err error) {
  1002  	var field []byte
  1003  	_ = field
  1004  	var zb0001 uint32
  1005  	zb0001, err = dc.ReadMapHeader()
  1006  	if err != nil {
  1007  		err = msgp.WrapError(err)
  1008  		return
  1009  	}
  1010  	for zb0001 > 0 {
  1011  		zb0001--
  1012  		field, err = dc.ReadMapKeyPtr()
  1013  		if err != nil {
  1014  			err = msgp.WrapError(err)
  1015  			return
  1016  		}
  1017  		switch msgp.UnsafeString(field) {
  1018  		case "Endpoint":
  1019  			z.Endpoint, err = dc.ReadString()
  1020  			if err != nil {
  1021  				err = msgp.WrapError(err, "Endpoint")
  1022  				return
  1023  			}
  1024  		case "Token":
  1025  			z.Token, err = dc.ReadString()
  1026  			if err != nil {
  1027  				err = msgp.WrapError(err, "Token")
  1028  				return
  1029  			}
  1030  		default:
  1031  			err = dc.Skip()
  1032  			if err != nil {
  1033  				err = msgp.WrapError(err)
  1034  				return
  1035  			}
  1036  		}
  1037  	}
  1038  	return
  1039  }
  1040  
  1041  // EncodeMsg implements msgp.Encodable
  1042  func (z BatchKeyRotateNotification) EncodeMsg(en *msgp.Writer) (err error) {
  1043  	// map header, size 2
  1044  	// write "Endpoint"
  1045  	err = en.Append(0x82, 0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
  1046  	if err != nil {
  1047  		return
  1048  	}
  1049  	err = en.WriteString(z.Endpoint)
  1050  	if err != nil {
  1051  		err = msgp.WrapError(err, "Endpoint")
  1052  		return
  1053  	}
  1054  	// write "Token"
  1055  	err = en.Append(0xa5, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
  1056  	if err != nil {
  1057  		return
  1058  	}
  1059  	err = en.WriteString(z.Token)
  1060  	if err != nil {
  1061  		err = msgp.WrapError(err, "Token")
  1062  		return
  1063  	}
  1064  	return
  1065  }
  1066  
  1067  // MarshalMsg implements msgp.Marshaler
  1068  func (z BatchKeyRotateNotification) MarshalMsg(b []byte) (o []byte, err error) {
  1069  	o = msgp.Require(b, z.Msgsize())
  1070  	// map header, size 2
  1071  	// string "Endpoint"
  1072  	o = append(o, 0x82, 0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
  1073  	o = msgp.AppendString(o, z.Endpoint)
  1074  	// string "Token"
  1075  	o = append(o, 0xa5, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
  1076  	o = msgp.AppendString(o, z.Token)
  1077  	return
  1078  }
  1079  
  1080  // UnmarshalMsg implements msgp.Unmarshaler
  1081  func (z *BatchKeyRotateNotification) UnmarshalMsg(bts []byte) (o []byte, err error) {
  1082  	var field []byte
  1083  	_ = field
  1084  	var zb0001 uint32
  1085  	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
  1086  	if err != nil {
  1087  		err = msgp.WrapError(err)
  1088  		return
  1089  	}
  1090  	for zb0001 > 0 {
  1091  		zb0001--
  1092  		field, bts, err = msgp.ReadMapKeyZC(bts)
  1093  		if err != nil {
  1094  			err = msgp.WrapError(err)
  1095  			return
  1096  		}
  1097  		switch msgp.UnsafeString(field) {
  1098  		case "Endpoint":
  1099  			z.Endpoint, bts, err = msgp.ReadStringBytes(bts)
  1100  			if err != nil {
  1101  				err = msgp.WrapError(err, "Endpoint")
  1102  				return
  1103  			}
  1104  		case "Token":
  1105  			z.Token, bts, err = msgp.ReadStringBytes(bts)
  1106  			if err != nil {
  1107  				err = msgp.WrapError(err, "Token")
  1108  				return
  1109  			}
  1110  		default:
  1111  			bts, err = msgp.Skip(bts)
  1112  			if err != nil {
  1113  				err = msgp.WrapError(err)
  1114  				return
  1115  			}
  1116  		}
  1117  	}
  1118  	o = bts
  1119  	return
  1120  }
  1121  
  1122  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  1123  func (z BatchKeyRotateNotification) Msgsize() (s int) {
  1124  	s = 1 + 9 + msgp.StringPrefixSize + len(z.Endpoint) + 6 + msgp.StringPrefixSize + len(z.Token)
  1125  	return
  1126  }
  1127  
  1128  // DecodeMsg implements msgp.Decodable
  1129  func (z *BatchKeyRotationType) DecodeMsg(dc *msgp.Reader) (err error) {
  1130  	{
  1131  		var zb0001 string
  1132  		zb0001, err = dc.ReadString()
  1133  		if err != nil {
  1134  			err = msgp.WrapError(err)
  1135  			return
  1136  		}
  1137  		(*z) = BatchKeyRotationType(zb0001)
  1138  	}
  1139  	return
  1140  }
  1141  
  1142  // EncodeMsg implements msgp.Encodable
  1143  func (z BatchKeyRotationType) EncodeMsg(en *msgp.Writer) (err error) {
  1144  	err = en.WriteString(string(z))
  1145  	if err != nil {
  1146  		err = msgp.WrapError(err)
  1147  		return
  1148  	}
  1149  	return
  1150  }
  1151  
  1152  // MarshalMsg implements msgp.Marshaler
  1153  func (z BatchKeyRotationType) MarshalMsg(b []byte) (o []byte, err error) {
  1154  	o = msgp.Require(b, z.Msgsize())
  1155  	o = msgp.AppendString(o, string(z))
  1156  	return
  1157  }
  1158  
  1159  // UnmarshalMsg implements msgp.Unmarshaler
  1160  func (z *BatchKeyRotationType) UnmarshalMsg(bts []byte) (o []byte, err error) {
  1161  	{
  1162  		var zb0001 string
  1163  		zb0001, bts, err = msgp.ReadStringBytes(bts)
  1164  		if err != nil {
  1165  			err = msgp.WrapError(err)
  1166  			return
  1167  		}
  1168  		(*z) = BatchKeyRotationType(zb0001)
  1169  	}
  1170  	o = bts
  1171  	return
  1172  }
  1173  
  1174  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  1175  func (z BatchKeyRotationType) Msgsize() (s int) {
  1176  	s = msgp.StringPrefixSize + len(string(z))
  1177  	return
  1178  }