/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["../../chunks/_rollupPluginBabelHelpers","../../chunks/tslib.es6","../../core/JSONSupport","../../core/lang","../../core/accessorSupport/decorators/property","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/subclass","../../core/accessorSupport/decorators/writer"],(function(e,t,r,o,s,n,a,p){"use strict";var i;let c=i=function(t){function r(e){var r;return(r=t.call(this,e)||this).attachmentTypes=null,r.attachmentsWhere=null,r.cacheHint=void 0,r.keywords=null,r.globalIds=null,r.name=null,r.num=null,r.objectIds=null,r.returnMetadata=!1,r.size=null,r.start=null,r.where=null,r}e._inheritsLoose(r,t);var s=r.prototype;return s.writeStart=function(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10},s.clone=function(){return new i(o.clone({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))},r}(r.JSONSupport);t.__decorate([s.property({type:[String],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),t.__decorate([s.property({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],c.prototype,"attachmentsWhere",void 0),t.__decorate([s.property({type:Boolean,json:{write:!0}})],c.prototype,"cacheHint",void 0),t.__decorate([s.property({type:[String],json:{write:!0}})],c.prototype,"keywords",void 0),t.__decorate([s.property({type:[Number],json:{write:!0}})],c.prototype,"globalIds",void 0),t.__decorate([s.property({json:{write:!0}})],c.prototype,"name",void 0),t.__decorate([s.property({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0),t.__decorate([s.property({type:[Number],json:{write:!0}})],c.prototype,"objectIds",void 0),t.__decorate([s.property({type:Boolean,json:{default:!1,write:!0}})],c.prototype,"returnMetadata",void 0),t.__decorate([s.property({type:[Number],json:{write:!0}})],c.prototype,"size",void 0),t.__decorate([s.property({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0),t.__decorate([p.writer("start"),p.writer("num")],c.prototype,"writeStart",null),t.__decorate([s.property({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0),c=i=t.__decorate([a.subclass("esri.rest.support.AttachmentQuery")],c),c.from=n.ensureType(c);return c}));
