@wix/bex-utils 2.78.0 → 2.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/builders.impl.d.ts +22 -0
  2. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/builders.impl.js +275 -0
  3. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/builders.impl.js.map +1 -0
  4. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/http.impl.d.ts +50 -0
  5. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/http.impl.js +250 -0
  6. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/http.impl.js.map +1 -0
  7. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/meta.impl.d.ts +16 -0
  8. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/meta.impl.js +81 -0
  9. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/meta.impl.js.map +1 -0
  10. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/proto/client/proto-generated.d.ts +7116 -0
  11. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/proto/client/proto-generated.js +2 -0
  12. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/proto/proto-generated.d.ts +3557 -0
  13. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/proto/proto-generated.js +1 -0
  14. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/proto/server/proto-generated.d.ts +7113 -0
  15. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/proto/server/proto-generated.js +2 -0
  16. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/rpc.impl.d.ts +59 -0
  17. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/rpc.impl.js +109 -0
  18. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/rpc.impl.js.map +1 -0
  19. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/types.impl.d.ts +343 -0
  20. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/types.impl.js +42 -0
  21. package/@wix/ambassador-dealer-v1-offer-event/build/cjs/types.impl.js.map +1 -0
  22. package/@wix/ambassador-dealer-v1-offer-event/build/es/builders.impl.d.ts +22 -0
  23. package/@wix/ambassador-dealer-v1-offer-event/build/es/builders.impl.js +239 -0
  24. package/@wix/ambassador-dealer-v1-offer-event/build/es/builders.impl.js.map +1 -0
  25. package/@wix/ambassador-dealer-v1-offer-event/build/es/http.impl.d.ts +50 -0
  26. package/@wix/ambassador-dealer-v1-offer-event/build/es/http.impl.js +244 -0
  27. package/@wix/ambassador-dealer-v1-offer-event/build/es/http.impl.js.map +1 -0
  28. package/@wix/ambassador-dealer-v1-offer-event/build/es/meta.impl.d.ts +16 -0
  29. package/@wix/ambassador-dealer-v1-offer-event/build/es/meta.impl.js +56 -0
  30. package/@wix/ambassador-dealer-v1-offer-event/build/es/meta.impl.js.map +1 -0
  31. package/@wix/ambassador-dealer-v1-offer-event/build/es/rpc.impl.d.ts +59 -0
  32. package/@wix/ambassador-dealer-v1-offer-event/build/es/rpc.impl.js +84 -0
  33. package/@wix/ambassador-dealer-v1-offer-event/build/es/rpc.impl.js.map +1 -0
  34. package/@wix/ambassador-dealer-v1-offer-event/build/es/types.impl.d.ts +343 -0
  35. package/@wix/ambassador-dealer-v1-offer-event/build/es/types.impl.js +39 -0
  36. package/@wix/ambassador-dealer-v1-offer-event/build/es/types.impl.js.map +1 -0
  37. package/@wix/ambassador-dealer-v1-offer-event/builders/package.json +7 -0
  38. package/@wix/ambassador-dealer-v1-offer-event/http/package.json +7 -0
  39. package/@wix/ambassador-dealer-v1-offer-event/meta/package.json +7 -0
  40. package/@wix/ambassador-dealer-v1-offer-event/package.json +52 -0
  41. package/@wix/ambassador-dealer-v1-offer-event/rpc/package.json +6 -0
  42. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/action_payload.proto +33 -0
  43. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/annotations.proto +451 -0
  44. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/api_errors.proto +142 -0
  45. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/callback.proto +163 -0
  46. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/context.proto +19 -0
  47. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/entity.proto +127 -0
  48. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/errors.proto +127 -0
  49. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/idempotency.proto +25 -0
  50. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/permissions.proto +46 -0
  51. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/sla.proto +24 -0
  52. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/subscription.proto +32 -0
  53. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/validations.proto +142 -0
  54. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/address.proto +148 -0
  55. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/bulk.proto +53 -0
  56. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/identification.proto +40 -0
  57. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/image.proto +8 -0
  58. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/media.proto +280 -0
  59. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/money.proto +32 -0
  60. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/pageurl.proto +32 -0
  61. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/paging.proto +121 -0
  62. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/query.proto +799 -0
  63. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/sorting.proto +36 -0
  64. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/spi.proto +85 -0
  65. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/tags.proto +55 -0
  66. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/wixlink.proto +203 -0
  67. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/dealerOfferEvents/api/v1/dealer-offer-events.proto +211 -0
  68. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/dealerOfferEvents/api/v1/event.proto +131 -0
  69. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/graphql/definitions.proto +13 -0
  70. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/http/field_mask.proto +46 -0
  71. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/sdk/definitions.proto +191 -0
  72. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/spi/definitions.proto +187 -0
  73. package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/spi/http_error_status.proto +24 -0
  74. package/@wix/ambassador-dealer-v1-offer-event/types/package.json +7 -0
  75. package/package.json +4 -3
@@ -0,0 +1 @@
1
+ const __builtIn={Number:Number,Array:Array,Object:Object,Buffer:Buffer},$root={__options:{stringEnums:!0,stringLongs:!0,embedBinaryDescriptors:!1,stdCase:!1,generatorVersion:"2.0.1171",contentHash:"e2227f06cc1c72feb9bf6692c960a15a1c7970ee"},__lookup:function(e){const t=e.Root.fromJSON({nested:{wix:{nested:{api:{options:{java_multiple_files:!0,java_outer_classname:"ValidationsProto",java_package:"com.wix.api"},nested:{actionPayload:{type:"ActionPayload",id:50600,extend:"google.protobuf.MessageOptions",comment:null,parsedOptions:null},ActionPayload:{fields:{customSlug:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},serviceMaturity:{type:"Maturity",id:50104,extend:"google.protobuf.ServiceOptions",comment:null,parsedOptions:null},serviceExposure:{type:"Exposure",id:50105,extend:"google.protobuf.ServiceOptions",comment:null,parsedOptions:null},serviceDeprecated:{type:"Deprecated",id:50140,extend:"google.protobuf.ServiceOptions",comment:null,parsedOptions:null},appendixFiles:{rule:"repeated",type:"ServiceAppendix",id:50150,extend:"google.protobuf.ServiceOptions",options:{packed:!1},comment:null,parsedOptions:null},exposure:{type:"Exposure",id:50101,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},maturity:{type:"Maturity",id:50102,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},cacheable:{type:"CacheSettings",id:50103,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},deprecated:{type:"Deprecated",id:50141,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},crud:{type:"Crud",id:50146,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},acceptsLinguist:{type:"bool",id:50148,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},decompositeOf:{type:"string",id:50120,extend:"google.protobuf.MessageOptions",comment:null,parsedOptions:null},decompositionMinimumFields:{rule:"repeated",type:"FieldSet",id:50121,extend:"google.protobuf.MessageOptions",options:{packed:!1},comment:null,parsedOptions:null},unwrapArrayValue:{type:"bool",id:50122,extend:"google.protobuf.MessageOptions",comment:null,parsedOptions:null},messageDeprecated:{type:"Deprecated",id:50142,extend:"google.protobuf.MessageOptions",comment:null,parsedOptions:null},unique:{rule:"repeated",type:"Unique",id:50145,extend:"google.protobuf.MessageOptions",options:{packed:!1},comment:null,parsedOptions:null},fieldExposure:{type:"Exposure",id:50106,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},fieldMaturity:{type:"Maturity",id:50107,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},pii:{type:"bool",id:50110,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},referencedEntity:{type:"string",id:50111,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},referencedEntityField:{type:"ReferenceEntityField",id:50112,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},fieldDeprecated:{type:"Deprecated",id:50143,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},translatable:{type:"Translatable",id:50144,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},sampleData:{type:"string",id:50149,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},conditional:{type:"Conditional",id:50151,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},nullable:{type:"bool",id:50152,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},enumMaturity:{type:"Maturity",id:50130,extend:"google.protobuf.EnumValueOptions",comment:null,parsedOptions:null},enumExposure:{type:"Exposure",id:50131,extend:"google.protobuf.EnumValueOptions",comment:null,parsedOptions:null},ReferenceEntityField:{fields:{path:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null}},comment:null},CacheSettings:{fields:{maxAgeSeconds:{type:"int32",id:1,comment:null,parsedOptions:null},manual:{type:"bool",id:2,comment:null,parsedOptions:null}},comment:null},FieldSet:{fields:{field:{rule:"repeated",type:"string",id:1,comment:null,parsedOptions:null}},comment:null},Deprecated:{fields:{replacedBy:{type:"string",id:1,comment:null,parsedOptions:null},targetRemovalDate:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},Unique:{fields:{field:{rule:"repeated",type:"string",id:1,comment:null,parsedOptions:null}},comment:null},Crud:{oneofs:{methodOptions:{oneof:["createOptions","getOptions","updateOptions","deleteOptions","listOptions","queryOptions","searchOptions","bulkCreateOptions","bulkUpdateOptions","bulkUpdateByFilterOptions","bulkDeleteOptions","bulkDeleteByFilterOptions","upsertOptions","bulkUpsertOptions","listDeletedOptions","getDeletedOptions","restoreFromTrashbinOptions","removeFromTrashbinOptions","countOptions","searchRelatedOptions","updateExtendedFieldsOptions","customActionOptions","bulkUpdateTagsOptions","bulkUpdateTagsByFilterOptions"],comment:null}},fields:{method:{rule:"required",type:"Method",id:1,comment:null,parsedOptions:null},createOptions:{type:"CreateMethodOptions",id:3,comment:null,parsedOptions:null},getOptions:{type:"GetItemMethodOptions",id:4,comment:null,parsedOptions:null},updateOptions:{type:"UpdateMethodOptions",id:5,comment:null,parsedOptions:null},deleteOptions:{type:"DeleteMethodOptions",id:6,comment:null,parsedOptions:null},listOptions:{type:"ListMethodOptions",id:7,comment:null,parsedOptions:null},queryOptions:{type:"QueryMethodOptions",id:8,comment:null,parsedOptions:null},searchOptions:{type:"SearchMethodOptions",id:20,comment:null,parsedOptions:null},bulkCreateOptions:{type:"BulkCreateMethodOptions",id:9,comment:null,parsedOptions:null},bulkUpdateOptions:{type:"BulkUpdateMethodOptions",id:10,comment:null,parsedOptions:null},bulkUpdateByFilterOptions:{type:"BulkUpdateByFilterMethodOptions",id:11,comment:null,parsedOptions:null},bulkDeleteOptions:{type:"BulkDeleteMethodOptions",id:12,comment:null,parsedOptions:null},bulkDeleteByFilterOptions:{type:"BulkDeleteByFilterMethodOptions",id:13,comment:null,parsedOptions:null},upsertOptions:{type:"UpsertMethodOptions",id:14,comment:null,parsedOptions:null},bulkUpsertOptions:{type:"BulkUpsertMethodOptions",id:15,comment:null,parsedOptions:null},listDeletedOptions:{type:"ListDeletedMethodOptions",id:16,comment:null,parsedOptions:null},getDeletedOptions:{type:"GetDeletedMethodOptions",id:17,comment:null,parsedOptions:null},restoreFromTrashbinOptions:{type:"RestoreFromTrashbinMethodOptions",id:18,comment:null,parsedOptions:null},removeFromTrashbinOptions:{type:"RemoveFromTrashbinMethodOptions",id:19,comment:null,parsedOptions:null},countOptions:{type:"CountOptions",id:21,comment:null,parsedOptions:null},searchRelatedOptions:{type:"SearchRelatedOptions",id:22,comment:null,parsedOptions:null},updateExtendedFieldsOptions:{type:"UpdateExtendedFieldsOptions",id:23,comment:null,parsedOptions:null},customActionOptions:{type:"CustomActionOptions",id:24,comment:null,parsedOptions:null},bulkUpdateTagsOptions:{type:"BulkUpdateTagsMethodOptions",id:25,comment:null,parsedOptions:null},bulkUpdateTagsByFilterOptions:{type:"BulkUpdateTagsByFilterMethodOptions",id:26,comment:null,parsedOptions:null}},nested:{Method:{values:{UNKNOWN_METHOD:0,CREATE:1,GET_ITEM:2,UPDATE:3,DELETE:4,UPSERT:12,LIST:5,QUERY:6,SEARCH:18,BULK_CREATE:7,BULK_UPDATE:8,BULK_UPDATE_BY_FILTER:9,BULK_DELETE:10,BULK_DELETE_BY_FILTER:11,BULK_UPSERT:13,LIST_DELETED:14,GET_DELETED:15,RESTORE_FROM_TRASHBIN:16,REMOVE_FROM_TRASHBIN:17,COUNT:19,SEARCH_RELATED:20,UPDATE_EXTENDED_FIELDS:21,BULK_UPDATE_TAGS:22,BULK_UPDATE_TAGS_BY_FILTER:23,CUSTOM_ACTION:24},comment:null,comments:{UNKNOWN_METHOD:null,CREATE:null,GET_ITEM:null,UPDATE:null,DELETE:null,UPSERT:null,LIST:null,QUERY:null,SEARCH:null,BULK_CREATE:null,BULK_UPDATE:null,BULK_UPDATE_BY_FILTER:null,BULK_DELETE:null,BULK_DELETE_BY_FILTER:null,BULK_UPSERT:null,LIST_DELETED:null,GET_DELETED:null,RESTORE_FROM_TRASHBIN:null,REMOVE_FROM_TRASHBIN:null,COUNT:null,SEARCH_RELATED:null,UPDATE_EXTENDED_FIELDS:null,BULK_UPDATE_TAGS:null,BULK_UPDATE_TAGS_BY_FILTER:null,CUSTOM_ACTION:null}}},comment:null},Paging:{fields:{type:{type:"Type",id:1,comment:null,parsedOptions:null},pagingMetadataField:{type:"string",id:2,options:{deprecated:!0},comment:null,parsedOptions:[{deprecated:!0,__comment:null}]},cursorPagingMetadataField:{type:"string",id:3,comment:null,parsedOptions:null},offsetPagingMetadataField:{type:"string",id:4,comment:null,parsedOptions:null}},nested:{Type:{values:{UNKNOWN_TYPE:0,OFFSET:1,CURSOR:2,BOTH:3},comment:null,comments:{UNKNOWN_TYPE:null,OFFSET:null,CURSOR:null,BOTH:null}}},comment:null},CustomActionOptions:{fields:{readOperation:{type:"bool",id:1,comment:null,parsedOptions:null},wql:{type:"WqlOptions",id:2,comment:null,parsedOptions:null}},comment:null},WqlOptions:{oneofs:{field:{oneof:["filterField","queryField","searchField"],comment:null}},fields:{queryOptionsName:{type:"string",id:1,comment:null,parsedOptions:null},filterField:{type:"string",id:2,comment:null,parsedOptions:null},queryField:{type:"string",id:3,comment:null,parsedOptions:null},searchField:{type:"string",id:4,comment:null,parsedOptions:null}},comment:null},CreateMethodOptions:{fields:{itemField:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},GetItemMethodOptions:{fields:{itemField:{type:"string",id:2,comment:null,parsedOptions:null},idField:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},UpdateMethodOptions:{fields:{itemField:{type:"string",id:1,comment:null,parsedOptions:null},fieldmaskField:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},UpsertMethodOptions:{fields:{itemField:{type:"string",id:1,comment:null,parsedOptions:null},fieldmaskField:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},DeleteMethodOptions:{fields:{idField:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},ListMethodOptions:{fields:{idsField:{type:"string",id:1,comment:null,parsedOptions:null},itemsField:{rule:"required",type:"string",id:3,comment:null,parsedOptions:null},paging:{type:"Paging",id:2,comment:null,parsedOptions:null},meAliasableField:{rule:"repeated",type:"string",id:4,comment:null,parsedOptions:null}},comment:null},QueryMethodOptions:{oneofs:{wqlOptions:{oneof:["wql","queryOptionsName"],comment:null}},fields:{queryField:{type:"string",id:1,options:{deprecated:!0},comment:null,parsedOptions:[{deprecated:!0,__comment:null}]},cursorQueryField:{type:"string",id:7,comment:null,parsedOptions:null},offsetQueryField:{type:"string",id:8,comment:null,parsedOptions:null},itemsField:{rule:"required",type:"string",id:3,comment:null,parsedOptions:null},paging:{type:"Paging",id:2,comment:null,parsedOptions:null},wql:{type:"Wql",id:4,options:{deprecated:!0},comment:null,parsedOptions:[{deprecated:!0,__comment:null}]},queryOptionsName:{type:"string",id:6,comment:null,parsedOptions:null},meAliasableField:{rule:"repeated",type:"string",id:5,comment:null,parsedOptions:null}},comment:null},SearchMethodOptions:{oneofs:{wqlOptions:{oneof:["wql","queryOptionsName"],comment:null}},fields:{searchField:{type:"string",id:1,options:{deprecated:!0},comment:null,parsedOptions:[{deprecated:!0,__comment:null}]},cursorSearchField:{type:"string",id:8,comment:null,parsedOptions:null},offsetSearchField:{type:"string",id:9,comment:null,parsedOptions:null},itemsField:{rule:"required",type:"string",id:3,comment:null,parsedOptions:null},paging:{type:"Paging",id:2,comment:null,parsedOptions:null},wql:{type:"Wql",id:4,comment:null,parsedOptions:null},queryOptionsName:{type:"string",id:7,comment:null,parsedOptions:null},meAliasableField:{rule:"repeated",type:"string",id:5,comment:null,parsedOptions:null},search:{rule:"repeated",type:"Search",id:6,comment:null,parsedOptions:null}},comment:null},BulkCreateMethodOptions:{fields:{itemField:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},BulkUpdateMethodOptions:{fields:{itemsField:{type:"string",id:1,comment:null,parsedOptions:null},itemField:{type:"string",id:2,comment:null,parsedOptions:null},fieldmaskField:{type:"string",id:3,comment:null,parsedOptions:null}},comment:null},BulkUpdateByFilterMethodOptions:{fields:{itemField:{type:"string",id:1,comment:null,parsedOptions:null},fieldmaskField:{type:"string",id:2,comment:null,parsedOptions:null},filterField:{type:"string",id:3,comment:null,parsedOptions:null},queryOptionsName:{type:"string",id:4,comment:null,parsedOptions:null}},comment:null},BulkUpdateTagsMethodOptions:{fields:{idsField:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},BulkUpdateTagsByFilterMethodOptions:{fields:{filterField:{type:"string",id:1,comment:null,parsedOptions:null},queryOptionsName:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},BulkUpsertMethodOptions:{fields:{itemField:{type:"string",id:1,comment:null,parsedOptions:null},fieldmaskField:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},BulkDeleteMethodOptions:{fields:{idsField:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},BulkDeleteByFilterMethodOptions:{fields:{filterField:{type:"string",id:1,comment:null,parsedOptions:null},queryOptionsName:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},ListDeletedMethodOptions:{fields:{idsField:{type:"string",id:1,comment:null,parsedOptions:null},itemsField:{rule:"required",type:"string",id:3,comment:null,parsedOptions:null},paging:{type:"Paging",id:2,comment:null,parsedOptions:null},meAliasableField:{rule:"repeated",type:"string",id:4,comment:null,parsedOptions:null}},comment:null},GetDeletedMethodOptions:{fields:{itemField:{type:"string",id:2,comment:null,parsedOptions:null},idField:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},RestoreFromTrashbinMethodOptions:{fields:{itemField:{type:"string",id:2,comment:null,parsedOptions:null},idField:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},RemoveFromTrashbinMethodOptions:{fields:{idField:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},CountOptions:{oneofs:{wqlOptions:{oneof:["inheritWqlFrom","queryOptionsName"],comment:null}},fields:{inheritWqlFrom:{type:"string",id:1,options:{deprecated:!0},comment:null,parsedOptions:[{deprecated:!0,__comment:null}]},queryOptionsName:{type:"string",id:2,comment:null,parsedOptions:null},filterField:{type:"string",id:3,comment:null,parsedOptions:null},countField:{type:"string",id:4,comment:null,parsedOptions:null}},comment:null},SearchRelatedOptions:{oneofs:{wqlOptions:{oneof:["inheritWqlFrom","queryOptionsName"],comment:null}},fields:{inheritWqlFrom:{type:"string",id:1,options:{deprecated:!0},comment:null,parsedOptions:[{deprecated:!0,__comment:null}]},queryOptionsName:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},UpdateExtendedFieldsOptions:{fields:{itemField:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},Wql:{fields:{operatorFieldSupport:{rule:"repeated",type:"OperatorFieldSupport",id:3,options:{"(.wix.api.field_deprecated).replaced_by":"pattern","(.wix.api.field_deprecated).target_removal_date":"2023-03-31","(.wix.api.field_deprecated)":{replaced_by:"pattern",target_removal_date:"2023-03-31"},deprecated:!0},comment:null,parsedOptions:[{"(.wix.api.field_deprecated)":{replaced_by:"pattern",target_removal_date:"2023-03-31"},__comment:null},{deprecated:!0,__comment:null}]},pattern:{rule:"repeated",type:"OperatorFieldSupport",id:4,comment:null,parsedOptions:null},validateQuery:{type:"bool",id:6,comment:null,parsedOptions:null}},reserved:[[7,7]],nested:{Operator:{options:{allow_alias:!0},values:{ALL_APPLICABLE_OPERATORS:0,EQ:1,GT:2,GTE:3,IN:4,LT:5,LTE:6,NE:7,NIN:8,BEGINS:9,EXISTS:10,HAS_ALL:11,ALL:11,HAS_SOME:12,ANY:12,EMPTY:13,MATCH_ALL:14,MATCH_ITEMS:16,ENHANCED_DATE:17},valuesOptions:{ALL:{deprecated:!0},ANY:{deprecated:!0},ENHANCED_DATE:{deprecated:!0}},comment:null,comments:{ALL_APPLICABLE_OPERATORS:null,EQ:null,GT:null,GTE:null,IN:null,LT:null,LTE:null,NE:null,NIN:null,BEGINS:null,EXISTS:null,HAS_ALL:null,ALL:null,HAS_SOME:null,ANY:null,EMPTY:null,MATCH_ALL:null,MATCH_ITEMS:null,ENHANCED_DATE:null}},Sort:{values:{NONE:0,ASC:1,DESC:2,BOTH:3},comment:null,comments:{NONE:null,ASC:null,DESC:null,BOTH:null}},RequiredFields:{fields:{field:{rule:"repeated",type:"string",id:1,options:{"(.wix.api.field_deprecated).replaced_by":"required_field","(.wix.api.field_deprecated).target_removal_date":"2023-03-31","(.wix.api.field_deprecated)":{replaced_by:"required_field",target_removal_date:"2023-03-31"}},comment:null,parsedOptions:[{"(.wix.api.field_deprecated)":{replaced_by:"required_field",target_removal_date:"2023-03-31"},__comment:null}]},requiredField:{rule:"repeated",type:"RequiredField",id:2,comment:null,parsedOptions:null}},nested:{RequiredField:{fields:{path:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null},sort:{type:"Sort",id:2,comment:null,parsedOptions:null}},comment:null}},comment:null},VirtualSubfields:{values:{NO_VIRTUAL_SUBFIELDS:0,DATE:1,EMAIL:2},comment:null,comments:{NO_VIRTUAL_SUBFIELDS:null,DATE:null,EMAIL:null}},OperatorFieldSupport:{fields:{operator:{rule:"repeated",type:"Operator",id:1,options:{packed:!1},comment:null,parsedOptions:null},glob:{type:"string",id:2,options:{"(.wix.api.field_deprecated).replaced_by":"field","(.wix.api.field_deprecated).target_removal_date":"2023-03-31","(.wix.api.field_deprecated)":{replaced_by:"field",target_removal_date:"2023-03-31"},deprecated:!0},comment:null,parsedOptions:[{"(.wix.api.field_deprecated)":{replaced_by:"field",target_removal_date:"2023-03-31"},__comment:null},{deprecated:!0,__comment:null}]},field:{rule:"repeated",type:"string",id:5,comment:null,parsedOptions:null},sort:{type:"Sort",id:3,comment:null,parsedOptions:null},requiredFields:{rule:"repeated",type:"RequiredFields",id:4,comment:null,parsedOptions:null},maturity:{type:"Maturity",id:6,comment:null,parsedOptions:null},virtualSubfields:{type:"VirtualSubfields",id:7,comment:null,parsedOptions:null}},comment:null}},comment:null},Search:{fields:{field:{rule:"repeated",type:"string",id:1,comment:null,parsedOptions:null},maturity:{type:"Maturity",id:2,comment:null,parsedOptions:null}},comment:null},Translatable:{fields:{name:{type:"string",id:1,comment:null,parsedOptions:null},hidden:{type:"bool",id:2,comment:null,parsedOptions:null},grouping:{type:"string",id:3,comment:null,parsedOptions:null},type:{rule:"required",type:"Type",id:4,comment:null,parsedOptions:null},displayOnly:{type:"bool",id:5,comment:null,parsedOptions:null}},nested:{Type:{values:{UNDEFINED_TYPE:0,SHORT_TEXT:1,LONG_TEXT:2,RICH_TEXT:3,RICH_CONTENT_EDITOR:4,SELECTION:5,MULTI_SELECTION:6,DOCUMENT:7,IMAGE:8,VIDEO:9,IMAGE_LINK:10},valuesOptions:{UNDEFINED_TYPE:{"(.wix.api.enum_maturity)":"NOT_IMPLEMENTED"}},comment:null,comments:{UNDEFINED_TYPE:null,SHORT_TEXT:null,LONG_TEXT:null,RICH_TEXT:null,RICH_CONTENT_EDITOR:null,SELECTION:null,MULTI_SELECTION:null,DOCUMENT:null,IMAGE:null,VIDEO:null,IMAGE_LINK:null}}},comment:null},Conditional:{fields:{permission:{type:"string",id:1,comment:null,parsedOptions:null},requestedField:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},ServiceAppendix:{fields:{type:{rule:"required",type:"Type",id:1,comment:null,parsedOptions:null},path:{rule:"required",type:"string",id:2,comment:null,parsedOptions:null}},nested:{Type:{values:{UNKNOWN_APPENDIX_TYPE:0,NILE:1,MESSAGE_BUS:2},comment:null,comments:{UNKNOWN_APPENDIX_TYPE:null,NILE:null,MESSAGE_BUS:null}}},comment:null},Exposure:{values:{PRIVATE:0,INTERNAL:1,PUBLIC:2},comment:null,comments:{PRIVATE:null,INTERNAL:null,PUBLIC:null}},Maturity:{values:{ALPHA:0,BETA:1,IA:2,GA:3,NOT_IMPLEMENTED:4},valuesOptions:{IA:{deprecated:!0}},comment:null,comments:{ALPHA:null,BETA:null,IA:null,GA:null,NOT_IMPLEMENTED:null}},errorDef:{rule:"repeated",type:"Error",id:50600,extend:"google.protobuf.ServiceOptions",options:{packed:!1},comment:null,parsedOptions:null},error:{rule:"repeated",type:"Error",id:50801,extend:"google.protobuf.MethodOptions",options:{packed:!1},comment:null,parsedOptions:null},customValidationError:{rule:"repeated",type:"CustomValidationError",id:50802,extend:"google.protobuf.MethodOptions",options:{packed:!1},comment:null,parsedOptions:null},inheritCrudErrors:{rule:"repeated",type:"InheritCrudErrors",id:50803,extend:"google.protobuf.MethodOptions",options:{packed:!1},comment:null,parsedOptions:null},errorRef:{rule:"repeated",type:"ErrorRef",id:50804,extend:"google.protobuf.MethodOptions",options:{packed:!1},comment:null,parsedOptions:null},Error:{fields:{httpCode:{rule:"required",type:"StatusCodes.HttpStatusCode",id:1,comment:null,parsedOptions:null},applicationCode:{type:"string",id:2,comment:null,parsedOptions:null},data:{type:"string",id:3,comment:null,parsedOptions:null}},comment:"ApplicationError: named Error for backwards compatibility"},ErrorRef:{fields:{applicationCode:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null}},comment:"Method-level reference to a service-level error."},CustomValidationError:{fields:{ruleName:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null},data:{type:"string",id:2,comment:null,parsedOptions:null}},comment:"CustomValidationError: field level validation, only declare when you have specific validation in your service that is not coming from infra"},InheritCrudErrors:{fields:{method:{rule:"required",type:"Crud.Method",id:1,comment:null,parsedOptions:null}},comment:"InheritCrudErrors: does this method throw standard crud errors?"},StatusCodes:{fields:{},nested:{HttpStatusCode:{values:{OK:0,UNAUTHENTICATED:1,PERMISSION_DENIED:2,INVALID_ARGUMENT:3,NOT_FOUND:4,INTERNAL:5,UNAVAILABLE:6,RESOURCE_EXHAUSTED:7,CANCELED:8,ALREADY_EXISTS:9,FAILED_PRECONDITION:10},comment:null,comments:{OK:null,UNAUTHENTICATED:null,PERMISSION_DENIED:null,INVALID_ARGUMENT:null,NOT_FOUND:null,INTERNAL:null,UNAVAILABLE:null,RESOURCE_EXHAUSTED:null,CANCELED:null,ALREADY_EXISTS:null,FAILED_PRECONDITION:null}}},comment:null},callback:{rule:"repeated",type:"Callback",id:5e4,extend:"google.protobuf.MethodOptions",options:{packed:!1},comment:null,parsedOptions:null},emits:{rule:"repeated",type:"Emits",id:50001,extend:"google.protobuf.MethodOptions",options:{packed:!1},comment:null,parsedOptions:null},event:{rule:"repeated",type:"Callback",id:5e4,extend:"google.protobuf.ServiceOptions",options:{packed:!1},comment:null,parsedOptions:null},eventDeprecated:{rule:"repeated",type:"CallbackDeprecation",id:50001,extend:"google.protobuf.ServiceOptions",options:{packed:!1},comment:null,parsedOptions:null},Callback:{fields:{topic:{type:"string",id:1,comment:null,parsedOptions:null},segment:{type:"Segment.SegmentName",id:8,comment:null,parsedOptions:null},payload:{type:"string",id:2,comment:null,parsedOptions:null},permission:{type:"string",id:3,comment:null,parsedOptions:null},eventType:{type:"EventType",id:4,comment:null,parsedOptions:null},exposure:{type:"Exposure",id:6,comment:null,parsedOptions:null},maturity:{type:"Maturity",id:7,comment:null,parsedOptions:null}},nested:{EventType:{values:{UNKNOWN:0,CREATED:1,UPDATED:2,DELETED:3,ACTION:4},comment:null,comments:{UNKNOWN:null,CREATED:null,UPDATED:null,DELETED:null,ACTION:null}}},comment:null},DomainEvent:{fields:{actionMessageFqn:{type:"string",id:2,comment:null,parsedOptions:null},webhookPermissionOverride:{type:"string",id:3,comment:null,parsedOptions:null},eventType:{type:"EventType",id:4,comment:null,parsedOptions:null},exposure:{type:"Exposure",id:6,comment:null,parsedOptions:null},maturity:{type:"Maturity",id:7,comment:null,parsedOptions:null},additionalMetadataFqn:{type:"string",id:8,comment:null,parsedOptions:null},deprecated:{type:"DomainEventDeprecation",id:9,comment:null,parsedOptions:null}},nested:{EventType:{values:{UNKNOWN:0,CREATED:1,UPDATED:2,DELETED:3,ACTION:4},comment:null,comments:{UNKNOWN:null,CREATED:null,UPDATED:null,DELETED:null,ACTION:null}}},comment:null},Emits:{fields:{eventType:{rule:"required",type:"DomainEvent.EventType",id:1,comment:null,parsedOptions:null},actionMessageFqn:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},DomainEventDeprecation:{fields:{replacedBy:{type:"string",id:1,comment:null,parsedOptions:null},targetRemovalDate:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},CallbackDeprecation:{fields:{replacedBy:{type:"string",id:1,comment:null,parsedOptions:null},targetRemovalDate:{type:"string",id:2,comment:null,parsedOptions:null},eventType:{type:"Callback.EventType",id:3,comment:null,parsedOptions:null},customSlug:{type:"string",id:4,comment:null,parsedOptions:null},payload:{type:"string",id:5,comment:null,parsedOptions:null}},comment:null},Segment:{fields:{},nested:{SegmentName:{values:{UNSPECIFIED:0,USERS:1,PUBLIC:2,OTHERS:3},comment:"[Segment] annotation registers to Confluent clusters.\nExisting topics might have a hard-coded segment in Greyhound, so this option is not required in proto.\nHowever, new topics must provide a segment, or greyhound will throw an exception.\n@see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment",comments:{UNSPECIFIED:null,USERS:"For events that are consumed in 42 and uw2 only.\nThis also includes a case where an event is produced from 84/AE1 via toMainDC",PUBLIC:"For events that are consumed in all DCs.\nThis includes both cases where an event is published from 84/AE1 and cases where it's published from 42/uw2 and replicated via Raven to 84/AE1",OTHERS:"For DevEx services/migrations.\nDeployed on 42, uw2."}}},comment:null},RequestContext:{fields:{aspects:{keyType:"string",type:"string",id:1,comment:null}},comment:null},ResponseContext:{fields:{aspects:{rule:"repeated",type:"ResponseContextEntry",id:1,comment:null,parsedOptions:null}},comment:null},ResponseContextEntry:{fields:{aspectEntry:{keyType:"string",type:"string",id:1,comment:null}},comment:null},serviceEntity:{type:"ServiceEntity",id:50500,extend:"google.protobuf.ServiceOptions",comment:null,parsedOptions:null},ServiceEntity:{fields:{message:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null},namespace:{type:"string",id:50501,comment:null,parsedOptions:null}},comment:null},entity:{type:"Entity",id:50500,extend:"google.protobuf.MessageOptions",comment:null,parsedOptions:null},domainEvent:{rule:"repeated",type:"DomainEvent",id:50501,extend:"google.protobuf.MessageOptions",options:{packed:!1},comment:null,parsedOptions:null},Entity:{fields:{fqdn:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null},exposure:{type:"Exposure",id:2,options:{deprecated:!0},comment:null,parsedOptions:[{deprecated:!0,__comment:null}]},appendixFiles:{rule:"repeated",type:"MessageAppendix",id:3,comment:null,parsedOptions:null},oldFqdnForBackwardsCompatibility:{type:"string",id:4,comment:null,parsedOptions:null},segment:{type:"Segment.SegmentName",id:5,comment:null,parsedOptions:null},implements:{rule:"repeated",type:"string",id:6,comment:null,parsedOptions:null},extensible:{type:"Extensible",id:7,comment:null,parsedOptions:null},trashbin:{type:"bool",id:8,comment:null,parsedOptions:null},plural:{type:"string",id:9,comment:null,parsedOptions:null},domainEventsReadPermission:{type:"string",id:10,comment:null,parsedOptions:null},appDefId:{type:"string",id:11,comment:null,parsedOptions:null},domainEvents:{type:"DomainEventOptions",id:12,comment:null,parsedOptions:null},taggable:{type:"Taggable",id:13,comment:null,parsedOptions:null},queryOptions:{type:"QueryOptions",id:14,comment:null,parsedOptions:null},eventsExposure:{type:"Exposure",id:15,comment:null,parsedOptions:null},eventsMaturity:{type:"Maturity",id:16,comment:null,parsedOptions:null},persistence:{type:"Persistence",id:17,comment:null,parsedOptions:null},permissionOptions:{type:"PermissionCatalogOptions",id:18,comment:null,parsedOptions:null}},comment:null},PermissionCatalogOptions:{fields:{autoGeneratePermissions:{type:"bool",id:1,comment:null,parsedOptions:null},autoGenerateScopes:{type:"bool",id:2,comment:null,parsedOptions:null}},comment:null},Persistence:{fields:{type:{type:"Type",id:1,comment:null,parsedOptions:null}},nested:{Type:{values:{STANDARD:0,SINGLETON:1,NONE:2},comment:null,comments:{STANDARD:null,SINGLETON:null,NONE:null}}},comment:null},Extensible:{fields:{nestedExtensionFieldPath:{type:"string",id:1,comment:null,parsedOptions:null},filterable:{type:"bool",id:2,comment:null,parsedOptions:null},nestedExtensionPointMappings:{rule:"repeated",type:"NestedExtensionPointMapping",id:3,comment:null,parsedOptions:null}},comment:null},NestedExtensionPointMapping:{fields:{extensionPoint:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null},path:{rule:"required",type:"string",id:2,comment:null,parsedOptions:null}},comment:null},MessageAppendix:{fields:{type:{rule:"required",type:"Type",id:1,comment:null,parsedOptions:null},path:{rule:"required",type:"string",id:2,comment:null,parsedOptions:null}},nested:{Type:{values:{UNKNOWN_APPENDIX_TYPE:0,AUTO_VELO:1,DOCS_CONF:2,MULTILINGUAL:3,SEARCH:4,AUTO_SDK:5},comment:null,comments:{UNKNOWN_APPENDIX_TYPE:null,AUTO_VELO:null,DOCS_CONF:null,MULTILINGUAL:null,SEARCH:null,AUTO_SDK:null}}},comment:null},DomainEventOptions:{fields:{eventSequenceNumber:{type:"bool",id:1,comment:null,parsedOptions:null},deletedIncludeEntity:{type:"bool",id:2,comment:null,parsedOptions:null},updatedIncludeModifiedFields:{type:"bool",id:3,comment:null,parsedOptions:null}},comment:null},Taggable:{fields:{},comment:null},QueryOptions:{fields:{wql:{rule:"required",type:"Wql",id:1,comment:null,parsedOptions:null},search:{rule:"repeated",type:"Search",id:2,comment:null,parsedOptions:null},additionalQueryOptions:{rule:"repeated",type:"NamedQueryOptions",id:10,comment:null,parsedOptions:null}},comment:null},NamedQueryOptions:{fields:{name:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null},wql:{rule:"required",type:"Wql",id:2,comment:null,parsedOptions:null},search:{rule:"repeated",type:"Search",id:3,comment:null,parsedOptions:null}},comment:null},Details:{oneofs:{kind:{oneof:["applicationError","validationError","systemError"],comment:null}},fields:{applicationError:{type:"ApplicationError",id:1,comment:null,parsedOptions:null},validationError:{type:"ValidationError",id:2,comment:null,parsedOptions:null},systemError:{type:"SystemError",id:4,comment:null,parsedOptions:null},tracing:{keyType:"string",type:"string",id:3,options:{deprecated:!0},comment:null}},comment:null},ApplicationError:{fields:{code:{type:"string",id:1,comment:null,parsedOptions:null},description:{type:"string",id:2,comment:null,parsedOptions:null},data:{type:"google.protobuf.Struct",id:3,comment:null,parsedOptions:null}},comment:null},SystemError:{fields:{errorCode:{type:"google.protobuf.StringValue",id:1,comment:null,parsedOptions:null}},comment:null},ValidationError:{fields:{fieldViolations:{rule:"repeated",type:"FieldViolation",id:1,comment:null,parsedOptions:null}},nested:{RuleType:{values:{VALIDATION:0,OTHER:1,MAX:2,MIN:3,MAX_LENGTH:4,MIN_LENGTH:5,MAX_SIZE:6,MIN_SIZE:7,FORMAT:8,DECIMAL_LTE:9,DECIMAL_GTE:10,DECIMAL_LT:11,DECIMAL_GT:12,DECIMAL_MAX_SCALE:13,INVALID_ENUM_VALUE:14,REQUIRED_FIELD:15,FIELD_NOT_ALLOWED:16,ONE_OF_ALIGNMENT:17,EXACT_LENGTH:18,EXACT_SIZE:19,REQUIRED_ONE_OF_FIELD:20},comment:null,comments:{VALIDATION:null,OTHER:null,MAX:null,MIN:null,MAX_LENGTH:null,MIN_LENGTH:null,MAX_SIZE:null,MIN_SIZE:null,FORMAT:null,DECIMAL_LTE:null,DECIMAL_GTE:null,DECIMAL_LT:null,DECIMAL_GT:null,DECIMAL_MAX_SCALE:null,INVALID_ENUM_VALUE:null,REQUIRED_FIELD:null,FIELD_NOT_ALLOWED:null,ONE_OF_ALIGNMENT:null,EXACT_LENGTH:null,EXACT_SIZE:null,REQUIRED_ONE_OF_FIELD:null}},FieldViolation:{fields:{field:{type:"string",id:1,comment:null,parsedOptions:null},description:{type:"string",id:2,comment:null,parsedOptions:null},violatedRule:{type:"RuleType",id:3,comment:null,parsedOptions:null},ruleName:{type:"google.protobuf.StringValue",id:4,comment:null,parsedOptions:null},data:{type:"google.protobuf.Struct",id:5,comment:null,parsedOptions:null}},comment:null}},comment:'example result:\n{\n"fieldViolations": [\n{\n"field": "fieldA",\n"description": "invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]",\n"violatedRule": "OTHER",\n"ruleName": "INVALID_NOTE",\n"data": {\n"value": "FI"\n}\n},\n{\n"field": "fieldB",\n"description": "field value out of range. supported range: [0-20]",\n"violatedRule": "MAX",\n"data": {\n"threshold": 20\n}\n},\n{\n"field": "fieldC",\n"description": "invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]",\n"violatedRule": "FORMAT",\n"data": {\n"type": "PHONE"\n}\n}\n]\n}'},LimitRuleInt32DataPayload:{fields:{threshold:{type:"int32",id:1,comment:null,parsedOptions:null}},comment:null},LimitRuleDoubleDataPayload:{fields:{threshold:{type:"double",id:1,comment:null,parsedOptions:null}},comment:null},LimitRuleStringDataPayload:{fields:{threshold:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},FormatRuleDataPayload:{fields:{type:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},EnumRuleDataPayload:{fields:{supported:{rule:"repeated",type:"string",id:1,comment:null,parsedOptions:null}},comment:null},RequiredOneOfRuleDataPayload:{fields:{supported:{rule:"repeated",type:"string",id:1,comment:null,parsedOptions:null}},comment:null},idempotency:{type:"Idempotency",id:50153,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},Idempotency:{fields:{key:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},permission:{type:"PermissionRule",id:50301,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},additionalPermission:{rule:"repeated",type:"PermissionRule",id:50302,extend:"google.protobuf.MethodOptions",options:{packed:!1},comment:null,parsedOptions:null},PermissionRule:{fields:{name:{type:"string",id:1,comment:null,parsedOptions:null},type:{type:"PermissionType",id:2,comment:null,parsedOptions:null},abacRequestValidation:{type:"AbacRequestValidationMode",id:3,comment:null,parsedOptions:null}},comment:null},PermissionType:{values:{AUTO:0,MANUAL:1},comment:null,comments:{AUTO:null,MANUAL:null}},AbacRequestValidationMode:{values:{ON:0,OFF:1},comment:null,comments:{ON:null,OFF:null}},sla:{type:"Sla",id:50700,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},Sla:{fields:{responseTimeMs:{type:"int32",id:1,comment:null,parsedOptions:null}},comment:null},subscription:{type:"Subscription",id:50400,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},Subscription:{fields:{topic:{type:"string",id:1,comment:null,parsedOptions:null},segment:{type:"Segment.SegmentName",id:4,comment:null,parsedOptions:null},batch:{type:"bool",id:2,options:{deprecated:!0},comment:null,parsedOptions:[{deprecated:!0,__comment:null}]},entity:{type:"string",id:3,comment:null,parsedOptions:null},dynamic:{type:"bool",id:5,comment:null,parsedOptions:null}},comment:null},max:{type:"double",id:50201,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},min:{type:"double",id:50202,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},maxLength:{type:"int32",id:50203,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},minLength:{type:"int32",id:50204,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},exactLength:{type:"int32",id:50206,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},maxSize:{type:"int32",id:50209,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},minSize:{type:"int32",id:50210,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},exactSize:{type:"int32",id:50213,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},format:{type:"Format",id:50205,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},readOnly:{type:"bool",id:50208,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},immutable:{type:"bool",id:50212,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},writeOnly:{type:"bool",id:50154,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},decimalValue:{type:"DecimalValueOptions",id:50211,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},customValidation:{type:"CustomValidationError",id:50214,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},DecimalValueOptions:{fields:{lte:{type:"string",id:1,comment:null,parsedOptions:null},gte:{type:"string",id:2,comment:null,parsedOptions:null},lt:{type:"string",id:3,comment:null,parsedOptions:null},gt:{type:"string",id:4,comment:null,parsedOptions:null},maxScale:{type:"int32",id:5,comment:null,parsedOptions:null}},comment:"Decimal value validation rules.\nBased on java.math.BigDecimal, implies (wix.api.format) = DECIMAL_VALUE"},required:{rule:"repeated",type:"string",id:50200,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},writable:{rule:"repeated",type:"string",id:50213,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},alignedWithEnum:{type:"AlignedWithEnum",id:50800,extend:"google.protobuf.OneofOptions",comment:null,parsedOptions:null},AlignedWithEnum:{fields:{field:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null},suffix:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},Format:{values:{EMAIL:0,HOSTNAME:1,IPV4:2,IPV6:3,URI:4,WEB_URL:5,PHONE:7,CREDIT_CARD:8,GUID:9,COUNTRY:10,LANGUAGE:11,DECIMAL_VALUE:12,CURRENCY:13,LANGUAGE_TAG:14,COLOR_HEX:15,LOCAL_DATE:16,LOCAL_TIME:17,LOCAL_DATE_TIME:18,URL_SLUG:19,SYSTEM_SLUG:20,SECURE_WEB_URL:21,SUBDIVISION:22},comment:null,comments:{EMAIL:null,HOSTNAME:null,IPV4:null,IPV6:null,URI:null,WEB_URL:null,PHONE:null,CREDIT_CARD:null,GUID:null,COUNTRY:null,LANGUAGE:null,DECIMAL_VALUE:null,CURRENCY:null,LANGUAGE_TAG:null,COLOR_HEX:null,LOCAL_DATE:null,LOCAL_TIME:null,LOCAL_DATE_TIME:null,URL_SLUG:null,SYSTEM_SLUG:null,SECURE_WEB_URL:null,SUBDIVISION:null}}}},common:{options:{java_multiple_files:!0,java_package:"com.wix.common",java_outer_classname:"WixLinkProto"},nested:{Address:{options:{"(.wix.api.decomposition_minimum_fields).field":"formatted_address","(.wix.api.decomposition_minimum_fields)":{field:["country","subdivision","city","postal_code","address_line","address_line_2","formatted_address"]}},oneofs:{street:{oneof:["streetAddress","addressLine"],comment:null}},fields:{country:{type:"google.protobuf.StringValue",id:1,options:{"(.wix.api.format)":"COUNTRY"},comment:null,parsedOptions:[{"(.wix.api.format)":"COUNTRY",__comment:null}]},subdivision:{type:"google.protobuf.StringValue",id:2,comment:null,parsedOptions:null},subdivisionIso31662:{type:"google.protobuf.StringValue",id:14,options:{"(.wix.api.maxLength)":20,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.maxLength)":20,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},city:{type:"google.protobuf.StringValue",id:3,options:{"(.wix.api.pii)":!0},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null}]},postalCode:{type:"google.protobuf.StringValue",id:4,options:{"(.wix.api.pii)":!0},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null}]},streetAddress:{type:"StreetAddress",id:5,comment:null,parsedOptions:null},addressLine:{type:"google.protobuf.StringValue",id:6,options:{"(.wix.api.pii)":!0},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null}]},addressLine2:{type:"google.protobuf.StringValue",id:7,options:{"(.wix.api.pii)":!0},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null}]},formattedAddress:{type:"google.protobuf.StringValue",id:8,options:{"(.wix.api.pii)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},hint:{type:"google.protobuf.StringValue",id:9,options:{"(.wix.api.pii)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},geocode:{type:"AddressLocation",id:10,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},countryFullname:{type:"google.protobuf.StringValue",id:11,options:{"(.wix.api.pii)":!1,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.pii)":!1,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},subdivisionFullname:{type:"google.protobuf.StringValue",id:13,options:{"(.wix.api.pii)":!1,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.pii)":!1,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},subdivisions:{rule:"repeated",type:"Subdivision",id:12,options:{"(.wix.api.field_exposure)":"PRIVATE","(.wix.api.maxSize)":6},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{"(.wix.api.maxSize)":6,__comment:null}]}},comment:null},Subdivision:{options:{"(.wix.api.decomposition_minimum_fields).field":"code","(.wix.api.decomposition_minimum_fields)":{field:"code"}},fields:{code:{type:"string",id:1,comment:null,parsedOptions:null},name:{type:"string",id:2,comment:null,parsedOptions:null},type:{type:"SubdivisionType",id:3,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},typeInfo:{type:"google.protobuf.StringValue",id:4,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},standardDetails:{type:"StandardDetails",id:5,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]}},nested:{SubdivisionType:{values:{UNKNOWN_SUBDIVISION_TYPE:0,ADMINISTRATIVE_AREA_LEVEL_1:1,ADMINISTRATIVE_AREA_LEVEL_2:2,ADMINISTRATIVE_AREA_LEVEL_3:3,ADMINISTRATIVE_AREA_LEVEL_4:4,ADMINISTRATIVE_AREA_LEVEL_5:5,COUNTRY:6},comment:null,comments:{UNKNOWN_SUBDIVISION_TYPE:null,ADMINISTRATIVE_AREA_LEVEL_1:null,ADMINISTRATIVE_AREA_LEVEL_2:null,ADMINISTRATIVE_AREA_LEVEL_3:null,ADMINISTRATIVE_AREA_LEVEL_4:null,ADMINISTRATIVE_AREA_LEVEL_5:null,COUNTRY:null}},StandardDetails:{fields:{iso31662:{type:"google.protobuf.StringValue",id:1,options:{"(.wix.api.maxLength)":20},comment:null,parsedOptions:[{"(.wix.api.maxLength)":20,__comment:null}]}},comment:null}},comment:null},StreetAddress:{options:{"(.wix.api.decomposition_minimum_fields).field":"name","(.wix.api.decomposition_minimum_fields)":{field:["number","name"]}},fields:{number:{type:"string",id:1,options:{"(.wix.api.pii)":!0},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null}]},name:{type:"string",id:2,options:{"(.wix.api.pii)":!0},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null}]},apt:{type:"string",id:3,options:{"(.wix.api.pii)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},formattedAddressLine:{type:"google.protobuf.StringValue",id:4,options:{"(.wix.api.pii)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]}},comment:null},AddressContactDetails:{options:{"(.wix.api.decomposition_minimum_fields).field":"full_name","(.wix.api.decomposition_minimum_fields)":{field:"full_name"}},fields:{fullName:{type:"google.protobuf.StringValue",id:1,options:{"(.wix.api.pii)":!0},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null}]},phone:{type:"google.protobuf.StringValue",id:2,options:{"(.wix.api.pii)":!0,"(.wix.api.format)":"PHONE"},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null},{"(.wix.api.format)":"PHONE",__comment:null}]},company:{type:"google.protobuf.StringValue",id:3,comment:null,parsedOptions:null},email:{type:"google.protobuf.StringValue",id:4,options:{"(.wix.api.pii)":!0,"(.wix.api.format)":"EMAIL"},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null},{"(.wix.api.format)":"EMAIL",__comment:null}]}},comment:null},FullAddressContactDetails:{options:{"(.wix.api.decomposition_minimum_fields).field":"full_name","(.wix.api.decomposition_minimum_fields)":{field:"full_name"}},fields:{firstName:{type:"google.protobuf.StringValue",id:1,options:{"(.wix.api.pii)":!0},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null}]},lastName:{type:"google.protobuf.StringValue",id:2,options:{"(.wix.api.pii)":!0},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null}]},fullName:{type:"google.protobuf.StringValue",id:8,options:{"(.wix.api.pii)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},phone:{type:"google.protobuf.StringValue",id:3,options:{"(.wix.api.pii)":!0,"(.wix.api.format)":"PHONE"},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null},{"(.wix.api.format)":"PHONE",__comment:null}]},company:{type:"google.protobuf.StringValue",id:4,comment:null,parsedOptions:null},email:{type:"google.protobuf.StringValue",id:5,options:{"(.wix.api.pii)":!0,"(.wix.api.format)":"EMAIL"},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null},{"(.wix.api.format)":"EMAIL",__comment:null}]},vatId:{type:"VatId",id:7,comment:null,parsedOptions:null}},comment:null},VatId:{options:{"(.wix.api.decomposition_minimum_fields).field":"type","(.wix.api.decomposition_minimum_fields)":{field:["id","type"]}},fields:{id:{type:"string",id:1,options:{"(.wix.api.pii)":!0},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null}]},type:{type:"VatType",id:2,comment:null,parsedOptions:null}},comment:null},VatType:{values:{UNSPECIFIED:0,CPF:1,CNPJ:2},comment:null,comments:{UNSPECIFIED:null,CPF:null,CNPJ:null}},AddressLocation:{options:{"(.wix.api.decomposition_minimum_fields).field":"longitude","(.wix.api.decomposition_minimum_fields)":{field:["latitude","longitude"]}},fields:{latitude:{type:"google.protobuf.DoubleValue",id:1,options:{"(.wix.api.pii)":!0},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null}]},longitude:{type:"google.protobuf.DoubleValue",id:2,options:{"(.wix.api.pii)":!0},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null}]}},comment:null},BulkActionMetadata:{fields:{totalSuccesses:{type:"int32",id:1,comment:null,parsedOptions:null},totalFailures:{type:"int32",id:2,comment:null,parsedOptions:null},undetailedFailures:{type:"int32",id:3,comment:null,parsedOptions:null}},comment:null},ItemMetadata:{fields:{id:{type:"google.protobuf.StringValue",id:1,comment:null,parsedOptions:null},originalIndex:{type:"int32",id:2,comment:null,parsedOptions:null},success:{type:"bool",id:3,comment:null,parsedOptions:null},error:{type:".wix.api.ApplicationError",id:4,comment:null,parsedOptions:null}},comment:null},BulkActionType:{values:{UNKNOWN_ACTION_TYPE:0,INSERT:1,UPDATE:2,DELETE:3},comment:null,comments:{UNKNOWN_ACTION_TYPE:null,INSERT:null,UPDATE:null,DELETE:null}},IdentificationData:{options:{"(.wix.api.decomposition_minimum_fields).field":"app_id","(.wix.api.decomposition_minimum_fields)":{field:["identity_type","anonymous_visitor_id","member_id","wix_user_id","app_id"]}},oneofs:{id:{oneof:["anonymousVisitorId","memberId","wixUserId","appId"],comment:null}},fields:{contactId:{type:"google.protobuf.StringValue",id:1,options:{"(.wix.api.format)":"GUID","(.wix.api.referenced_entity)":"wix.contacts.v4.contact"},comment:null,parsedOptions:[{"(.wix.api.format)":"GUID",__comment:null},{"(.wix.api.referenced_entity)":"wix.contacts.v4.contact",__comment:null}]},identityType:{type:"IdentityType",id:6,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},anonymousVisitorId:{type:"string",id:2,options:{"(.wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(.wix.api.format)":"GUID",__comment:null}]},memberId:{type:"string",id:3,options:{"(.wix.api.format)":"GUID","(.wix.api.referenced_entity)":"wix.members.v1.member"},comment:null,parsedOptions:[{"(.wix.api.format)":"GUID",__comment:null},{"(.wix.api.referenced_entity)":"wix.members.v1.member",__comment:null}]},wixUserId:{type:"string",id:4,options:{"(.wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(.wix.api.format)":"GUID",__comment:null}]},appId:{type:"string",id:5,options:{"(.wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(.wix.api.format)":"GUID",__comment:null}]}},nested:{IdentityType:{values:{UNKNOWN:0,ANONYMOUS_VISITOR:1,MEMBER:2,WIX_USER:3,APP:4},comment:null,comments:{UNKNOWN:null,ANONYMOUS_VISITOR:null,MEMBER:null,WIX_USER:null,APP:null}}},comment:null},Image:{options:{"(.wix.api.decomposition_minimum_fields).field":"width","(.wix.api.decomposition_minimum_fields)":{field:["id","height","width"]}},fields:{id:{type:"string",id:1,comment:null,parsedOptions:null},url:{type:"string",id:2,comment:null,parsedOptions:null},height:{type:"int32",id:3,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]},width:{type:"int32",id:4,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]},altText:{type:"google.protobuf.StringValue",id:5,comment:null,parsedOptions:null},urlExpirationDate:{type:"google.protobuf.Timestamp",id:6,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},filename:{type:"google.protobuf.StringValue",id:7,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]},sizeInBytes:{type:"google.protobuf.StringValue",id:8,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE","(.wix.api.format)":"DECIMAL_VALUE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{"(.wix.api.format)":"DECIMAL_VALUE",__comment:null}]},focalPoint:{type:"FocalPoint",id:9,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]}},comment:null},Video:{options:{deprecated:!0,"(.wix.api.decomposition_minimum_fields).field":"width","(.wix.api.decomposition_minimum_fields)":{field:["id","url","height","width"]}},fields:{id:{type:"string",id:1,comment:null,parsedOptions:null},url:{type:"string",id:2,comment:null,parsedOptions:null},height:{type:"int32",id:3,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]},width:{type:"int32",id:4,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]},thumbnail:{type:"Image",id:5,comment:null,parsedOptions:null}},comment:null},VideoV2:{options:{"(.wix.api.decomposition_minimum_fields).field":"resolutions","(.wix.api.decomposition_minimum_fields)":{field:["id","resolutions"]}},fields:{id:{type:"string",id:1,comment:null,parsedOptions:null},url:{type:"string",id:4,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},resolutions:{rule:"repeated",type:"VideoResolution",id:2,options:{"(.wix.api.readOnly)":!0,"(.wix.api.maxSize)":100},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.maxSize)":100,__comment:null}]},filename:{type:"google.protobuf.StringValue",id:3,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]},posters:{rule:"repeated",type:"Image",id:5,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},sizeInBytes:{type:"google.protobuf.StringValue",id:6,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE","(.wix.api.format)":"DECIMAL_VALUE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{"(.wix.api.format)":"DECIMAL_VALUE",__comment:null}]},urlExpirationDate:{type:"google.protobuf.Timestamp",id:7,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},durationInMilliseconds:{type:"google.protobuf.Int32Value",id:8,options:{"(.wix.api.field_exposure)":"PRIVATE","(.wix.api.readOnly)":!0,"(.wix.api.min)":0},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.min)":0,__comment:null}]},title:{type:"google.protobuf.StringValue",id:9,options:{"(wix.api.maxLength)":300,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(wix.api.maxLength)":300,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},description:{type:"google.protobuf.StringValue",id:10,options:{"(wix.api.maxLength)":2e3,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(wix.api.maxLength)":2e3,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},height:{type:"google.protobuf.Int32Value",id:11,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE","(.wix.api.min)":0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{"(.wix.api.min)":0,__comment:null}]},width:{type:"google.protobuf.Int32Value",id:12,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE","(.wix.api.min)":0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{"(.wix.api.min)":0,__comment:null}]}},comment:null},VideoResolution:{options:{"(.wix.api.decomposition_minimum_fields).field":"format","(.wix.api.decomposition_minimum_fields)":{field:["url","height","width","poster","format"]}},fields:{url:{type:"string",id:2,comment:null,parsedOptions:null},height:{type:"int32",id:3,comment:null,parsedOptions:null},width:{type:"int32",id:4,comment:null,parsedOptions:null},poster:{type:"Image",id:5,options:{"(.wix.api.field_exposure)":"PRIVATE",deprecated:!0},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{deprecated:!0,__comment:null}]},format:{type:"string",id:6,comment:null,parsedOptions:null},urlExpirationDate:{type:"google.protobuf.Timestamp",id:7,options:{"(.wix.api.field_exposure)":"PRIVATE",deprecated:!0},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{deprecated:!0,__comment:null}]},sizeInBytes:{type:"google.protobuf.StringValue",id:8,options:{"(.wix.api.field_exposure)":"PRIVATE","(.wix.api.format)":"DECIMAL_VALUE",deprecated:!0},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{"(.wix.api.format)":"DECIMAL_VALUE",__comment:null},{deprecated:!0,__comment:null}]},quality:{type:"google.protobuf.StringValue",id:9,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},filename:{type:"google.protobuf.StringValue",id:10,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},durationInSeconds:{type:"google.protobuf.Int32Value",id:11,options:{"(.wix.api.field_exposure)":"PRIVATE","(.wix.api.readOnly)":!0,"(.wix.api.min)":0,"(.wix.api.field_deprecated).replaced_by":"duration_in_milliseconds","(.wix.api.field_deprecated).target_removal_date":"2024-08-01","(.wix.api.field_deprecated)":{replaced_by:"duration_in_milliseconds",target_removal_date:"2024-08-01"}},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.min)":0,__comment:null},{"(.wix.api.field_deprecated)":{replaced_by:"duration_in_milliseconds",target_removal_date:"2024-08-01"},__comment:null}]},durationInMilliseconds:{type:"google.protobuf.Int32Value",id:12,options:{"(.wix.api.field_exposure)":"PRIVATE","(.wix.api.readOnly)":!0,"(.wix.api.min)":0},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.min)":0,__comment:null}]},private:{type:"google.protobuf.BoolValue",id:30,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},assetKey:{type:"google.protobuf.StringValue",id:31,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]}},comment:null},Audio:{options:{"(.wix.api.decomposition_minimum_fields).field":"url","(.wix.api.decomposition_minimum_fields)":{field:["id","url"]}},fields:{id:{type:"string",id:1,comment:null,parsedOptions:null},url:{type:"string",id:2,comment:null,parsedOptions:null},urlExpirationDate:{type:"google.protobuf.Timestamp",id:3,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},sizeInBytes:{type:"google.protobuf.StringValue",id:4,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE","(.wix.api.format)":"DECIMAL_VALUE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{"(.wix.api.format)":"DECIMAL_VALUE",__comment:null}]},filename:{type:"google.protobuf.StringValue",id:5,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]},duration:{type:"google.protobuf.Int32Value",id:6,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE","(.wix.api.min)":0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{"(.wix.api.min)":0,__comment:null}]},private:{type:"google.protobuf.BoolValue",id:30,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},assetKey:{type:"google.protobuf.StringValue",id:31,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},format:{type:"google.protobuf.StringValue",id:32,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},quality:{type:"google.protobuf.StringValue",id:33,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]}},comment:null},Document:{options:{"(.wix.api.decomposition_minimum_fields).field":"url","(.wix.api.decomposition_minimum_fields)":{field:["id","url"]}},fields:{id:{type:"string",id:1,comment:null,parsedOptions:null},url:{type:"string",id:2,comment:null,parsedOptions:null},urlExpirationDate:{type:"google.protobuf.Timestamp",id:3,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},sizeInBytes:{type:"google.protobuf.StringValue",id:4,options:{"(.wix.api.field_exposure)":"PRIVATE","(.wix.api.format)":"DECIMAL_VALUE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null},{"(.wix.api.format)":"DECIMAL_VALUE",__comment:null}]},filename:{type:"google.protobuf.StringValue",id:5,comment:null,parsedOptions:null},thumbnail:{type:"Image",id:6,options:{"(.wix.api.readOnly)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]}},comment:null},Model3D:{options:{"(.wix.api.decomposition_minimum_fields).field":"id","(.wix.api.decomposition_minimum_fields)":{field:"id"}},fields:{id:{type:"string",id:1,comment:null,parsedOptions:null},url:{type:"string",id:2,comment:null,parsedOptions:null},thumbnail:{type:"Image",id:3,comment:null,parsedOptions:null},altText:{type:"google.protobuf.StringValue",id:5,comment:null,parsedOptions:null},urlExpirationDate:{type:"google.protobuf.Timestamp",id:6,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]},filename:{type:"google.protobuf.StringValue",id:7,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]},sizeInBytes:{type:"google.protobuf.StringValue",id:8,options:{"(.wix.api.readOnly)":!0,"(.wix.api.format)":"DECIMAL_VALUE"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.format)":"DECIMAL_VALUE",__comment:null}]}},comment:null},Archive:{options:{"(.wix.api.decomposition_minimum_fields).field":"id","(.wix.api.decomposition_minimum_fields)":{field:"id"}},fields:{id:{type:"string",id:1,comment:null,parsedOptions:null},url:{type:"string",id:2,comment:null,parsedOptions:null},urlExpirationDate:{type:"google.protobuf.Timestamp",id:3,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]},sizeInBytes:{type:"google.protobuf.StringValue",id:4,options:{"(.wix.api.format)":"DECIMAL_VALUE"},comment:null,parsedOptions:[{"(.wix.api.format)":"DECIMAL_VALUE",__comment:null}]},filename:{type:"google.protobuf.StringValue",id:5,comment:null,parsedOptions:null}},comment:null},MediaItem:{options:{deprecated:!0,"(.wix.api.decomposition_minimum_fields).field":"document","(.wix.api.decomposition_minimum_fields)":{field:"document"}},oneofs:{media:{oneof:["image","video","document"],comment:null}},fields:{image:{type:"Image",id:1,comment:null,parsedOptions:null},video:{type:"Video",id:2,comment:null,parsedOptions:null},document:{type:"Document",id:3,comment:null,parsedOptions:null}},comment:null},FocalPoint:{fields:{x:{type:"double",id:1,comment:null,parsedOptions:null},y:{type:"double",id:2,comment:null,parsedOptions:null},height:{type:"google.protobuf.Int32Value",id:3,comment:null,parsedOptions:null},width:{type:"google.protobuf.Int32Value",id:4,comment:null,parsedOptions:null}},comment:null},Money:{options:{"(.wix.api.decomposition_minimum_fields).field":"currency","(.wix.api.decomposition_minimum_fields)":{field:["value","currency"]}},fields:{value:{type:"string",id:1,options:{"(.wix.api.format)":"DECIMAL_VALUE"},comment:null,parsedOptions:[{"(.wix.api.format)":"DECIMAL_VALUE",__comment:null}]},currency:{type:"string",id:2,options:{"(.wix.api.format)":"CURRENCY"},comment:null,parsedOptions:[{"(.wix.api.format)":"CURRENCY",__comment:null}]},formattedValue:{type:"google.protobuf.StringValue",id:3,comment:null,parsedOptions:null}},comment:null},PageUrl:{options:{"(.wix.api.decomposition_minimum_fields).field":"path","(.wix.api.decomposition_minimum_fields)":{field:["base","path"]}},fields:{base:{type:"string",id:1,comment:null,parsedOptions:null},path:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},PageUrlV2:{options:{"(.wix.api.decomposition_minimum_fields).field":"url","(.wix.api.decomposition_minimum_fields)":{field:["relative_path","url"]}},fields:{relativePath:{type:"string",id:1,comment:null,parsedOptions:null},url:{type:"google.protobuf.StringValue",id:2,comment:null,parsedOptions:null}},comment:null},Paging:{options:{"(.wix.api.decomposition_minimum_fields).field":"offset","(.wix.api.decomposition_minimum_fields)":{field:["limit","offset"]}},fields:{limit:{type:"google.protobuf.Int32Value",id:1,options:{"(.wix.api.min)":0},comment:null,parsedOptions:[{"(.wix.api.min)":0,__comment:null}]},offset:{type:"google.protobuf.Int32Value",id:2,options:{"(.wix.api.min)":0},comment:null,parsedOptions:[{"(.wix.api.min)":0,__comment:null}]}},comment:null},CursorPaging:{options:{"(.wix.api.decomposition_minimum_fields).field":"cursor","(.wix.api.decomposition_minimum_fields)":{field:["limit","cursor"]}},fields:{limit:{type:"google.protobuf.Int32Value",id:1,options:{"(.wix.api.min)":0,"(.wix.api.max)":100},comment:null,parsedOptions:[{"(.wix.api.min)":0,__comment:null},{"(.wix.api.max)":100,__comment:null}]},cursor:{type:"google.protobuf.StringValue",id:2,options:{"(.wix.api.maxLength)":16e3},comment:null,parsedOptions:[{"(.wix.api.maxLength)":16e3,__comment:null}]}},comment:null},PagingMetadata:{options:{"(.wix.api.decomposition_minimum_fields).field":"offset","(.wix.api.decomposition_minimum_fields)":{field:["count","offset"]}},fields:{count:{type:"google.protobuf.Int32Value",id:1,comment:null,parsedOptions:null},offset:{type:"google.protobuf.Int32Value",id:2,comment:null,parsedOptions:null},total:{type:"google.protobuf.Int32Value",id:3,comment:null,parsedOptions:null},tooManyToCount:{type:"google.protobuf.BoolValue",id:4,comment:null,parsedOptions:null},hasNext:{type:"google.protobuf.BoolValue",id:5,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]}},comment:null},PagingMetadataV2:{options:{"(.wix.api.decomposition_minimum_fields).field":"cursors","(.wix.api.decomposition_minimum_fields)":{field:["count","cursors"]}},fields:{count:{type:"google.protobuf.Int32Value",id:1,comment:null,parsedOptions:null},offset:{type:"google.protobuf.Int32Value",id:2,comment:null,parsedOptions:null},total:{type:"google.protobuf.Int32Value",id:3,comment:null,parsedOptions:null},tooManyToCount:{type:"google.protobuf.BoolValue",id:4,comment:null,parsedOptions:null},cursors:{type:"Cursors",id:5,comment:null,parsedOptions:null},hasNext:{type:"google.protobuf.BoolValue",id:6,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]}},comment:null},CursorPagingMetadata:{options:{"(.wix.api.decomposite_of)":"wix.common.PagingMetadataV2"},fields:{count:{type:"google.protobuf.Int32Value",id:1,comment:null,parsedOptions:null},cursors:{type:"Cursors",id:2,comment:null,parsedOptions:null},hasNext:{type:"google.protobuf.BoolValue",id:3,comment:null,parsedOptions:null},total:{type:"google.protobuf.Int32Value",id:4,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]}},comment:null},Cursors:{options:{"(.wix.api.decomposition_minimum_fields).field":"next","(.wix.api.decomposition_minimum_fields)":{field:"next"}},fields:{next:{type:"google.protobuf.StringValue",id:1,options:{"(.wix.api.maxLength)":16e3},comment:null,parsedOptions:[{"(.wix.api.maxLength)":16e3,__comment:null}]},prev:{type:"google.protobuf.StringValue",id:2,options:{"(.wix.api.maxLength)":16e3},comment:null,parsedOptions:[{"(.wix.api.maxLength)":16e3,__comment:null}]}},comment:null},Query:{options:{"(.wix.api.decomposition_minimum_fields).field":"paging","(.wix.api.decomposition_minimum_fields)":{field:["filter","sort","paging"]}},fields:{filter:{type:"google.protobuf.Value",id:1,comment:null,parsedOptions:null},sort:{rule:"repeated",type:"Sorting",id:2,comment:null,parsedOptions:null},paging:{type:"Paging",id:3,comment:null,parsedOptions:null},fields:{rule:"repeated",type:"string",id:4,comment:null,parsedOptions:null},fieldsets:{rule:"repeated",type:"string",id:5,comment:null,parsedOptions:null}},comment:null},QueryV2:{options:{"(.wix.api.decomposition_minimum_fields).field":"cursor_paging","(.wix.api.decomposition_minimum_fields)":{field:["filter","sort","cursor_paging"]}},oneofs:{pagingMethod:{oneof:["paging","cursorPaging"],comment:null}},fields:{filter:{type:"google.protobuf.Struct",id:1,comment:null,parsedOptions:null},sort:{rule:"repeated",type:"Sorting",id:2,comment:null,parsedOptions:null},fields:{rule:"repeated",type:"string",id:4,comment:null,parsedOptions:null},fieldsets:{rule:"repeated",type:"string",id:5,comment:null,parsedOptions:null},paging:{type:"Paging",id:3,comment:null,parsedOptions:null},cursorPaging:{type:"CursorPaging",id:6,comment:null,parsedOptions:null}},comment:null},CursorQuery:{options:{"(.wix.api.decomposite_of)":"wix.common.QueryV2"},oneofs:{pagingMethod:{oneof:["cursorPaging"],comment:null}},fields:{filter:{type:"google.protobuf.Struct",id:1,comment:null,parsedOptions:null},sort:{rule:"repeated",type:"Sorting",id:2,options:{"(.wix.api.maxSize)":5},comment:null,parsedOptions:[{"(.wix.api.maxSize)":5,__comment:null}]},cursorPaging:{type:"CursorPaging",id:6,comment:null,parsedOptions:null}},reserved:[[3,3],[4,4],[5,5]],comment:null},Search:{options:{"(.wix.api.decomposition_minimum_fields).field":"cursor_paging","(.wix.api.decomposition_minimum_fields)":{field:["filter","sort","cursor_paging"]}},oneofs:{pagingMethod:{oneof:["paging","cursorPaging"],comment:null}},fields:{filter:{type:"google.protobuf.Struct",id:1,comment:null,parsedOptions:null},sort:{rule:"repeated",type:"Sorting",id:2,options:{"(.wix.api.maxSize)":10},comment:null,parsedOptions:[{"(.wix.api.maxSize)":10,__comment:null}]},fields:{rule:"repeated",type:"string",id:3,options:{"(.wix.api.maxLength)":200,"(.wix.api.maxSize)":20},comment:null,parsedOptions:[{"(.wix.api.maxLength)":200,__comment:null},{"(.wix.api.maxSize)":20,__comment:null}]},fieldsets:{rule:"repeated",type:"string",id:4,options:{"(.wix.api.maxLength)":100,"(.wix.api.maxSize)":20},comment:null,parsedOptions:[{"(.wix.api.maxLength)":100,__comment:null},{"(.wix.api.maxSize)":20,__comment:null}]},aggregations:{rule:"repeated",type:"Aggregation",id:5,options:{"(.wix.api.maxSize)":10},comment:null,parsedOptions:[{"(.wix.api.maxSize)":10,__comment:null}]},search:{type:"SearchDetails",id:6,comment:null,parsedOptions:null},paging:{type:"Paging",id:7,comment:null,parsedOptions:null},cursorPaging:{type:"CursorPaging",id:8,comment:null,parsedOptions:null},timeZone:{type:"google.protobuf.StringValue",id:9,options:{"(.wix.api.maxLength)":50},comment:null,parsedOptions:[{"(.wix.api.maxLength)":50,__comment:null}]}},comment:null},CursorSearch:{options:{"(.wix.api.decomposite_of)":"wix.common.Search"},oneofs:{pagingMethod:{oneof:["cursorPaging"],comment:null}},fields:{filter:{type:"google.protobuf.Struct",id:1,comment:null,parsedOptions:null},sort:{rule:"repeated",type:"Sorting",id:2,options:{"(.wix.api.maxSize)":10},comment:null,parsedOptions:[{"(.wix.api.maxSize)":10,__comment:null}]},aggregations:{rule:"repeated",type:"Aggregation",id:5,options:{"(.wix.api.maxSize)":10},comment:null,parsedOptions:[{"(.wix.api.maxSize)":10,__comment:null}]},search:{type:"SearchDetails",id:6,comment:null,parsedOptions:null},cursorPaging:{type:"CursorPaging",id:8,comment:null,parsedOptions:null},timeZone:{type:"google.protobuf.StringValue",id:9,options:{"(.wix.api.maxLength)":50},comment:null,parsedOptions:[{"(.wix.api.maxLength)":50,__comment:null}]}},reserved:[[3,3],[4,4],[7,7]],comment:null},SearchRelated:{fields:{relatedToIds:{rule:"repeated",type:"string",id:1,options:{"(.wix.api.minSize)":1,"(.wix.api.maxSize)":10,"(.wix.api.maxLength)":50},comment:null,parsedOptions:[{"(.wix.api.minSize)":1,__comment:null},{"(.wix.api.maxSize)":10,__comment:null},{"(.wix.api.maxLength)":50,__comment:null}]},search:{type:"SearchRelatedDetails",id:2,comment:null,parsedOptions:null},filter:{type:"google.protobuf.Struct",id:3,comment:null,parsedOptions:null},sort:{rule:"repeated",type:"Sorting",id:4,options:{"(.wix.api.maxSize)":10},comment:null,parsedOptions:[{"(.wix.api.maxSize)":10,__comment:null}]},limit:{type:"google.protobuf.Int32Value",id:5,options:{"(.wix.api.max)":100},comment:null,parsedOptions:[{"(.wix.api.max)":100,__comment:null}]}},comment:null},SearchRelatedDetails:{fields:{expression:{type:"google.protobuf.StringValue",id:2,options:{"(.wix.api.maxLength)":100},comment:null,parsedOptions:[{"(.wix.api.maxLength)":100,__comment:null}]},fields:{rule:"repeated",type:"string",id:3,options:{"(.wix.api.maxLength)":200,"(.wix.api.maxSize)":20},comment:null,parsedOptions:[{"(.wix.api.maxLength)":200,__comment:null},{"(.wix.api.maxSize)":20,__comment:null}]}},comment:null},SearchDetails:{fields:{mode:{type:"Mode",id:1,comment:null,parsedOptions:null},expression:{type:"google.protobuf.StringValue",id:2,options:{"(.wix.api.maxLength)":100},comment:null,parsedOptions:[{"(.wix.api.maxLength)":100,__comment:null}]},fields:{rule:"repeated",type:"string",id:3,options:{"(.wix.api.maxLength)":200,"(.wix.api.maxSize)":20},comment:null,parsedOptions:[{"(.wix.api.maxLength)":200,__comment:null},{"(.wix.api.maxSize)":20,__comment:null}]},fuzzy:{type:"bool",id:4,comment:null,parsedOptions:null}},nested:{Mode:{values:{OR:0,AND:1},comment:null,comments:{OR:null,AND:null}}},comment:null},AggregationType:{values:{UNKNOWN_AGGREGATION_TYPE:0,VALUE:1,RANGE:2,SCALAR:3,DATE_HISTOGRAM:4,NESTED:5},valuesOptions:{UNKNOWN_AGGREGATION_TYPE:{"(.wix.api.enum_maturity)":"NOT_IMPLEMENTED"}},comment:null,comments:{UNKNOWN_AGGREGATION_TYPE:null,VALUE:null,RANGE:null,SCALAR:null,DATE_HISTOGRAM:null,NESTED:null}},ScalarType:{values:{UNKNOWN_SCALAR_TYPE:0,COUNT_DISTINCT:1,MIN:2,MAX:3,SUM:4,AVG:5},valuesOptions:{UNKNOWN_SCALAR_TYPE:{"(.wix.api.enum_maturity)":"NOT_IMPLEMENTED"},SUM:{"(.wix.api.enum_exposure)":"PRIVATE"},AVG:{"(.wix.api.enum_exposure)":"PRIVATE"}},comment:null,comments:{UNKNOWN_SCALAR_TYPE:null,COUNT_DISTINCT:null,MIN:null,MAX:null,SUM:null,AVG:null}},Aggregation:{oneofs:{kind:{oneof:["value","range","scalar","dateHistogram","nested"],comment:null}},fields:{name:{type:"google.protobuf.StringValue",id:1,options:{"(.wix.api.maxLength)":100},comment:null,parsedOptions:[{"(.wix.api.maxLength)":100,__comment:null}]},type:{type:"AggregationType",id:2,comment:null,parsedOptions:null},fieldPath:{type:"string",id:3,options:{"(.wix.api.maxLength)":200},comment:null,parsedOptions:[{"(.wix.api.maxLength)":200,__comment:null}]},value:{type:"ValueAggregation",id:4,comment:null,parsedOptions:null},range:{type:"RangeAggregation",id:5,comment:null,parsedOptions:null},scalar:{type:"ScalarAggregation",id:6,comment:null,parsedOptions:null},dateHistogram:{type:"DateHistogramAggregation",id:9,comment:null,parsedOptions:null},nested:{type:"NestedAggregation",id:8,comment:null,parsedOptions:null},groupBy:{type:"GroupByAggregation",id:7,options:{deprecated:!0,"(.wix.api.field_deprecated).replaced_by":"kind.nested","(.wix.api.field_deprecated).target_removal_date":"2024-03-30","(.wix.api.field_deprecated)":{replaced_by:"kind.nested",target_removal_date:"2024-03-30"}},comment:null,parsedOptions:[{deprecated:!0,__comment:null},{"(.wix.api.field_deprecated)":{replaced_by:"kind.nested",target_removal_date:"2024-03-30"},__comment:null}]}},nested:{RangeAggregation:{fields:{buckets:{rule:"repeated",type:"RangeBucket",id:1,options:{"(.wix.api.maxSize)":50},comment:null,parsedOptions:[{"(.wix.api.maxSize)":50,__comment:null}]}},nested:{RangeBucket:{fields:{from:{type:"google.protobuf.DoubleValue",id:1,comment:null,parsedOptions:null},to:{type:"google.protobuf.DoubleValue",id:2,comment:null,parsedOptions:null}},comment:null}},comment:null},ValueAggregation:{oneofs:{options:{options:{"(.wix.api.aligned_with_enum).field":"missing_values"},oneof:["includeOptions"],comment:null}},fields:{sortType:{type:"SortType",id:1,comment:null,parsedOptions:null},sortDirection:{type:"SortDirection",id:2,comment:null,parsedOptions:null},limit:{type:"google.protobuf.Int32Value",id:3,comment:null,parsedOptions:null},missingValues:{type:"MissingValues",id:4,comment:null,parsedOptions:null},includeOptions:{type:"IncludeMissingValuesOptions",id:5,comment:null,parsedOptions:null}},nested:{SortType:{values:{COUNT:0,VALUE:1},comment:null,comments:{COUNT:null,VALUE:null}},SortDirection:{values:{DESC:0,ASC:1},comment:null,comments:{DESC:null,ASC:null}},MissingValues:{values:{EXCLUDE:0,INCLUDE:1},comment:null,comments:{EXCLUDE:null,INCLUDE:null}},IncludeMissingValuesOptions:{fields:{addToBucket:{type:"string",id:1,options:{"(.wix.api.maxLength)":20},comment:null,parsedOptions:[{"(.wix.api.maxLength)":20,__comment:null}]}},comment:null}},comment:null},ScalarAggregation:{fields:{type:{type:"ScalarType",id:1,comment:null,parsedOptions:null}},comment:null},GroupByAggregation:{oneofs:{kind:{oneof:["value"],comment:null}},fields:{name:{type:"google.protobuf.StringValue",id:1,options:{"(.wix.api.maxLength)":100},comment:null,parsedOptions:[{"(.wix.api.maxLength)":100,__comment:null}]},fieldPath:{type:"string",id:3,options:{"(.wix.api.maxLength)":200},comment:null,parsedOptions:[{"(.wix.api.maxLength)":200,__comment:null}]},value:{type:"ValueAggregation",id:4,comment:null,parsedOptions:null}},comment:null},NestedAggregation:{fields:{nestedAggregations:{rule:"repeated",type:"NestedAggregationItem",id:2,options:{"(.wix.api.minSize)":2,"(.wix.api.maxSize)":3},comment:null,parsedOptions:[{"(.wix.api.minSize)":2,__comment:null},{"(.wix.api.maxSize)":3,__comment:null}]}},reserved:[[1,1]],nested:{NestedAggregationType:{values:{UNKNOWN_AGGREGATION_TYPE:0,VALUE:1,RANGE:2,SCALAR:3,DATE_HISTOGRAM:4},valuesOptions:{UNKNOWN_AGGREGATION_TYPE:{"(.wix.api.enum_maturity)":"NOT_IMPLEMENTED"}},comment:null,comments:{UNKNOWN_AGGREGATION_TYPE:null,VALUE:null,RANGE:null,SCALAR:null,DATE_HISTOGRAM:null}},NestedAggregationItem:{oneofs:{kind:{oneof:["value","range","scalar","dateHistogram"],comment:null}},fields:{name:{type:"google.protobuf.StringValue",id:1,options:{"(.wix.api.maxLength)":100},comment:null,parsedOptions:[{"(.wix.api.maxLength)":100,__comment:null}]},type:{type:"NestedAggregationType",id:2,comment:null,parsedOptions:null},fieldPath:{type:"string",id:3,options:{"(.wix.api.maxLength)":200},comment:null,parsedOptions:[{"(.wix.api.maxLength)":200,__comment:null}]},value:{type:"ValueAggregation",id:4,comment:null,parsedOptions:null},range:{type:"RangeAggregation",id:5,comment:null,parsedOptions:null},scalar:{type:"ScalarAggregation",id:6,comment:null,parsedOptions:null},dateHistogram:{type:"DateHistogramAggregation",id:9,comment:null,parsedOptions:null}},comment:null}},comment:null},DateHistogramAggregation:{fields:{interval:{type:"Interval",id:1,comment:null,parsedOptions:null}},nested:{Interval:{values:{UNKNOWN_INTERVAL:0,YEAR:1,MONTH:2,WEEK:3,DAY:4,HOUR:5,MINUTE:6,SECOND:7},valuesOptions:{UNKNOWN_INTERVAL:{"(.wix.api.enum_maturity)":"NOT_IMPLEMENTED"}},comment:null,comments:{UNKNOWN_INTERVAL:null,YEAR:null,MONTH:null,WEEK:null,DAY:null,HOUR:null,MINUTE:null,SECOND:null}}},comment:null}},comment:null},AggregationData:{fields:{results:{rule:"repeated",type:"AggregationResults",id:1,options:{"(.wix.api.maxSize)":1e4},comment:null,parsedOptions:[{"(.wix.api.maxSize)":1e4,__comment:null}]}},nested:{AggregationResults:{oneofs:{result:{oneof:["values","ranges","scalar","groupedByValue","dateHistogram","nested"],comment:null}},fields:{name:{type:"string",id:1,options:{"(.wix.api.maxLength)":100},comment:null,parsedOptions:[{"(.wix.api.maxLength)":100,__comment:null}]},type:{type:"AggregationType",id:2,comment:null,parsedOptions:null},fieldPath:{type:"string",id:6,options:{"(.wix.api.maxLength)":200},comment:null,parsedOptions:[{"(.wix.api.maxLength)":200,__comment:null}]},values:{type:"ValueResults",id:3,comment:null,parsedOptions:null},ranges:{type:"RangeResults",id:4,comment:null,parsedOptions:null},scalar:{type:"ScalarResult",id:5,comment:null,parsedOptions:null},groupedByValue:{type:"GroupByValueResults",id:7,comment:null,parsedOptions:null},dateHistogram:{type:"DateHistogramResults",id:8,comment:null,parsedOptions:null},nested:{type:"NestedResults",id:9,comment:null,parsedOptions:null}},nested:{ValueResults:{fields:{results:{rule:"repeated",type:"ValueAggregationResult",id:1,options:{"(.wix.api.maxSize)":250},comment:null,parsedOptions:[{"(.wix.api.maxSize)":250,__comment:null}]}},nested:{ValueAggregationResult:{fields:{value:{type:"string",id:1,options:{"(.wix.api.maxLength)":100},comment:null,parsedOptions:[{"(.wix.api.maxLength)":100,__comment:null}]},count:{type:"int32",id:2,comment:null,parsedOptions:null}},comment:null}},comment:null},RangeResults:{fields:{results:{rule:"repeated",type:"RangeAggregationResult",id:1,options:{"(.wix.api.maxSize)":50},comment:null,parsedOptions:[{"(.wix.api.maxSize)":50,__comment:null}]}},nested:{RangeAggregationResult:{fields:{from:{type:"google.protobuf.DoubleValue",id:1,comment:null,parsedOptions:null},to:{type:"google.protobuf.DoubleValue",id:2,comment:null,parsedOptions:null},count:{type:"int32",id:3,comment:null,parsedOptions:null}},comment:null}},comment:null},ScalarResult:{fields:{type:{type:"ScalarType",id:1,comment:null,parsedOptions:null},value:{type:"double",id:2,comment:null,parsedOptions:null}},comment:null},GroupByValueResults:{fields:{results:{rule:"repeated",type:"NestedValueAggregationResult",id:1,options:{"(.wix.api.maxSize)":1e3},comment:null,parsedOptions:[{"(.wix.api.maxSize)":1e3,__comment:null}]}},nested:{NestedValueAggregationResult:{fields:{value:{type:"string",id:1,options:{"(.wix.api.maxLength)":1e3},comment:null,parsedOptions:[{"(.wix.api.maxLength)":1e3,__comment:null}]},nestedResults:{type:"NestedAggregationResults",id:2,comment:null,parsedOptions:null}},comment:null}},comment:null},NestedAggregationResults:{oneofs:{result:{oneof:["values","ranges","scalar"],comment:null}},fields:{name:{type:"string",id:1,options:{"(.wix.api.maxLength)":100},comment:null,parsedOptions:[{"(.wix.api.maxLength)":100,__comment:null}]},type:{type:"AggregationType",id:2,comment:null,parsedOptions:null},fieldPath:{type:"string",id:6,options:{"(.wix.api.maxLength)":200},comment:null,parsedOptions:[{"(.wix.api.maxLength)":200,__comment:null}]},values:{type:"ValueResults",id:3,comment:null,parsedOptions:null},ranges:{type:"RangeResults",id:4,comment:null,parsedOptions:null},scalar:{type:"ScalarResult",id:5,comment:null,parsedOptions:null}},comment:null},NestedResults:{fields:{results:{rule:"repeated",type:"Results",id:1,options:{"(.wix.api.maxSize)":1e3},comment:null,parsedOptions:[{"(.wix.api.maxSize)":1e3,__comment:null}]}},nested:{ValueResult:{fields:{value:{type:"string",id:1,options:{"(.wix.api.maxLength)":1e3},comment:null,parsedOptions:[{"(.wix.api.maxLength)":1e3,__comment:null}]},count:{type:"google.protobuf.Int32Value",id:2,comment:null,parsedOptions:null}},comment:null},RangeResult:{fields:{from:{type:"google.protobuf.DoubleValue",id:1,comment:null,parsedOptions:null},to:{type:"google.protobuf.DoubleValue",id:2,comment:null,parsedOptions:null},count:{type:"google.protobuf.Int32Value",id:3,comment:null,parsedOptions:null}},comment:null},ScalarResult:{fields:{value:{type:"double",id:1,comment:null,parsedOptions:null}},comment:null},NestedResultValue:{oneofs:{result:{oneof:["value","range","scalar","dateHistogram"],comment:null}},fields:{value:{type:"ValueResult",id:1,comment:null,parsedOptions:null},range:{type:"RangeResult",id:2,comment:null,parsedOptions:null},scalar:{type:"ScalarResult",id:3,comment:null,parsedOptions:null},dateHistogram:{type:"ValueResult",id:4,comment:null,parsedOptions:null}},comment:null},Results:{fields:{results:{keyType:"string",type:"NestedResultValue",id:1,comment:null}},comment:null}},comment:null},DateHistogramResults:{fields:{results:{rule:"repeated",type:"DateHistogramResult",id:1,options:{"(.wix.api.maxSize)":200},comment:null,parsedOptions:[{"(.wix.api.maxSize)":200,__comment:null}]}},nested:{DateHistogramResult:{fields:{value:{type:"string",id:1,options:{"(.wix.api.maxLength)":100},comment:null,parsedOptions:[{"(.wix.api.maxLength)":100,__comment:null}]},count:{type:"int32",id:2,comment:null,parsedOptions:null}},comment:null}},comment:null}},comment:null}},comment:null},Sorting:{options:{"(.wix.api.decomposition_minimum_fields).field":"order","(.wix.api.decomposition_minimum_fields)":{field:["field_name","order"]}},fields:{fieldName:{type:"string",id:1,options:{"(.wix.api.maxLength)":512},comment:null,parsedOptions:[{"(.wix.api.maxLength)":512,__comment:null}]},order:{type:"SortOrder",id:2,comment:null,parsedOptions:null},selectItemsBy:{rule:"repeated",type:"google.protobuf.Struct",id:3,options:{"(.wix.api.maxSize)":10,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.maxSize)":10,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]}},comment:null},SortOrder:{values:{ASC:0,DESC:1},comment:null,comments:{ASC:null,DESC:null}},spi:{options:{java_multiple_files:!0,java_package:"com.wix.common"},nested:{SpiBaseUri:{options:{"(.wix.api.decomposition_minimum_fields).field":"alternative_uris","(.wix.api.decomposition_minimum_fields)":{field:["base_uri","alternative_uris"]}},fields:{baseUri:{type:"string",id:1,options:{"(.wix.api.minLength)":6,"(.wix.api.maxLength)":2048},comment:null,parsedOptions:[{"(.wix.api.minLength)":6,__comment:null},{"(.wix.api.maxLength)":2048,__comment:null}]},alternativeUris:{rule:"repeated",type:"AlternativeUri",id:2,comment:null,parsedOptions:null}},nested:{AlternativeUri:{fields:{methodName:{type:"string",id:1,options:{"(.wix.api.minLength)":3,"(.wix.api.maxLength)":128},comment:null,parsedOptions:[{"(.wix.api.minLength)":3,__comment:null},{"(.wix.api.maxLength)":128,__comment:null}]},absoluteUri:{type:"string",id:2,options:{"(.wix.api.minLength)":6,"(.wix.api.maxLength)":2048},comment:null,parsedOptions:[{"(.wix.api.minLength)":6,__comment:null},{"(.wix.api.maxLength)":2048,__comment:null}]}},comment:null}},comment:null},Context:{fields:{requestId:{type:"google.protobuf.StringValue",id:1,comment:null,parsedOptions:null},currency:{type:"google.protobuf.StringValue",id:2,options:{"(.wix.api.format)":"CURRENCY"},comment:null,parsedOptions:[{"(.wix.api.format)":"CURRENCY",__comment:null}]},identity:{type:"IdentificationData",id:3,comment:null,parsedOptions:null},languages:{rule:"repeated",type:"string",id:4,comment:null,parsedOptions:null},instanceId:{type:"google.protobuf.StringValue",id:5,options:{"(.wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(.wix.api.format)":"GUID",__comment:null}]},appExtensionId:{type:"google.protobuf.StringValue",id:6,options:{"(.wix.api.maxLength)":256,"(wix.api.field_maturity)":"ALPHA"},comment:null,parsedOptions:[{"(.wix.api.maxLength)":256,__comment:null},{"(wix.api.field_maturity)":"ALPHA",__comment:null}]},appExtensionType:{type:"google.protobuf.StringValue",id:7,options:{"(.wix.api.maxLength)":256,"(wix.api.field_maturity)":"ALPHA"},comment:null,parsedOptions:[{"(.wix.api.maxLength)":256,__comment:null},{"(wix.api.field_maturity)":"ALPHA",__comment:null}]},functionName:{type:"google.protobuf.StringValue",id:8,options:{"(.wix.api.maxLength)":256,"(wix.api.field_maturity)":"ALPHA"},comment:null,parsedOptions:[{"(.wix.api.maxLength)":256,__comment:null},{"(wix.api.field_maturity)":"ALPHA",__comment:null}]}},nested:{IdentificationData:{options:{"(.wix.api.decomposite_of)":"wix.common.IdentificationData"},oneofs:{id:{oneof:["anonymousVisitorId","memberId","wixUserId","appId"],comment:null}},fields:{identityType:{type:"IdentityType",id:6,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]},anonymousVisitorId:{type:"string",id:2,options:{"(.wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(.wix.api.format)":"GUID",__comment:null}]},memberId:{type:"string",id:3,options:{"(.wix.api.format)":"GUID","(.wix.api.referenced_entity)":"wix.members.v1.member"},comment:null,parsedOptions:[{"(.wix.api.format)":"GUID",__comment:null},{"(.wix.api.referenced_entity)":"wix.members.v1.member",__comment:null}]},wixUserId:{type:"string",id:4,options:{"(.wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(.wix.api.format)":"GUID",__comment:null}]},appId:{type:"string",id:5,options:{"(.wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(.wix.api.format)":"GUID",__comment:null}]}},reserved:[[1,1]],nested:{IdentityType:{values:{UNKNOWN:0,ANONYMOUS_VISITOR:1,MEMBER:2,WIX_USER:3,APP:4},comment:null,comments:{UNKNOWN:null,ANONYMOUS_VISITOR:null,MEMBER:null,WIX_USER:null,APP:null}}},comment:null}},comment:"this message is not directly used by any service,\nit exists to describe the expected parameters that SHOULD be provided to invoked Velo methods as part of open-platform.\ne.g. SPIs, event-handlers, etc..\nNOTE: this context object MUST be provided as the last argument in each Velo method signature.\n\nExample:\n```typescript\nexport function wixStores_onOrderCanceled({ event, metadata }: OrderCanceledEvent) {\n...\n}\n```"}}},tags:{options:{java_multiple_files:!0,java_package:"com.wix.common"},nested:{Tags:{options:{"(.wix.api.decomposition_minimum_fields).field":"tags","(.wix.api.decomposition_minimum_fields)":{field:"tags"}},fields:{privateTags:{type:"TagList",id:1,comment:null,parsedOptions:null},tags:{type:"TagList",id:2,comment:null,parsedOptions:null}},nested:{TagList:{fields:{tagIds:{rule:"repeated",type:"string",id:1,options:{"(.wix.api.referenced_entity)":"wix.os.tags.v1.tag","(.wix.api.maxSize)":100,"(.wix.api.maxLength)":5},comment:null,parsedOptions:[{"(.wix.api.referenced_entity)":"wix.os.tags.v1.tag",__comment:null},{"(.wix.api.maxSize)":100,__comment:null},{"(.wix.api.maxLength)":5,__comment:null}]}},comment:null}},comment:null},PublicTags:{options:{"(.wix.api.decomposite_of)":"wix.common.tags.Tags","(.wix.api.decomposition_minimum_fields).field":"tags","(.wix.api.decomposition_minimum_fields)":{field:"tags"}},fields:{tags:{type:"TagList",id:2,comment:null,parsedOptions:null}},nested:{TagList:{fields:{tagIds:{rule:"repeated",type:"string",id:1,options:{"(.wix.api.referenced_entity)":"wix.os.tags.v1.tag","(.wix.api.maxSize)":100,"(.wix.api.maxLength)":5},comment:null,parsedOptions:[{"(.wix.api.referenced_entity)":"wix.os.tags.v1.tag",__comment:null},{"(.wix.api.maxSize)":100,__comment:null},{"(.wix.api.maxLength)":5,__comment:null}]}},comment:null}},comment:null}}},WixLink:{options:{"(.wix.api.decomposition_minimum_fields).field":"tpa_page_link","(.wix.api.decomposition_minimum_fields)":{field:"tpa_page_link"}},oneofs:{Link:{oneof:["external","page","anchor","dynamicPage","document","email","phone","address","whatsApp","tpaPage"],comment:null}},fields:{external:{type:"ExternalLink",id:1,comment:null,parsedOptions:null},page:{type:"PageLink",id:2,comment:null,parsedOptions:null},anchor:{type:"AnchorLink",id:3,comment:null,parsedOptions:null},dynamicPage:{type:"DynamicPageLink",id:4,comment:null,parsedOptions:null},document:{type:"DocumentLink",id:5,comment:null,parsedOptions:null},email:{type:"EmailLink",id:6,comment:null,parsedOptions:null},phone:{type:"PhoneLink",id:7,comment:null,parsedOptions:null},address:{type:"AddressLink",id:8,comment:null,parsedOptions:null},whatsApp:{type:"WhatsAppLink",id:9,comment:null,parsedOptions:null},tpaPage:{type:"TpaPageLink",id:10,comment:null,parsedOptions:null}},comment:null},ExternalLink:{options:{"(.wix.api.decomposition_minimum_fields).field":"url","(.wix.api.decomposition_minimum_fields)":{field:"url"}},fields:{url:{type:"string",id:1,options:{"(.wix.api.format)":"WEB_URL"},comment:null,parsedOptions:[{"(.wix.api.format)":"WEB_URL",__comment:null}]},target:{type:"google.protobuf.StringValue",id:2,comment:null,parsedOptions:null},rel:{rule:"repeated",type:"LinkRel",id:3,options:{"(.wix.api.maxSize)":20,"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.maxSize)":20,__comment:null},{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]}},comment:null},PageLink:{options:{"(.wix.api.decomposition_minimum_fields).field":"page_id","(.wix.api.decomposition_minimum_fields)":{field:"page_id"}},fields:{pageId:{type:"string",id:1,comment:null,parsedOptions:null},target:{type:"google.protobuf.StringValue",id:2,comment:null,parsedOptions:null},rel:{rule:"repeated",type:"LinkRel",id:3,options:{"(wix.api.maxSize)":20},comment:null,parsedOptions:[{"(wix.api.maxSize)":20,__comment:null}]}},comment:null},AnchorLink:{options:{"(.wix.api.decomposition_minimum_fields).field":"page_id","(.wix.api.decomposition_minimum_fields)":{field:["anchor_name","anchor_data_id","page_id"]}},fields:{anchorName:{type:"string",id:1,comment:null,parsedOptions:null},anchorDataId:{type:"string",id:2,comment:null,parsedOptions:null},pageId:{type:"string",id:3,comment:null,parsedOptions:null},rel:{rule:"repeated",type:"LinkRel",id:4,options:{"(wix.api.maxSize)":20},comment:null,parsedOptions:[{"(wix.api.maxSize)":20,__comment:null}]}},comment:null},DynamicPageLink:{options:{"(.wix.api.decomposition_minimum_fields).field":"anchor_data_id","(.wix.api.decomposition_minimum_fields)":{field:["router_id","inner_route","anchor_data_id"]}},fields:{routerId:{type:"string",id:1,comment:null,parsedOptions:null},innerRoute:{type:"string",id:2,comment:null,parsedOptions:null},anchorDataId:{type:"google.protobuf.StringValue",id:3,comment:null,parsedOptions:null},rel:{rule:"repeated",type:"LinkRel",id:4,options:{"(wix.api.maxSize)":20},comment:null,parsedOptions:[{"(wix.api.maxSize)":20,__comment:null}]}},comment:null},DocumentLink:{options:{"(.wix.api.decomposition_minimum_fields).field":"name","(.wix.api.decomposition_minimum_fields)":{field:["doc_id","name"]}},fields:{docId:{type:"string",id:1,comment:null,parsedOptions:null},name:{type:"google.protobuf.StringValue",id:2,comment:null,parsedOptions:null},indexable:{type:"bool",id:3,comment:null,parsedOptions:null}},comment:null},EmailLink:{options:{"(.wix.api.decomposition_minimum_fields).field":"body","(.wix.api.decomposition_minimum_fields)":{field:["recipient","subject","body"]}},fields:{recipient:{type:"string",id:1,options:{"(.wix.api.format)":"EMAIL"},comment:null,parsedOptions:[{"(.wix.api.format)":"EMAIL",__comment:null}]},subject:{type:"google.protobuf.StringValue",id:2,comment:null,parsedOptions:null},body:{type:"google.protobuf.StringValue",id:3,comment:null,parsedOptions:null}},comment:null},PhoneLink:{options:{"(.wix.api.decomposition_minimum_fields).field":"phone_number","(.wix.api.decomposition_minimum_fields)":{field:"phone_number"}},fields:{phoneNumber:{type:"string",id:1,options:{"(.wix.api.pii)":!0,"(.wix.api.format)":"PHONE","(.wix.api.maxLength)":100},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null},{"(.wix.api.format)":"PHONE",__comment:null},{"(.wix.api.maxLength)":100,__comment:null}]}},comment:null},AddressLink:{options:{"(.wix.api.decomposition_minimum_fields).field":"address","(.wix.api.decomposition_minimum_fields)":{field:"address"}},fields:{address:{type:"string",id:1,options:{"(.wix.api.pii)":!0},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null}]}},comment:null},WhatsAppLink:{options:{"(.wix.api.decomposition_minimum_fields).field":"phone_number","(.wix.api.decomposition_minimum_fields)":{field:"phone_number"}},fields:{phoneNumber:{type:"string",id:1,options:{"(.wix.api.pii)":!0,"(.wix.api.format)":"PHONE"},comment:null,parsedOptions:[{"(.wix.api.pii)":!0,__comment:null},{"(.wix.api.format)":"PHONE",__comment:null}]}},comment:null},TpaPageLink:{options:{"(.wix.api.decomposition_minimum_fields).field":"path","(.wix.api.decomposition_minimum_fields)":{field:["item_type_identifier","item_id","page_id","app_definition_id","path"]}},fields:{itemTypeIdentifier:{type:"string",id:1,comment:null,parsedOptions:null},itemId:{type:"string",id:2,comment:null,parsedOptions:null},pageId:{type:"string",id:3,comment:null,parsedOptions:null},appDefinitionId:{type:"string",id:4,comment:null,parsedOptions:null},path:{type:"string",id:5,comment:null,parsedOptions:null},rel:{rule:"repeated",type:"LinkRel",id:6,options:{"(wix.api.maxSize)":20},comment:null,parsedOptions:[{"(wix.api.maxSize)":20,__comment:null}]}},comment:null},LinkRel:{values:{unknown_link_rel:0,nofollow:1,noopener:2,noreferrer:3,sponsored:4},valuesOptions:{unknown_link_rel:{"(.wix.api.enum_maturity)":"NOT_IMPLEMENTED"}},comment:null,comments:{unknown_link_rel:null,nofollow:null,noopener:null,noreferrer:null,sponsored:null}}}},dealerOfferEvents:{nested:{api:{nested:{v1:{options:{java_package:"com.wix.dealerOfferEvents.api.v1"},nested:{DealerOfferEventsService:{options:{"(wix.api.service_entity).message":"wix.dealerOfferEvents.api.v1.OfferEvent","(wix.api.service_exposure)":"INTERNAL"},methods:{ReportEvent:{requestType:"ReportEventRequest",responseType:"ReportEventResponse",options:{"(google.api.http).post":"/v1/dealer-offer-events/{event.offer_id}","(wix.api.required)":"ReportEventRequest.event.offer_id","(wix.api.maturity)":"GA"},comment:null,parsedOptions:[{"(google.api.http)":{post:"/v1/dealer-offer-events/{event.offer_id}"},__comment:{post:null}},{"(wix.api.required)":"ReportEventRequest.event.offer_id",__comment:null},{"(wix.api.maturity)":"GA",__comment:null}]},ListEventsSummary:{requestType:"ListEventsSummaryRequest",responseType:"ListEventsSummaryResponse",options:{"(google.api.http).get":"/v1/dealer-offer-events/summary","(wix.api.required)":"ListEventsSummaryRequest.summary_filter.field_mask","(wix.api.maturity)":"GA"},comment:null,parsedOptions:[{"(google.api.http)":{get:"/v1/dealer-offer-events/summary"},__comment:{get:null}},{"(wix.api.required)":"ListEventsSummaryRequest.summary_filter.field_mask",__comment:null},{"(wix.api.maturity)":"GA",__comment:null}]},QueryEvents:{requestType:"QueryEventsRequest",responseType:"QueryEventsResponse",options:{"(google.api.http).get":"/v1/dealer-offer-events/query","(wix.api.required)":"QueryEventsRequest.query.filter","(wix.api.maturity)":"ALPHA"},comment:null,parsedOptions:[{"(google.api.http)":{get:"/v1/dealer-offer-events/query"},__comment:{get:null}},{"(wix.api.required)":"QueryEventsRequest.query",__comment:null},{"(wix.api.required)":"QueryEventsRequest.query.filter",__comment:null},{"(wix.api.maturity)":"ALPHA",__comment:null}]}},comment:null},ReportEventRequest:{fields:{event:{type:"OfferEvent",id:1,comment:null,parsedOptions:null},deviantArtUserId:{type:"google.protobuf.StringValue",id:2,options:{"(.wix.api.maxLength)":4096},comment:null,parsedOptions:[{"(.wix.api.maxLength)":4096,__comment:null}]}},comment:null},ReportEventResponse:{fields:{},comment:null},ListEventsSummaryRequest:{fields:{offerIds:{rule:"repeated",type:"string",id:1,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},campaignIds:{rule:"repeated",type:"string",id:3,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},summaryFilter:{type:"SummaryFilter",id:2,comment:null,parsedOptions:null}},comment:null},SummaryFilter:{fields:{userId:{type:"google.protobuf.StringValue",id:1,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},targetAccountId:{type:"google.protobuf.StringValue",id:2,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},siteId:{type:"google.protobuf.StringValue",id:3,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},placementId:{type:"google.protobuf.StringValue",id:6,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},fieldMask:{type:"google.protobuf.FieldMask",id:5,comment:null,parsedOptions:null}},reserved:[[4,4]],comment:null},EventCounts:{fields:{totalCount:{type:"google.protobuf.Int32Value",id:1,comment:null,parsedOptions:null}},comment:null},EventsSummary:{fields:{offerId:{type:"google.protobuf.StringValue",id:1,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},campaignId:{type:"google.protobuf.StringValue",id:5,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},lastEvent:{keyType:"string",type:"OfferEvent",id:3,comment:null},eventsCount:{keyType:"string",type:"EventCounts",id:10,comment:null}},reserved:[[2,2],[4,4]],comment:null},ListEventsSummaryResponse:{fields:{eventsSummary:{rule:"repeated",type:"EventsSummary",id:1,comment:null,parsedOptions:null},campaignEventsSummary:{rule:"repeated",type:"EventsSummary",id:2,comment:null,parsedOptions:null}},comment:null},QueryEventsRequest:{fields:{query:{type:"wix.common.Query",id:1,comment:null,parsedOptions:null}},comment:null},QueryEventsResponse:{fields:{events:{rule:"repeated",type:"OfferEvent",id:1,comment:null,parsedOptions:null},pagingMetadata:{type:"wix.common.PagingMetadata",id:2,comment:null,parsedOptions:null}},comment:null},OfferEvent:{options:{"(wix.api.entity).fqdn":"wix.dealer.v1.offer_event"},oneofs:{payload:{oneof:["agentMark","mainCtaClick","secondaryCtaClick"],comment:null}},fields:{offerId:{type:"string",id:1,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},userId:{type:"google.protobuf.StringValue",id:2,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},targetAccountId:{type:"google.protobuf.StringValue",id:3,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},loggedInAccountId:{type:"google.protobuf.StringValue",id:4,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},siteId:{type:"google.protobuf.StringValue",id:5,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},eventId:{type:"google.protobuf.StringValue",id:6,options:{"(wix.api.format)":"GUID","(wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null},{"(wix.api.readOnly)":!0,__comment:null}]},createdAt:{type:"google.protobuf.Timestamp",id:7,options:{"(wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(wix.api.readOnly)":!0,__comment:null}]},type:{type:"EventType",id:8,comment:null,parsedOptions:null},agentMark:{type:"AgentMarkedPayload",id:9,comment:null,parsedOptions:null},mainCtaClick:{type:"CTAClickPayload",id:17,comment:null,parsedOptions:null},secondaryCtaClick:{type:"CTAClickPayload",id:18,comment:null,parsedOptions:null},realEstateId:{type:"google.protobuf.StringValue",id:11,comment:null,parsedOptions:null},httpReferrer:{type:"google.protobuf.StringValue",id:13,comment:null,parsedOptions:null},assetId:{type:"google.protobuf.StringValue",id:14,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},platform:{type:"PlatformEnum",id:15,comment:null,parsedOptions:null}},reserved:[[10,10],[12,12],[20,20]],nested:{PlatformEnum:{values:{UNKNOWN:0,BUSINESS_MANAGER:1,EDITORX:2,EDITOR:3,ADI:4,OWNER_APP:5,BRANDED_APP:6,DEV_CENTER:7},comment:null,comments:{UNKNOWN:null,BUSINESS_MANAGER:null,EDITORX:null,EDITOR:null,ADI:null,OWNER_APP:null,BRANDED_APP:null,DEV_CENTER:null}}},comment:null},CTAClickPayload:{fields:{targetUrl:{type:"google.protobuf.StringValue",id:1,comment:null,parsedOptions:null}},comment:null},AgentMarkedPayload:{fields:{agentId:{type:"google.protobuf.StringValue",id:1,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},status:{type:"AgentOfferStatusEnum",id:2,comment:null,parsedOptions:null}},nested:{AgentOfferStatusEnum:{values:{NOT_STARTED:0,SUGGESTED:1,REJECTED:2,REQUESTED:3,ALREADY_COMPLETED:4,NOT_RELEVANT:5,PAUSED:6},comment:null,comments:{NOT_STARTED:null,SUGGESTED:null,REJECTED:null,REQUESTED:null,ALREADY_COMPLETED:null,NOT_RELEVANT:null,PAUSED:null}}},comment:null},EventType:{values:{UNKNOWN:0,VIEW:1,MAIN_CTA_CLICK:3,SECONDARY_CTA_CLICK:4,AGENT_MARK:5,SKIP:7,UNSKIP:8,CLOSE:9,SHOW_LATER:10},reserved:[[6,6],[2,2]],comment:null,comments:{UNKNOWN:null,VIEW:null,MAIN_CTA_CLICK:null,SECONDARY_CTA_CLICK:null,AGENT_MARK:null,SKIP:null,UNSKIP:null,CLOSE:null,SHOW_LATER:null}}}}}}}},graphql:{options:{java_multiple_files:!0,java_outer_classname:"GraphqlProto",java_package:"com.wix.graphql"},nested:{namespace:{type:"string",id:66e3,extend:"google.protobuf.FileOptions",comment:null,parsedOptions:null}}},http:{options:{java_multiple_files:!0,java_outer_classname:"FieldmaskProto",java_package:"com.wix.http"},nested:{inferFieldmaskFrom:{type:"string",id:50901,extend:"google.protobuf.FieldOptions",options:{deprecated:!0},comment:null,parsedOptions:[{deprecated:!0,__comment:null}]},inferFieldmask:{type:"InferFieldmask",id:50902,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},InferFieldmask:{fields:{from:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null},fieldmask:{rule:"required",type:"string",id:2,comment:null,parsedOptions:null},snakeCaseCommaSeparatedMask:{type:"bool",id:3,comment:null,parsedOptions:null}},comment:null}}},sdk:{options:{java_multiple_files:!0,java_outer_classname:"DefinitionsProto",java_package:"com.wix.sdk"},nested:{signature:{rule:"repeated",type:"Signature",id:60100,extend:"google.protobuf.MethodOptions",options:{packed:!1},comment:null,parsedOptions:null},Signature:{fields:{params:{rule:"repeated",type:"string",id:1,comment:null,parsedOptions:null}},comment:null}}},spi:{options:{java_multiple_files:!0,java_outer_classname:"DefinitionsProto",java_package:"com.wix.spi"},nested:{service:{type:"Service",id:65e3,extend:"google.protobuf.ServiceOptions",comment:null,parsedOptions:null},event:{rule:"repeated",type:"Event",id:65001,extend:"google.protobuf.ServiceOptions",options:{packed:!1},comment:null,parsedOptions:null},baseUri:{type:"bool",id:65020,extend:"google.protobuf.FieldOptions",comment:null,parsedOptions:null},error:{rule:"repeated",type:"Error",id:65040,extend:"google.protobuf.MethodOptions",options:{packed:!1},comment:null,parsedOptions:null},featureToggle:{type:"string",id:65041,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},Service:{fields:{spiIdentifier:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null},configMessage:{rule:"required",type:"string",id:2,comment:null,parsedOptions:null},hostService:{type:"string",id:3,comment:null,parsedOptions:null},businessManagerUrl:{type:"string",id:4,comment:null,parsedOptions:null},fqdn:{type:"string",id:5,comment:null,parsedOptions:null},appId:{type:"string",id:6,comment:null,parsedOptions:null},appendixFiles:{rule:"repeated",type:"ServiceAppendix",id:7,comment:null,parsedOptions:null}},comment:null},ServiceAppendix:{fields:{type:{rule:"required",type:"Type",id:1,comment:null,parsedOptions:null},path:{rule:"required",type:"string",id:2,comment:null,parsedOptions:null}},nested:{Type:{values:{UNKNOWN_APPENDIX_TYPE:0,AUTO_VELO:1,DOCS_CONF:2,MULTILINGUAL:3,SEARCH:4,AUTO_SDK:5},valuesOptions:{AUTO_VELO:{deprecated:!0}},comment:null,comments:{UNKNOWN_APPENDIX_TYPE:null,AUTO_VELO:null,DOCS_CONF:null,MULTILINGUAL:null,SEARCH:null,AUTO_SDK:null}}},comment:null},Error:{fields:{name:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null},httpCode:{rule:"required",type:"HttpStatusCode",id:2,comment:null,parsedOptions:null},applicationCode:{rule:"required",type:"string",id:3,comment:null,parsedOptions:null},data:{type:"string",id:4,comment:null,parsedOptions:null}},comment:null},Event:{fields:{methodName:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null}},comment:null},HttpStatusCode:{values:{UNKNOWN_ERROR:0,UNAUTHENTICATED:1,INVALID_ARGUMENT:3,INTERNAL:5,RESOURCE_EXHAUSTED:7,CANCELED:8,NOT_FOUND:4,ALREADY_EXISTS:9,FAILED_PRECONDITION:10},comment:null,comments:{UNKNOWN_ERROR:null,UNAUTHENTICATED:null,INVALID_ARGUMENT:null,INTERNAL:null,RESOURCE_EXHAUSTED:null,CANCELED:null,NOT_FOUND:null,ALREADY_EXISTS:null,FAILED_PRECONDITION:null}}}}}},google:{nested:{protobuf:{options:{go_package:"google.golang.org/protobuf/types/descriptorpb",java_package:"com.google.protobuf",java_outer_classname:"DescriptorProtos",csharp_namespace:"Google.Protobuf.Reflection",objc_class_prefix:"GPB",cc_enable_arenas:!0,optimize_for:"SPEED"},nested:{FileDescriptorSet:{fields:{file:{rule:"repeated",type:"FileDescriptorProto",id:1,comment:null,parsedOptions:null}},comment:null},FileDescriptorProto:{fields:{name:{type:"string",id:1,comment:null,parsedOptions:null},package:{type:"string",id:2,comment:null,parsedOptions:null},dependency:{rule:"repeated",type:"string",id:3,comment:null,parsedOptions:null},publicDependency:{rule:"repeated",type:"int32",id:10,options:{packed:!1},comment:null,parsedOptions:null},weakDependency:{rule:"repeated",type:"int32",id:11,options:{packed:!1},comment:null,parsedOptions:null},messageType:{rule:"repeated",type:"DescriptorProto",id:4,comment:null,parsedOptions:null},enumType:{rule:"repeated",type:"EnumDescriptorProto",id:5,comment:null,parsedOptions:null},service:{rule:"repeated",type:"ServiceDescriptorProto",id:6,comment:null,parsedOptions:null},extension:{rule:"repeated",type:"FieldDescriptorProto",id:7,comment:null,parsedOptions:null},options:{type:"FileOptions",id:8,comment:null,parsedOptions:null},sourceCodeInfo:{type:"SourceCodeInfo",id:9,comment:null,parsedOptions:null},syntax:{type:"string",id:12,comment:null,parsedOptions:null}},comment:null},DescriptorProto:{fields:{name:{type:"string",id:1,comment:null,parsedOptions:null},field:{rule:"repeated",type:"FieldDescriptorProto",id:2,comment:null,parsedOptions:null},extension:{rule:"repeated",type:"FieldDescriptorProto",id:6,comment:null,parsedOptions:null},nestedType:{rule:"repeated",type:"DescriptorProto",id:3,comment:null,parsedOptions:null},enumType:{rule:"repeated",type:"EnumDescriptorProto",id:4,comment:null,parsedOptions:null},extensionRange:{rule:"repeated",type:"ExtensionRange",id:5,comment:null,parsedOptions:null},oneofDecl:{rule:"repeated",type:"OneofDescriptorProto",id:8,comment:null,parsedOptions:null},options:{type:"MessageOptions",id:7,comment:null,parsedOptions:null},reservedRange:{rule:"repeated",type:"ReservedRange",id:9,comment:null,parsedOptions:null},reservedName:{rule:"repeated",type:"string",id:10,comment:null,parsedOptions:null}},nested:{ExtensionRange:{fields:{start:{type:"int32",id:1,comment:null,parsedOptions:null},end:{type:"int32",id:2,comment:null,parsedOptions:null},options:{type:"ExtensionRangeOptions",id:3,comment:null,parsedOptions:null}},comment:null},ReservedRange:{fields:{start:{type:"int32",id:1,comment:null,parsedOptions:null},end:{type:"int32",id:2,comment:null,parsedOptions:null}},comment:null}},comment:null},ExtensionRangeOptions:{fields:{uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999,comment:null,parsedOptions:null}},extensions:[[1e3,536870911]],comment:null},FieldDescriptorProto:{fields:{name:{type:"string",id:1,comment:null,parsedOptions:null},number:{type:"int32",id:3,comment:null,parsedOptions:null},label:{type:"Label",id:4,comment:null,parsedOptions:null},type:{type:"Type",id:5,comment:null,parsedOptions:null},typeName:{type:"string",id:6,comment:null,parsedOptions:null},extendee:{type:"string",id:2,comment:null,parsedOptions:null},defaultValue:{type:"string",id:7,comment:null,parsedOptions:null},oneofIndex:{type:"int32",id:9,comment:null,parsedOptions:null},jsonName:{type:"string",id:10,comment:null,parsedOptions:null},options:{type:"FieldOptions",id:8,comment:null,parsedOptions:null},proto3Optional:{type:"bool",id:17,comment:null,parsedOptions:null}},nested:{Type:{values:{TYPE_DOUBLE:1,TYPE_FLOAT:2,TYPE_INT64:3,TYPE_UINT64:4,TYPE_INT32:5,TYPE_FIXED64:6,TYPE_FIXED32:7,TYPE_BOOL:8,TYPE_STRING:9,TYPE_GROUP:10,TYPE_MESSAGE:11,TYPE_BYTES:12,TYPE_UINT32:13,TYPE_ENUM:14,TYPE_SFIXED32:15,TYPE_SFIXED64:16,TYPE_SINT32:17,TYPE_SINT64:18},comment:null,comments:{TYPE_DOUBLE:null,TYPE_FLOAT:null,TYPE_INT64:null,TYPE_UINT64:null,TYPE_INT32:null,TYPE_FIXED64:null,TYPE_FIXED32:null,TYPE_BOOL:null,TYPE_STRING:null,TYPE_GROUP:null,TYPE_MESSAGE:null,TYPE_BYTES:null,TYPE_UINT32:null,TYPE_ENUM:null,TYPE_SFIXED32:null,TYPE_SFIXED64:null,TYPE_SINT32:null,TYPE_SINT64:null}},Label:{values:{LABEL_OPTIONAL:1,LABEL_REQUIRED:2,LABEL_REPEATED:3},comment:null,comments:{LABEL_OPTIONAL:null,LABEL_REQUIRED:null,LABEL_REPEATED:null}}},comment:null},OneofDescriptorProto:{fields:{name:{type:"string",id:1,comment:null,parsedOptions:null},options:{type:"OneofOptions",id:2,comment:null,parsedOptions:null}},comment:null},EnumDescriptorProto:{fields:{name:{type:"string",id:1,comment:null,parsedOptions:null},value:{rule:"repeated",type:"EnumValueDescriptorProto",id:2,comment:null,parsedOptions:null},options:{type:"EnumOptions",id:3,comment:null,parsedOptions:null},reservedRange:{rule:"repeated",type:"EnumReservedRange",id:4,comment:null,parsedOptions:null},reservedName:{rule:"repeated",type:"string",id:5,comment:null,parsedOptions:null}},nested:{EnumReservedRange:{fields:{start:{type:"int32",id:1,comment:null,parsedOptions:null},end:{type:"int32",id:2,comment:null,parsedOptions:null}},comment:null}},comment:null},EnumValueDescriptorProto:{fields:{name:{type:"string",id:1,comment:null,parsedOptions:null},number:{type:"int32",id:2,comment:null,parsedOptions:null},options:{type:"EnumValueOptions",id:3,comment:null,parsedOptions:null}},comment:null},ServiceDescriptorProto:{fields:{name:{type:"string",id:1,comment:null,parsedOptions:null},method:{rule:"repeated",type:"MethodDescriptorProto",id:2,comment:null,parsedOptions:null},options:{type:"ServiceOptions",id:3,comment:null,parsedOptions:null}},comment:null},MethodDescriptorProto:{fields:{name:{type:"string",id:1,comment:null,parsedOptions:null},inputType:{type:"string",id:2,comment:null,parsedOptions:null},outputType:{type:"string",id:3,comment:null,parsedOptions:null},options:{type:"MethodOptions",id:4,comment:null,parsedOptions:null},clientStreaming:{type:"bool",id:5,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},serverStreaming:{type:"bool",id:6,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]}},comment:null},FileOptions:{fields:{javaPackage:{type:"string",id:1,comment:null,parsedOptions:null},javaOuterClassname:{type:"string",id:8,comment:null,parsedOptions:null},javaMultipleFiles:{type:"bool",id:10,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},javaGenerateEqualsAndHash:{type:"bool",id:20,options:{deprecated:!0},comment:null,parsedOptions:[{deprecated:!0,__comment:null}]},javaStringCheckUtf8:{type:"bool",id:27,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},optimizeFor:{type:"OptimizeMode",id:9,options:{default:"SPEED"},comment:null,parsedOptions:[{default:"SPEED",__comment:null}]},goPackage:{type:"string",id:11,comment:null,parsedOptions:null},ccGenericServices:{type:"bool",id:16,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},javaGenericServices:{type:"bool",id:17,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},pyGenericServices:{type:"bool",id:18,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},phpGenericServices:{type:"bool",id:42,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},deprecated:{type:"bool",id:23,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},ccEnableArenas:{type:"bool",id:31,options:{default:!0},comment:null,parsedOptions:[{default:!0,__comment:null}]},objcClassPrefix:{type:"string",id:36,comment:null,parsedOptions:null},csharpNamespace:{type:"string",id:37,comment:null,parsedOptions:null},swiftPrefix:{type:"string",id:39,comment:null,parsedOptions:null},phpClassPrefix:{type:"string",id:40,comment:null,parsedOptions:null},phpNamespace:{type:"string",id:41,comment:null,parsedOptions:null},phpMetadataNamespace:{type:"string",id:44,comment:null,parsedOptions:null},rubyPackage:{type:"string",id:45,comment:null,parsedOptions:null},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999,comment:null,parsedOptions:null}},extensions:[[1e3,536870911]],reserved:[[38,38]],nested:{OptimizeMode:{values:{SPEED:1,CODE_SIZE:2,LITE_RUNTIME:3},comment:null,comments:{SPEED:null,CODE_SIZE:null,LITE_RUNTIME:null}}},comment:null},MessageOptions:{fields:{messageSetWireFormat:{type:"bool",id:1,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},noStandardDescriptorAccessor:{type:"bool",id:2,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},deprecated:{type:"bool",id:3,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},mapEntry:{type:"bool",id:7,comment:null,parsedOptions:null},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999,comment:null,parsedOptions:null}},extensions:[[1e3,536870911]],reserved:[[4,4],[5,5],[6,6],[8,8],[9,9]],comment:null},FieldOptions:{fields:{ctype:{type:"CType",id:1,options:{default:"STRING"},comment:null,parsedOptions:[{default:"STRING",__comment:null}]},packed:{type:"bool",id:2,comment:null,parsedOptions:null},jstype:{type:"JSType",id:6,options:{default:"JS_NORMAL"},comment:null,parsedOptions:[{default:"JS_NORMAL",__comment:null}]},lazy:{type:"bool",id:5,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},deprecated:{type:"bool",id:3,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},weak:{type:"bool",id:10,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999,comment:null,parsedOptions:null}},extensions:[[1e3,536870911]],reserved:[[4,4]],nested:{CType:{values:{STRING:0,CORD:1,STRING_PIECE:2},comment:null,comments:{STRING:null,CORD:null,STRING_PIECE:null}},JSType:{values:{JS_NORMAL:0,JS_STRING:1,JS_NUMBER:2},comment:null,comments:{JS_NORMAL:null,JS_STRING:null,JS_NUMBER:null}}},comment:null},OneofOptions:{fields:{uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999,comment:null,parsedOptions:null}},extensions:[[1e3,536870911]],comment:null},EnumOptions:{fields:{allowAlias:{type:"bool",id:2,comment:null,parsedOptions:null},deprecated:{type:"bool",id:3,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999,comment:null,parsedOptions:null}},extensions:[[1e3,536870911]],reserved:[[5,5]],comment:null},EnumValueOptions:{fields:{deprecated:{type:"bool",id:1,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999,comment:null,parsedOptions:null}},extensions:[[1e3,536870911]],comment:null},ServiceOptions:{fields:{deprecated:{type:"bool",id:33,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999,comment:null,parsedOptions:null}},extensions:[[1e3,536870911]],comment:null},MethodOptions:{fields:{deprecated:{type:"bool",id:33,options:{default:!1},comment:null,parsedOptions:[{default:!1,__comment:null}]},idempotencyLevel:{type:"IdempotencyLevel",id:34,options:{default:"IDEMPOTENCY_UNKNOWN"},comment:null,parsedOptions:[{default:"IDEMPOTENCY_UNKNOWN",__comment:null}]},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999,comment:null,parsedOptions:null}},extensions:[[1e3,536870911]],nested:{IdempotencyLevel:{values:{IDEMPOTENCY_UNKNOWN:0,NO_SIDE_EFFECTS:1,IDEMPOTENT:2},comment:null,comments:{IDEMPOTENCY_UNKNOWN:null,NO_SIDE_EFFECTS:null,IDEMPOTENT:null}}},comment:null},UninterpretedOption:{fields:{name:{rule:"repeated",type:"NamePart",id:2,comment:null,parsedOptions:null},identifierValue:{type:"string",id:3,comment:null,parsedOptions:null},positiveIntValue:{type:"uint64",id:4,comment:null,parsedOptions:null},negativeIntValue:{type:"int64",id:5,comment:null,parsedOptions:null},doubleValue:{type:"double",id:6,comment:null,parsedOptions:null},stringValue:{type:"bytes",id:7,comment:null,parsedOptions:null},aggregateValue:{type:"string",id:8,comment:null,parsedOptions:null}},nested:{NamePart:{fields:{namePart:{rule:"required",type:"string",id:1,comment:null,parsedOptions:null},isExtension:{rule:"required",type:"bool",id:2,comment:null,parsedOptions:null}},comment:null}},comment:null},SourceCodeInfo:{fields:{location:{rule:"repeated",type:"Location",id:1,comment:null,parsedOptions:null}},nested:{Location:{fields:{path:{rule:"repeated",type:"int32",id:1,comment:null,parsedOptions:[{packed:!0,__comment:null}]},span:{rule:"repeated",type:"int32",id:2,comment:null,parsedOptions:[{packed:!0,__comment:null}]},leadingComments:{type:"string",id:3,comment:null,parsedOptions:null},trailingComments:{type:"string",id:4,comment:null,parsedOptions:null},leadingDetachedComments:{rule:"repeated",type:"string",id:6,comment:null,parsedOptions:null}},comment:null}},comment:null},GeneratedCodeInfo:{fields:{annotation:{rule:"repeated",type:"Annotation",id:1,comment:null,parsedOptions:null}},nested:{Annotation:{fields:{path:{rule:"repeated",type:"int32",id:1,comment:null,parsedOptions:[{packed:!0,__comment:null}]},sourceFile:{type:"string",id:2,comment:null,parsedOptions:null},begin:{type:"int32",id:3,comment:null,parsedOptions:null},end:{type:"int32",id:4,comment:null,parsedOptions:null}},comment:null}},comment:null},Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}},comment:null},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}},comment:null},NullValue:{values:{NULL_VALUE:0},comments:{}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}},comment:null},DoubleValue:{fields:{value:{type:"double",id:1}},comment:null},FloatValue:{fields:{value:{type:"float",id:1}},comment:null},Int64Value:{fields:{value:{type:"int64",id:1}},comment:null},UInt64Value:{fields:{value:{type:"uint64",id:1}},comment:null},Int32Value:{fields:{value:{type:"int32",id:1}},comment:null},UInt32Value:{fields:{value:{type:"uint32",id:1}},comment:null},BoolValue:{fields:{value:{type:"bool",id:1}},comment:null},StringValue:{fields:{value:{type:"string",id:1}},comment:null},BytesValue:{fields:{value:{type:"bytes",id:1}},comment:null},Timestamp:{fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}},comment:null},FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}},comment:null}}},api:{options:{go_package:"google.golang.org/genproto/googleapis/api/annotations;annotations",java_multiple_files:!0,java_outer_classname:"HttpProto",java_package:"com.google.api",objc_class_prefix:"GAPI",cc_enable_arenas:!0},nested:{http:{type:"HttpRule",id:72295728,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},Http:{fields:{rules:{rule:"repeated",type:"HttpRule",id:1,comment:null,parsedOptions:null}},comment:null},HttpRule:{oneofs:{pattern:{oneof:["get","put","post","delete","patch","custom"],comment:null}},fields:{selector:{type:"string",id:1,comment:null,parsedOptions:null},get:{type:"string",id:2,comment:null,parsedOptions:null},put:{type:"string",id:3,comment:null,parsedOptions:null},post:{type:"string",id:4,comment:null,parsedOptions:null},delete:{type:"string",id:5,comment:null,parsedOptions:null},patch:{type:"string",id:6,comment:null,parsedOptions:null},custom:{type:"CustomHttpPattern",id:8,comment:null,parsedOptions:null},body:{type:"string",id:7,comment:null,parsedOptions:null},additionalBindings:{rule:"repeated",type:"HttpRule",id:11,comment:null,parsedOptions:null}},comment:null},CustomHttpPattern:{fields:{kind:{type:"string",id:1,comment:null,parsedOptions:null},path:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null}}}}}}});return $root.__lookup=function(){return e=>t.lookup(e)},$root.__lookup()}};$root.wix=function(){const e={};return e.api=function(){const e={};return e.ActionPayload=function(){class ActionPayload{constructor(e){this.customSlug=e&&e.customSlug}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.customSlug?t.customSlug=e.customSlug:o&&(t.customSlug=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.ActionPayload;return null!=e.customSlug?t.customSlug=e.customSlug:!1!==o?t.customSlug="":delete t.customSlug,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.customSlug&&(t.customSlug=e.customSlug),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.ActionPayload;return null!=e.customSlug?t.customSlug=e.customSlug:t.customSlug="",t}}}return __builtIn.Object.defineProperty(ActionPayload.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.ActionPayload"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ActionPayload.prototype,"__fqn__",{value:"wix.api.ActionPayload",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ActionPayload.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ActionPayload.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ActionPayload}(),e.ReferenceEntityField=function(){class ReferenceEntityField{constructor(e){this.path=e&&e.path}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path:o&&(t.path=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.ReferenceEntityField;return null!=e.path?t.path=e.path:!1!==o?t.path="":delete t.path,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.path&&(t.path=e.path),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.ReferenceEntityField;return null!=e.path?t.path=e.path:t.path="",t}}}return __builtIn.Object.defineProperty(ReferenceEntityField.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.ReferenceEntityField"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReferenceEntityField.prototype,"__fqn__",{value:"wix.api.ReferenceEntityField",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReferenceEntityField.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReferenceEntityField.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ReferenceEntityField}(),e.CacheSettings=function(){class CacheSettings{constructor(e){this.maxAgeSeconds=e&&e.maxAgeSeconds,this.manual=e&&e.manual}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.maxAgeSeconds?t.maxAgeSeconds=e.maxAgeSeconds:o&&(t.maxAgeSeconds=0),null!=e.manual?t.manual=e.manual:o&&(t.manual=!1),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.CacheSettings;return null!=e.maxAgeSeconds?t.maxAgeSeconds=e.maxAgeSeconds:!1!==o?t.maxAgeSeconds=0:delete t.maxAgeSeconds,null!=e.manual?t.manual=e.manual:!1!==o?t.manual=!1:delete t.manual,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.maxAgeSeconds&&(t.maxAgeSeconds=e.maxAgeSeconds),null!=e.manual&&(t.manual=e.manual),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.CacheSettings;return null!=e.maxAgeSeconds?t.maxAgeSeconds=e.maxAgeSeconds:t.maxAgeSeconds=0,null!=e.manual?t.manual=e.manual:t.manual=!1,t}}}return __builtIn.Object.defineProperty(CacheSettings.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.CacheSettings"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CacheSettings.prototype,"__fqn__",{value:"wix.api.CacheSettings",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CacheSettings.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CacheSettings.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),CacheSettings}(),e.FieldSet=function(){class FieldSet{constructor(e){this.field=e&&e.field}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.field?t.field=e.field.map(e=>e):o&&(t.field=[]),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.FieldSet;return null!=e.field?t.field=Array.isArray(e.field)?e.field.map(e=>e):e.field:!1!==o?t.field=[]:delete t.field,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.field&&(t.field=e.field.map(e=>e)),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.FieldSet;return null!=e.field?t.field=e.field.map(e=>e):t.field=[],t}}}return __builtIn.Object.defineProperty(FieldSet.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.FieldSet"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldSet.prototype,"__fqn__",{value:"wix.api.FieldSet",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldSet.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldSet.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),FieldSet}(),e.Deprecated=function(){class Deprecated{constructor(e){this.replacedBy=e&&e.replacedBy,this.targetRemovalDate=e&&e.targetRemovalDate}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.replacedBy?t.replacedBy=e.replacedBy:o&&(t.replacedBy=""),null!=e.targetRemovalDate?t.targetRemovalDate=e.targetRemovalDate:o&&(t.targetRemovalDate=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Deprecated;return null!=e.replacedBy?t.replacedBy=e.replacedBy:!1!==o?t.replacedBy="":delete t.replacedBy,null!=e.targetRemovalDate?t.targetRemovalDate=e.targetRemovalDate:!1!==o?t.targetRemovalDate="":delete t.targetRemovalDate,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.replacedBy&&(t.replacedBy=e.replacedBy),null!=e.targetRemovalDate&&(t.targetRemovalDate=e.targetRemovalDate),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Deprecated;return null!=e.replacedBy?t.replacedBy=e.replacedBy:t.replacedBy="",null!=e.targetRemovalDate?t.targetRemovalDate=e.targetRemovalDate:t.targetRemovalDate="",t}}}return __builtIn.Object.defineProperty(Deprecated.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Deprecated"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Deprecated.prototype,"__fqn__",{value:"wix.api.Deprecated",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Deprecated.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Deprecated.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Deprecated}(),e.Unique=function(){class Unique{constructor(e){this.field=e&&e.field}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.field?t.field=e.field.map(e=>e):o&&(t.field=[]),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Unique;return null!=e.field?t.field=Array.isArray(e.field)?e.field.map(e=>e):e.field:!1!==o?t.field=[]:delete t.field,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.field&&(t.field=e.field.map(e=>e)),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Unique;return null!=e.field?t.field=e.field.map(e=>e):t.field=[],t}}}return __builtIn.Object.defineProperty(Unique.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Unique"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Unique.prototype,"__fqn__",{value:"wix.api.Unique",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Unique.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Unique.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Unique}(),e.Crud=function(){class Crud{constructor(e){this.method=e&&e.method,this.createOptions=e&&e.createOptions,this.getOptions=e&&e.getOptions,this.updateOptions=e&&e.updateOptions,this.deleteOptions=e&&e.deleteOptions,this.listOptions=e&&e.listOptions,this.queryOptions=e&&e.queryOptions,this.searchOptions=e&&e.searchOptions,this.bulkCreateOptions=e&&e.bulkCreateOptions,this.bulkUpdateOptions=e&&e.bulkUpdateOptions,this.bulkUpdateByFilterOptions=e&&e.bulkUpdateByFilterOptions,this.bulkDeleteOptions=e&&e.bulkDeleteOptions,this.bulkDeleteByFilterOptions=e&&e.bulkDeleteByFilterOptions,this.upsertOptions=e&&e.upsertOptions,this.bulkUpsertOptions=e&&e.bulkUpsertOptions,this.listDeletedOptions=e&&e.listDeletedOptions,this.getDeletedOptions=e&&e.getDeletedOptions,this.restoreFromTrashbinOptions=e&&e.restoreFromTrashbinOptions,this.removeFromTrashbinOptions=e&&e.removeFromTrashbinOptions,this.countOptions=e&&e.countOptions,this.searchRelatedOptions=e&&e.searchRelatedOptions,this.updateExtendedFieldsOptions=e&&e.updateExtendedFieldsOptions,this.customActionOptions=e&&e.customActionOptions,this.bulkUpdateTagsOptions=e&&e.bulkUpdateTagsOptions,this.bulkUpdateTagsByFilterOptions=e&&e.bulkUpdateTagsByFilterOptions}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.method?n.method=$root.wix.api.Crud.Method[e.method]:o&&(n.method="UNKNOWN_METHOD"),null!=e.createOptions?n.createOptions=$root.wix.api.CreateMethodOptions.toJSON(e.createOptions,t,o):o&&delete n.createOptions,null!=e.getOptions?n.getOptions=$root.wix.api.GetItemMethodOptions.toJSON(e.getOptions,t,o):o&&delete n.getOptions,null!=e.updateOptions?n.updateOptions=$root.wix.api.UpdateMethodOptions.toJSON(e.updateOptions,t,o):o&&delete n.updateOptions,null!=e.deleteOptions?n.deleteOptions=$root.wix.api.DeleteMethodOptions.toJSON(e.deleteOptions,t,o):o&&delete n.deleteOptions,null!=e.listOptions?n.listOptions=$root.wix.api.ListMethodOptions.toJSON(e.listOptions,t,o):o&&delete n.listOptions,null!=e.queryOptions?n.queryOptions=$root.wix.api.QueryMethodOptions.toJSON(e.queryOptions,t,o):o&&delete n.queryOptions,null!=e.searchOptions?n.searchOptions=$root.wix.api.SearchMethodOptions.toJSON(e.searchOptions,t,o):o&&delete n.searchOptions,null!=e.bulkCreateOptions?n.bulkCreateOptions=$root.wix.api.BulkCreateMethodOptions.toJSON(e.bulkCreateOptions,t,o):o&&delete n.bulkCreateOptions,null!=e.bulkUpdateOptions?n.bulkUpdateOptions=$root.wix.api.BulkUpdateMethodOptions.toJSON(e.bulkUpdateOptions,t,o):o&&delete n.bulkUpdateOptions,null!=e.bulkUpdateByFilterOptions?n.bulkUpdateByFilterOptions=$root.wix.api.BulkUpdateByFilterMethodOptions.toJSON(e.bulkUpdateByFilterOptions,t,o):o&&delete n.bulkUpdateByFilterOptions,null!=e.bulkDeleteOptions?n.bulkDeleteOptions=$root.wix.api.BulkDeleteMethodOptions.toJSON(e.bulkDeleteOptions,t,o):o&&delete n.bulkDeleteOptions,null!=e.bulkDeleteByFilterOptions?n.bulkDeleteByFilterOptions=$root.wix.api.BulkDeleteByFilterMethodOptions.toJSON(e.bulkDeleteByFilterOptions,t,o):o&&delete n.bulkDeleteByFilterOptions,null!=e.upsertOptions?n.upsertOptions=$root.wix.api.UpsertMethodOptions.toJSON(e.upsertOptions,t,o):o&&delete n.upsertOptions,null!=e.bulkUpsertOptions?n.bulkUpsertOptions=$root.wix.api.BulkUpsertMethodOptions.toJSON(e.bulkUpsertOptions,t,o):o&&delete n.bulkUpsertOptions,null!=e.listDeletedOptions?n.listDeletedOptions=$root.wix.api.ListDeletedMethodOptions.toJSON(e.listDeletedOptions,t,o):o&&delete n.listDeletedOptions,null!=e.getDeletedOptions?n.getDeletedOptions=$root.wix.api.GetDeletedMethodOptions.toJSON(e.getDeletedOptions,t,o):o&&delete n.getDeletedOptions,null!=e.restoreFromTrashbinOptions?n.restoreFromTrashbinOptions=$root.wix.api.RestoreFromTrashbinMethodOptions.toJSON(e.restoreFromTrashbinOptions,t,o):o&&delete n.restoreFromTrashbinOptions,null!=e.removeFromTrashbinOptions?n.removeFromTrashbinOptions=$root.wix.api.RemoveFromTrashbinMethodOptions.toJSON(e.removeFromTrashbinOptions,t,o):o&&delete n.removeFromTrashbinOptions,null!=e.countOptions?n.countOptions=$root.wix.api.CountOptions.toJSON(e.countOptions,t,o):o&&delete n.countOptions,null!=e.searchRelatedOptions?n.searchRelatedOptions=$root.wix.api.SearchRelatedOptions.toJSON(e.searchRelatedOptions,t,o):o&&delete n.searchRelatedOptions,null!=e.updateExtendedFieldsOptions?n.updateExtendedFieldsOptions=$root.wix.api.UpdateExtendedFieldsOptions.toJSON(e.updateExtendedFieldsOptions,t,o):o&&delete n.updateExtendedFieldsOptions,null!=e.customActionOptions?n.customActionOptions=$root.wix.api.CustomActionOptions.toJSON(e.customActionOptions,t,o):o&&delete n.customActionOptions,null!=e.bulkUpdateTagsOptions?n.bulkUpdateTagsOptions=$root.wix.api.BulkUpdateTagsMethodOptions.toJSON(e.bulkUpdateTagsOptions,t,o):o&&delete n.bulkUpdateTagsOptions,null!=e.bulkUpdateTagsByFilterOptions?n.bulkUpdateTagsByFilterOptions=$root.wix.api.BulkUpdateTagsByFilterMethodOptions.toJSON(e.bulkUpdateTagsByFilterOptions,t,o):o&&delete n.bulkUpdateTagsByFilterOptions,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.Crud;return null!=e.method?n.method="string"==typeof e.method?e.method:$root.wix.api.Crud.Method[e.method]:!1!==o?n.method="UNKNOWN_METHOD":delete n.method,null!=e.createOptions?n.createOptions=$root.wix.api.CreateMethodOptions.fromJSON(e.createOptions,t):delete n.createOptions,null!=e.getOptions?n.getOptions=$root.wix.api.GetItemMethodOptions.fromJSON(e.getOptions,t):delete n.getOptions,null!=e.updateOptions?n.updateOptions=$root.wix.api.UpdateMethodOptions.fromJSON(e.updateOptions,t):delete n.updateOptions,null!=e.deleteOptions?n.deleteOptions=$root.wix.api.DeleteMethodOptions.fromJSON(e.deleteOptions,t):delete n.deleteOptions,null!=e.listOptions?n.listOptions=$root.wix.api.ListMethodOptions.fromJSON(e.listOptions,t):delete n.listOptions,null!=e.queryOptions?n.queryOptions=$root.wix.api.QueryMethodOptions.fromJSON(e.queryOptions,t):delete n.queryOptions,null!=e.searchOptions?n.searchOptions=$root.wix.api.SearchMethodOptions.fromJSON(e.searchOptions,t):delete n.searchOptions,null!=e.bulkCreateOptions?n.bulkCreateOptions=$root.wix.api.BulkCreateMethodOptions.fromJSON(e.bulkCreateOptions,t):delete n.bulkCreateOptions,null!=e.bulkUpdateOptions?n.bulkUpdateOptions=$root.wix.api.BulkUpdateMethodOptions.fromJSON(e.bulkUpdateOptions,t):delete n.bulkUpdateOptions,null!=e.bulkUpdateByFilterOptions?n.bulkUpdateByFilterOptions=$root.wix.api.BulkUpdateByFilterMethodOptions.fromJSON(e.bulkUpdateByFilterOptions,t):delete n.bulkUpdateByFilterOptions,null!=e.bulkDeleteOptions?n.bulkDeleteOptions=$root.wix.api.BulkDeleteMethodOptions.fromJSON(e.bulkDeleteOptions,t):delete n.bulkDeleteOptions,null!=e.bulkDeleteByFilterOptions?n.bulkDeleteByFilterOptions=$root.wix.api.BulkDeleteByFilterMethodOptions.fromJSON(e.bulkDeleteByFilterOptions,t):delete n.bulkDeleteByFilterOptions,null!=e.upsertOptions?n.upsertOptions=$root.wix.api.UpsertMethodOptions.fromJSON(e.upsertOptions,t):delete n.upsertOptions,null!=e.bulkUpsertOptions?n.bulkUpsertOptions=$root.wix.api.BulkUpsertMethodOptions.fromJSON(e.bulkUpsertOptions,t):delete n.bulkUpsertOptions,null!=e.listDeletedOptions?n.listDeletedOptions=$root.wix.api.ListDeletedMethodOptions.fromJSON(e.listDeletedOptions,t):delete n.listDeletedOptions,null!=e.getDeletedOptions?n.getDeletedOptions=$root.wix.api.GetDeletedMethodOptions.fromJSON(e.getDeletedOptions,t):delete n.getDeletedOptions,null!=e.restoreFromTrashbinOptions?n.restoreFromTrashbinOptions=$root.wix.api.RestoreFromTrashbinMethodOptions.fromJSON(e.restoreFromTrashbinOptions,t):delete n.restoreFromTrashbinOptions,null!=e.removeFromTrashbinOptions?n.removeFromTrashbinOptions=$root.wix.api.RemoveFromTrashbinMethodOptions.fromJSON(e.removeFromTrashbinOptions,t):delete n.removeFromTrashbinOptions,null!=e.countOptions?n.countOptions=$root.wix.api.CountOptions.fromJSON(e.countOptions,t):delete n.countOptions,null!=e.searchRelatedOptions?n.searchRelatedOptions=$root.wix.api.SearchRelatedOptions.fromJSON(e.searchRelatedOptions,t):delete n.searchRelatedOptions,null!=e.updateExtendedFieldsOptions?n.updateExtendedFieldsOptions=$root.wix.api.UpdateExtendedFieldsOptions.fromJSON(e.updateExtendedFieldsOptions,t):delete n.updateExtendedFieldsOptions,null!=e.customActionOptions?n.customActionOptions=$root.wix.api.CustomActionOptions.fromJSON(e.customActionOptions,t):delete n.customActionOptions,null!=e.bulkUpdateTagsOptions?n.bulkUpdateTagsOptions=$root.wix.api.BulkUpdateTagsMethodOptions.fromJSON(e.bulkUpdateTagsOptions,t):delete n.bulkUpdateTagsOptions,null!=e.bulkUpdateTagsByFilterOptions?n.bulkUpdateTagsByFilterOptions=$root.wix.api.BulkUpdateTagsByFilterMethodOptions.fromJSON(e.bulkUpdateTagsByFilterOptions,t):delete n.bulkUpdateTagsByFilterOptions,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.method&&(o.method=e.method),null!=e.createOptions&&(o.createOptions=$root.wix.api.CreateMethodOptions.toGRPC(e.createOptions,t)),null!=e.getOptions&&(o.getOptions=$root.wix.api.GetItemMethodOptions.toGRPC(e.getOptions,t)),null!=e.updateOptions&&(o.updateOptions=$root.wix.api.UpdateMethodOptions.toGRPC(e.updateOptions,t)),null!=e.deleteOptions&&(o.deleteOptions=$root.wix.api.DeleteMethodOptions.toGRPC(e.deleteOptions,t)),null!=e.listOptions&&(o.listOptions=$root.wix.api.ListMethodOptions.toGRPC(e.listOptions,t)),null!=e.queryOptions&&(o.queryOptions=$root.wix.api.QueryMethodOptions.toGRPC(e.queryOptions,t)),null!=e.searchOptions&&(o.searchOptions=$root.wix.api.SearchMethodOptions.toGRPC(e.searchOptions,t)),null!=e.bulkCreateOptions&&(o.bulkCreateOptions=$root.wix.api.BulkCreateMethodOptions.toGRPC(e.bulkCreateOptions,t)),null!=e.bulkUpdateOptions&&(o.bulkUpdateOptions=$root.wix.api.BulkUpdateMethodOptions.toGRPC(e.bulkUpdateOptions,t)),null!=e.bulkUpdateByFilterOptions&&(o.bulkUpdateByFilterOptions=$root.wix.api.BulkUpdateByFilterMethodOptions.toGRPC(e.bulkUpdateByFilterOptions,t)),null!=e.bulkDeleteOptions&&(o.bulkDeleteOptions=$root.wix.api.BulkDeleteMethodOptions.toGRPC(e.bulkDeleteOptions,t)),null!=e.bulkDeleteByFilterOptions&&(o.bulkDeleteByFilterOptions=$root.wix.api.BulkDeleteByFilterMethodOptions.toGRPC(e.bulkDeleteByFilterOptions,t)),null!=e.upsertOptions&&(o.upsertOptions=$root.wix.api.UpsertMethodOptions.toGRPC(e.upsertOptions,t)),null!=e.bulkUpsertOptions&&(o.bulkUpsertOptions=$root.wix.api.BulkUpsertMethodOptions.toGRPC(e.bulkUpsertOptions,t)),null!=e.listDeletedOptions&&(o.listDeletedOptions=$root.wix.api.ListDeletedMethodOptions.toGRPC(e.listDeletedOptions,t)),null!=e.getDeletedOptions&&(o.getDeletedOptions=$root.wix.api.GetDeletedMethodOptions.toGRPC(e.getDeletedOptions,t)),null!=e.restoreFromTrashbinOptions&&(o.restoreFromTrashbinOptions=$root.wix.api.RestoreFromTrashbinMethodOptions.toGRPC(e.restoreFromTrashbinOptions,t)),null!=e.removeFromTrashbinOptions&&(o.removeFromTrashbinOptions=$root.wix.api.RemoveFromTrashbinMethodOptions.toGRPC(e.removeFromTrashbinOptions,t)),null!=e.countOptions&&(o.countOptions=$root.wix.api.CountOptions.toGRPC(e.countOptions,t)),null!=e.searchRelatedOptions&&(o.searchRelatedOptions=$root.wix.api.SearchRelatedOptions.toGRPC(e.searchRelatedOptions,t)),null!=e.updateExtendedFieldsOptions&&(o.updateExtendedFieldsOptions=$root.wix.api.UpdateExtendedFieldsOptions.toGRPC(e.updateExtendedFieldsOptions,t)),null!=e.customActionOptions&&(o.customActionOptions=$root.wix.api.CustomActionOptions.toGRPC(e.customActionOptions,t)),null!=e.bulkUpdateTagsOptions&&(o.bulkUpdateTagsOptions=$root.wix.api.BulkUpdateTagsMethodOptions.toGRPC(e.bulkUpdateTagsOptions,t)),null!=e.bulkUpdateTagsByFilterOptions&&(o.bulkUpdateTagsByFilterOptions=$root.wix.api.BulkUpdateTagsByFilterMethodOptions.toGRPC(e.bulkUpdateTagsByFilterOptions,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.Crud;return null!=e.method?o.method=e.method:o.method="UNKNOWN_METHOD",null!=e.createOptions?o.createOptions=$root.wix.api.CreateMethodOptions.fromGRPC(e.createOptions,t):delete o.createOptions,null!=e.getOptions?o.getOptions=$root.wix.api.GetItemMethodOptions.fromGRPC(e.getOptions,t):delete o.getOptions,null!=e.updateOptions?o.updateOptions=$root.wix.api.UpdateMethodOptions.fromGRPC(e.updateOptions,t):delete o.updateOptions,null!=e.deleteOptions?o.deleteOptions=$root.wix.api.DeleteMethodOptions.fromGRPC(e.deleteOptions,t):delete o.deleteOptions,null!=e.listOptions?o.listOptions=$root.wix.api.ListMethodOptions.fromGRPC(e.listOptions,t):delete o.listOptions,null!=e.queryOptions?o.queryOptions=$root.wix.api.QueryMethodOptions.fromGRPC(e.queryOptions,t):delete o.queryOptions,null!=e.searchOptions?o.searchOptions=$root.wix.api.SearchMethodOptions.fromGRPC(e.searchOptions,t):delete o.searchOptions,null!=e.bulkCreateOptions?o.bulkCreateOptions=$root.wix.api.BulkCreateMethodOptions.fromGRPC(e.bulkCreateOptions,t):delete o.bulkCreateOptions,null!=e.bulkUpdateOptions?o.bulkUpdateOptions=$root.wix.api.BulkUpdateMethodOptions.fromGRPC(e.bulkUpdateOptions,t):delete o.bulkUpdateOptions,null!=e.bulkUpdateByFilterOptions?o.bulkUpdateByFilterOptions=$root.wix.api.BulkUpdateByFilterMethodOptions.fromGRPC(e.bulkUpdateByFilterOptions,t):delete o.bulkUpdateByFilterOptions,null!=e.bulkDeleteOptions?o.bulkDeleteOptions=$root.wix.api.BulkDeleteMethodOptions.fromGRPC(e.bulkDeleteOptions,t):delete o.bulkDeleteOptions,null!=e.bulkDeleteByFilterOptions?o.bulkDeleteByFilterOptions=$root.wix.api.BulkDeleteByFilterMethodOptions.fromGRPC(e.bulkDeleteByFilterOptions,t):delete o.bulkDeleteByFilterOptions,null!=e.upsertOptions?o.upsertOptions=$root.wix.api.UpsertMethodOptions.fromGRPC(e.upsertOptions,t):delete o.upsertOptions,null!=e.bulkUpsertOptions?o.bulkUpsertOptions=$root.wix.api.BulkUpsertMethodOptions.fromGRPC(e.bulkUpsertOptions,t):delete o.bulkUpsertOptions,null!=e.listDeletedOptions?o.listDeletedOptions=$root.wix.api.ListDeletedMethodOptions.fromGRPC(e.listDeletedOptions,t):delete o.listDeletedOptions,null!=e.getDeletedOptions?o.getDeletedOptions=$root.wix.api.GetDeletedMethodOptions.fromGRPC(e.getDeletedOptions,t):delete o.getDeletedOptions,null!=e.restoreFromTrashbinOptions?o.restoreFromTrashbinOptions=$root.wix.api.RestoreFromTrashbinMethodOptions.fromGRPC(e.restoreFromTrashbinOptions,t):delete o.restoreFromTrashbinOptions,null!=e.removeFromTrashbinOptions?o.removeFromTrashbinOptions=$root.wix.api.RemoveFromTrashbinMethodOptions.fromGRPC(e.removeFromTrashbinOptions,t):delete o.removeFromTrashbinOptions,null!=e.countOptions?o.countOptions=$root.wix.api.CountOptions.fromGRPC(e.countOptions,t):delete o.countOptions,null!=e.searchRelatedOptions?o.searchRelatedOptions=$root.wix.api.SearchRelatedOptions.fromGRPC(e.searchRelatedOptions,t):delete o.searchRelatedOptions,null!=e.updateExtendedFieldsOptions?o.updateExtendedFieldsOptions=$root.wix.api.UpdateExtendedFieldsOptions.fromGRPC(e.updateExtendedFieldsOptions,t):delete o.updateExtendedFieldsOptions,null!=e.customActionOptions?o.customActionOptions=$root.wix.api.CustomActionOptions.fromGRPC(e.customActionOptions,t):delete o.customActionOptions,null!=e.bulkUpdateTagsOptions?o.bulkUpdateTagsOptions=$root.wix.api.BulkUpdateTagsMethodOptions.fromGRPC(e.bulkUpdateTagsOptions,t):delete o.bulkUpdateTagsOptions,null!=e.bulkUpdateTagsByFilterOptions?o.bulkUpdateTagsByFilterOptions=$root.wix.api.BulkUpdateTagsByFilterMethodOptions.fromGRPC(e.bulkUpdateTagsByFilterOptions,t):delete o.bulkUpdateTagsByFilterOptions,o}}}return Crud.Method={UNKNOWN_METHOD:"UNKNOWN_METHOD",0:"UNKNOWN_METHOD",CREATE:"CREATE",1:"CREATE",GET_ITEM:"GET_ITEM",2:"GET_ITEM",UPDATE:"UPDATE",3:"UPDATE",DELETE:"DELETE",4:"DELETE",UPSERT:"UPSERT",12:"UPSERT",LIST:"LIST",5:"LIST",QUERY:"QUERY",6:"QUERY",SEARCH:"SEARCH",18:"SEARCH",BULK_CREATE:"BULK_CREATE",7:"BULK_CREATE",BULK_UPDATE:"BULK_UPDATE",8:"BULK_UPDATE",BULK_UPDATE_BY_FILTER:"BULK_UPDATE_BY_FILTER",9:"BULK_UPDATE_BY_FILTER",BULK_DELETE:"BULK_DELETE",10:"BULK_DELETE",BULK_DELETE_BY_FILTER:"BULK_DELETE_BY_FILTER",11:"BULK_DELETE_BY_FILTER",BULK_UPSERT:"BULK_UPSERT",13:"BULK_UPSERT",LIST_DELETED:"LIST_DELETED",14:"LIST_DELETED",GET_DELETED:"GET_DELETED",15:"GET_DELETED",RESTORE_FROM_TRASHBIN:"RESTORE_FROM_TRASHBIN",16:"RESTORE_FROM_TRASHBIN",REMOVE_FROM_TRASHBIN:"REMOVE_FROM_TRASHBIN",17:"REMOVE_FROM_TRASHBIN",COUNT:"COUNT",19:"COUNT",SEARCH_RELATED:"SEARCH_RELATED",20:"SEARCH_RELATED",UPDATE_EXTENDED_FIELDS:"UPDATE_EXTENDED_FIELDS",21:"UPDATE_EXTENDED_FIELDS",BULK_UPDATE_TAGS:"BULK_UPDATE_TAGS",22:"BULK_UPDATE_TAGS",BULK_UPDATE_TAGS_BY_FILTER:"BULK_UPDATE_TAGS_BY_FILTER",23:"BULK_UPDATE_TAGS_BY_FILTER",CUSTOM_ACTION:"CUSTOM_ACTION",24:"CUSTOM_ACTION"},Crud.Method={UNKNOWN_METHOD:"UNKNOWN_METHOD",0:"UNKNOWN_METHOD",CREATE:"CREATE",1:"CREATE",GET_ITEM:"GET_ITEM",2:"GET_ITEM",UPDATE:"UPDATE",3:"UPDATE",DELETE:"DELETE",4:"DELETE",UPSERT:"UPSERT",12:"UPSERT",LIST:"LIST",5:"LIST",QUERY:"QUERY",6:"QUERY",SEARCH:"SEARCH",18:"SEARCH",BULK_CREATE:"BULK_CREATE",7:"BULK_CREATE",BULK_UPDATE:"BULK_UPDATE",8:"BULK_UPDATE",BULK_UPDATE_BY_FILTER:"BULK_UPDATE_BY_FILTER",9:"BULK_UPDATE_BY_FILTER",BULK_DELETE:"BULK_DELETE",10:"BULK_DELETE",BULK_DELETE_BY_FILTER:"BULK_DELETE_BY_FILTER",11:"BULK_DELETE_BY_FILTER",BULK_UPSERT:"BULK_UPSERT",13:"BULK_UPSERT",LIST_DELETED:"LIST_DELETED",14:"LIST_DELETED",GET_DELETED:"GET_DELETED",15:"GET_DELETED",RESTORE_FROM_TRASHBIN:"RESTORE_FROM_TRASHBIN",16:"RESTORE_FROM_TRASHBIN",REMOVE_FROM_TRASHBIN:"REMOVE_FROM_TRASHBIN",17:"REMOVE_FROM_TRASHBIN",COUNT:"COUNT",19:"COUNT",SEARCH_RELATED:"SEARCH_RELATED",20:"SEARCH_RELATED",UPDATE_EXTENDED_FIELDS:"UPDATE_EXTENDED_FIELDS",21:"UPDATE_EXTENDED_FIELDS",BULK_UPDATE_TAGS:"BULK_UPDATE_TAGS",22:"BULK_UPDATE_TAGS",BULK_UPDATE_TAGS_BY_FILTER:"BULK_UPDATE_TAGS_BY_FILTER",23:"BULK_UPDATE_TAGS_BY_FILTER",CUSTOM_ACTION:"CUSTOM_ACTION",24:"CUSTOM_ACTION"},__builtIn.Object.defineProperty(Crud.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Crud"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Crud.prototype,"__fqn__",{value:"wix.api.Crud",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Crud.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Crud.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Crud}(),e.Paging=function(){class Paging{constructor(e){this.type=e&&e.type,this.pagingMetadataField=e&&e.pagingMetadataField,this.cursorPagingMetadataField=e&&e.cursorPagingMetadataField,this.offsetPagingMetadataField=e&&e.offsetPagingMetadataField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.type?t.type=$root.wix.api.Paging.Type[e.type]:o&&(t.type="UNKNOWN_TYPE"),null!=e.pagingMetadataField?t.pagingMetadataField=e.pagingMetadataField:o&&(t.pagingMetadataField=""),null!=e.cursorPagingMetadataField?t.cursorPagingMetadataField=e.cursorPagingMetadataField:o&&(t.cursorPagingMetadataField=""),null!=e.offsetPagingMetadataField?t.offsetPagingMetadataField=e.offsetPagingMetadataField:o&&(t.offsetPagingMetadataField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Paging;return null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.api.Paging.Type[e.type]:!1!==o?t.type="UNKNOWN_TYPE":delete t.type,null!=e.pagingMetadataField?t.pagingMetadataField=e.pagingMetadataField:!1!==o?t.pagingMetadataField="":delete t.pagingMetadataField,null!=e.cursorPagingMetadataField?t.cursorPagingMetadataField=e.cursorPagingMetadataField:!1!==o?t.cursorPagingMetadataField="":delete t.cursorPagingMetadataField,null!=e.offsetPagingMetadataField?t.offsetPagingMetadataField=e.offsetPagingMetadataField:!1!==o?t.offsetPagingMetadataField="":delete t.offsetPagingMetadataField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),null!=e.pagingMetadataField&&(t.pagingMetadataField=e.pagingMetadataField),null!=e.cursorPagingMetadataField&&(t.cursorPagingMetadataField=e.cursorPagingMetadataField),null!=e.offsetPagingMetadataField&&(t.offsetPagingMetadataField=e.offsetPagingMetadataField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Paging;return null!=e.type?t.type=e.type:t.type="UNKNOWN_TYPE",null!=e.pagingMetadataField?t.pagingMetadataField=e.pagingMetadataField:t.pagingMetadataField="",null!=e.cursorPagingMetadataField?t.cursorPagingMetadataField=e.cursorPagingMetadataField:t.cursorPagingMetadataField="",null!=e.offsetPagingMetadataField?t.offsetPagingMetadataField=e.offsetPagingMetadataField:t.offsetPagingMetadataField="",t}}}return Paging.Type={UNKNOWN_TYPE:"UNKNOWN_TYPE",0:"UNKNOWN_TYPE",OFFSET:"OFFSET",1:"OFFSET",CURSOR:"CURSOR",2:"CURSOR",BOTH:"BOTH",3:"BOTH"},Paging.Type={UNKNOWN_TYPE:"UNKNOWN_TYPE",0:"UNKNOWN_TYPE",OFFSET:"OFFSET",1:"OFFSET",CURSOR:"CURSOR",2:"CURSOR",BOTH:"BOTH",3:"BOTH"},__builtIn.Object.defineProperty(Paging.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Paging"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Paging.prototype,"__fqn__",{value:"wix.api.Paging",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Paging.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Paging.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Paging}(),e.CustomActionOptions=function(){class CustomActionOptions{constructor(e){this.readOperation=e&&e.readOperation,this.wql=e&&e.wql}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.readOperation?n.readOperation=e.readOperation:o&&(n.readOperation=!1),null!=e.wql?n.wql=$root.wix.api.WqlOptions.toJSON(e.wql,t,o):o&&delete n.wql,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.CustomActionOptions;return null!=e.readOperation?n.readOperation=e.readOperation:!1!==o?n.readOperation=!1:delete n.readOperation,null!=e.wql?n.wql=$root.wix.api.WqlOptions.fromJSON(e.wql,t):delete n.wql,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.readOperation&&(o.readOperation=e.readOperation),null!=e.wql&&(o.wql=$root.wix.api.WqlOptions.toGRPC(e.wql,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.CustomActionOptions;return null!=e.readOperation?o.readOperation=e.readOperation:o.readOperation=!1,null!=e.wql?o.wql=$root.wix.api.WqlOptions.fromGRPC(e.wql,t):delete o.wql,o}}}return __builtIn.Object.defineProperty(CustomActionOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.CustomActionOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CustomActionOptions.prototype,"__fqn__",{value:"wix.api.CustomActionOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CustomActionOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CustomActionOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),CustomActionOptions}(),e.WqlOptions=function(){class WqlOptions{constructor(e){this.queryOptionsName=e&&e.queryOptionsName,this.filterField=e&&e.filterField,this.queryField=e&&e.queryField,this.searchField=e&&e.searchField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:o&&(t.queryOptionsName=""),null!=e.filterField?t.filterField=e.filterField:o&&delete t.filterField,null!=e.queryField?t.queryField=e.queryField:o&&delete t.queryField,null!=e.searchField?t.searchField=e.searchField:o&&delete t.searchField,t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.WqlOptions;return null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:!1!==o?t.queryOptionsName="":delete t.queryOptionsName,null!=e.filterField?t.filterField=e.filterField:delete t.filterField,null!=e.queryField?t.queryField=e.queryField:delete t.queryField,null!=e.searchField?t.searchField=e.searchField:delete t.searchField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.queryOptionsName&&(t.queryOptionsName=e.queryOptionsName),null!=e.filterField&&(t.filterField=e.filterField),null!=e.queryField&&(t.queryField=e.queryField),null!=e.searchField&&(t.searchField=e.searchField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.WqlOptions;return null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:t.queryOptionsName="",null!=e.filterField?t.filterField=e.filterField:delete t.filterField,null!=e.queryField?t.queryField=e.queryField:delete t.queryField,null!=e.searchField?t.searchField=e.searchField:delete t.searchField,t}}}return __builtIn.Object.defineProperty(WqlOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.WqlOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(WqlOptions.prototype,"__fqn__",{value:"wix.api.WqlOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(WqlOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(WqlOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),WqlOptions}(),e.CreateMethodOptions=function(){class CreateMethodOptions{constructor(e){this.itemField=e&&e.itemField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:o&&(t.itemField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.CreateMethodOptions;return null!=e.itemField?t.itemField=e.itemField:!1!==o?t.itemField="":delete t.itemField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemField&&(t.itemField=e.itemField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.CreateMethodOptions;return null!=e.itemField?t.itemField=e.itemField:t.itemField="",t}}}return __builtIn.Object.defineProperty(CreateMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.CreateMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CreateMethodOptions.prototype,"__fqn__",{value:"wix.api.CreateMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CreateMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CreateMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),CreateMethodOptions}(),e.GetItemMethodOptions=function(){class GetItemMethodOptions{constructor(e){this.itemField=e&&e.itemField,this.idField=e&&e.idField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:o&&(t.itemField=""),null!=e.idField?t.idField=e.idField:o&&(t.idField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.GetItemMethodOptions;return null!=e.itemField?t.itemField=e.itemField:!1!==o?t.itemField="":delete t.itemField,null!=e.idField?t.idField=e.idField:!1!==o?t.idField="":delete t.idField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemField&&(t.itemField=e.itemField),null!=e.idField&&(t.idField=e.idField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.GetItemMethodOptions;return null!=e.itemField?t.itemField=e.itemField:t.itemField="",null!=e.idField?t.idField=e.idField:t.idField="",t}}}return __builtIn.Object.defineProperty(GetItemMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.GetItemMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GetItemMethodOptions.prototype,"__fqn__",{value:"wix.api.GetItemMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GetItemMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GetItemMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),GetItemMethodOptions}(),e.UpdateMethodOptions=function(){class UpdateMethodOptions{constructor(e){this.itemField=e&&e.itemField,this.fieldmaskField=e&&e.fieldmaskField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:o&&(t.itemField=""),null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:o&&(t.fieldmaskField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.UpdateMethodOptions;return null!=e.itemField?t.itemField=e.itemField:!1!==o?t.itemField="":delete t.itemField,null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:!1!==o?t.fieldmaskField="":delete t.fieldmaskField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemField&&(t.itemField=e.itemField),null!=e.fieldmaskField&&(t.fieldmaskField=e.fieldmaskField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.UpdateMethodOptions;return null!=e.itemField?t.itemField=e.itemField:t.itemField="",null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:t.fieldmaskField="",t}}}return __builtIn.Object.defineProperty(UpdateMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.UpdateMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UpdateMethodOptions.prototype,"__fqn__",{value:"wix.api.UpdateMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UpdateMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UpdateMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),UpdateMethodOptions}(),e.UpsertMethodOptions=function(){class UpsertMethodOptions{constructor(e){this.itemField=e&&e.itemField,this.fieldmaskField=e&&e.fieldmaskField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:o&&(t.itemField=""),null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:o&&(t.fieldmaskField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.UpsertMethodOptions;return null!=e.itemField?t.itemField=e.itemField:!1!==o?t.itemField="":delete t.itemField,null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:!1!==o?t.fieldmaskField="":delete t.fieldmaskField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemField&&(t.itemField=e.itemField),null!=e.fieldmaskField&&(t.fieldmaskField=e.fieldmaskField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.UpsertMethodOptions;return null!=e.itemField?t.itemField=e.itemField:t.itemField="",null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:t.fieldmaskField="",t}}}return __builtIn.Object.defineProperty(UpsertMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.UpsertMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UpsertMethodOptions.prototype,"__fqn__",{value:"wix.api.UpsertMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UpsertMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UpsertMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),UpsertMethodOptions}(),e.DeleteMethodOptions=function(){class DeleteMethodOptions{constructor(e){this.idField=e&&e.idField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.idField?t.idField=e.idField:o&&(t.idField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.DeleteMethodOptions;return null!=e.idField?t.idField=e.idField:!1!==o?t.idField="":delete t.idField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.idField&&(t.idField=e.idField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.DeleteMethodOptions;return null!=e.idField?t.idField=e.idField:t.idField="",t}}}return __builtIn.Object.defineProperty(DeleteMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.DeleteMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DeleteMethodOptions.prototype,"__fqn__",{value:"wix.api.DeleteMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DeleteMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DeleteMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DeleteMethodOptions}(),e.ListMethodOptions=function(){class ListMethodOptions{constructor(e){this.idsField=e&&e.idsField,this.itemsField=e&&e.itemsField,this.paging=e&&e.paging,this.meAliasableField=e&&e.meAliasableField}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.idsField?n.idsField=e.idsField:o&&(n.idsField=""),null!=e.itemsField?n.itemsField=e.itemsField:o&&(n.itemsField=""),null!=e.paging?n.paging=$root.wix.api.Paging.toJSON(e.paging,t,o):o&&delete n.paging,null!=e.meAliasableField?n.meAliasableField=e.meAliasableField.map(e=>e):o&&(n.meAliasableField=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.ListMethodOptions;return null!=e.idsField?n.idsField=e.idsField:!1!==o?n.idsField="":delete n.idsField,null!=e.itemsField?n.itemsField=e.itemsField:!1!==o?n.itemsField="":delete n.itemsField,null!=e.paging?n.paging=$root.wix.api.Paging.fromJSON(e.paging,t):delete n.paging,null!=e.meAliasableField?n.meAliasableField=Array.isArray(e.meAliasableField)?e.meAliasableField.map(e=>e):e.meAliasableField:!1!==o?n.meAliasableField=[]:delete n.meAliasableField,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.idsField&&(o.idsField=e.idsField),null!=e.itemsField&&(o.itemsField=e.itemsField),null!=e.paging&&(o.paging=$root.wix.api.Paging.toGRPC(e.paging,t)),null!=e.meAliasableField&&(o.meAliasableField=e.meAliasableField.map(e=>e)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.ListMethodOptions;return null!=e.idsField?o.idsField=e.idsField:o.idsField="",null!=e.itemsField?o.itemsField=e.itemsField:o.itemsField="",null!=e.paging?o.paging=$root.wix.api.Paging.fromGRPC(e.paging,t):delete o.paging,null!=e.meAliasableField?o.meAliasableField=e.meAliasableField.map(e=>e):o.meAliasableField=[],o}}}return __builtIn.Object.defineProperty(ListMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.ListMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListMethodOptions.prototype,"__fqn__",{value:"wix.api.ListMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ListMethodOptions}(),e.QueryMethodOptions=function(){class QueryMethodOptions{constructor(e){this.queryField=e&&e.queryField,this.cursorQueryField=e&&e.cursorQueryField,this.offsetQueryField=e&&e.offsetQueryField,this.itemsField=e&&e.itemsField,this.paging=e&&e.paging,this.wql=e&&e.wql,this.queryOptionsName=e&&e.queryOptionsName,this.meAliasableField=e&&e.meAliasableField}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.queryField?n.queryField=e.queryField:o&&(n.queryField=""),null!=e.cursorQueryField?n.cursorQueryField=e.cursorQueryField:o&&(n.cursorQueryField=""),null!=e.offsetQueryField?n.offsetQueryField=e.offsetQueryField:o&&(n.offsetQueryField=""),null!=e.itemsField?n.itemsField=e.itemsField:o&&(n.itemsField=""),null!=e.paging?n.paging=$root.wix.api.Paging.toJSON(e.paging,t,o):o&&delete n.paging,null!=e.wql?n.wql=$root.wix.api.Wql.toJSON(e.wql,t,o):o&&delete n.wql,null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:o&&delete n.queryOptionsName,null!=e.meAliasableField?n.meAliasableField=e.meAliasableField.map(e=>e):o&&(n.meAliasableField=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.QueryMethodOptions;return null!=e.queryField?n.queryField=e.queryField:!1!==o?n.queryField="":delete n.queryField,null!=e.cursorQueryField?n.cursorQueryField=e.cursorQueryField:!1!==o?n.cursorQueryField="":delete n.cursorQueryField,null!=e.offsetQueryField?n.offsetQueryField=e.offsetQueryField:!1!==o?n.offsetQueryField="":delete n.offsetQueryField,null!=e.itemsField?n.itemsField=e.itemsField:!1!==o?n.itemsField="":delete n.itemsField,null!=e.paging?n.paging=$root.wix.api.Paging.fromJSON(e.paging,t):delete n.paging,null!=e.wql?n.wql=$root.wix.api.Wql.fromJSON(e.wql,t):delete n.wql,null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:delete n.queryOptionsName,null!=e.meAliasableField?n.meAliasableField=Array.isArray(e.meAliasableField)?e.meAliasableField.map(e=>e):e.meAliasableField:!1!==o?n.meAliasableField=[]:delete n.meAliasableField,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.queryField&&(o.queryField=e.queryField),null!=e.cursorQueryField&&(o.cursorQueryField=e.cursorQueryField),null!=e.offsetQueryField&&(o.offsetQueryField=e.offsetQueryField),null!=e.itemsField&&(o.itemsField=e.itemsField),null!=e.paging&&(o.paging=$root.wix.api.Paging.toGRPC(e.paging,t)),null!=e.wql&&(o.wql=$root.wix.api.Wql.toGRPC(e.wql,t)),null!=e.queryOptionsName&&(o.queryOptionsName=e.queryOptionsName),null!=e.meAliasableField&&(o.meAliasableField=e.meAliasableField.map(e=>e)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.QueryMethodOptions;return null!=e.queryField?o.queryField=e.queryField:o.queryField="",null!=e.cursorQueryField?o.cursorQueryField=e.cursorQueryField:o.cursorQueryField="",null!=e.offsetQueryField?o.offsetQueryField=e.offsetQueryField:o.offsetQueryField="",null!=e.itemsField?o.itemsField=e.itemsField:o.itemsField="",null!=e.paging?o.paging=$root.wix.api.Paging.fromGRPC(e.paging,t):delete o.paging,null!=e.wql?o.wql=$root.wix.api.Wql.fromGRPC(e.wql,t):delete o.wql,null!=e.queryOptionsName?o.queryOptionsName=e.queryOptionsName:delete o.queryOptionsName,null!=e.meAliasableField?o.meAliasableField=e.meAliasableField.map(e=>e):o.meAliasableField=[],o}}}return __builtIn.Object.defineProperty(QueryMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.QueryMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryMethodOptions.prototype,"__fqn__",{value:"wix.api.QueryMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),QueryMethodOptions}(),e.SearchMethodOptions=function(){class SearchMethodOptions{constructor(e){this.searchField=e&&e.searchField,this.cursorSearchField=e&&e.cursorSearchField,this.offsetSearchField=e&&e.offsetSearchField,this.itemsField=e&&e.itemsField,this.paging=e&&e.paging,this.wql=e&&e.wql,this.queryOptionsName=e&&e.queryOptionsName,this.meAliasableField=e&&e.meAliasableField,this.search=e&&e.search}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.searchField?n.searchField=e.searchField:o&&(n.searchField=""),null!=e.cursorSearchField?n.cursorSearchField=e.cursorSearchField:o&&(n.cursorSearchField=""),null!=e.offsetSearchField?n.offsetSearchField=e.offsetSearchField:o&&(n.offsetSearchField=""),null!=e.itemsField?n.itemsField=e.itemsField:o&&(n.itemsField=""),null!=e.paging?n.paging=$root.wix.api.Paging.toJSON(e.paging,t,o):o&&delete n.paging,null!=e.wql?n.wql=$root.wix.api.Wql.toJSON(e.wql,t,o):o&&delete n.wql,null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:o&&delete n.queryOptionsName,null!=e.meAliasableField?n.meAliasableField=e.meAliasableField.map(e=>e):o&&(n.meAliasableField=[]),null!=e.search?n.search=e.search.map(e=>$root.wix.api.Search.toJSON(e,t,o)):o&&(n.search=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.SearchMethodOptions;return null!=e.searchField?n.searchField=e.searchField:!1!==o?n.searchField="":delete n.searchField,null!=e.cursorSearchField?n.cursorSearchField=e.cursorSearchField:!1!==o?n.cursorSearchField="":delete n.cursorSearchField,null!=e.offsetSearchField?n.offsetSearchField=e.offsetSearchField:!1!==o?n.offsetSearchField="":delete n.offsetSearchField,null!=e.itemsField?n.itemsField=e.itemsField:!1!==o?n.itemsField="":delete n.itemsField,null!=e.paging?n.paging=$root.wix.api.Paging.fromJSON(e.paging,t):delete n.paging,null!=e.wql?n.wql=$root.wix.api.Wql.fromJSON(e.wql,t):delete n.wql,null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:delete n.queryOptionsName,null!=e.meAliasableField?n.meAliasableField=Array.isArray(e.meAliasableField)?e.meAliasableField.map(e=>e):e.meAliasableField:!1!==o?n.meAliasableField=[]:delete n.meAliasableField,null!=e.search?n.search=Array.isArray(e.search)?e.search.map(e=>$root.wix.api.Search.fromJSON(e,t)):e.search:!1!==o?n.search=[]:delete n.search,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.searchField&&(o.searchField=e.searchField),null!=e.cursorSearchField&&(o.cursorSearchField=e.cursorSearchField),null!=e.offsetSearchField&&(o.offsetSearchField=e.offsetSearchField),null!=e.itemsField&&(o.itemsField=e.itemsField),null!=e.paging&&(o.paging=$root.wix.api.Paging.toGRPC(e.paging,t)),null!=e.wql&&(o.wql=$root.wix.api.Wql.toGRPC(e.wql,t)),null!=e.queryOptionsName&&(o.queryOptionsName=e.queryOptionsName),null!=e.meAliasableField&&(o.meAliasableField=e.meAliasableField.map(e=>e)),null!=e.search&&(o.search=e.search.map(e=>$root.wix.api.Search.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.SearchMethodOptions;return null!=e.searchField?o.searchField=e.searchField:o.searchField="",null!=e.cursorSearchField?o.cursorSearchField=e.cursorSearchField:o.cursorSearchField="",null!=e.offsetSearchField?o.offsetSearchField=e.offsetSearchField:o.offsetSearchField="",null!=e.itemsField?o.itemsField=e.itemsField:o.itemsField="",null!=e.paging?o.paging=$root.wix.api.Paging.fromGRPC(e.paging,t):delete o.paging,null!=e.wql?o.wql=$root.wix.api.Wql.fromGRPC(e.wql,t):delete o.wql,null!=e.queryOptionsName?o.queryOptionsName=e.queryOptionsName:delete o.queryOptionsName,null!=e.meAliasableField?o.meAliasableField=e.meAliasableField.map(e=>e):o.meAliasableField=[],null!=e.search?o.search=e.search.map(e=>$root.wix.api.Search.fromGRPC(e,t)):o.search=[],o}}}return __builtIn.Object.defineProperty(SearchMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.SearchMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchMethodOptions.prototype,"__fqn__",{value:"wix.api.SearchMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),SearchMethodOptions}(),e.BulkCreateMethodOptions=function(){class BulkCreateMethodOptions{constructor(e){this.itemField=e&&e.itemField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:o&&(t.itemField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.BulkCreateMethodOptions;return null!=e.itemField?t.itemField=e.itemField:!1!==o?t.itemField="":delete t.itemField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemField&&(t.itemField=e.itemField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.BulkCreateMethodOptions;return null!=e.itemField?t.itemField=e.itemField:t.itemField="",t}}}return __builtIn.Object.defineProperty(BulkCreateMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.BulkCreateMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkCreateMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkCreateMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkCreateMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkCreateMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),BulkCreateMethodOptions}(),e.BulkUpdateMethodOptions=function(){class BulkUpdateMethodOptions{constructor(e){this.itemsField=e&&e.itemsField,this.itemField=e&&e.itemField,this.fieldmaskField=e&&e.fieldmaskField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.itemsField?t.itemsField=e.itemsField:o&&(t.itemsField=""),null!=e.itemField?t.itemField=e.itemField:o&&(t.itemField=""),null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:o&&(t.fieldmaskField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.BulkUpdateMethodOptions;return null!=e.itemsField?t.itemsField=e.itemsField:!1!==o?t.itemsField="":delete t.itemsField,null!=e.itemField?t.itemField=e.itemField:!1!==o?t.itemField="":delete t.itemField,null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:!1!==o?t.fieldmaskField="":delete t.fieldmaskField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemsField&&(t.itemsField=e.itemsField),null!=e.itemField&&(t.itemField=e.itemField),null!=e.fieldmaskField&&(t.fieldmaskField=e.fieldmaskField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.BulkUpdateMethodOptions;return null!=e.itemsField?t.itemsField=e.itemsField:t.itemsField="",null!=e.itemField?t.itemField=e.itemField:t.itemField="",null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:t.fieldmaskField="",t}}}return __builtIn.Object.defineProperty(BulkUpdateMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.BulkUpdateMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpdateMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkUpdateMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpdateMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpdateMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),BulkUpdateMethodOptions}(),e.BulkUpdateByFilterMethodOptions=function(){class BulkUpdateByFilterMethodOptions{constructor(e){this.itemField=e&&e.itemField,this.fieldmaskField=e&&e.fieldmaskField,this.filterField=e&&e.filterField,this.queryOptionsName=e&&e.queryOptionsName}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:o&&(t.itemField=""),null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:o&&(t.fieldmaskField=""),null!=e.filterField?t.filterField=e.filterField:o&&(t.filterField=""),null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:o&&(t.queryOptionsName=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.BulkUpdateByFilterMethodOptions;return null!=e.itemField?t.itemField=e.itemField:!1!==o?t.itemField="":delete t.itemField,null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:!1!==o?t.fieldmaskField="":delete t.fieldmaskField,null!=e.filterField?t.filterField=e.filterField:!1!==o?t.filterField="":delete t.filterField,null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:!1!==o?t.queryOptionsName="":delete t.queryOptionsName,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemField&&(t.itemField=e.itemField),null!=e.fieldmaskField&&(t.fieldmaskField=e.fieldmaskField),null!=e.filterField&&(t.filterField=e.filterField),null!=e.queryOptionsName&&(t.queryOptionsName=e.queryOptionsName),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.BulkUpdateByFilterMethodOptions;return null!=e.itemField?t.itemField=e.itemField:t.itemField="",null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:t.fieldmaskField="",null!=e.filterField?t.filterField=e.filterField:t.filterField="",null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:t.queryOptionsName="",t}}}return __builtIn.Object.defineProperty(BulkUpdateByFilterMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.BulkUpdateByFilterMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpdateByFilterMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkUpdateByFilterMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpdateByFilterMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpdateByFilterMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),BulkUpdateByFilterMethodOptions}(),e.BulkUpdateTagsMethodOptions=function(){class BulkUpdateTagsMethodOptions{constructor(e){this.idsField=e&&e.idsField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.idsField?t.idsField=e.idsField:o&&(t.idsField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.BulkUpdateTagsMethodOptions;return null!=e.idsField?t.idsField=e.idsField:!1!==o?t.idsField="":delete t.idsField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.idsField&&(t.idsField=e.idsField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.BulkUpdateTagsMethodOptions;return null!=e.idsField?t.idsField=e.idsField:t.idsField="",t}}}return __builtIn.Object.defineProperty(BulkUpdateTagsMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.BulkUpdateTagsMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpdateTagsMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkUpdateTagsMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpdateTagsMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpdateTagsMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),BulkUpdateTagsMethodOptions}(),e.BulkUpdateTagsByFilterMethodOptions=function(){class BulkUpdateTagsByFilterMethodOptions{constructor(e){this.filterField=e&&e.filterField,this.queryOptionsName=e&&e.queryOptionsName}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.filterField?t.filterField=e.filterField:o&&(t.filterField=""),null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:o&&(t.queryOptionsName=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.BulkUpdateTagsByFilterMethodOptions;return null!=e.filterField?t.filterField=e.filterField:!1!==o?t.filterField="":delete t.filterField,null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:!1!==o?t.queryOptionsName="":delete t.queryOptionsName,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.filterField&&(t.filterField=e.filterField),null!=e.queryOptionsName&&(t.queryOptionsName=e.queryOptionsName),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.BulkUpdateTagsByFilterMethodOptions;return null!=e.filterField?t.filterField=e.filterField:t.filterField="",null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:t.queryOptionsName="",t}}}return __builtIn.Object.defineProperty(BulkUpdateTagsByFilterMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.BulkUpdateTagsByFilterMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpdateTagsByFilterMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkUpdateTagsByFilterMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpdateTagsByFilterMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpdateTagsByFilterMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),BulkUpdateTagsByFilterMethodOptions}(),e.BulkUpsertMethodOptions=function(){class BulkUpsertMethodOptions{constructor(e){this.itemField=e&&e.itemField,this.fieldmaskField=e&&e.fieldmaskField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:o&&(t.itemField=""),null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:o&&(t.fieldmaskField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.BulkUpsertMethodOptions;return null!=e.itemField?t.itemField=e.itemField:!1!==o?t.itemField="":delete t.itemField,null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:!1!==o?t.fieldmaskField="":delete t.fieldmaskField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemField&&(t.itemField=e.itemField),null!=e.fieldmaskField&&(t.fieldmaskField=e.fieldmaskField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.BulkUpsertMethodOptions;return null!=e.itemField?t.itemField=e.itemField:t.itemField="",null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:t.fieldmaskField="",t}}}return __builtIn.Object.defineProperty(BulkUpsertMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.BulkUpsertMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpsertMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkUpsertMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpsertMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkUpsertMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),BulkUpsertMethodOptions}(),e.BulkDeleteMethodOptions=function(){class BulkDeleteMethodOptions{constructor(e){this.idsField=e&&e.idsField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.idsField?t.idsField=e.idsField:o&&(t.idsField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.BulkDeleteMethodOptions;return null!=e.idsField?t.idsField=e.idsField:!1!==o?t.idsField="":delete t.idsField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.idsField&&(t.idsField=e.idsField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.BulkDeleteMethodOptions;return null!=e.idsField?t.idsField=e.idsField:t.idsField="",t}}}return __builtIn.Object.defineProperty(BulkDeleteMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.BulkDeleteMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkDeleteMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkDeleteMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkDeleteMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkDeleteMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),BulkDeleteMethodOptions}(),e.BulkDeleteByFilterMethodOptions=function(){class BulkDeleteByFilterMethodOptions{constructor(e){this.filterField=e&&e.filterField,this.queryOptionsName=e&&e.queryOptionsName}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.filterField?t.filterField=e.filterField:o&&(t.filterField=""),null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:o&&(t.queryOptionsName=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.BulkDeleteByFilterMethodOptions;return null!=e.filterField?t.filterField=e.filterField:!1!==o?t.filterField="":delete t.filterField,null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:!1!==o?t.queryOptionsName="":delete t.queryOptionsName,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.filterField&&(t.filterField=e.filterField),null!=e.queryOptionsName&&(t.queryOptionsName=e.queryOptionsName),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.BulkDeleteByFilterMethodOptions;return null!=e.filterField?t.filterField=e.filterField:t.filterField="",null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:t.queryOptionsName="",t}}}return __builtIn.Object.defineProperty(BulkDeleteByFilterMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.BulkDeleteByFilterMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkDeleteByFilterMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkDeleteByFilterMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkDeleteByFilterMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkDeleteByFilterMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),BulkDeleteByFilterMethodOptions}(),e.ListDeletedMethodOptions=function(){class ListDeletedMethodOptions{constructor(e){this.idsField=e&&e.idsField,this.itemsField=e&&e.itemsField,this.paging=e&&e.paging,this.meAliasableField=e&&e.meAliasableField}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.idsField?n.idsField=e.idsField:o&&(n.idsField=""),null!=e.itemsField?n.itemsField=e.itemsField:o&&(n.itemsField=""),null!=e.paging?n.paging=$root.wix.api.Paging.toJSON(e.paging,t,o):o&&delete n.paging,null!=e.meAliasableField?n.meAliasableField=e.meAliasableField.map(e=>e):o&&(n.meAliasableField=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.ListDeletedMethodOptions;return null!=e.idsField?n.idsField=e.idsField:!1!==o?n.idsField="":delete n.idsField,null!=e.itemsField?n.itemsField=e.itemsField:!1!==o?n.itemsField="":delete n.itemsField,null!=e.paging?n.paging=$root.wix.api.Paging.fromJSON(e.paging,t):delete n.paging,null!=e.meAliasableField?n.meAliasableField=Array.isArray(e.meAliasableField)?e.meAliasableField.map(e=>e):e.meAliasableField:!1!==o?n.meAliasableField=[]:delete n.meAliasableField,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.idsField&&(o.idsField=e.idsField),null!=e.itemsField&&(o.itemsField=e.itemsField),null!=e.paging&&(o.paging=$root.wix.api.Paging.toGRPC(e.paging,t)),null!=e.meAliasableField&&(o.meAliasableField=e.meAliasableField.map(e=>e)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.ListDeletedMethodOptions;return null!=e.idsField?o.idsField=e.idsField:o.idsField="",null!=e.itemsField?o.itemsField=e.itemsField:o.itemsField="",null!=e.paging?o.paging=$root.wix.api.Paging.fromGRPC(e.paging,t):delete o.paging,null!=e.meAliasableField?o.meAliasableField=e.meAliasableField.map(e=>e):o.meAliasableField=[],o}}}return __builtIn.Object.defineProperty(ListDeletedMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.ListDeletedMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListDeletedMethodOptions.prototype,"__fqn__",{value:"wix.api.ListDeletedMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListDeletedMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListDeletedMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ListDeletedMethodOptions}(),e.GetDeletedMethodOptions=function(){class GetDeletedMethodOptions{constructor(e){this.itemField=e&&e.itemField,this.idField=e&&e.idField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:o&&(t.itemField=""),null!=e.idField?t.idField=e.idField:o&&(t.idField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.GetDeletedMethodOptions;return null!=e.itemField?t.itemField=e.itemField:!1!==o?t.itemField="":delete t.itemField,null!=e.idField?t.idField=e.idField:!1!==o?t.idField="":delete t.idField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemField&&(t.itemField=e.itemField),null!=e.idField&&(t.idField=e.idField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.GetDeletedMethodOptions;return null!=e.itemField?t.itemField=e.itemField:t.itemField="",null!=e.idField?t.idField=e.idField:t.idField="",t}}}return __builtIn.Object.defineProperty(GetDeletedMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.GetDeletedMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GetDeletedMethodOptions.prototype,"__fqn__",{value:"wix.api.GetDeletedMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GetDeletedMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GetDeletedMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),GetDeletedMethodOptions}(),e.RestoreFromTrashbinMethodOptions=function(){class RestoreFromTrashbinMethodOptions{constructor(e){this.itemField=e&&e.itemField,this.idField=e&&e.idField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:o&&(t.itemField=""),null!=e.idField?t.idField=e.idField:o&&(t.idField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.RestoreFromTrashbinMethodOptions;return null!=e.itemField?t.itemField=e.itemField:!1!==o?t.itemField="":delete t.itemField,null!=e.idField?t.idField=e.idField:!1!==o?t.idField="":delete t.idField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemField&&(t.itemField=e.itemField),null!=e.idField&&(t.idField=e.idField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.RestoreFromTrashbinMethodOptions;return null!=e.itemField?t.itemField=e.itemField:t.itemField="",null!=e.idField?t.idField=e.idField:t.idField="",t}}}return __builtIn.Object.defineProperty(RestoreFromTrashbinMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.RestoreFromTrashbinMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RestoreFromTrashbinMethodOptions.prototype,"__fqn__",{value:"wix.api.RestoreFromTrashbinMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RestoreFromTrashbinMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RestoreFromTrashbinMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RestoreFromTrashbinMethodOptions}(),e.RemoveFromTrashbinMethodOptions=function(){class RemoveFromTrashbinMethodOptions{constructor(e){this.idField=e&&e.idField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.idField?t.idField=e.idField:o&&(t.idField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.RemoveFromTrashbinMethodOptions;return null!=e.idField?t.idField=e.idField:!1!==o?t.idField="":delete t.idField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.idField&&(t.idField=e.idField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.RemoveFromTrashbinMethodOptions;return null!=e.idField?t.idField=e.idField:t.idField="",t}}}return __builtIn.Object.defineProperty(RemoveFromTrashbinMethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.RemoveFromTrashbinMethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RemoveFromTrashbinMethodOptions.prototype,"__fqn__",{value:"wix.api.RemoveFromTrashbinMethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RemoveFromTrashbinMethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RemoveFromTrashbinMethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RemoveFromTrashbinMethodOptions}(),e.CountOptions=function(){class CountOptions{constructor(e){this.inheritWqlFrom=e&&e.inheritWqlFrom,this.queryOptionsName=e&&e.queryOptionsName,this.filterField=e&&e.filterField,this.countField=e&&e.countField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.inheritWqlFrom?t.inheritWqlFrom=e.inheritWqlFrom:o&&delete t.inheritWqlFrom,null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:o&&delete t.queryOptionsName,null!=e.filterField?t.filterField=e.filterField:o&&(t.filterField=""),null!=e.countField?t.countField=e.countField:o&&(t.countField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.CountOptions;return null!=e.inheritWqlFrom?t.inheritWqlFrom=e.inheritWqlFrom:delete t.inheritWqlFrom,null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:delete t.queryOptionsName,null!=e.filterField?t.filterField=e.filterField:!1!==o?t.filterField="":delete t.filterField,null!=e.countField?t.countField=e.countField:!1!==o?t.countField="":delete t.countField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.inheritWqlFrom&&(t.inheritWqlFrom=e.inheritWqlFrom),null!=e.queryOptionsName&&(t.queryOptionsName=e.queryOptionsName),null!=e.filterField&&(t.filterField=e.filterField),null!=e.countField&&(t.countField=e.countField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.CountOptions;return null!=e.inheritWqlFrom?t.inheritWqlFrom=e.inheritWqlFrom:delete t.inheritWqlFrom,null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:delete t.queryOptionsName,null!=e.filterField?t.filterField=e.filterField:t.filterField="",null!=e.countField?t.countField=e.countField:t.countField="",t}}}return __builtIn.Object.defineProperty(CountOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.CountOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CountOptions.prototype,"__fqn__",{value:"wix.api.CountOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CountOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CountOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),CountOptions}(),e.SearchRelatedOptions=function(){class SearchRelatedOptions{constructor(e){this.inheritWqlFrom=e&&e.inheritWqlFrom,this.queryOptionsName=e&&e.queryOptionsName}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.inheritWqlFrom?t.inheritWqlFrom=e.inheritWqlFrom:o&&delete t.inheritWqlFrom,null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:o&&delete t.queryOptionsName,t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.SearchRelatedOptions;return null!=e.inheritWqlFrom?t.inheritWqlFrom=e.inheritWqlFrom:delete t.inheritWqlFrom,null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:delete t.queryOptionsName,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.inheritWqlFrom&&(t.inheritWqlFrom=e.inheritWqlFrom),null!=e.queryOptionsName&&(t.queryOptionsName=e.queryOptionsName),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.SearchRelatedOptions;return null!=e.inheritWqlFrom?t.inheritWqlFrom=e.inheritWqlFrom:delete t.inheritWqlFrom,null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:delete t.queryOptionsName,t}}}return __builtIn.Object.defineProperty(SearchRelatedOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.SearchRelatedOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchRelatedOptions.prototype,"__fqn__",{value:"wix.api.SearchRelatedOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchRelatedOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchRelatedOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),SearchRelatedOptions}(),e.UpdateExtendedFieldsOptions=function(){class UpdateExtendedFieldsOptions{constructor(e){this.itemField=e&&e.itemField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:o&&(t.itemField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.UpdateExtendedFieldsOptions;return null!=e.itemField?t.itemField=e.itemField:!1!==o?t.itemField="":delete t.itemField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemField&&(t.itemField=e.itemField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.UpdateExtendedFieldsOptions;return null!=e.itemField?t.itemField=e.itemField:t.itemField="",t}}}return __builtIn.Object.defineProperty(UpdateExtendedFieldsOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.UpdateExtendedFieldsOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UpdateExtendedFieldsOptions.prototype,"__fqn__",{value:"wix.api.UpdateExtendedFieldsOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UpdateExtendedFieldsOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UpdateExtendedFieldsOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),UpdateExtendedFieldsOptions}(),e.Wql=function(){class Wql{constructor(e){this.operatorFieldSupport=e&&e.operatorFieldSupport,this.pattern=e&&e.pattern,this.validateQuery=e&&e.validateQuery}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.operatorFieldSupport?n.operatorFieldSupport=e.operatorFieldSupport.map(e=>$root.wix.api.Wql.OperatorFieldSupport.toJSON(e,t,o)):o&&(n.operatorFieldSupport=[]),null!=e.pattern?n.pattern=e.pattern.map(e=>$root.wix.api.Wql.OperatorFieldSupport.toJSON(e,t,o)):o&&(n.pattern=[]),null!=e.validateQuery?n.validateQuery=e.validateQuery:o&&(n.validateQuery=!1),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.Wql;return null!=e.operatorFieldSupport?n.operatorFieldSupport=Array.isArray(e.operatorFieldSupport)?e.operatorFieldSupport.map(e=>$root.wix.api.Wql.OperatorFieldSupport.fromJSON(e,t)):e.operatorFieldSupport:!1!==o?n.operatorFieldSupport=[]:delete n.operatorFieldSupport,null!=e.pattern?n.pattern=Array.isArray(e.pattern)?e.pattern.map(e=>$root.wix.api.Wql.OperatorFieldSupport.fromJSON(e,t)):e.pattern:!1!==o?n.pattern=[]:delete n.pattern,null!=e.validateQuery?n.validateQuery=e.validateQuery:!1!==o?n.validateQuery=!1:delete n.validateQuery,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.operatorFieldSupport&&(o.operatorFieldSupport=e.operatorFieldSupport.map(e=>$root.wix.api.Wql.OperatorFieldSupport.toGRPC(e,t))),null!=e.pattern&&(o.pattern=e.pattern.map(e=>$root.wix.api.Wql.OperatorFieldSupport.toGRPC(e,t))),null!=e.validateQuery&&(o.validateQuery=e.validateQuery),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.Wql;return null!=e.operatorFieldSupport?o.operatorFieldSupport=e.operatorFieldSupport.map(e=>$root.wix.api.Wql.OperatorFieldSupport.fromGRPC(e,t)):o.operatorFieldSupport=[],null!=e.pattern?o.pattern=e.pattern.map(e=>$root.wix.api.Wql.OperatorFieldSupport.fromGRPC(e,t)):o.pattern=[],null!=e.validateQuery?o.validateQuery=e.validateQuery:o.validateQuery=!1,o}}}return Wql.Operator={ALL_APPLICABLE_OPERATORS:"ALL_APPLICABLE_OPERATORS",0:"ALL_APPLICABLE_OPERATORS",EQ:"EQ",1:"EQ",GT:"GT",2:"GT",GTE:"GTE",3:"GTE",IN:"IN",4:"IN",LT:"LT",5:"LT",LTE:"LTE",6:"LTE",NE:"NE",7:"NE",NIN:"NIN",8:"NIN",BEGINS:"BEGINS",9:"BEGINS",EXISTS:"EXISTS",10:"EXISTS",HAS_ALL:"HAS_ALL",11:"HAS_ALL",ALL:"ALL",11:"ALL",HAS_SOME:"HAS_SOME",12:"HAS_SOME",ANY:"ANY",12:"ANY",EMPTY:"EMPTY",13:"EMPTY",MATCH_ALL:"MATCH_ALL",14:"MATCH_ALL",MATCH_ITEMS:"MATCH_ITEMS",16:"MATCH_ITEMS",ENHANCED_DATE:"ENHANCED_DATE",17:"ENHANCED_DATE"},Wql.Sort={NONE:"NONE",0:"NONE",ASC:"ASC",1:"ASC",DESC:"DESC",2:"DESC",BOTH:"BOTH",3:"BOTH"},Wql.RequiredFields=function(){class RequiredFields{constructor(e){this.field=e&&e.field,this.requiredField=e&&e.requiredField}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.field?n.field=e.field.map(e=>e):o&&(n.field=[]),null!=e.requiredField?n.requiredField=e.requiredField.map(e=>$root.wix.api.Wql.RequiredFields.RequiredField.toJSON(e,t,o)):o&&(n.requiredField=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.Wql.RequiredFields;return null!=e.field?n.field=Array.isArray(e.field)?e.field.map(e=>e):e.field:!1!==o?n.field=[]:delete n.field,null!=e.requiredField?n.requiredField=Array.isArray(e.requiredField)?e.requiredField.map(e=>$root.wix.api.Wql.RequiredFields.RequiredField.fromJSON(e,t)):e.requiredField:!1!==o?n.requiredField=[]:delete n.requiredField,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.field&&(o.field=e.field.map(e=>e)),null!=e.requiredField&&(o.requiredField=e.requiredField.map(e=>$root.wix.api.Wql.RequiredFields.RequiredField.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.Wql.RequiredFields;return null!=e.field?o.field=e.field.map(e=>e):o.field=[],null!=e.requiredField?o.requiredField=e.requiredField.map(e=>$root.wix.api.Wql.RequiredFields.RequiredField.fromGRPC(e,t)):o.requiredField=[],o}}}return RequiredFields.RequiredField=function(){class RequiredField{constructor(e){this.path=e&&e.path,this.sort=e&&e.sort}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path:o&&(t.path=""),null!=e.sort?t.sort=$root.wix.api.Wql.Sort[e.sort]:o&&(t.sort="NONE"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?t.path=e.path:!1!==o?t.path="":delete t.path,null!=e.sort?t.sort="string"==typeof e.sort?e.sort:$root.wix.api.Wql.Sort[e.sort]:!1!==o?t.sort="NONE":delete t.sort,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.path&&(t.path=e.path),null!=e.sort&&(t.sort=e.sort),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?t.path=e.path:t.path="",null!=e.sort?t.sort=e.sort:t.sort="NONE",t}}}return __builtIn.Object.defineProperty(RequiredField.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Wql.RequiredFields.RequiredField"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredField.prototype,"__fqn__",{value:"wix.api.Wql.RequiredFields.RequiredField",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredField.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredField.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RequiredField}(),RequiredFields.RequiredField=function(){class RequiredField{constructor(e){this.path=e&&e.path,this.sort=e&&e.sort}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path:o&&(t.path=""),null!=e.sort?t.sort=$root.wix.api.Wql.Sort[e.sort]:o&&(t.sort="NONE"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?t.path=e.path:!1!==o?t.path="":delete t.path,null!=e.sort?t.sort="string"==typeof e.sort?e.sort:$root.wix.api.Wql.Sort[e.sort]:!1!==o?t.sort="NONE":delete t.sort,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.path&&(t.path=e.path),null!=e.sort&&(t.sort=e.sort),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?t.path=e.path:t.path="",null!=e.sort?t.sort=e.sort:t.sort="NONE",t}}}return __builtIn.Object.defineProperty(RequiredField.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Wql.RequiredFields.RequiredField"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredField.prototype,"__fqn__",{value:"wix.api.Wql.RequiredFields.RequiredField",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredField.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredField.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RequiredField}(),__builtIn.Object.defineProperty(RequiredFields.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Wql.RequiredFields"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredFields.prototype,"__fqn__",{value:"wix.api.Wql.RequiredFields",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredFields.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredFields.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RequiredFields}(),Wql.VirtualSubfields={NO_VIRTUAL_SUBFIELDS:"NO_VIRTUAL_SUBFIELDS",0:"NO_VIRTUAL_SUBFIELDS",DATE:"DATE",1:"DATE",EMAIL:"EMAIL",2:"EMAIL"},Wql.OperatorFieldSupport=function(){class OperatorFieldSupport{constructor(e){this.operator=e&&e.operator,this.glob=e&&e.glob,this.field=e&&e.field,this.sort=e&&e.sort,this.requiredFields=e&&e.requiredFields,this.maturity=e&&e.maturity,this.virtualSubfields=e&&e.virtualSubfields}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.operator?n.operator=e.operator.map(e=>$root.wix.api.Wql.Operator[e]):o&&(n.operator=[]),null!=e.glob?n.glob=e.glob:o&&(n.glob=""),null!=e.field?n.field=e.field.map(e=>e):o&&(n.field=[]),null!=e.sort?n.sort=$root.wix.api.Wql.Sort[e.sort]:o&&(n.sort="NONE"),null!=e.requiredFields?n.requiredFields=e.requiredFields.map(e=>$root.wix.api.Wql.RequiredFields.toJSON(e,t,o)):o&&(n.requiredFields=[]),null!=e.maturity?n.maturity=$root.wix.api.Maturity[e.maturity]:o&&(n.maturity="ALPHA"),null!=e.virtualSubfields?n.virtualSubfields=$root.wix.api.Wql.VirtualSubfields[e.virtualSubfields]:o&&(n.virtualSubfields="NO_VIRTUAL_SUBFIELDS"),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.Wql.OperatorFieldSupport;return null!=e.operator?n.operator=Array.isArray(e.operator)?e.operator.map(e=>"string"==typeof e?e:$root.wix.api.Wql.Operator[e]):e.operator:!1!==o?n.operator=[]:delete n.operator,null!=e.glob?n.glob=e.glob:!1!==o?n.glob="":delete n.glob,null!=e.field?n.field=Array.isArray(e.field)?e.field.map(e=>e):e.field:!1!==o?n.field=[]:delete n.field,null!=e.sort?n.sort="string"==typeof e.sort?e.sort:$root.wix.api.Wql.Sort[e.sort]:!1!==o?n.sort="NONE":delete n.sort,null!=e.requiredFields?n.requiredFields=Array.isArray(e.requiredFields)?e.requiredFields.map(e=>$root.wix.api.Wql.RequiredFields.fromJSON(e,t)):e.requiredFields:!1!==o?n.requiredFields=[]:delete n.requiredFields,null!=e.maturity?n.maturity="string"==typeof e.maturity?e.maturity:$root.wix.api.Maturity[e.maturity]:!1!==o?n.maturity="ALPHA":delete n.maturity,null!=e.virtualSubfields?n.virtualSubfields="string"==typeof e.virtualSubfields?e.virtualSubfields:$root.wix.api.Wql.VirtualSubfields[e.virtualSubfields]:!1!==o?n.virtualSubfields="NO_VIRTUAL_SUBFIELDS":delete n.virtualSubfields,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.operator&&(o.operator=e.operator.map(e=>e)),null!=e.glob&&(o.glob=e.glob),null!=e.field&&(o.field=e.field.map(e=>e)),null!=e.sort&&(o.sort=e.sort),null!=e.requiredFields&&(o.requiredFields=e.requiredFields.map(e=>$root.wix.api.Wql.RequiredFields.toGRPC(e,t))),null!=e.maturity&&(o.maturity=e.maturity),null!=e.virtualSubfields&&(o.virtualSubfields=e.virtualSubfields),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.Wql.OperatorFieldSupport;return null!=e.operator?o.operator=e.operator.map(e=>e):o.operator=[],null!=e.glob?o.glob=e.glob:o.glob="",null!=e.field?o.field=e.field.map(e=>e):o.field=[],null!=e.sort?o.sort=e.sort:o.sort="NONE",null!=e.requiredFields?o.requiredFields=e.requiredFields.map(e=>$root.wix.api.Wql.RequiredFields.fromGRPC(e,t)):o.requiredFields=[],null!=e.maturity?o.maturity=e.maturity:o.maturity="ALPHA",null!=e.virtualSubfields?o.virtualSubfields=e.virtualSubfields:o.virtualSubfields="NO_VIRTUAL_SUBFIELDS",o}}}return __builtIn.Object.defineProperty(OperatorFieldSupport.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Wql.OperatorFieldSupport"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OperatorFieldSupport.prototype,"__fqn__",{value:"wix.api.Wql.OperatorFieldSupport",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OperatorFieldSupport.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OperatorFieldSupport.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),OperatorFieldSupport}(),Wql.Operator={ALL_APPLICABLE_OPERATORS:"ALL_APPLICABLE_OPERATORS",0:"ALL_APPLICABLE_OPERATORS",EQ:"EQ",1:"EQ",GT:"GT",2:"GT",GTE:"GTE",3:"GTE",IN:"IN",4:"IN",LT:"LT",5:"LT",LTE:"LTE",6:"LTE",NE:"NE",7:"NE",NIN:"NIN",8:"NIN",BEGINS:"BEGINS",9:"BEGINS",EXISTS:"EXISTS",10:"EXISTS",HAS_ALL:"HAS_ALL",11:"HAS_ALL",ALL:"ALL",11:"ALL",HAS_SOME:"HAS_SOME",12:"HAS_SOME",ANY:"ANY",12:"ANY",EMPTY:"EMPTY",13:"EMPTY",MATCH_ALL:"MATCH_ALL",14:"MATCH_ALL",MATCH_ITEMS:"MATCH_ITEMS",16:"MATCH_ITEMS",ENHANCED_DATE:"ENHANCED_DATE",17:"ENHANCED_DATE"},Wql.Sort={NONE:"NONE",0:"NONE",ASC:"ASC",1:"ASC",DESC:"DESC",2:"DESC",BOTH:"BOTH",3:"BOTH"},Wql.RequiredFields=function(){class RequiredFields{constructor(e){this.field=e&&e.field,this.requiredField=e&&e.requiredField}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.field?n.field=e.field.map(e=>e):o&&(n.field=[]),null!=e.requiredField?n.requiredField=e.requiredField.map(e=>$root.wix.api.Wql.RequiredFields.RequiredField.toJSON(e,t,o)):o&&(n.requiredField=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.Wql.RequiredFields;return null!=e.field?n.field=Array.isArray(e.field)?e.field.map(e=>e):e.field:!1!==o?n.field=[]:delete n.field,null!=e.requiredField?n.requiredField=Array.isArray(e.requiredField)?e.requiredField.map(e=>$root.wix.api.Wql.RequiredFields.RequiredField.fromJSON(e,t)):e.requiredField:!1!==o?n.requiredField=[]:delete n.requiredField,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.field&&(o.field=e.field.map(e=>e)),null!=e.requiredField&&(o.requiredField=e.requiredField.map(e=>$root.wix.api.Wql.RequiredFields.RequiredField.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.Wql.RequiredFields;return null!=e.field?o.field=e.field.map(e=>e):o.field=[],null!=e.requiredField?o.requiredField=e.requiredField.map(e=>$root.wix.api.Wql.RequiredFields.RequiredField.fromGRPC(e,t)):o.requiredField=[],o}}}return RequiredFields.RequiredField=function(){class RequiredField{constructor(e){this.path=e&&e.path,this.sort=e&&e.sort}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path:o&&(t.path=""),null!=e.sort?t.sort=$root.wix.api.Wql.Sort[e.sort]:o&&(t.sort="NONE"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?t.path=e.path:!1!==o?t.path="":delete t.path,null!=e.sort?t.sort="string"==typeof e.sort?e.sort:$root.wix.api.Wql.Sort[e.sort]:!1!==o?t.sort="NONE":delete t.sort,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.path&&(t.path=e.path),null!=e.sort&&(t.sort=e.sort),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?t.path=e.path:t.path="",null!=e.sort?t.sort=e.sort:t.sort="NONE",t}}}return __builtIn.Object.defineProperty(RequiredField.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Wql.RequiredFields.RequiredField"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredField.prototype,"__fqn__",{value:"wix.api.Wql.RequiredFields.RequiredField",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredField.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredField.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RequiredField}(),RequiredFields.RequiredField=function(){class RequiredField{constructor(e){this.path=e&&e.path,this.sort=e&&e.sort}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path:o&&(t.path=""),null!=e.sort?t.sort=$root.wix.api.Wql.Sort[e.sort]:o&&(t.sort="NONE"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?t.path=e.path:!1!==o?t.path="":delete t.path,null!=e.sort?t.sort="string"==typeof e.sort?e.sort:$root.wix.api.Wql.Sort[e.sort]:!1!==o?t.sort="NONE":delete t.sort,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.path&&(t.path=e.path),null!=e.sort&&(t.sort=e.sort),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?t.path=e.path:t.path="",null!=e.sort?t.sort=e.sort:t.sort="NONE",t}}}return __builtIn.Object.defineProperty(RequiredField.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Wql.RequiredFields.RequiredField"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredField.prototype,"__fqn__",{value:"wix.api.Wql.RequiredFields.RequiredField",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredField.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredField.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RequiredField}(),__builtIn.Object.defineProperty(RequiredFields.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Wql.RequiredFields"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredFields.prototype,"__fqn__",{value:"wix.api.Wql.RequiredFields",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredFields.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredFields.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RequiredFields}(),Wql.VirtualSubfields={NO_VIRTUAL_SUBFIELDS:"NO_VIRTUAL_SUBFIELDS",0:"NO_VIRTUAL_SUBFIELDS",DATE:"DATE",1:"DATE",EMAIL:"EMAIL",2:"EMAIL"},Wql.OperatorFieldSupport=function(){class OperatorFieldSupport{constructor(e){this.operator=e&&e.operator,this.glob=e&&e.glob,this.field=e&&e.field,this.sort=e&&e.sort,this.requiredFields=e&&e.requiredFields,this.maturity=e&&e.maturity,this.virtualSubfields=e&&e.virtualSubfields}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.operator?n.operator=e.operator.map(e=>$root.wix.api.Wql.Operator[e]):o&&(n.operator=[]),null!=e.glob?n.glob=e.glob:o&&(n.glob=""),null!=e.field?n.field=e.field.map(e=>e):o&&(n.field=[]),null!=e.sort?n.sort=$root.wix.api.Wql.Sort[e.sort]:o&&(n.sort="NONE"),null!=e.requiredFields?n.requiredFields=e.requiredFields.map(e=>$root.wix.api.Wql.RequiredFields.toJSON(e,t,o)):o&&(n.requiredFields=[]),null!=e.maturity?n.maturity=$root.wix.api.Maturity[e.maturity]:o&&(n.maturity="ALPHA"),null!=e.virtualSubfields?n.virtualSubfields=$root.wix.api.Wql.VirtualSubfields[e.virtualSubfields]:o&&(n.virtualSubfields="NO_VIRTUAL_SUBFIELDS"),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.Wql.OperatorFieldSupport;return null!=e.operator?n.operator=Array.isArray(e.operator)?e.operator.map(e=>"string"==typeof e?e:$root.wix.api.Wql.Operator[e]):e.operator:!1!==o?n.operator=[]:delete n.operator,null!=e.glob?n.glob=e.glob:!1!==o?n.glob="":delete n.glob,null!=e.field?n.field=Array.isArray(e.field)?e.field.map(e=>e):e.field:!1!==o?n.field=[]:delete n.field,null!=e.sort?n.sort="string"==typeof e.sort?e.sort:$root.wix.api.Wql.Sort[e.sort]:!1!==o?n.sort="NONE":delete n.sort,null!=e.requiredFields?n.requiredFields=Array.isArray(e.requiredFields)?e.requiredFields.map(e=>$root.wix.api.Wql.RequiredFields.fromJSON(e,t)):e.requiredFields:!1!==o?n.requiredFields=[]:delete n.requiredFields,null!=e.maturity?n.maturity="string"==typeof e.maturity?e.maturity:$root.wix.api.Maturity[e.maturity]:!1!==o?n.maturity="ALPHA":delete n.maturity,null!=e.virtualSubfields?n.virtualSubfields="string"==typeof e.virtualSubfields?e.virtualSubfields:$root.wix.api.Wql.VirtualSubfields[e.virtualSubfields]:!1!==o?n.virtualSubfields="NO_VIRTUAL_SUBFIELDS":delete n.virtualSubfields,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.operator&&(o.operator=e.operator.map(e=>e)),null!=e.glob&&(o.glob=e.glob),null!=e.field&&(o.field=e.field.map(e=>e)),null!=e.sort&&(o.sort=e.sort),null!=e.requiredFields&&(o.requiredFields=e.requiredFields.map(e=>$root.wix.api.Wql.RequiredFields.toGRPC(e,t))),null!=e.maturity&&(o.maturity=e.maturity),null!=e.virtualSubfields&&(o.virtualSubfields=e.virtualSubfields),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.Wql.OperatorFieldSupport;return null!=e.operator?o.operator=e.operator.map(e=>e):o.operator=[],null!=e.glob?o.glob=e.glob:o.glob="",null!=e.field?o.field=e.field.map(e=>e):o.field=[],null!=e.sort?o.sort=e.sort:o.sort="NONE",null!=e.requiredFields?o.requiredFields=e.requiredFields.map(e=>$root.wix.api.Wql.RequiredFields.fromGRPC(e,t)):o.requiredFields=[],null!=e.maturity?o.maturity=e.maturity:o.maturity="ALPHA",null!=e.virtualSubfields?o.virtualSubfields=e.virtualSubfields:o.virtualSubfields="NO_VIRTUAL_SUBFIELDS",o}}}return __builtIn.Object.defineProperty(OperatorFieldSupport.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Wql.OperatorFieldSupport"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OperatorFieldSupport.prototype,"__fqn__",{value:"wix.api.Wql.OperatorFieldSupport",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OperatorFieldSupport.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OperatorFieldSupport.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),OperatorFieldSupport}(),__builtIn.Object.defineProperty(Wql.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Wql"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Wql.prototype,"__fqn__",{value:"wix.api.Wql",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Wql.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Wql.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Wql}(),e.Search=function(){class Search{constructor(e){this.field=e&&e.field,this.maturity=e&&e.maturity}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.field?t.field=e.field.map(e=>e):o&&(t.field=[]),null!=e.maturity?t.maturity=$root.wix.api.Maturity[e.maturity]:o&&(t.maturity="ALPHA"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Search;return null!=e.field?t.field=Array.isArray(e.field)?e.field.map(e=>e):e.field:!1!==o?t.field=[]:delete t.field,null!=e.maturity?t.maturity="string"==typeof e.maturity?e.maturity:$root.wix.api.Maturity[e.maturity]:!1!==o?t.maturity="ALPHA":delete t.maturity,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.field&&(t.field=e.field.map(e=>e)),null!=e.maturity&&(t.maturity=e.maturity),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Search;return null!=e.field?t.field=e.field.map(e=>e):t.field=[],null!=e.maturity?t.maturity=e.maturity:t.maturity="ALPHA",t}}}return __builtIn.Object.defineProperty(Search.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Search"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Search.prototype,"__fqn__",{value:"wix.api.Search",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Search.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Search.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Search}(),e.Translatable=function(){class Translatable{constructor(e){this.name=e&&e.name,this.hidden=e&&e.hidden,this.grouping=e&&e.grouping,this.type=e&&e.type,this.displayOnly=e&&e.displayOnly}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.name?t.name=e.name:o&&(t.name=""),null!=e.hidden?t.hidden=e.hidden:o&&(t.hidden=!1),null!=e.grouping?t.grouping=e.grouping:o&&(t.grouping=""),null!=e.type?t.type=$root.wix.api.Translatable.Type[e.type]:o&&(t.type="UNDEFINED_TYPE"),null!=e.displayOnly?t.displayOnly=e.displayOnly:o&&(t.displayOnly=!1),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Translatable;return null!=e.name?t.name=e.name:!1!==o?t.name="":delete t.name,null!=e.hidden?t.hidden=e.hidden:!1!==o?t.hidden=!1:delete t.hidden,null!=e.grouping?t.grouping=e.grouping:!1!==o?t.grouping="":delete t.grouping,null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.api.Translatable.Type[e.type]:!1!==o?t.type="UNDEFINED_TYPE":delete t.type,null!=e.displayOnly?t.displayOnly=e.displayOnly:!1!==o?t.displayOnly=!1:delete t.displayOnly,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.name&&(t.name=e.name),null!=e.hidden&&(t.hidden=e.hidden),null!=e.grouping&&(t.grouping=e.grouping),null!=e.type&&(t.type=e.type),null!=e.displayOnly&&(t.displayOnly=e.displayOnly),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Translatable;return null!=e.name?t.name=e.name:t.name="",null!=e.hidden?t.hidden=e.hidden:t.hidden=!1,null!=e.grouping?t.grouping=e.grouping:t.grouping="",null!=e.type?t.type=e.type:t.type="UNDEFINED_TYPE",null!=e.displayOnly?t.displayOnly=e.displayOnly:t.displayOnly=!1,t}}}return Translatable.Type={UNDEFINED_TYPE:"UNDEFINED_TYPE",0:"UNDEFINED_TYPE",SHORT_TEXT:"SHORT_TEXT",1:"SHORT_TEXT",LONG_TEXT:"LONG_TEXT",2:"LONG_TEXT",RICH_TEXT:"RICH_TEXT",3:"RICH_TEXT",RICH_CONTENT_EDITOR:"RICH_CONTENT_EDITOR",4:"RICH_CONTENT_EDITOR",SELECTION:"SELECTION",5:"SELECTION",MULTI_SELECTION:"MULTI_SELECTION",6:"MULTI_SELECTION",DOCUMENT:"DOCUMENT",7:"DOCUMENT",IMAGE:"IMAGE",8:"IMAGE",VIDEO:"VIDEO",9:"VIDEO",IMAGE_LINK:"IMAGE_LINK",10:"IMAGE_LINK"},Translatable.Type={UNDEFINED_TYPE:"UNDEFINED_TYPE",0:"UNDEFINED_TYPE",SHORT_TEXT:"SHORT_TEXT",1:"SHORT_TEXT",LONG_TEXT:"LONG_TEXT",2:"LONG_TEXT",RICH_TEXT:"RICH_TEXT",3:"RICH_TEXT",RICH_CONTENT_EDITOR:"RICH_CONTENT_EDITOR",4:"RICH_CONTENT_EDITOR",SELECTION:"SELECTION",5:"SELECTION",MULTI_SELECTION:"MULTI_SELECTION",6:"MULTI_SELECTION",DOCUMENT:"DOCUMENT",7:"DOCUMENT",IMAGE:"IMAGE",8:"IMAGE",VIDEO:"VIDEO",9:"VIDEO",IMAGE_LINK:"IMAGE_LINK",10:"IMAGE_LINK"},__builtIn.Object.defineProperty(Translatable.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Translatable"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Translatable.prototype,"__fqn__",{value:"wix.api.Translatable",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Translatable.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Translatable.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Translatable}(),e.Conditional=function(){class Conditional{constructor(e){this.permission=e&&e.permission,this.requestedField=e&&e.requestedField}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.permission?t.permission=e.permission:o&&(t.permission=""),null!=e.requestedField?t.requestedField=e.requestedField:o&&(t.requestedField=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Conditional;return null!=e.permission?t.permission=e.permission:!1!==o?t.permission="":delete t.permission,null!=e.requestedField?t.requestedField=e.requestedField:!1!==o?t.requestedField="":delete t.requestedField,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.permission&&(t.permission=e.permission),null!=e.requestedField&&(t.requestedField=e.requestedField),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Conditional;return null!=e.permission?t.permission=e.permission:t.permission="",null!=e.requestedField?t.requestedField=e.requestedField:t.requestedField="",t}}}return __builtIn.Object.defineProperty(Conditional.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Conditional"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Conditional.prototype,"__fqn__",{value:"wix.api.Conditional",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Conditional.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Conditional.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Conditional}(),e.ServiceAppendix=function(){class ServiceAppendix{constructor(e){this.type=e&&e.type,this.path=e&&e.path}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.type?t.type=$root.wix.api.ServiceAppendix.Type[e.type]:o&&(t.type="UNKNOWN_APPENDIX_TYPE"),null!=e.path?t.path=e.path:o&&(t.path=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.ServiceAppendix;return null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.api.ServiceAppendix.Type[e.type]:!1!==o?t.type="UNKNOWN_APPENDIX_TYPE":delete t.type,null!=e.path?t.path=e.path:!1!==o?t.path="":delete t.path,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),null!=e.path&&(t.path=e.path),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.ServiceAppendix;return null!=e.type?t.type=e.type:t.type="UNKNOWN_APPENDIX_TYPE",null!=e.path?t.path=e.path:t.path="",t}}}return ServiceAppendix.Type={UNKNOWN_APPENDIX_TYPE:"UNKNOWN_APPENDIX_TYPE",0:"UNKNOWN_APPENDIX_TYPE",NILE:"NILE",1:"NILE",MESSAGE_BUS:"MESSAGE_BUS",2:"MESSAGE_BUS"},ServiceAppendix.Type={UNKNOWN_APPENDIX_TYPE:"UNKNOWN_APPENDIX_TYPE",0:"UNKNOWN_APPENDIX_TYPE",NILE:"NILE",1:"NILE",MESSAGE_BUS:"MESSAGE_BUS",2:"MESSAGE_BUS"},__builtIn.Object.defineProperty(ServiceAppendix.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.ServiceAppendix"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceAppendix.prototype,"__fqn__",{value:"wix.api.ServiceAppendix",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceAppendix.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceAppendix.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ServiceAppendix}(),e.Exposure={PRIVATE:"PRIVATE",0:"PRIVATE",INTERNAL:"INTERNAL",1:"INTERNAL",PUBLIC:"PUBLIC",2:"PUBLIC"},e.Maturity={ALPHA:"ALPHA",0:"ALPHA",BETA:"BETA",1:"BETA",IA:"IA",2:"IA",GA:"GA",3:"GA",NOT_IMPLEMENTED:"NOT_IMPLEMENTED",4:"NOT_IMPLEMENTED"},e.Error=function(){class Error{constructor(e){this.httpCode=e&&e.httpCode,this.applicationCode=e&&e.applicationCode,this.data=e&&e.data}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.httpCode?t.httpCode=$root.wix.api.StatusCodes.HttpStatusCode[e.httpCode]:o&&(t.httpCode="OK"),null!=e.applicationCode?t.applicationCode=e.applicationCode:o&&(t.applicationCode=""),null!=e.data?t.data=e.data:o&&(t.data=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Error;return null!=e.httpCode?t.httpCode="string"==typeof e.httpCode?e.httpCode:$root.wix.api.StatusCodes.HttpStatusCode[e.httpCode]:!1!==o?t.httpCode="OK":delete t.httpCode,null!=e.applicationCode?t.applicationCode=e.applicationCode:!1!==o?t.applicationCode="":delete t.applicationCode,null!=e.data?t.data=e.data:!1!==o?t.data="":delete t.data,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.httpCode&&(t.httpCode=e.httpCode),null!=e.applicationCode&&(t.applicationCode=e.applicationCode),null!=e.data&&(t.data=e.data),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Error;return null!=e.httpCode?t.httpCode=e.httpCode:t.httpCode="OK",null!=e.applicationCode?t.applicationCode=e.applicationCode:t.applicationCode="",null!=e.data?t.data=e.data:t.data="",t}}}return __builtIn.Object.defineProperty(Error.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Error"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Error.prototype,"__fqn__",{value:"wix.api.Error",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Error.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Error.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Error}(),e.ErrorRef=function(){class ErrorRef{constructor(e){this.applicationCode=e&&e.applicationCode}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.applicationCode?t.applicationCode=e.applicationCode:o&&(t.applicationCode=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.ErrorRef;return null!=e.applicationCode?t.applicationCode=e.applicationCode:!1!==o?t.applicationCode="":delete t.applicationCode,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.applicationCode&&(t.applicationCode=e.applicationCode),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.ErrorRef;return null!=e.applicationCode?t.applicationCode=e.applicationCode:t.applicationCode="",t}}}return __builtIn.Object.defineProperty(ErrorRef.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.ErrorRef"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ErrorRef.prototype,"__fqn__",{value:"wix.api.ErrorRef",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ErrorRef.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ErrorRef.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ErrorRef}(),e.CustomValidationError=function(){class CustomValidationError{constructor(e){this.ruleName=e&&e.ruleName,this.data=e&&e.data}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.ruleName?t.ruleName=e.ruleName:o&&(t.ruleName=""),null!=e.data?t.data=e.data:o&&(t.data=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.CustomValidationError;return null!=e.ruleName?t.ruleName=e.ruleName:!1!==o?t.ruleName="":delete t.ruleName,null!=e.data?t.data=e.data:!1!==o?t.data="":delete t.data,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.ruleName&&(t.ruleName=e.ruleName),null!=e.data&&(t.data=e.data),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.CustomValidationError;return null!=e.ruleName?t.ruleName=e.ruleName:t.ruleName="",null!=e.data?t.data=e.data:t.data="",t}}}return __builtIn.Object.defineProperty(CustomValidationError.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.CustomValidationError"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CustomValidationError.prototype,"__fqn__",{value:"wix.api.CustomValidationError",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CustomValidationError.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CustomValidationError.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),CustomValidationError}(),e.InheritCrudErrors=function(){class InheritCrudErrors{constructor(e){this.method=e&&e.method}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.method?t.method=$root.wix.api.Crud.Method[e.method]:o&&(t.method="UNKNOWN_METHOD"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.InheritCrudErrors;return null!=e.method?t.method="string"==typeof e.method?e.method:$root.wix.api.Crud.Method[e.method]:!1!==o?t.method="UNKNOWN_METHOD":delete t.method,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.method&&(t.method=e.method),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.InheritCrudErrors;return null!=e.method?t.method=e.method:t.method="UNKNOWN_METHOD",t}}}return __builtIn.Object.defineProperty(InheritCrudErrors.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.InheritCrudErrors"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(InheritCrudErrors.prototype,"__fqn__",{value:"wix.api.InheritCrudErrors",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(InheritCrudErrors.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(InheritCrudErrors.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),InheritCrudErrors}(),e.StatusCodes=function(){class StatusCodes{constructor(e){}static toJSON(e,t,o){if(null==e)return null;return{}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;return new $root.wix.api.StatusCodes}static toGRPC(e,t){if(null==e)return null;return{}}static fromGRPC(e,t){if(null==e)return null;return new $root.wix.api.StatusCodes}}return StatusCodes.HttpStatusCode={OK:"OK",0:"OK",UNAUTHENTICATED:"UNAUTHENTICATED",1:"UNAUTHENTICATED",PERMISSION_DENIED:"PERMISSION_DENIED",2:"PERMISSION_DENIED",INVALID_ARGUMENT:"INVALID_ARGUMENT",3:"INVALID_ARGUMENT",NOT_FOUND:"NOT_FOUND",4:"NOT_FOUND",INTERNAL:"INTERNAL",5:"INTERNAL",UNAVAILABLE:"UNAVAILABLE",6:"UNAVAILABLE",RESOURCE_EXHAUSTED:"RESOURCE_EXHAUSTED",7:"RESOURCE_EXHAUSTED",CANCELED:"CANCELED",8:"CANCELED",ALREADY_EXISTS:"ALREADY_EXISTS",9:"ALREADY_EXISTS",FAILED_PRECONDITION:"FAILED_PRECONDITION",10:"FAILED_PRECONDITION"},StatusCodes.HttpStatusCode={OK:"OK",0:"OK",UNAUTHENTICATED:"UNAUTHENTICATED",1:"UNAUTHENTICATED",PERMISSION_DENIED:"PERMISSION_DENIED",2:"PERMISSION_DENIED",INVALID_ARGUMENT:"INVALID_ARGUMENT",3:"INVALID_ARGUMENT",NOT_FOUND:"NOT_FOUND",4:"NOT_FOUND",INTERNAL:"INTERNAL",5:"INTERNAL",UNAVAILABLE:"UNAVAILABLE",6:"UNAVAILABLE",RESOURCE_EXHAUSTED:"RESOURCE_EXHAUSTED",7:"RESOURCE_EXHAUSTED",CANCELED:"CANCELED",8:"CANCELED",ALREADY_EXISTS:"ALREADY_EXISTS",9:"ALREADY_EXISTS",FAILED_PRECONDITION:"FAILED_PRECONDITION",10:"FAILED_PRECONDITION"},__builtIn.Object.defineProperty(StatusCodes.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.StatusCodes"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StatusCodes.prototype,"__fqn__",{value:"wix.api.StatusCodes",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StatusCodes.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StatusCodes.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),StatusCodes}(),e.Callback=function(){class Callback{constructor(e){this.topic=e&&e.topic,this.segment=e&&e.segment,this.payload=e&&e.payload,this.permission=e&&e.permission,this.eventType=e&&e.eventType,this.exposure=e&&e.exposure,this.maturity=e&&e.maturity}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.topic?t.topic=e.topic:o&&(t.topic=""),null!=e.segment?t.segment=$root.wix.api.Segment.SegmentName[e.segment]:o&&(t.segment="UNSPECIFIED"),null!=e.payload?t.payload=e.payload:o&&(t.payload=""),null!=e.permission?t.permission=e.permission:o&&(t.permission=""),null!=e.eventType?t.eventType=$root.wix.api.Callback.EventType[e.eventType]:o&&(t.eventType="UNKNOWN"),null!=e.exposure?t.exposure=$root.wix.api.Exposure[e.exposure]:o&&(t.exposure="PRIVATE"),null!=e.maturity?t.maturity=$root.wix.api.Maturity[e.maturity]:o&&(t.maturity="ALPHA"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Callback;return null!=e.topic?t.topic=e.topic:!1!==o?t.topic="":delete t.topic,null!=e.segment?t.segment="string"==typeof e.segment?e.segment:$root.wix.api.Segment.SegmentName[e.segment]:!1!==o?t.segment="UNSPECIFIED":delete t.segment,null!=e.payload?t.payload=e.payload:!1!==o?t.payload="":delete t.payload,null!=e.permission?t.permission=e.permission:!1!==o?t.permission="":delete t.permission,null!=e.eventType?t.eventType="string"==typeof e.eventType?e.eventType:$root.wix.api.Callback.EventType[e.eventType]:!1!==o?t.eventType="UNKNOWN":delete t.eventType,null!=e.exposure?t.exposure="string"==typeof e.exposure?e.exposure:$root.wix.api.Exposure[e.exposure]:!1!==o?t.exposure="PRIVATE":delete t.exposure,null!=e.maturity?t.maturity="string"==typeof e.maturity?e.maturity:$root.wix.api.Maturity[e.maturity]:!1!==o?t.maturity="ALPHA":delete t.maturity,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.topic&&(t.topic=e.topic),null!=e.segment&&(t.segment=e.segment),null!=e.payload&&(t.payload=e.payload),null!=e.permission&&(t.permission=e.permission),null!=e.eventType&&(t.eventType=e.eventType),null!=e.exposure&&(t.exposure=e.exposure),null!=e.maturity&&(t.maturity=e.maturity),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Callback;return null!=e.topic?t.topic=e.topic:t.topic="",null!=e.segment?t.segment=e.segment:t.segment="UNSPECIFIED",null!=e.payload?t.payload=e.payload:t.payload="",null!=e.permission?t.permission=e.permission:t.permission="",null!=e.eventType?t.eventType=e.eventType:t.eventType="UNKNOWN",null!=e.exposure?t.exposure=e.exposure:t.exposure="PRIVATE",null!=e.maturity?t.maturity=e.maturity:t.maturity="ALPHA",t}}}return Callback.EventType={UNKNOWN:"UNKNOWN",0:"UNKNOWN",CREATED:"CREATED",1:"CREATED",UPDATED:"UPDATED",2:"UPDATED",DELETED:"DELETED",3:"DELETED",ACTION:"ACTION",4:"ACTION"},Callback.EventType={UNKNOWN:"UNKNOWN",0:"UNKNOWN",CREATED:"CREATED",1:"CREATED",UPDATED:"UPDATED",2:"UPDATED",DELETED:"DELETED",3:"DELETED",ACTION:"ACTION",4:"ACTION"},__builtIn.Object.defineProperty(Callback.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Callback"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Callback.prototype,"__fqn__",{value:"wix.api.Callback",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Callback.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Callback.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Callback}(),e.DomainEvent=function(){class DomainEvent{constructor(e){this.actionMessageFqn=e&&e.actionMessageFqn,this.webhookPermissionOverride=e&&e.webhookPermissionOverride,this.eventType=e&&e.eventType,this.exposure=e&&e.exposure,this.maturity=e&&e.maturity,this.additionalMetadataFqn=e&&e.additionalMetadataFqn,this.deprecated=e&&e.deprecated}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.actionMessageFqn?n.actionMessageFqn=e.actionMessageFqn:o&&(n.actionMessageFqn=""),null!=e.webhookPermissionOverride?n.webhookPermissionOverride=e.webhookPermissionOverride:o&&(n.webhookPermissionOverride=""),null!=e.eventType?n.eventType=$root.wix.api.DomainEvent.EventType[e.eventType]:o&&(n.eventType="UNKNOWN"),null!=e.exposure?n.exposure=$root.wix.api.Exposure[e.exposure]:o&&(n.exposure="PRIVATE"),null!=e.maturity?n.maturity=$root.wix.api.Maturity[e.maturity]:o&&(n.maturity="ALPHA"),null!=e.additionalMetadataFqn?n.additionalMetadataFqn=e.additionalMetadataFqn:o&&(n.additionalMetadataFqn=""),null!=e.deprecated?n.deprecated=$root.wix.api.DomainEventDeprecation.toJSON(e.deprecated,t,o):o&&delete n.deprecated,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.DomainEvent;return null!=e.actionMessageFqn?n.actionMessageFqn=e.actionMessageFqn:!1!==o?n.actionMessageFqn="":delete n.actionMessageFqn,null!=e.webhookPermissionOverride?n.webhookPermissionOverride=e.webhookPermissionOverride:!1!==o?n.webhookPermissionOverride="":delete n.webhookPermissionOverride,null!=e.eventType?n.eventType="string"==typeof e.eventType?e.eventType:$root.wix.api.DomainEvent.EventType[e.eventType]:!1!==o?n.eventType="UNKNOWN":delete n.eventType,null!=e.exposure?n.exposure="string"==typeof e.exposure?e.exposure:$root.wix.api.Exposure[e.exposure]:!1!==o?n.exposure="PRIVATE":delete n.exposure,null!=e.maturity?n.maturity="string"==typeof e.maturity?e.maturity:$root.wix.api.Maturity[e.maturity]:!1!==o?n.maturity="ALPHA":delete n.maturity,null!=e.additionalMetadataFqn?n.additionalMetadataFqn=e.additionalMetadataFqn:!1!==o?n.additionalMetadataFqn="":delete n.additionalMetadataFqn,null!=e.deprecated?n.deprecated=$root.wix.api.DomainEventDeprecation.fromJSON(e.deprecated,t):delete n.deprecated,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.actionMessageFqn&&(o.actionMessageFqn=e.actionMessageFqn),null!=e.webhookPermissionOverride&&(o.webhookPermissionOverride=e.webhookPermissionOverride),null!=e.eventType&&(o.eventType=e.eventType),null!=e.exposure&&(o.exposure=e.exposure),null!=e.maturity&&(o.maturity=e.maturity),null!=e.additionalMetadataFqn&&(o.additionalMetadataFqn=e.additionalMetadataFqn),null!=e.deprecated&&(o.deprecated=$root.wix.api.DomainEventDeprecation.toGRPC(e.deprecated,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.DomainEvent;return null!=e.actionMessageFqn?o.actionMessageFqn=e.actionMessageFqn:o.actionMessageFqn="",null!=e.webhookPermissionOverride?o.webhookPermissionOverride=e.webhookPermissionOverride:o.webhookPermissionOverride="",null!=e.eventType?o.eventType=e.eventType:o.eventType="UNKNOWN",null!=e.exposure?o.exposure=e.exposure:o.exposure="PRIVATE",null!=e.maturity?o.maturity=e.maturity:o.maturity="ALPHA",null!=e.additionalMetadataFqn?o.additionalMetadataFqn=e.additionalMetadataFqn:o.additionalMetadataFqn="",null!=e.deprecated?o.deprecated=$root.wix.api.DomainEventDeprecation.fromGRPC(e.deprecated,t):delete o.deprecated,o}}}return DomainEvent.EventType={UNKNOWN:"UNKNOWN",0:"UNKNOWN",CREATED:"CREATED",1:"CREATED",UPDATED:"UPDATED",2:"UPDATED",DELETED:"DELETED",3:"DELETED",ACTION:"ACTION",4:"ACTION"},DomainEvent.EventType={UNKNOWN:"UNKNOWN",0:"UNKNOWN",CREATED:"CREATED",1:"CREATED",UPDATED:"UPDATED",2:"UPDATED",DELETED:"DELETED",3:"DELETED",ACTION:"ACTION",4:"ACTION"},__builtIn.Object.defineProperty(DomainEvent.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.DomainEvent"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DomainEvent.prototype,"__fqn__",{value:"wix.api.DomainEvent",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DomainEvent.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DomainEvent.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DomainEvent}(),e.Emits=function(){class Emits{constructor(e){this.eventType=e&&e.eventType,this.actionMessageFqn=e&&e.actionMessageFqn}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.eventType?t.eventType=$root.wix.api.DomainEvent.EventType[e.eventType]:o&&(t.eventType="UNKNOWN"),null!=e.actionMessageFqn?t.actionMessageFqn=e.actionMessageFqn:o&&(t.actionMessageFqn=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Emits;return null!=e.eventType?t.eventType="string"==typeof e.eventType?e.eventType:$root.wix.api.DomainEvent.EventType[e.eventType]:!1!==o?t.eventType="UNKNOWN":delete t.eventType,null!=e.actionMessageFqn?t.actionMessageFqn=e.actionMessageFqn:!1!==o?t.actionMessageFqn="":delete t.actionMessageFqn,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.eventType&&(t.eventType=e.eventType),null!=e.actionMessageFqn&&(t.actionMessageFqn=e.actionMessageFqn),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Emits;return null!=e.eventType?t.eventType=e.eventType:t.eventType="UNKNOWN",null!=e.actionMessageFqn?t.actionMessageFqn=e.actionMessageFqn:t.actionMessageFqn="",t}}}return __builtIn.Object.defineProperty(Emits.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Emits"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Emits.prototype,"__fqn__",{value:"wix.api.Emits",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Emits.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Emits.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Emits}(),e.DomainEventDeprecation=function(){class DomainEventDeprecation{constructor(e){this.replacedBy=e&&e.replacedBy,this.targetRemovalDate=e&&e.targetRemovalDate}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.replacedBy?t.replacedBy=e.replacedBy:o&&(t.replacedBy=""),null!=e.targetRemovalDate?t.targetRemovalDate=e.targetRemovalDate:o&&(t.targetRemovalDate=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.DomainEventDeprecation;return null!=e.replacedBy?t.replacedBy=e.replacedBy:!1!==o?t.replacedBy="":delete t.replacedBy,null!=e.targetRemovalDate?t.targetRemovalDate=e.targetRemovalDate:!1!==o?t.targetRemovalDate="":delete t.targetRemovalDate,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.replacedBy&&(t.replacedBy=e.replacedBy),null!=e.targetRemovalDate&&(t.targetRemovalDate=e.targetRemovalDate),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.DomainEventDeprecation;return null!=e.replacedBy?t.replacedBy=e.replacedBy:t.replacedBy="",null!=e.targetRemovalDate?t.targetRemovalDate=e.targetRemovalDate:t.targetRemovalDate="",t}}}return __builtIn.Object.defineProperty(DomainEventDeprecation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.DomainEventDeprecation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DomainEventDeprecation.prototype,"__fqn__",{value:"wix.api.DomainEventDeprecation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DomainEventDeprecation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DomainEventDeprecation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DomainEventDeprecation}(),e.CallbackDeprecation=function(){class CallbackDeprecation{constructor(e){this.replacedBy=e&&e.replacedBy,this.targetRemovalDate=e&&e.targetRemovalDate,this.eventType=e&&e.eventType,this.customSlug=e&&e.customSlug,this.payload=e&&e.payload}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.replacedBy?t.replacedBy=e.replacedBy:o&&(t.replacedBy=""),null!=e.targetRemovalDate?t.targetRemovalDate=e.targetRemovalDate:o&&(t.targetRemovalDate=""),null!=e.eventType?t.eventType=$root.wix.api.Callback.EventType[e.eventType]:o&&(t.eventType="UNKNOWN"),null!=e.customSlug?t.customSlug=e.customSlug:o&&(t.customSlug=""),null!=e.payload?t.payload=e.payload:o&&(t.payload=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.CallbackDeprecation;return null!=e.replacedBy?t.replacedBy=e.replacedBy:!1!==o?t.replacedBy="":delete t.replacedBy,null!=e.targetRemovalDate?t.targetRemovalDate=e.targetRemovalDate:!1!==o?t.targetRemovalDate="":delete t.targetRemovalDate,null!=e.eventType?t.eventType="string"==typeof e.eventType?e.eventType:$root.wix.api.Callback.EventType[e.eventType]:!1!==o?t.eventType="UNKNOWN":delete t.eventType,null!=e.customSlug?t.customSlug=e.customSlug:!1!==o?t.customSlug="":delete t.customSlug,null!=e.payload?t.payload=e.payload:!1!==o?t.payload="":delete t.payload,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.replacedBy&&(t.replacedBy=e.replacedBy),null!=e.targetRemovalDate&&(t.targetRemovalDate=e.targetRemovalDate),null!=e.eventType&&(t.eventType=e.eventType),null!=e.customSlug&&(t.customSlug=e.customSlug),null!=e.payload&&(t.payload=e.payload),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.CallbackDeprecation;return null!=e.replacedBy?t.replacedBy=e.replacedBy:t.replacedBy="",null!=e.targetRemovalDate?t.targetRemovalDate=e.targetRemovalDate:t.targetRemovalDate="",null!=e.eventType?t.eventType=e.eventType:t.eventType="UNKNOWN",null!=e.customSlug?t.customSlug=e.customSlug:t.customSlug="",null!=e.payload?t.payload=e.payload:t.payload="",t}}}return __builtIn.Object.defineProperty(CallbackDeprecation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.CallbackDeprecation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CallbackDeprecation.prototype,"__fqn__",{value:"wix.api.CallbackDeprecation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CallbackDeprecation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CallbackDeprecation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),CallbackDeprecation}(),e.Segment=function(){class Segment{constructor(e){}static toJSON(e,t,o){if(null==e)return null;return{}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;return new $root.wix.api.Segment}static toGRPC(e,t){if(null==e)return null;return{}}static fromGRPC(e,t){if(null==e)return null;return new $root.wix.api.Segment}}return Segment.SegmentName={UNSPECIFIED:"UNSPECIFIED",0:"UNSPECIFIED",USERS:"USERS",1:"USERS",PUBLIC:"PUBLIC",2:"PUBLIC",OTHERS:"OTHERS",3:"OTHERS"},Segment.SegmentName={UNSPECIFIED:"UNSPECIFIED",0:"UNSPECIFIED",USERS:"USERS",1:"USERS",PUBLIC:"PUBLIC",2:"PUBLIC",OTHERS:"OTHERS",3:"OTHERS"},__builtIn.Object.defineProperty(Segment.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Segment"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Segment.prototype,"__fqn__",{value:"wix.api.Segment",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Segment.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Segment.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Segment}(),e.RequestContext=function(){class RequestContext{constructor(e){this.aspects=e&&e.aspects}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.aspects?t.aspects=Object.entries(e.aspects).reduce((e,[t,o])=>(e[t]=o,e),{}):o&&delete t.aspects,t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.RequestContext;return null!=e.aspects?t.aspects=Object.entries(e.aspects).reduce((e,[t,o])=>(e[t]=o,e),{}):delete t.aspects,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.aspects&&(t.aspects=Object.entries(e.aspects).reduce((e,[t,o])=>(e[t]=o,e),{})),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.RequestContext;return null!=e.aspects?t.aspects=Object.entries(e.aspects).reduce((e,[t,o])=>(e[t]=o,e),{}):delete t.aspects,t}}}return __builtIn.Object.defineProperty(RequestContext.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.RequestContext"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequestContext.prototype,"__fqn__",{value:"wix.api.RequestContext",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequestContext.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequestContext.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RequestContext}(),e.ResponseContext=function(){class ResponseContext{constructor(e){this.aspects=e&&e.aspects}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.aspects?n.aspects=e.aspects.map(e=>$root.wix.api.ResponseContextEntry.toJSON(e,t,o)):o&&(n.aspects=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.ResponseContext;return null!=e.aspects?n.aspects=Array.isArray(e.aspects)?e.aspects.map(e=>$root.wix.api.ResponseContextEntry.fromJSON(e,t)):e.aspects:!1!==o?n.aspects=[]:delete n.aspects,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.aspects&&(o.aspects=e.aspects.map(e=>$root.wix.api.ResponseContextEntry.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.ResponseContext;return null!=e.aspects?o.aspects=e.aspects.map(e=>$root.wix.api.ResponseContextEntry.fromGRPC(e,t)):o.aspects=[],o}}}return __builtIn.Object.defineProperty(ResponseContext.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.ResponseContext"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ResponseContext.prototype,"__fqn__",{value:"wix.api.ResponseContext",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ResponseContext.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ResponseContext.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ResponseContext}(),e.ResponseContextEntry=function(){class ResponseContextEntry{constructor(e){this.aspectEntry=e&&e.aspectEntry}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.aspectEntry?t.aspectEntry=Object.entries(e.aspectEntry).reduce((e,[t,o])=>(e[t]=o,e),{}):o&&delete t.aspectEntry,t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.ResponseContextEntry;return null!=e.aspectEntry?t.aspectEntry=Object.entries(e.aspectEntry).reduce((e,[t,o])=>(e[t]=o,e),{}):delete t.aspectEntry,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.aspectEntry&&(t.aspectEntry=Object.entries(e.aspectEntry).reduce((e,[t,o])=>(e[t]=o,e),{})),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.ResponseContextEntry;return null!=e.aspectEntry?t.aspectEntry=Object.entries(e.aspectEntry).reduce((e,[t,o])=>(e[t]=o,e),{}):delete t.aspectEntry,t}}}return __builtIn.Object.defineProperty(ResponseContextEntry.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.ResponseContextEntry"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ResponseContextEntry.prototype,"__fqn__",{value:"wix.api.ResponseContextEntry",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ResponseContextEntry.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ResponseContextEntry.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ResponseContextEntry}(),e.ServiceEntity=function(){class ServiceEntity{constructor(e){this.message=e&&e.message,this.namespace=e&&e.namespace}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.message?t.message=e.message:o&&(t.message=""),null!=e.namespace?t.namespace=e.namespace:o&&(t.namespace=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.ServiceEntity;return null!=e.message?t.message=e.message:!1!==o?t.message="":delete t.message,null!=e.namespace?t.namespace=e.namespace:!1!==o?t.namespace="":delete t.namespace,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.message&&(t.message=e.message),null!=e.namespace&&(t.namespace=e.namespace),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.ServiceEntity;return null!=e.message?t.message=e.message:t.message="",null!=e.namespace?t.namespace=e.namespace:t.namespace="",t}}}return __builtIn.Object.defineProperty(ServiceEntity.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.ServiceEntity"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceEntity.prototype,"__fqn__",{value:"wix.api.ServiceEntity",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceEntity.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceEntity.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ServiceEntity}(),e.Entity=function(){class Entity{constructor(e){this.fqdn=e&&e.fqdn,this.exposure=e&&e.exposure,this.appendixFiles=e&&e.appendixFiles,this.oldFqdnForBackwardsCompatibility=e&&e.oldFqdnForBackwardsCompatibility,this.segment=e&&e.segment,this.implements=e&&e.implements,this.extensible=e&&e.extensible,this.trashbin=e&&e.trashbin,this.plural=e&&e.plural,this.domainEventsReadPermission=e&&e.domainEventsReadPermission,this.appDefId=e&&e.appDefId,this.domainEvents=e&&e.domainEvents,this.taggable=e&&e.taggable,this.queryOptions=e&&e.queryOptions,this.eventsExposure=e&&e.eventsExposure,this.eventsMaturity=e&&e.eventsMaturity,this.persistence=e&&e.persistence,this.permissionOptions=e&&e.permissionOptions}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.fqdn?n.fqdn=e.fqdn:o&&(n.fqdn=""),null!=e.exposure?n.exposure=$root.wix.api.Exposure[e.exposure]:o&&(n.exposure="PRIVATE"),null!=e.appendixFiles?n.appendixFiles=e.appendixFiles.map(e=>$root.wix.api.MessageAppendix.toJSON(e,t,o)):o&&(n.appendixFiles=[]),null!=e.oldFqdnForBackwardsCompatibility?n.oldFqdnForBackwardsCompatibility=e.oldFqdnForBackwardsCompatibility:o&&(n.oldFqdnForBackwardsCompatibility=""),null!=e.segment?n.segment=$root.wix.api.Segment.SegmentName[e.segment]:o&&(n.segment="UNSPECIFIED"),null!=e.implements?n.implements=e.implements.map(e=>e):o&&(n.implements=[]),null!=e.extensible?n.extensible=$root.wix.api.Extensible.toJSON(e.extensible,t,o):o&&delete n.extensible,null!=e.trashbin?n.trashbin=e.trashbin:o&&(n.trashbin=!1),null!=e.plural?n.plural=e.plural:o&&(n.plural=""),null!=e.domainEventsReadPermission?n.domainEventsReadPermission=e.domainEventsReadPermission:o&&(n.domainEventsReadPermission=""),null!=e.appDefId?n.appDefId=e.appDefId:o&&(n.appDefId=""),null!=e.domainEvents?n.domainEvents=$root.wix.api.DomainEventOptions.toJSON(e.domainEvents,t,o):o&&delete n.domainEvents,null!=e.taggable?n.taggable=$root.wix.api.Taggable.toJSON(e.taggable,t,o):o&&delete n.taggable,null!=e.queryOptions?n.queryOptions=$root.wix.api.QueryOptions.toJSON(e.queryOptions,t,o):o&&delete n.queryOptions,null!=e.eventsExposure?n.eventsExposure=$root.wix.api.Exposure[e.eventsExposure]:o&&(n.eventsExposure="PRIVATE"),null!=e.eventsMaturity?n.eventsMaturity=$root.wix.api.Maturity[e.eventsMaturity]:o&&(n.eventsMaturity="ALPHA"),null!=e.persistence?n.persistence=$root.wix.api.Persistence.toJSON(e.persistence,t,o):o&&delete n.persistence,null!=e.permissionOptions?n.permissionOptions=$root.wix.api.PermissionCatalogOptions.toJSON(e.permissionOptions,t,o):o&&delete n.permissionOptions,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.Entity;return null!=e.fqdn?n.fqdn=e.fqdn:!1!==o?n.fqdn="":delete n.fqdn,null!=e.exposure?n.exposure="string"==typeof e.exposure?e.exposure:$root.wix.api.Exposure[e.exposure]:!1!==o?n.exposure="PRIVATE":delete n.exposure,null!=e.appendixFiles?n.appendixFiles=Array.isArray(e.appendixFiles)?e.appendixFiles.map(e=>$root.wix.api.MessageAppendix.fromJSON(e,t)):e.appendixFiles:!1!==o?n.appendixFiles=[]:delete n.appendixFiles,null!=e.oldFqdnForBackwardsCompatibility?n.oldFqdnForBackwardsCompatibility=e.oldFqdnForBackwardsCompatibility:!1!==o?n.oldFqdnForBackwardsCompatibility="":delete n.oldFqdnForBackwardsCompatibility,null!=e.segment?n.segment="string"==typeof e.segment?e.segment:$root.wix.api.Segment.SegmentName[e.segment]:!1!==o?n.segment="UNSPECIFIED":delete n.segment,null!=e.implements?n.implements=Array.isArray(e.implements)?e.implements.map(e=>e):e.implements:!1!==o?n.implements=[]:delete n.implements,null!=e.extensible?n.extensible=$root.wix.api.Extensible.fromJSON(e.extensible,t):delete n.extensible,null!=e.trashbin?n.trashbin=e.trashbin:!1!==o?n.trashbin=!1:delete n.trashbin,null!=e.plural?n.plural=e.plural:!1!==o?n.plural="":delete n.plural,null!=e.domainEventsReadPermission?n.domainEventsReadPermission=e.domainEventsReadPermission:!1!==o?n.domainEventsReadPermission="":delete n.domainEventsReadPermission,null!=e.appDefId?n.appDefId=e.appDefId:!1!==o?n.appDefId="":delete n.appDefId,null!=e.domainEvents?n.domainEvents=$root.wix.api.DomainEventOptions.fromJSON(e.domainEvents,t):delete n.domainEvents,null!=e.taggable?n.taggable=$root.wix.api.Taggable.fromJSON(e.taggable,t):delete n.taggable,null!=e.queryOptions?n.queryOptions=$root.wix.api.QueryOptions.fromJSON(e.queryOptions,t):delete n.queryOptions,null!=e.eventsExposure?n.eventsExposure="string"==typeof e.eventsExposure?e.eventsExposure:$root.wix.api.Exposure[e.eventsExposure]:!1!==o?n.eventsExposure="PRIVATE":delete n.eventsExposure,null!=e.eventsMaturity?n.eventsMaturity="string"==typeof e.eventsMaturity?e.eventsMaturity:$root.wix.api.Maturity[e.eventsMaturity]:!1!==o?n.eventsMaturity="ALPHA":delete n.eventsMaturity,null!=e.persistence?n.persistence=$root.wix.api.Persistence.fromJSON(e.persistence,t):delete n.persistence,null!=e.permissionOptions?n.permissionOptions=$root.wix.api.PermissionCatalogOptions.fromJSON(e.permissionOptions,t):delete n.permissionOptions,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.fqdn&&(o.fqdn=e.fqdn),null!=e.exposure&&(o.exposure=e.exposure),null!=e.appendixFiles&&(o.appendixFiles=e.appendixFiles.map(e=>$root.wix.api.MessageAppendix.toGRPC(e,t))),null!=e.oldFqdnForBackwardsCompatibility&&(o.oldFqdnForBackwardsCompatibility=e.oldFqdnForBackwardsCompatibility),null!=e.segment&&(o.segment=e.segment),null!=e.implements&&(o.implements=e.implements.map(e=>e)),null!=e.extensible&&(o.extensible=$root.wix.api.Extensible.toGRPC(e.extensible,t)),null!=e.trashbin&&(o.trashbin=e.trashbin),null!=e.plural&&(o.plural=e.plural),null!=e.domainEventsReadPermission&&(o.domainEventsReadPermission=e.domainEventsReadPermission),null!=e.appDefId&&(o.appDefId=e.appDefId),null!=e.domainEvents&&(o.domainEvents=$root.wix.api.DomainEventOptions.toGRPC(e.domainEvents,t)),null!=e.taggable&&(o.taggable=$root.wix.api.Taggable.toGRPC(e.taggable,t)),null!=e.queryOptions&&(o.queryOptions=$root.wix.api.QueryOptions.toGRPC(e.queryOptions,t)),null!=e.eventsExposure&&(o.eventsExposure=e.eventsExposure),null!=e.eventsMaturity&&(o.eventsMaturity=e.eventsMaturity),null!=e.persistence&&(o.persistence=$root.wix.api.Persistence.toGRPC(e.persistence,t)),null!=e.permissionOptions&&(o.permissionOptions=$root.wix.api.PermissionCatalogOptions.toGRPC(e.permissionOptions,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.Entity;return null!=e.fqdn?o.fqdn=e.fqdn:o.fqdn="",null!=e.exposure?o.exposure=e.exposure:o.exposure="PRIVATE",null!=e.appendixFiles?o.appendixFiles=e.appendixFiles.map(e=>$root.wix.api.MessageAppendix.fromGRPC(e,t)):o.appendixFiles=[],null!=e.oldFqdnForBackwardsCompatibility?o.oldFqdnForBackwardsCompatibility=e.oldFqdnForBackwardsCompatibility:o.oldFqdnForBackwardsCompatibility="",null!=e.segment?o.segment=e.segment:o.segment="UNSPECIFIED",null!=e.implements?o.implements=e.implements.map(e=>e):o.implements=[],null!=e.extensible?o.extensible=$root.wix.api.Extensible.fromGRPC(e.extensible,t):delete o.extensible,null!=e.trashbin?o.trashbin=e.trashbin:o.trashbin=!1,null!=e.plural?o.plural=e.plural:o.plural="",null!=e.domainEventsReadPermission?o.domainEventsReadPermission=e.domainEventsReadPermission:o.domainEventsReadPermission="",null!=e.appDefId?o.appDefId=e.appDefId:o.appDefId="",null!=e.domainEvents?o.domainEvents=$root.wix.api.DomainEventOptions.fromGRPC(e.domainEvents,t):delete o.domainEvents,null!=e.taggable?o.taggable=$root.wix.api.Taggable.fromGRPC(e.taggable,t):delete o.taggable,null!=e.queryOptions?o.queryOptions=$root.wix.api.QueryOptions.fromGRPC(e.queryOptions,t):delete o.queryOptions,null!=e.eventsExposure?o.eventsExposure=e.eventsExposure:o.eventsExposure="PRIVATE",null!=e.eventsMaturity?o.eventsMaturity=e.eventsMaturity:o.eventsMaturity="ALPHA",null!=e.persistence?o.persistence=$root.wix.api.Persistence.fromGRPC(e.persistence,t):delete o.persistence,null!=e.permissionOptions?o.permissionOptions=$root.wix.api.PermissionCatalogOptions.fromGRPC(e.permissionOptions,t):delete o.permissionOptions,o}}}return __builtIn.Object.defineProperty(Entity.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Entity"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Entity.prototype,"__fqn__",{value:"wix.api.Entity",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Entity.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Entity.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Entity}(),e.PermissionCatalogOptions=function(){class PermissionCatalogOptions{constructor(e){this.autoGeneratePermissions=e&&e.autoGeneratePermissions,this.autoGenerateScopes=e&&e.autoGenerateScopes}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.autoGeneratePermissions?t.autoGeneratePermissions=e.autoGeneratePermissions:o&&(t.autoGeneratePermissions=!1),null!=e.autoGenerateScopes?t.autoGenerateScopes=e.autoGenerateScopes:o&&(t.autoGenerateScopes=!1),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.PermissionCatalogOptions;return null!=e.autoGeneratePermissions?t.autoGeneratePermissions=e.autoGeneratePermissions:!1!==o?t.autoGeneratePermissions=!1:delete t.autoGeneratePermissions,null!=e.autoGenerateScopes?t.autoGenerateScopes=e.autoGenerateScopes:!1!==o?t.autoGenerateScopes=!1:delete t.autoGenerateScopes,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.autoGeneratePermissions&&(t.autoGeneratePermissions=e.autoGeneratePermissions),null!=e.autoGenerateScopes&&(t.autoGenerateScopes=e.autoGenerateScopes),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.PermissionCatalogOptions;return null!=e.autoGeneratePermissions?t.autoGeneratePermissions=e.autoGeneratePermissions:t.autoGeneratePermissions=!1,null!=e.autoGenerateScopes?t.autoGenerateScopes=e.autoGenerateScopes:t.autoGenerateScopes=!1,t}}}return __builtIn.Object.defineProperty(PermissionCatalogOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.PermissionCatalogOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PermissionCatalogOptions.prototype,"__fqn__",{value:"wix.api.PermissionCatalogOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PermissionCatalogOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PermissionCatalogOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),PermissionCatalogOptions}(),e.Persistence=function(){class Persistence{constructor(e){this.type=e&&e.type}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.type?t.type=$root.wix.api.Persistence.Type[e.type]:o&&(t.type="STANDARD"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Persistence;return null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.api.Persistence.Type[e.type]:!1!==o?t.type="STANDARD":delete t.type,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Persistence;return null!=e.type?t.type=e.type:t.type="STANDARD",t}}}return Persistence.Type={STANDARD:"STANDARD",0:"STANDARD",SINGLETON:"SINGLETON",1:"SINGLETON",NONE:"NONE",2:"NONE"},Persistence.Type={STANDARD:"STANDARD",0:"STANDARD",SINGLETON:"SINGLETON",1:"SINGLETON",NONE:"NONE",2:"NONE"},__builtIn.Object.defineProperty(Persistence.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Persistence"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Persistence.prototype,"__fqn__",{value:"wix.api.Persistence",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Persistence.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Persistence.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Persistence}(),e.Extensible=function(){class Extensible{constructor(e){this.nestedExtensionFieldPath=e&&e.nestedExtensionFieldPath,this.filterable=e&&e.filterable,this.nestedExtensionPointMappings=e&&e.nestedExtensionPointMappings}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.nestedExtensionFieldPath?n.nestedExtensionFieldPath=e.nestedExtensionFieldPath:o&&(n.nestedExtensionFieldPath=""),null!=e.filterable?n.filterable=e.filterable:o&&(n.filterable=!1),null!=e.nestedExtensionPointMappings?n.nestedExtensionPointMappings=e.nestedExtensionPointMappings.map(e=>$root.wix.api.NestedExtensionPointMapping.toJSON(e,t,o)):o&&(n.nestedExtensionPointMappings=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.Extensible;return null!=e.nestedExtensionFieldPath?n.nestedExtensionFieldPath=e.nestedExtensionFieldPath:!1!==o?n.nestedExtensionFieldPath="":delete n.nestedExtensionFieldPath,null!=e.filterable?n.filterable=e.filterable:!1!==o?n.filterable=!1:delete n.filterable,null!=e.nestedExtensionPointMappings?n.nestedExtensionPointMappings=Array.isArray(e.nestedExtensionPointMappings)?e.nestedExtensionPointMappings.map(e=>$root.wix.api.NestedExtensionPointMapping.fromJSON(e,t)):e.nestedExtensionPointMappings:!1!==o?n.nestedExtensionPointMappings=[]:delete n.nestedExtensionPointMappings,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.nestedExtensionFieldPath&&(o.nestedExtensionFieldPath=e.nestedExtensionFieldPath),null!=e.filterable&&(o.filterable=e.filterable),null!=e.nestedExtensionPointMappings&&(o.nestedExtensionPointMappings=e.nestedExtensionPointMappings.map(e=>$root.wix.api.NestedExtensionPointMapping.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.Extensible;return null!=e.nestedExtensionFieldPath?o.nestedExtensionFieldPath=e.nestedExtensionFieldPath:o.nestedExtensionFieldPath="",null!=e.filterable?o.filterable=e.filterable:o.filterable=!1,null!=e.nestedExtensionPointMappings?o.nestedExtensionPointMappings=e.nestedExtensionPointMappings.map(e=>$root.wix.api.NestedExtensionPointMapping.fromGRPC(e,t)):o.nestedExtensionPointMappings=[],o}}}return __builtIn.Object.defineProperty(Extensible.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Extensible"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Extensible.prototype,"__fqn__",{value:"wix.api.Extensible",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Extensible.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Extensible.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Extensible}(),e.NestedExtensionPointMapping=function(){class NestedExtensionPointMapping{constructor(e){this.extensionPoint=e&&e.extensionPoint,this.path=e&&e.path}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.extensionPoint?t.extensionPoint=e.extensionPoint:o&&(t.extensionPoint=""),null!=e.path?t.path=e.path:o&&(t.path=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.NestedExtensionPointMapping;return null!=e.extensionPoint?t.extensionPoint=e.extensionPoint:!1!==o?t.extensionPoint="":delete t.extensionPoint,null!=e.path?t.path=e.path:!1!==o?t.path="":delete t.path,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.extensionPoint&&(t.extensionPoint=e.extensionPoint),null!=e.path&&(t.path=e.path),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.NestedExtensionPointMapping;return null!=e.extensionPoint?t.extensionPoint=e.extensionPoint:t.extensionPoint="",null!=e.path?t.path=e.path:t.path="",t}}}return __builtIn.Object.defineProperty(NestedExtensionPointMapping.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.NestedExtensionPointMapping"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedExtensionPointMapping.prototype,"__fqn__",{value:"wix.api.NestedExtensionPointMapping",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedExtensionPointMapping.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedExtensionPointMapping.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedExtensionPointMapping}(),e.MessageAppendix=function(){class MessageAppendix{constructor(e){this.type=e&&e.type,this.path=e&&e.path}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.type?t.type=$root.wix.api.MessageAppendix.Type[e.type]:o&&(t.type="UNKNOWN_APPENDIX_TYPE"),null!=e.path?t.path=e.path:o&&(t.path=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.MessageAppendix;return null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.api.MessageAppendix.Type[e.type]:!1!==o?t.type="UNKNOWN_APPENDIX_TYPE":delete t.type,null!=e.path?t.path=e.path:!1!==o?t.path="":delete t.path,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),null!=e.path&&(t.path=e.path),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.MessageAppendix;return null!=e.type?t.type=e.type:t.type="UNKNOWN_APPENDIX_TYPE",null!=e.path?t.path=e.path:t.path="",t}}}return MessageAppendix.Type={UNKNOWN_APPENDIX_TYPE:"UNKNOWN_APPENDIX_TYPE",0:"UNKNOWN_APPENDIX_TYPE",AUTO_VELO:"AUTO_VELO",1:"AUTO_VELO",DOCS_CONF:"DOCS_CONF",2:"DOCS_CONF",MULTILINGUAL:"MULTILINGUAL",3:"MULTILINGUAL",SEARCH:"SEARCH",4:"SEARCH",AUTO_SDK:"AUTO_SDK",5:"AUTO_SDK"},MessageAppendix.Type={UNKNOWN_APPENDIX_TYPE:"UNKNOWN_APPENDIX_TYPE",0:"UNKNOWN_APPENDIX_TYPE",AUTO_VELO:"AUTO_VELO",1:"AUTO_VELO",DOCS_CONF:"DOCS_CONF",2:"DOCS_CONF",MULTILINGUAL:"MULTILINGUAL",3:"MULTILINGUAL",SEARCH:"SEARCH",4:"SEARCH",AUTO_SDK:"AUTO_SDK",5:"AUTO_SDK"},__builtIn.Object.defineProperty(MessageAppendix.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.MessageAppendix"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MessageAppendix.prototype,"__fqn__",{value:"wix.api.MessageAppendix",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MessageAppendix.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MessageAppendix.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),MessageAppendix}(),e.DomainEventOptions=function(){class DomainEventOptions{constructor(e){this.eventSequenceNumber=e&&e.eventSequenceNumber,this.deletedIncludeEntity=e&&e.deletedIncludeEntity,this.updatedIncludeModifiedFields=e&&e.updatedIncludeModifiedFields}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.eventSequenceNumber?t.eventSequenceNumber=e.eventSequenceNumber:o&&(t.eventSequenceNumber=!1),null!=e.deletedIncludeEntity?t.deletedIncludeEntity=e.deletedIncludeEntity:o&&(t.deletedIncludeEntity=!1),null!=e.updatedIncludeModifiedFields?t.updatedIncludeModifiedFields=e.updatedIncludeModifiedFields:o&&(t.updatedIncludeModifiedFields=!1),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.DomainEventOptions;return null!=e.eventSequenceNumber?t.eventSequenceNumber=e.eventSequenceNumber:!1!==o?t.eventSequenceNumber=!1:delete t.eventSequenceNumber,null!=e.deletedIncludeEntity?t.deletedIncludeEntity=e.deletedIncludeEntity:!1!==o?t.deletedIncludeEntity=!1:delete t.deletedIncludeEntity,null!=e.updatedIncludeModifiedFields?t.updatedIncludeModifiedFields=e.updatedIncludeModifiedFields:!1!==o?t.updatedIncludeModifiedFields=!1:delete t.updatedIncludeModifiedFields,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.eventSequenceNumber&&(t.eventSequenceNumber=e.eventSequenceNumber),null!=e.deletedIncludeEntity&&(t.deletedIncludeEntity=e.deletedIncludeEntity),null!=e.updatedIncludeModifiedFields&&(t.updatedIncludeModifiedFields=e.updatedIncludeModifiedFields),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.DomainEventOptions;return null!=e.eventSequenceNumber?t.eventSequenceNumber=e.eventSequenceNumber:t.eventSequenceNumber=!1,null!=e.deletedIncludeEntity?t.deletedIncludeEntity=e.deletedIncludeEntity:t.deletedIncludeEntity=!1,null!=e.updatedIncludeModifiedFields?t.updatedIncludeModifiedFields=e.updatedIncludeModifiedFields:t.updatedIncludeModifiedFields=!1,t}}}return __builtIn.Object.defineProperty(DomainEventOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.DomainEventOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DomainEventOptions.prototype,"__fqn__",{value:"wix.api.DomainEventOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DomainEventOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DomainEventOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DomainEventOptions}(),e.Taggable=function(){class Taggable{constructor(e){}static toJSON(e,t,o){if(null==e)return null;return{}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;return new $root.wix.api.Taggable}static toGRPC(e,t){if(null==e)return null;return{}}static fromGRPC(e,t){if(null==e)return null;return new $root.wix.api.Taggable}}return __builtIn.Object.defineProperty(Taggable.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Taggable"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Taggable.prototype,"__fqn__",{value:"wix.api.Taggable",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Taggable.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Taggable.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Taggable}(),e.QueryOptions=function(){class QueryOptions{constructor(e){this.wql=e&&e.wql,this.search=e&&e.search,this.additionalQueryOptions=e&&e.additionalQueryOptions}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.wql?n.wql=$root.wix.api.Wql.toJSON(e.wql,t,o):o&&delete n.wql,null!=e.search?n.search=e.search.map(e=>$root.wix.api.Search.toJSON(e,t,o)):o&&(n.search=[]),null!=e.additionalQueryOptions?n.additionalQueryOptions=e.additionalQueryOptions.map(e=>$root.wix.api.NamedQueryOptions.toJSON(e,t,o)):o&&(n.additionalQueryOptions=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.QueryOptions;return null!=e.wql?n.wql=$root.wix.api.Wql.fromJSON(e.wql,t):delete n.wql,null!=e.search?n.search=Array.isArray(e.search)?e.search.map(e=>$root.wix.api.Search.fromJSON(e,t)):e.search:!1!==o?n.search=[]:delete n.search,null!=e.additionalQueryOptions?n.additionalQueryOptions=Array.isArray(e.additionalQueryOptions)?e.additionalQueryOptions.map(e=>$root.wix.api.NamedQueryOptions.fromJSON(e,t)):e.additionalQueryOptions:!1!==o?n.additionalQueryOptions=[]:delete n.additionalQueryOptions,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.wql&&(o.wql=$root.wix.api.Wql.toGRPC(e.wql,t)),null!=e.search&&(o.search=e.search.map(e=>$root.wix.api.Search.toGRPC(e,t))),null!=e.additionalQueryOptions&&(o.additionalQueryOptions=e.additionalQueryOptions.map(e=>$root.wix.api.NamedQueryOptions.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.QueryOptions;return null!=e.wql?o.wql=$root.wix.api.Wql.fromGRPC(e.wql,t):delete o.wql,null!=e.search?o.search=e.search.map(e=>$root.wix.api.Search.fromGRPC(e,t)):o.search=[],null!=e.additionalQueryOptions?o.additionalQueryOptions=e.additionalQueryOptions.map(e=>$root.wix.api.NamedQueryOptions.fromGRPC(e,t)):o.additionalQueryOptions=[],o}}}return __builtIn.Object.defineProperty(QueryOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.QueryOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryOptions.prototype,"__fqn__",{value:"wix.api.QueryOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),QueryOptions}(),e.NamedQueryOptions=function(){class NamedQueryOptions{constructor(e){this.name=e&&e.name,this.wql=e&&e.wql,this.search=e&&e.search}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.wql?n.wql=$root.wix.api.Wql.toJSON(e.wql,t,o):o&&delete n.wql,null!=e.search?n.search=e.search.map(e=>$root.wix.api.Search.toJSON(e,t,o)):o&&(n.search=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.NamedQueryOptions;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.wql?n.wql=$root.wix.api.Wql.fromJSON(e.wql,t):delete n.wql,null!=e.search?n.search=Array.isArray(e.search)?e.search.map(e=>$root.wix.api.Search.fromJSON(e,t)):e.search:!1!==o?n.search=[]:delete n.search,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.wql&&(o.wql=$root.wix.api.Wql.toGRPC(e.wql,t)),null!=e.search&&(o.search=e.search.map(e=>$root.wix.api.Search.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.NamedQueryOptions;return null!=e.name?o.name=e.name:o.name="",null!=e.wql?o.wql=$root.wix.api.Wql.fromGRPC(e.wql,t):delete o.wql,null!=e.search?o.search=e.search.map(e=>$root.wix.api.Search.fromGRPC(e,t)):o.search=[],o}}}return __builtIn.Object.defineProperty(NamedQueryOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.NamedQueryOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NamedQueryOptions.prototype,"__fqn__",{value:"wix.api.NamedQueryOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NamedQueryOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NamedQueryOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NamedQueryOptions}(),e.Details=function(){class Details{constructor(e){this.applicationError=e&&e.applicationError,this.validationError=e&&e.validationError,this.systemError=e&&e.systemError,this.tracing=e&&e.tracing}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.applicationError?n.applicationError=$root.wix.api.ApplicationError.toJSON(e.applicationError,t,o):o&&delete n.applicationError,null!=e.validationError?n.validationError=$root.wix.api.ValidationError.toJSON(e.validationError,t,o):o&&delete n.validationError,null!=e.systemError?n.systemError=$root.wix.api.SystemError.toJSON(e.systemError,t,o):o&&delete n.systemError,null!=e.tracing?n.tracing=Object.entries(e.tracing).reduce((e,[t,o])=>(e[t]=o,e),{}):o&&delete n.tracing,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.api.Details;return null!=e.applicationError?o.applicationError=$root.wix.api.ApplicationError.fromJSON(e.applicationError,t):delete o.applicationError,null!=e.validationError?o.validationError=$root.wix.api.ValidationError.fromJSON(e.validationError,t):delete o.validationError,null!=e.systemError?o.systemError=$root.wix.api.SystemError.fromJSON(e.systemError,t):delete o.systemError,null!=e.tracing?o.tracing=Object.entries(e.tracing).reduce((e,[t,o])=>(e[t]=o,e),{}):delete o.tracing,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.applicationError&&(o.applicationError=$root.wix.api.ApplicationError.toGRPC(e.applicationError,t)),null!=e.validationError&&(o.validationError=$root.wix.api.ValidationError.toGRPC(e.validationError,t)),null!=e.systemError&&(o.systemError=$root.wix.api.SystemError.toGRPC(e.systemError,t)),null!=e.tracing&&(o.tracing=Object.entries(e.tracing).reduce((e,[t,o])=>(e[t]=o,e),{})),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.Details;return null!=e.applicationError?o.applicationError=$root.wix.api.ApplicationError.fromGRPC(e.applicationError,t):delete o.applicationError,null!=e.validationError?o.validationError=$root.wix.api.ValidationError.fromGRPC(e.validationError,t):delete o.validationError,null!=e.systemError?o.systemError=$root.wix.api.SystemError.fromGRPC(e.systemError,t):delete o.systemError,null!=e.tracing?o.tracing=Object.entries(e.tracing).reduce((e,[t,o])=>(e[t]=o,e),{}):delete o.tracing,o}}}return __builtIn.Object.defineProperty(Details.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Details"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Details.prototype,"__fqn__",{value:"wix.api.Details",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Details.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Details.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Details}(),e.ApplicationError=function(){class ApplicationError{constructor(e){this.code=e&&e.code,this.description=e&&e.description,this.data=e&&e.data}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.code?n.code=e.code:o&&(n.code=""),null!=e.description?n.description=e.description:o&&(n.description=""),null!=e.data?n.data=$root.google.protobuf.Struct.toJSON(e.data,t,o):o&&delete n.data,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.ApplicationError;return null!=e.code?n.code=e.code:!1!==o?n.code="":delete n.code,null!=e.description?n.description=e.description:!1!==o?n.description="":delete n.description,null!=e.data?n.data=$root.google.protobuf.Struct.fromJSON(e.data,t):delete n.data,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.code&&(o.code=e.code),null!=e.description&&(o.description=e.description),null!=e.data&&(o.data=$root.google.protobuf.Struct.toGRPC(e.data,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.ApplicationError;return null!=e.code?o.code=e.code:o.code="",null!=e.description?o.description=e.description:o.description="",null!=e.data?o.data=$root.google.protobuf.Struct.fromGRPC(e.data,t):delete o.data,o}}}return __builtIn.Object.defineProperty(ApplicationError.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.ApplicationError"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ApplicationError.prototype,"__fqn__",{value:"wix.api.ApplicationError",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ApplicationError.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ApplicationError.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ApplicationError}(),e.SystemError=function(){class SystemError{constructor(e){this.errorCode=e&&e.errorCode}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.errorCode?n.errorCode=$root.google.protobuf.StringValue.toJSON(e.errorCode,t,o):o&&delete n.errorCode,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.api.SystemError;return null!=e.errorCode?o.errorCode=$root.google.protobuf.StringValue.fromJSON(e.errorCode,t):delete o.errorCode,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.errorCode&&(o.errorCode=$root.google.protobuf.StringValue.toGRPC(e.errorCode,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.SystemError;return null!=e.errorCode?o.errorCode=$root.google.protobuf.StringValue.fromGRPC(e.errorCode,t):delete o.errorCode,o}}}return __builtIn.Object.defineProperty(SystemError.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.SystemError"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SystemError.prototype,"__fqn__",{value:"wix.api.SystemError",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SystemError.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SystemError.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),SystemError}(),e.ValidationError=function(){class ValidationError{constructor(e){this.fieldViolations=e&&e.fieldViolations}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.fieldViolations?n.fieldViolations=e.fieldViolations.map(e=>$root.wix.api.ValidationError.FieldViolation.toJSON(e,t,o)):o&&(n.fieldViolations=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.ValidationError;return null!=e.fieldViolations?n.fieldViolations=Array.isArray(e.fieldViolations)?e.fieldViolations.map(e=>$root.wix.api.ValidationError.FieldViolation.fromJSON(e,t)):e.fieldViolations:!1!==o?n.fieldViolations=[]:delete n.fieldViolations,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.fieldViolations&&(o.fieldViolations=e.fieldViolations.map(e=>$root.wix.api.ValidationError.FieldViolation.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.ValidationError;return null!=e.fieldViolations?o.fieldViolations=e.fieldViolations.map(e=>$root.wix.api.ValidationError.FieldViolation.fromGRPC(e,t)):o.fieldViolations=[],o}}}return ValidationError.RuleType={VALIDATION:"VALIDATION",0:"VALIDATION",OTHER:"OTHER",1:"OTHER",MAX:"MAX",2:"MAX",MIN:"MIN",3:"MIN",MAX_LENGTH:"MAX_LENGTH",4:"MAX_LENGTH",MIN_LENGTH:"MIN_LENGTH",5:"MIN_LENGTH",MAX_SIZE:"MAX_SIZE",6:"MAX_SIZE",MIN_SIZE:"MIN_SIZE",7:"MIN_SIZE",FORMAT:"FORMAT",8:"FORMAT",DECIMAL_LTE:"DECIMAL_LTE",9:"DECIMAL_LTE",DECIMAL_GTE:"DECIMAL_GTE",10:"DECIMAL_GTE",DECIMAL_LT:"DECIMAL_LT",11:"DECIMAL_LT",DECIMAL_GT:"DECIMAL_GT",12:"DECIMAL_GT",DECIMAL_MAX_SCALE:"DECIMAL_MAX_SCALE",13:"DECIMAL_MAX_SCALE",INVALID_ENUM_VALUE:"INVALID_ENUM_VALUE",14:"INVALID_ENUM_VALUE",REQUIRED_FIELD:"REQUIRED_FIELD",15:"REQUIRED_FIELD",FIELD_NOT_ALLOWED:"FIELD_NOT_ALLOWED",16:"FIELD_NOT_ALLOWED",ONE_OF_ALIGNMENT:"ONE_OF_ALIGNMENT",17:"ONE_OF_ALIGNMENT",EXACT_LENGTH:"EXACT_LENGTH",18:"EXACT_LENGTH",EXACT_SIZE:"EXACT_SIZE",19:"EXACT_SIZE",REQUIRED_ONE_OF_FIELD:"REQUIRED_ONE_OF_FIELD",20:"REQUIRED_ONE_OF_FIELD"},ValidationError.FieldViolation=function(){class FieldViolation{constructor(e){this.field=e&&e.field,this.description=e&&e.description,this.violatedRule=e&&e.violatedRule,this.ruleName=e&&e.ruleName,this.data=e&&e.data}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.field?n.field=e.field:o&&(n.field=""),null!=e.description?n.description=e.description:o&&(n.description=""),null!=e.violatedRule?n.violatedRule=$root.wix.api.ValidationError.RuleType[e.violatedRule]:o&&(n.violatedRule="VALIDATION"),null!=e.ruleName?n.ruleName=$root.google.protobuf.StringValue.toJSON(e.ruleName,t,o):o&&delete n.ruleName,null!=e.data?n.data=$root.google.protobuf.Struct.toJSON(e.data,t,o):o&&delete n.data,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.ValidationError.FieldViolation;return null!=e.field?n.field=e.field:!1!==o?n.field="":delete n.field,null!=e.description?n.description=e.description:!1!==o?n.description="":delete n.description,null!=e.violatedRule?n.violatedRule="string"==typeof e.violatedRule?e.violatedRule:$root.wix.api.ValidationError.RuleType[e.violatedRule]:!1!==o?n.violatedRule="VALIDATION":delete n.violatedRule,null!=e.ruleName?n.ruleName=$root.google.protobuf.StringValue.fromJSON(e.ruleName,t):delete n.ruleName,null!=e.data?n.data=$root.google.protobuf.Struct.fromJSON(e.data,t):delete n.data,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.field&&(o.field=e.field),null!=e.description&&(o.description=e.description),null!=e.violatedRule&&(o.violatedRule=e.violatedRule),null!=e.ruleName&&(o.ruleName=$root.google.protobuf.StringValue.toGRPC(e.ruleName,t)),null!=e.data&&(o.data=$root.google.protobuf.Struct.toGRPC(e.data,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.ValidationError.FieldViolation;return null!=e.field?o.field=e.field:o.field="",null!=e.description?o.description=e.description:o.description="",null!=e.violatedRule?o.violatedRule=e.violatedRule:o.violatedRule="VALIDATION",null!=e.ruleName?o.ruleName=$root.google.protobuf.StringValue.fromGRPC(e.ruleName,t):delete o.ruleName,null!=e.data?o.data=$root.google.protobuf.Struct.fromGRPC(e.data,t):delete o.data,o}}}return __builtIn.Object.defineProperty(FieldViolation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.ValidationError.FieldViolation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldViolation.prototype,"__fqn__",{value:"wix.api.ValidationError.FieldViolation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldViolation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldViolation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),FieldViolation}(),ValidationError.RuleType={VALIDATION:"VALIDATION",0:"VALIDATION",OTHER:"OTHER",1:"OTHER",MAX:"MAX",2:"MAX",MIN:"MIN",3:"MIN",MAX_LENGTH:"MAX_LENGTH",4:"MAX_LENGTH",MIN_LENGTH:"MIN_LENGTH",5:"MIN_LENGTH",MAX_SIZE:"MAX_SIZE",6:"MAX_SIZE",MIN_SIZE:"MIN_SIZE",7:"MIN_SIZE",FORMAT:"FORMAT",8:"FORMAT",DECIMAL_LTE:"DECIMAL_LTE",9:"DECIMAL_LTE",DECIMAL_GTE:"DECIMAL_GTE",10:"DECIMAL_GTE",DECIMAL_LT:"DECIMAL_LT",11:"DECIMAL_LT",DECIMAL_GT:"DECIMAL_GT",12:"DECIMAL_GT",DECIMAL_MAX_SCALE:"DECIMAL_MAX_SCALE",13:"DECIMAL_MAX_SCALE",INVALID_ENUM_VALUE:"INVALID_ENUM_VALUE",14:"INVALID_ENUM_VALUE",REQUIRED_FIELD:"REQUIRED_FIELD",15:"REQUIRED_FIELD",FIELD_NOT_ALLOWED:"FIELD_NOT_ALLOWED",16:"FIELD_NOT_ALLOWED",ONE_OF_ALIGNMENT:"ONE_OF_ALIGNMENT",17:"ONE_OF_ALIGNMENT",EXACT_LENGTH:"EXACT_LENGTH",18:"EXACT_LENGTH",EXACT_SIZE:"EXACT_SIZE",19:"EXACT_SIZE",REQUIRED_ONE_OF_FIELD:"REQUIRED_ONE_OF_FIELD",20:"REQUIRED_ONE_OF_FIELD"},ValidationError.FieldViolation=function(){class FieldViolation{constructor(e){this.field=e&&e.field,this.description=e&&e.description,this.violatedRule=e&&e.violatedRule,this.ruleName=e&&e.ruleName,this.data=e&&e.data}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.field?n.field=e.field:o&&(n.field=""),null!=e.description?n.description=e.description:o&&(n.description=""),null!=e.violatedRule?n.violatedRule=$root.wix.api.ValidationError.RuleType[e.violatedRule]:o&&(n.violatedRule="VALIDATION"),null!=e.ruleName?n.ruleName=$root.google.protobuf.StringValue.toJSON(e.ruleName,t,o):o&&delete n.ruleName,null!=e.data?n.data=$root.google.protobuf.Struct.toJSON(e.data,t,o):o&&delete n.data,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.api.ValidationError.FieldViolation;return null!=e.field?n.field=e.field:!1!==o?n.field="":delete n.field,null!=e.description?n.description=e.description:!1!==o?n.description="":delete n.description,null!=e.violatedRule?n.violatedRule="string"==typeof e.violatedRule?e.violatedRule:$root.wix.api.ValidationError.RuleType[e.violatedRule]:!1!==o?n.violatedRule="VALIDATION":delete n.violatedRule,null!=e.ruleName?n.ruleName=$root.google.protobuf.StringValue.fromJSON(e.ruleName,t):delete n.ruleName,null!=e.data?n.data=$root.google.protobuf.Struct.fromJSON(e.data,t):delete n.data,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.field&&(o.field=e.field),null!=e.description&&(o.description=e.description),null!=e.violatedRule&&(o.violatedRule=e.violatedRule),null!=e.ruleName&&(o.ruleName=$root.google.protobuf.StringValue.toGRPC(e.ruleName,t)),null!=e.data&&(o.data=$root.google.protobuf.Struct.toGRPC(e.data,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.api.ValidationError.FieldViolation;return null!=e.field?o.field=e.field:o.field="",null!=e.description?o.description=e.description:o.description="",null!=e.violatedRule?o.violatedRule=e.violatedRule:o.violatedRule="VALIDATION",null!=e.ruleName?o.ruleName=$root.google.protobuf.StringValue.fromGRPC(e.ruleName,t):delete o.ruleName,null!=e.data?o.data=$root.google.protobuf.Struct.fromGRPC(e.data,t):delete o.data,o}}}return __builtIn.Object.defineProperty(FieldViolation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.ValidationError.FieldViolation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldViolation.prototype,"__fqn__",{value:"wix.api.ValidationError.FieldViolation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldViolation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldViolation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),FieldViolation}(),__builtIn.Object.defineProperty(ValidationError.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.ValidationError"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValidationError.prototype,"__fqn__",{value:"wix.api.ValidationError",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValidationError.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValidationError.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValidationError}(),e.LimitRuleInt32DataPayload=function(){class LimitRuleInt32DataPayload{constructor(e){this.threshold=e&&e.threshold}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.threshold?t.threshold=e.threshold:o&&(t.threshold=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.LimitRuleInt32DataPayload;return null!=e.threshold?t.threshold=e.threshold:!1!==o?t.threshold=0:delete t.threshold,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.threshold&&(t.threshold=e.threshold),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.LimitRuleInt32DataPayload;return null!=e.threshold?t.threshold=e.threshold:t.threshold=0,t}}}return __builtIn.Object.defineProperty(LimitRuleInt32DataPayload.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.LimitRuleInt32DataPayload"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(LimitRuleInt32DataPayload.prototype,"__fqn__",{value:"wix.api.LimitRuleInt32DataPayload",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(LimitRuleInt32DataPayload.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(LimitRuleInt32DataPayload.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),LimitRuleInt32DataPayload}(),e.LimitRuleDoubleDataPayload=function(){class LimitRuleDoubleDataPayload{constructor(e){this.threshold=e&&e.threshold}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.threshold?t.threshold=null==e.threshold?e.threshold:isNaN(e.threshold)?"NaN":isFinite(e.threshold)?e.threshold:e.threshold.toString():o&&(t.threshold=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.LimitRuleDoubleDataPayload;return null!=e.threshold?t.threshold="NaN"===e.threshold?NaN:"Infinity"===e.threshold?1/0:"-Infinity"===e.threshold?-1/0:e.threshold:!1!==o?t.threshold=0:delete t.threshold,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.threshold&&(t.threshold=e.threshold),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.LimitRuleDoubleDataPayload;return null!=e.threshold?t.threshold=e.threshold:t.threshold=0,t}}}return __builtIn.Object.defineProperty(LimitRuleDoubleDataPayload.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.LimitRuleDoubleDataPayload"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(LimitRuleDoubleDataPayload.prototype,"__fqn__",{value:"wix.api.LimitRuleDoubleDataPayload",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(LimitRuleDoubleDataPayload.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(LimitRuleDoubleDataPayload.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),LimitRuleDoubleDataPayload}(),e.LimitRuleStringDataPayload=function(){class LimitRuleStringDataPayload{constructor(e){this.threshold=e&&e.threshold}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.threshold?t.threshold=e.threshold:o&&(t.threshold=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.LimitRuleStringDataPayload;return null!=e.threshold?t.threshold=e.threshold:!1!==o?t.threshold="":delete t.threshold,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.threshold&&(t.threshold=e.threshold),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.LimitRuleStringDataPayload;return null!=e.threshold?t.threshold=e.threshold:t.threshold="",t}}}return __builtIn.Object.defineProperty(LimitRuleStringDataPayload.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.LimitRuleStringDataPayload"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(LimitRuleStringDataPayload.prototype,"__fqn__",{value:"wix.api.LimitRuleStringDataPayload",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(LimitRuleStringDataPayload.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(LimitRuleStringDataPayload.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),LimitRuleStringDataPayload}(),e.FormatRuleDataPayload=function(){class FormatRuleDataPayload{constructor(e){this.type=e&&e.type}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.type?t.type=e.type:o&&(t.type=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.FormatRuleDataPayload;return null!=e.type?t.type=e.type:!1!==o?t.type="":delete t.type,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.FormatRuleDataPayload;return null!=e.type?t.type=e.type:t.type="",t}}}return __builtIn.Object.defineProperty(FormatRuleDataPayload.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.FormatRuleDataPayload"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FormatRuleDataPayload.prototype,"__fqn__",{value:"wix.api.FormatRuleDataPayload",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FormatRuleDataPayload.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FormatRuleDataPayload.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),FormatRuleDataPayload}(),e.EnumRuleDataPayload=function(){class EnumRuleDataPayload{constructor(e){this.supported=e&&e.supported}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.supported?t.supported=e.supported.map(e=>e):o&&(t.supported=[]),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.EnumRuleDataPayload;return null!=e.supported?t.supported=Array.isArray(e.supported)?e.supported.map(e=>e):e.supported:!1!==o?t.supported=[]:delete t.supported,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.supported&&(t.supported=e.supported.map(e=>e)),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.EnumRuleDataPayload;return null!=e.supported?t.supported=e.supported.map(e=>e):t.supported=[],t}}}return __builtIn.Object.defineProperty(EnumRuleDataPayload.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.EnumRuleDataPayload"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumRuleDataPayload.prototype,"__fqn__",{value:"wix.api.EnumRuleDataPayload",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumRuleDataPayload.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumRuleDataPayload.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),EnumRuleDataPayload}(),e.RequiredOneOfRuleDataPayload=function(){class RequiredOneOfRuleDataPayload{constructor(e){this.supported=e&&e.supported}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.supported?t.supported=e.supported.map(e=>e):o&&(t.supported=[]),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.RequiredOneOfRuleDataPayload;return null!=e.supported?t.supported=Array.isArray(e.supported)?e.supported.map(e=>e):e.supported:!1!==o?t.supported=[]:delete t.supported,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.supported&&(t.supported=e.supported.map(e=>e)),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.RequiredOneOfRuleDataPayload;return null!=e.supported?t.supported=e.supported.map(e=>e):t.supported=[],t}}}return __builtIn.Object.defineProperty(RequiredOneOfRuleDataPayload.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.RequiredOneOfRuleDataPayload"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredOneOfRuleDataPayload.prototype,"__fqn__",{value:"wix.api.RequiredOneOfRuleDataPayload",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredOneOfRuleDataPayload.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RequiredOneOfRuleDataPayload.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RequiredOneOfRuleDataPayload}(),e.Idempotency=function(){class Idempotency{constructor(e){this.key=e&&e.key}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.key?t.key=e.key:o&&(t.key=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Idempotency;return null!=e.key?t.key=e.key:!1!==o?t.key="":delete t.key,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.key&&(t.key=e.key),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Idempotency;return null!=e.key?t.key=e.key:t.key="",t}}}return __builtIn.Object.defineProperty(Idempotency.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Idempotency"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Idempotency.prototype,"__fqn__",{value:"wix.api.Idempotency",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Idempotency.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Idempotency.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Idempotency}(),e.PermissionRule=function(){class PermissionRule{constructor(e){this.name=e&&e.name,this.type=e&&e.type,this.abacRequestValidation=e&&e.abacRequestValidation}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.name?t.name=e.name:o&&(t.name=""),null!=e.type?t.type=$root.wix.api.PermissionType[e.type]:o&&(t.type="AUTO"),null!=e.abacRequestValidation?t.abacRequestValidation=$root.wix.api.AbacRequestValidationMode[e.abacRequestValidation]:o&&(t.abacRequestValidation="ON"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.PermissionRule;return null!=e.name?t.name=e.name:!1!==o?t.name="":delete t.name,null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.api.PermissionType[e.type]:!1!==o?t.type="AUTO":delete t.type,null!=e.abacRequestValidation?t.abacRequestValidation="string"==typeof e.abacRequestValidation?e.abacRequestValidation:$root.wix.api.AbacRequestValidationMode[e.abacRequestValidation]:!1!==o?t.abacRequestValidation="ON":delete t.abacRequestValidation,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.name&&(t.name=e.name),null!=e.type&&(t.type=e.type),null!=e.abacRequestValidation&&(t.abacRequestValidation=e.abacRequestValidation),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.PermissionRule;return null!=e.name?t.name=e.name:t.name="",null!=e.type?t.type=e.type:t.type="AUTO",null!=e.abacRequestValidation?t.abacRequestValidation=e.abacRequestValidation:t.abacRequestValidation="ON",t}}}return __builtIn.Object.defineProperty(PermissionRule.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.PermissionRule"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PermissionRule.prototype,"__fqn__",{value:"wix.api.PermissionRule",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PermissionRule.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PermissionRule.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),PermissionRule}(),e.PermissionType={AUTO:"AUTO",0:"AUTO",MANUAL:"MANUAL",1:"MANUAL"},e.AbacRequestValidationMode={ON:"ON",0:"ON",OFF:"OFF",1:"OFF"},e.Sla=function(){class Sla{constructor(e){this.responseTimeMs=e&&e.responseTimeMs}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.responseTimeMs?t.responseTimeMs=e.responseTimeMs:o&&(t.responseTimeMs=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Sla;return null!=e.responseTimeMs?t.responseTimeMs=e.responseTimeMs:!1!==o?t.responseTimeMs=0:delete t.responseTimeMs,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.responseTimeMs&&(t.responseTimeMs=e.responseTimeMs),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Sla;return null!=e.responseTimeMs?t.responseTimeMs=e.responseTimeMs:t.responseTimeMs=0,t}}}return __builtIn.Object.defineProperty(Sla.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Sla"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Sla.prototype,"__fqn__",{value:"wix.api.Sla",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Sla.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Sla.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Sla}(),e.Subscription=function(){class Subscription{constructor(e){this.topic=e&&e.topic,this.segment=e&&e.segment,this.batch=e&&e.batch,this.entity=e&&e.entity,this.dynamic=e&&e.dynamic}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.topic?t.topic=e.topic:o&&(t.topic=""),null!=e.segment?t.segment=$root.wix.api.Segment.SegmentName[e.segment]:o&&(t.segment="UNSPECIFIED"),null!=e.batch?t.batch=e.batch:o&&(t.batch=!1),null!=e.entity?t.entity=e.entity:o&&(t.entity=""),null!=e.dynamic?t.dynamic=e.dynamic:o&&(t.dynamic=!1),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.Subscription;return null!=e.topic?t.topic=e.topic:!1!==o?t.topic="":delete t.topic,null!=e.segment?t.segment="string"==typeof e.segment?e.segment:$root.wix.api.Segment.SegmentName[e.segment]:!1!==o?t.segment="UNSPECIFIED":delete t.segment,null!=e.batch?t.batch=e.batch:!1!==o?t.batch=!1:delete t.batch,null!=e.entity?t.entity=e.entity:!1!==o?t.entity="":delete t.entity,null!=e.dynamic?t.dynamic=e.dynamic:!1!==o?t.dynamic=!1:delete t.dynamic,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.topic&&(t.topic=e.topic),null!=e.segment&&(t.segment=e.segment),null!=e.batch&&(t.batch=e.batch),null!=e.entity&&(t.entity=e.entity),null!=e.dynamic&&(t.dynamic=e.dynamic),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.Subscription;return null!=e.topic?t.topic=e.topic:t.topic="",null!=e.segment?t.segment=e.segment:t.segment="UNSPECIFIED",null!=e.batch?t.batch=e.batch:t.batch=!1,null!=e.entity?t.entity=e.entity:t.entity="",null!=e.dynamic?t.dynamic=e.dynamic:t.dynamic=!1,t}}}return __builtIn.Object.defineProperty(Subscription.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.Subscription"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Subscription.prototype,"__fqn__",{value:"wix.api.Subscription",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Subscription.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Subscription.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Subscription}(),e.DecimalValueOptions=function(){class DecimalValueOptions{constructor(e){this.lte=e&&e.lte,this.gte=e&&e.gte,this.lt=e&&e.lt,this.gt=e&&e.gt,this.maxScale=e&&e.maxScale}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.lte?t.lte=e.lte:o&&(t.lte=""),null!=e.gte?t.gte=e.gte:o&&(t.gte=""),null!=e.lt?t.lt=e.lt:o&&(t.lt=""),null!=e.gt?t.gt=e.gt:o&&(t.gt=""),null!=e.maxScale?t.maxScale=e.maxScale:o&&(t.maxScale=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.DecimalValueOptions;return null!=e.lte?t.lte=e.lte:!1!==o?t.lte="":delete t.lte,null!=e.gte?t.gte=e.gte:!1!==o?t.gte="":delete t.gte,null!=e.lt?t.lt=e.lt:!1!==o?t.lt="":delete t.lt,null!=e.gt?t.gt=e.gt:!1!==o?t.gt="":delete t.gt,null!=e.maxScale?t.maxScale=e.maxScale:!1!==o?t.maxScale=0:delete t.maxScale,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.lte&&(t.lte=e.lte),null!=e.gte&&(t.gte=e.gte),null!=e.lt&&(t.lt=e.lt),null!=e.gt&&(t.gt=e.gt),null!=e.maxScale&&(t.maxScale=e.maxScale),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.DecimalValueOptions;return null!=e.lte?t.lte=e.lte:t.lte="",null!=e.gte?t.gte=e.gte:t.gte="",null!=e.lt?t.lt=e.lt:t.lt="",null!=e.gt?t.gt=e.gt:t.gt="",null!=e.maxScale?t.maxScale=e.maxScale:t.maxScale=0,t}}}return __builtIn.Object.defineProperty(DecimalValueOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.DecimalValueOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DecimalValueOptions.prototype,"__fqn__",{value:"wix.api.DecimalValueOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DecimalValueOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DecimalValueOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DecimalValueOptions}(),e.AlignedWithEnum=function(){class AlignedWithEnum{constructor(e){this.field=e&&e.field,this.suffix=e&&e.suffix}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.field?t.field=e.field:o&&(t.field=""),null!=e.suffix?t.suffix=e.suffix:o&&(t.suffix=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.api.AlignedWithEnum;return null!=e.field?t.field=e.field:!1!==o?t.field="":delete t.field,null!=e.suffix?t.suffix=e.suffix:!1!==o?t.suffix="":delete t.suffix,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.field&&(t.field=e.field),null!=e.suffix&&(t.suffix=e.suffix),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.api.AlignedWithEnum;return null!=e.field?t.field=e.field:t.field="",null!=e.suffix?t.suffix=e.suffix:t.suffix="",t}}}return __builtIn.Object.defineProperty(AlignedWithEnum.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.api.AlignedWithEnum"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AlignedWithEnum.prototype,"__fqn__",{value:"wix.api.AlignedWithEnum",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AlignedWithEnum.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AlignedWithEnum.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),AlignedWithEnum}(),e.Format={EMAIL:"EMAIL",0:"EMAIL",HOSTNAME:"HOSTNAME",1:"HOSTNAME",IPV4:"IPV4",2:"IPV4",IPV6:"IPV6",3:"IPV6",URI:"URI",4:"URI",WEB_URL:"WEB_URL",5:"WEB_URL",PHONE:"PHONE",7:"PHONE",CREDIT_CARD:"CREDIT_CARD",8:"CREDIT_CARD",GUID:"GUID",9:"GUID",COUNTRY:"COUNTRY",10:"COUNTRY",LANGUAGE:"LANGUAGE",11:"LANGUAGE",DECIMAL_VALUE:"DECIMAL_VALUE",12:"DECIMAL_VALUE",CURRENCY:"CURRENCY",13:"CURRENCY",LANGUAGE_TAG:"LANGUAGE_TAG",14:"LANGUAGE_TAG",COLOR_HEX:"COLOR_HEX",15:"COLOR_HEX",LOCAL_DATE:"LOCAL_DATE",16:"LOCAL_DATE",LOCAL_TIME:"LOCAL_TIME",17:"LOCAL_TIME",LOCAL_DATE_TIME:"LOCAL_DATE_TIME",18:"LOCAL_DATE_TIME",URL_SLUG:"URL_SLUG",19:"URL_SLUG",SYSTEM_SLUG:"SYSTEM_SLUG",20:"SYSTEM_SLUG",SECURE_WEB_URL:"SECURE_WEB_URL",21:"SECURE_WEB_URL",SUBDIVISION:"SUBDIVISION",22:"SUBDIVISION"},e}(),e.common=function(){const e={};return e.Address=function(){class Address{constructor(e){this.country=e&&e.country,this.subdivision=e&&e.subdivision,this.subdivisionIso31662=e&&e.subdivisionIso31662,this.city=e&&e.city,this.postalCode=e&&e.postalCode,this.streetAddress=e&&e.streetAddress,this.addressLine=e&&e.addressLine,this.addressLine2=e&&e.addressLine2,this.formattedAddress=e&&e.formattedAddress,this.hint=e&&e.hint,this.geocode=e&&e.geocode,this.countryFullname=e&&e.countryFullname,this.subdivisionFullname=e&&e.subdivisionFullname,this.subdivisions=e&&e.subdivisions}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.country?n.country=$root.google.protobuf.StringValue.toJSON(e.country,t,o):o&&delete n.country,null!=e.subdivision?n.subdivision=$root.google.protobuf.StringValue.toJSON(e.subdivision,t,o):o&&delete n.subdivision,null!=e.subdivisionIso31662?n.subdivisionIso31662=$root.google.protobuf.StringValue.toJSON(e.subdivisionIso31662,t,o):o&&delete n.subdivisionIso31662,null!=e.city?n.city=$root.google.protobuf.StringValue.toJSON(e.city,t,o):o&&delete n.city,null!=e.postalCode?n.postalCode=$root.google.protobuf.StringValue.toJSON(e.postalCode,t,o):o&&delete n.postalCode,null!=e.streetAddress?n.streetAddress=$root.wix.common.StreetAddress.toJSON(e.streetAddress,t,o):o&&delete n.streetAddress,null!=e.addressLine?n.addressLine=$root.google.protobuf.StringValue.toJSON(e.addressLine,t,o):o&&delete n.addressLine,null!=e.addressLine2?n.addressLine2=$root.google.protobuf.StringValue.toJSON(e.addressLine2,t,o):o&&delete n.addressLine2,null!=e.formattedAddress?n.formattedAddress=$root.google.protobuf.StringValue.toJSON(e.formattedAddress,t,o):o&&delete n.formattedAddress,null!=e.hint?n.hint=$root.google.protobuf.StringValue.toJSON(e.hint,t,o):o&&delete n.hint,null!=e.geocode?n.geocode=$root.wix.common.AddressLocation.toJSON(e.geocode,t,o):o&&delete n.geocode,null!=e.countryFullname?n.countryFullname=$root.google.protobuf.StringValue.toJSON(e.countryFullname,t,o):o&&delete n.countryFullname,null!=e.subdivisionFullname?n.subdivisionFullname=$root.google.protobuf.StringValue.toJSON(e.subdivisionFullname,t,o):o&&delete n.subdivisionFullname,null!=e.subdivisions?n.subdivisions=e.subdivisions.map(e=>$root.wix.common.Subdivision.toJSON(e,t,o)):o&&(n.subdivisions=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Address;return null!=e.country?n.country=$root.google.protobuf.StringValue.fromJSON(e.country,t):delete n.country,null!=e.subdivision?n.subdivision=$root.google.protobuf.StringValue.fromJSON(e.subdivision,t):delete n.subdivision,null!=e.subdivisionIso31662?n.subdivisionIso31662=$root.google.protobuf.StringValue.fromJSON(e.subdivisionIso31662,t):delete n.subdivisionIso31662,null!=e.city?n.city=$root.google.protobuf.StringValue.fromJSON(e.city,t):delete n.city,null!=e.postalCode?n.postalCode=$root.google.protobuf.StringValue.fromJSON(e.postalCode,t):delete n.postalCode,null!=e.streetAddress?n.streetAddress=$root.wix.common.StreetAddress.fromJSON(e.streetAddress,t):delete n.streetAddress,null!=e.addressLine?n.addressLine=$root.google.protobuf.StringValue.fromJSON(e.addressLine,t):delete n.addressLine,null!=e.addressLine2?n.addressLine2=$root.google.protobuf.StringValue.fromJSON(e.addressLine2,t):delete n.addressLine2,null!=e.formattedAddress?n.formattedAddress=$root.google.protobuf.StringValue.fromJSON(e.formattedAddress,t):delete n.formattedAddress,null!=e.hint?n.hint=$root.google.protobuf.StringValue.fromJSON(e.hint,t):delete n.hint,null!=e.geocode?n.geocode=$root.wix.common.AddressLocation.fromJSON(e.geocode,t):delete n.geocode,null!=e.countryFullname?n.countryFullname=$root.google.protobuf.StringValue.fromJSON(e.countryFullname,t):delete n.countryFullname,null!=e.subdivisionFullname?n.subdivisionFullname=$root.google.protobuf.StringValue.fromJSON(e.subdivisionFullname,t):delete n.subdivisionFullname,null!=e.subdivisions?n.subdivisions=Array.isArray(e.subdivisions)?e.subdivisions.map(e=>$root.wix.common.Subdivision.fromJSON(e,t)):e.subdivisions:!1!==o?n.subdivisions=[]:delete n.subdivisions,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.country&&(o.country=$root.google.protobuf.StringValue.toGRPC(e.country,t)),null!=e.subdivision&&(o.subdivision=$root.google.protobuf.StringValue.toGRPC(e.subdivision,t)),null!=e.subdivisionIso31662&&(o.subdivisionIso31662=$root.google.protobuf.StringValue.toGRPC(e.subdivisionIso31662,t)),null!=e.city&&(o.city=$root.google.protobuf.StringValue.toGRPC(e.city,t)),null!=e.postalCode&&(o.postalCode=$root.google.protobuf.StringValue.toGRPC(e.postalCode,t)),null!=e.streetAddress&&(o.streetAddress=$root.wix.common.StreetAddress.toGRPC(e.streetAddress,t)),null!=e.addressLine&&(o.addressLine=$root.google.protobuf.StringValue.toGRPC(e.addressLine,t)),null!=e.addressLine2&&(o.addressLine2=$root.google.protobuf.StringValue.toGRPC(e.addressLine2,t)),null!=e.formattedAddress&&(o.formattedAddress=$root.google.protobuf.StringValue.toGRPC(e.formattedAddress,t)),null!=e.hint&&(o.hint=$root.google.protobuf.StringValue.toGRPC(e.hint,t)),null!=e.geocode&&(o.geocode=$root.wix.common.AddressLocation.toGRPC(e.geocode,t)),null!=e.countryFullname&&(o.countryFullname=$root.google.protobuf.StringValue.toGRPC(e.countryFullname,t)),null!=e.subdivisionFullname&&(o.subdivisionFullname=$root.google.protobuf.StringValue.toGRPC(e.subdivisionFullname,t)),null!=e.subdivisions&&(o.subdivisions=e.subdivisions.map(e=>$root.wix.common.Subdivision.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Address;return null!=e.country?o.country=$root.google.protobuf.StringValue.fromGRPC(e.country,t):delete o.country,null!=e.subdivision?o.subdivision=$root.google.protobuf.StringValue.fromGRPC(e.subdivision,t):delete o.subdivision,null!=e.subdivisionIso31662?o.subdivisionIso31662=$root.google.protobuf.StringValue.fromGRPC(e.subdivisionIso31662,t):delete o.subdivisionIso31662,null!=e.city?o.city=$root.google.protobuf.StringValue.fromGRPC(e.city,t):delete o.city,null!=e.postalCode?o.postalCode=$root.google.protobuf.StringValue.fromGRPC(e.postalCode,t):delete o.postalCode,null!=e.streetAddress?o.streetAddress=$root.wix.common.StreetAddress.fromGRPC(e.streetAddress,t):delete o.streetAddress,null!=e.addressLine?o.addressLine=$root.google.protobuf.StringValue.fromGRPC(e.addressLine,t):delete o.addressLine,null!=e.addressLine2?o.addressLine2=$root.google.protobuf.StringValue.fromGRPC(e.addressLine2,t):delete o.addressLine2,null!=e.formattedAddress?o.formattedAddress=$root.google.protobuf.StringValue.fromGRPC(e.formattedAddress,t):delete o.formattedAddress,null!=e.hint?o.hint=$root.google.protobuf.StringValue.fromGRPC(e.hint,t):delete o.hint,null!=e.geocode?o.geocode=$root.wix.common.AddressLocation.fromGRPC(e.geocode,t):delete o.geocode,null!=e.countryFullname?o.countryFullname=$root.google.protobuf.StringValue.fromGRPC(e.countryFullname,t):delete o.countryFullname,null!=e.subdivisionFullname?o.subdivisionFullname=$root.google.protobuf.StringValue.fromGRPC(e.subdivisionFullname,t):delete o.subdivisionFullname,null!=e.subdivisions?o.subdivisions=e.subdivisions.map(e=>$root.wix.common.Subdivision.fromGRPC(e,t)):o.subdivisions=[],o}}}return __builtIn.Object.defineProperty(Address.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Address"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Address.prototype,"__fqn__",{value:"wix.common.Address",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Address.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Address.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Address}(),e.Subdivision=function(){class Subdivision{constructor(e){this.code=e&&e.code,this.name=e&&e.name,this.type=e&&e.type,this.typeInfo=e&&e.typeInfo,this.standardDetails=e&&e.standardDetails}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.code?n.code=e.code:o&&(n.code=""),null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.type?n.type=$root.wix.common.Subdivision.SubdivisionType[e.type]:o&&(n.type="UNKNOWN_SUBDIVISION_TYPE"),null!=e.typeInfo?n.typeInfo=$root.google.protobuf.StringValue.toJSON(e.typeInfo,t,o):o&&delete n.typeInfo,null!=e.standardDetails?n.standardDetails=$root.wix.common.Subdivision.StandardDetails.toJSON(e.standardDetails,t,o):o&&delete n.standardDetails,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Subdivision;return null!=e.code?n.code=e.code:!1!==o?n.code="":delete n.code,null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.type?n.type="string"==typeof e.type?e.type:$root.wix.common.Subdivision.SubdivisionType[e.type]:!1!==o?n.type="UNKNOWN_SUBDIVISION_TYPE":delete n.type,null!=e.typeInfo?n.typeInfo=$root.google.protobuf.StringValue.fromJSON(e.typeInfo,t):delete n.typeInfo,null!=e.standardDetails?n.standardDetails=$root.wix.common.Subdivision.StandardDetails.fromJSON(e.standardDetails,t):delete n.standardDetails,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.code&&(o.code=e.code),null!=e.name&&(o.name=e.name),null!=e.type&&(o.type=e.type),null!=e.typeInfo&&(o.typeInfo=$root.google.protobuf.StringValue.toGRPC(e.typeInfo,t)),null!=e.standardDetails&&(o.standardDetails=$root.wix.common.Subdivision.StandardDetails.toGRPC(e.standardDetails,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Subdivision;return null!=e.code?o.code=e.code:o.code="",null!=e.name?o.name=e.name:o.name="",null!=e.type?o.type=e.type:o.type="UNKNOWN_SUBDIVISION_TYPE",null!=e.typeInfo?o.typeInfo=$root.google.protobuf.StringValue.fromGRPC(e.typeInfo,t):delete o.typeInfo,null!=e.standardDetails?o.standardDetails=$root.wix.common.Subdivision.StandardDetails.fromGRPC(e.standardDetails,t):delete o.standardDetails,o}}}return Subdivision.SubdivisionType={UNKNOWN_SUBDIVISION_TYPE:"UNKNOWN_SUBDIVISION_TYPE",0:"UNKNOWN_SUBDIVISION_TYPE",ADMINISTRATIVE_AREA_LEVEL_1:"ADMINISTRATIVE_AREA_LEVEL_1",1:"ADMINISTRATIVE_AREA_LEVEL_1",ADMINISTRATIVE_AREA_LEVEL_2:"ADMINISTRATIVE_AREA_LEVEL_2",2:"ADMINISTRATIVE_AREA_LEVEL_2",ADMINISTRATIVE_AREA_LEVEL_3:"ADMINISTRATIVE_AREA_LEVEL_3",3:"ADMINISTRATIVE_AREA_LEVEL_3",ADMINISTRATIVE_AREA_LEVEL_4:"ADMINISTRATIVE_AREA_LEVEL_4",4:"ADMINISTRATIVE_AREA_LEVEL_4",ADMINISTRATIVE_AREA_LEVEL_5:"ADMINISTRATIVE_AREA_LEVEL_5",5:"ADMINISTRATIVE_AREA_LEVEL_5",COUNTRY:"COUNTRY",6:"COUNTRY"},Subdivision.StandardDetails=function(){class StandardDetails{constructor(e){this.iso31662=e&&e.iso31662}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.iso31662?n.iso31662=$root.google.protobuf.StringValue.toJSON(e.iso31662,t,o):o&&delete n.iso31662,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.Subdivision.StandardDetails;return null!=e.iso31662?o.iso31662=$root.google.protobuf.StringValue.fromJSON(e.iso31662,t):delete o.iso31662,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.iso31662&&(o.iso31662=$root.google.protobuf.StringValue.toGRPC(e.iso31662,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Subdivision.StandardDetails;return null!=e.iso31662?o.iso31662=$root.google.protobuf.StringValue.fromGRPC(e.iso31662,t):delete o.iso31662,o}}}return __builtIn.Object.defineProperty(StandardDetails.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Subdivision.StandardDetails"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StandardDetails.prototype,"__fqn__",{value:"wix.common.Subdivision.StandardDetails",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StandardDetails.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StandardDetails.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),StandardDetails}(),Subdivision.SubdivisionType={UNKNOWN_SUBDIVISION_TYPE:"UNKNOWN_SUBDIVISION_TYPE",0:"UNKNOWN_SUBDIVISION_TYPE",ADMINISTRATIVE_AREA_LEVEL_1:"ADMINISTRATIVE_AREA_LEVEL_1",1:"ADMINISTRATIVE_AREA_LEVEL_1",ADMINISTRATIVE_AREA_LEVEL_2:"ADMINISTRATIVE_AREA_LEVEL_2",2:"ADMINISTRATIVE_AREA_LEVEL_2",ADMINISTRATIVE_AREA_LEVEL_3:"ADMINISTRATIVE_AREA_LEVEL_3",3:"ADMINISTRATIVE_AREA_LEVEL_3",ADMINISTRATIVE_AREA_LEVEL_4:"ADMINISTRATIVE_AREA_LEVEL_4",4:"ADMINISTRATIVE_AREA_LEVEL_4",ADMINISTRATIVE_AREA_LEVEL_5:"ADMINISTRATIVE_AREA_LEVEL_5",5:"ADMINISTRATIVE_AREA_LEVEL_5",COUNTRY:"COUNTRY",6:"COUNTRY"},Subdivision.StandardDetails=function(){class StandardDetails{constructor(e){this.iso31662=e&&e.iso31662}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.iso31662?n.iso31662=$root.google.protobuf.StringValue.toJSON(e.iso31662,t,o):o&&delete n.iso31662,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.Subdivision.StandardDetails;return null!=e.iso31662?o.iso31662=$root.google.protobuf.StringValue.fromJSON(e.iso31662,t):delete o.iso31662,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.iso31662&&(o.iso31662=$root.google.protobuf.StringValue.toGRPC(e.iso31662,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Subdivision.StandardDetails;return null!=e.iso31662?o.iso31662=$root.google.protobuf.StringValue.fromGRPC(e.iso31662,t):delete o.iso31662,o}}}return __builtIn.Object.defineProperty(StandardDetails.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Subdivision.StandardDetails"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StandardDetails.prototype,"__fqn__",{value:"wix.common.Subdivision.StandardDetails",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StandardDetails.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StandardDetails.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),StandardDetails}(),__builtIn.Object.defineProperty(Subdivision.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Subdivision"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Subdivision.prototype,"__fqn__",{value:"wix.common.Subdivision",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Subdivision.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Subdivision.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Subdivision}(),e.StreetAddress=function(){class StreetAddress{constructor(e){this.number=e&&e.number,this.name=e&&e.name,this.apt=e&&e.apt,this.formattedAddressLine=e&&e.formattedAddressLine}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.number?n.number=e.number:o&&(n.number=""),null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.apt?n.apt=e.apt:o&&(n.apt=""),null!=e.formattedAddressLine?n.formattedAddressLine=$root.google.protobuf.StringValue.toJSON(e.formattedAddressLine,t,o):o&&delete n.formattedAddressLine,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.StreetAddress;return null!=e.number?n.number=e.number:!1!==o?n.number="":delete n.number,null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.apt?n.apt=e.apt:!1!==o?n.apt="":delete n.apt,null!=e.formattedAddressLine?n.formattedAddressLine=$root.google.protobuf.StringValue.fromJSON(e.formattedAddressLine,t):delete n.formattedAddressLine,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.number&&(o.number=e.number),null!=e.name&&(o.name=e.name),null!=e.apt&&(o.apt=e.apt),null!=e.formattedAddressLine&&(o.formattedAddressLine=$root.google.protobuf.StringValue.toGRPC(e.formattedAddressLine,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.StreetAddress;return null!=e.number?o.number=e.number:o.number="",null!=e.name?o.name=e.name:o.name="",null!=e.apt?o.apt=e.apt:o.apt="",null!=e.formattedAddressLine?o.formattedAddressLine=$root.google.protobuf.StringValue.fromGRPC(e.formattedAddressLine,t):delete o.formattedAddressLine,o}}}return __builtIn.Object.defineProperty(StreetAddress.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.StreetAddress"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StreetAddress.prototype,"__fqn__",{value:"wix.common.StreetAddress",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StreetAddress.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StreetAddress.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),StreetAddress}(),e.AddressContactDetails=function(){class AddressContactDetails{constructor(e){this.fullName=e&&e.fullName,this.phone=e&&e.phone,this.company=e&&e.company,this.email=e&&e.email}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.fullName?n.fullName=$root.google.protobuf.StringValue.toJSON(e.fullName,t,o):o&&delete n.fullName,null!=e.phone?n.phone=$root.google.protobuf.StringValue.toJSON(e.phone,t,o):o&&delete n.phone,null!=e.company?n.company=$root.google.protobuf.StringValue.toJSON(e.company,t,o):o&&delete n.company,null!=e.email?n.email=$root.google.protobuf.StringValue.toJSON(e.email,t,o):o&&delete n.email,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AddressContactDetails;return null!=e.fullName?o.fullName=$root.google.protobuf.StringValue.fromJSON(e.fullName,t):delete o.fullName,null!=e.phone?o.phone=$root.google.protobuf.StringValue.fromJSON(e.phone,t):delete o.phone,null!=e.company?o.company=$root.google.protobuf.StringValue.fromJSON(e.company,t):delete o.company,null!=e.email?o.email=$root.google.protobuf.StringValue.fromJSON(e.email,t):delete o.email,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.fullName&&(o.fullName=$root.google.protobuf.StringValue.toGRPC(e.fullName,t)),null!=e.phone&&(o.phone=$root.google.protobuf.StringValue.toGRPC(e.phone,t)),null!=e.company&&(o.company=$root.google.protobuf.StringValue.toGRPC(e.company,t)),null!=e.email&&(o.email=$root.google.protobuf.StringValue.toGRPC(e.email,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AddressContactDetails;return null!=e.fullName?o.fullName=$root.google.protobuf.StringValue.fromGRPC(e.fullName,t):delete o.fullName,null!=e.phone?o.phone=$root.google.protobuf.StringValue.fromGRPC(e.phone,t):delete o.phone,null!=e.company?o.company=$root.google.protobuf.StringValue.fromGRPC(e.company,t):delete o.company,null!=e.email?o.email=$root.google.protobuf.StringValue.fromGRPC(e.email,t):delete o.email,o}}}return __builtIn.Object.defineProperty(AddressContactDetails.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AddressContactDetails"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AddressContactDetails.prototype,"__fqn__",{value:"wix.common.AddressContactDetails",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AddressContactDetails.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AddressContactDetails.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),AddressContactDetails}(),e.FullAddressContactDetails=function(){class FullAddressContactDetails{constructor(e){this.firstName=e&&e.firstName,this.lastName=e&&e.lastName,this.fullName=e&&e.fullName,this.phone=e&&e.phone,this.company=e&&e.company,this.email=e&&e.email,this.vatId=e&&e.vatId}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.firstName?n.firstName=$root.google.protobuf.StringValue.toJSON(e.firstName,t,o):o&&delete n.firstName,null!=e.lastName?n.lastName=$root.google.protobuf.StringValue.toJSON(e.lastName,t,o):o&&delete n.lastName,null!=e.fullName?n.fullName=$root.google.protobuf.StringValue.toJSON(e.fullName,t,o):o&&delete n.fullName,null!=e.phone?n.phone=$root.google.protobuf.StringValue.toJSON(e.phone,t,o):o&&delete n.phone,null!=e.company?n.company=$root.google.protobuf.StringValue.toJSON(e.company,t,o):o&&delete n.company,null!=e.email?n.email=$root.google.protobuf.StringValue.toJSON(e.email,t,o):o&&delete n.email,null!=e.vatId?n.vatId=$root.wix.common.VatId.toJSON(e.vatId,t,o):o&&delete n.vatId,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.FullAddressContactDetails;return null!=e.firstName?o.firstName=$root.google.protobuf.StringValue.fromJSON(e.firstName,t):delete o.firstName,null!=e.lastName?o.lastName=$root.google.protobuf.StringValue.fromJSON(e.lastName,t):delete o.lastName,null!=e.fullName?o.fullName=$root.google.protobuf.StringValue.fromJSON(e.fullName,t):delete o.fullName,null!=e.phone?o.phone=$root.google.protobuf.StringValue.fromJSON(e.phone,t):delete o.phone,null!=e.company?o.company=$root.google.protobuf.StringValue.fromJSON(e.company,t):delete o.company,null!=e.email?o.email=$root.google.protobuf.StringValue.fromJSON(e.email,t):delete o.email,null!=e.vatId?o.vatId=$root.wix.common.VatId.fromJSON(e.vatId,t):delete o.vatId,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.firstName&&(o.firstName=$root.google.protobuf.StringValue.toGRPC(e.firstName,t)),null!=e.lastName&&(o.lastName=$root.google.protobuf.StringValue.toGRPC(e.lastName,t)),null!=e.fullName&&(o.fullName=$root.google.protobuf.StringValue.toGRPC(e.fullName,t)),null!=e.phone&&(o.phone=$root.google.protobuf.StringValue.toGRPC(e.phone,t)),null!=e.company&&(o.company=$root.google.protobuf.StringValue.toGRPC(e.company,t)),null!=e.email&&(o.email=$root.google.protobuf.StringValue.toGRPC(e.email,t)),null!=e.vatId&&(o.vatId=$root.wix.common.VatId.toGRPC(e.vatId,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.FullAddressContactDetails;return null!=e.firstName?o.firstName=$root.google.protobuf.StringValue.fromGRPC(e.firstName,t):delete o.firstName,null!=e.lastName?o.lastName=$root.google.protobuf.StringValue.fromGRPC(e.lastName,t):delete o.lastName,null!=e.fullName?o.fullName=$root.google.protobuf.StringValue.fromGRPC(e.fullName,t):delete o.fullName,null!=e.phone?o.phone=$root.google.protobuf.StringValue.fromGRPC(e.phone,t):delete o.phone,null!=e.company?o.company=$root.google.protobuf.StringValue.fromGRPC(e.company,t):delete o.company,null!=e.email?o.email=$root.google.protobuf.StringValue.fromGRPC(e.email,t):delete o.email,null!=e.vatId?o.vatId=$root.wix.common.VatId.fromGRPC(e.vatId,t):delete o.vatId,o}}}return __builtIn.Object.defineProperty(FullAddressContactDetails.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.FullAddressContactDetails"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FullAddressContactDetails.prototype,"__fqn__",{value:"wix.common.FullAddressContactDetails",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FullAddressContactDetails.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FullAddressContactDetails.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),FullAddressContactDetails}(),e.VatId=function(){class VatId{constructor(e){this.id=e&&e.id,this.type=e&&e.type}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.id?t.id=e.id:o&&(t.id=""),null!=e.type?t.type=$root.wix.common.VatType[e.type]:o&&(t.type="UNSPECIFIED"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.VatId;return null!=e.id?t.id=e.id:!1!==o?t.id="":delete t.id,null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.common.VatType[e.type]:!1!==o?t.type="UNSPECIFIED":delete t.type,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.id&&(t.id=e.id),null!=e.type&&(t.type=e.type),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.VatId;return null!=e.id?t.id=e.id:t.id="",null!=e.type?t.type=e.type:t.type="UNSPECIFIED",t}}}return __builtIn.Object.defineProperty(VatId.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.VatId"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(VatId.prototype,"__fqn__",{value:"wix.common.VatId",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(VatId.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(VatId.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),VatId}(),e.VatType={UNSPECIFIED:"UNSPECIFIED",0:"UNSPECIFIED",CPF:"CPF",1:"CPF",CNPJ:"CNPJ",2:"CNPJ"},e.AddressLocation=function(){class AddressLocation{constructor(e){this.latitude=e&&e.latitude,this.longitude=e&&e.longitude}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.latitude?n.latitude=$root.google.protobuf.DoubleValue.toJSON(e.latitude,t,o):o&&delete n.latitude,null!=e.longitude?n.longitude=$root.google.protobuf.DoubleValue.toJSON(e.longitude,t,o):o&&delete n.longitude,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AddressLocation;return null!=e.latitude?o.latitude=$root.google.protobuf.DoubleValue.fromJSON(e.latitude,t):delete o.latitude,null!=e.longitude?o.longitude=$root.google.protobuf.DoubleValue.fromJSON(e.longitude,t):delete o.longitude,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.latitude&&(o.latitude=$root.google.protobuf.DoubleValue.toGRPC(e.latitude,t)),null!=e.longitude&&(o.longitude=$root.google.protobuf.DoubleValue.toGRPC(e.longitude,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AddressLocation;return null!=e.latitude?o.latitude=$root.google.protobuf.DoubleValue.fromGRPC(e.latitude,t):delete o.latitude,null!=e.longitude?o.longitude=$root.google.protobuf.DoubleValue.fromGRPC(e.longitude,t):delete o.longitude,o}}}return __builtIn.Object.defineProperty(AddressLocation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AddressLocation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AddressLocation.prototype,"__fqn__",{value:"wix.common.AddressLocation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AddressLocation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AddressLocation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),AddressLocation}(),e.BulkActionMetadata=function(){class BulkActionMetadata{constructor(e){this.totalSuccesses=e&&e.totalSuccesses,this.totalFailures=e&&e.totalFailures,this.undetailedFailures=e&&e.undetailedFailures}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.totalSuccesses?t.totalSuccesses=e.totalSuccesses:o&&(t.totalSuccesses=0),null!=e.totalFailures?t.totalFailures=e.totalFailures:o&&(t.totalFailures=0),null!=e.undetailedFailures?t.undetailedFailures=e.undetailedFailures:o&&(t.undetailedFailures=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.BulkActionMetadata;return null!=e.totalSuccesses?t.totalSuccesses=e.totalSuccesses:!1!==o?t.totalSuccesses=0:delete t.totalSuccesses,null!=e.totalFailures?t.totalFailures=e.totalFailures:!1!==o?t.totalFailures=0:delete t.totalFailures,null!=e.undetailedFailures?t.undetailedFailures=e.undetailedFailures:!1!==o?t.undetailedFailures=0:delete t.undetailedFailures,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.totalSuccesses&&(t.totalSuccesses=e.totalSuccesses),null!=e.totalFailures&&(t.totalFailures=e.totalFailures),null!=e.undetailedFailures&&(t.undetailedFailures=e.undetailedFailures),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.BulkActionMetadata;return null!=e.totalSuccesses?t.totalSuccesses=e.totalSuccesses:t.totalSuccesses=0,null!=e.totalFailures?t.totalFailures=e.totalFailures:t.totalFailures=0,null!=e.undetailedFailures?t.undetailedFailures=e.undetailedFailures:t.undetailedFailures=0,t}}}return __builtIn.Object.defineProperty(BulkActionMetadata.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.BulkActionMetadata"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkActionMetadata.prototype,"__fqn__",{value:"wix.common.BulkActionMetadata",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkActionMetadata.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BulkActionMetadata.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),BulkActionMetadata}(),e.ItemMetadata=function(){class ItemMetadata{constructor(e){this.id=e&&e.id,this.originalIndex=e&&e.originalIndex,this.success=e&&e.success,this.error=e&&e.error}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.id?n.id=$root.google.protobuf.StringValue.toJSON(e.id,t,o):o&&delete n.id,null!=e.originalIndex?n.originalIndex=e.originalIndex:o&&(n.originalIndex=0),null!=e.success?n.success=e.success:o&&(n.success=!1),null!=e.error?n.error=$root.wix.api.ApplicationError.toJSON(e.error,t,o):o&&delete n.error,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.ItemMetadata;return null!=e.id?n.id=$root.google.protobuf.StringValue.fromJSON(e.id,t):delete n.id,null!=e.originalIndex?n.originalIndex=e.originalIndex:!1!==o?n.originalIndex=0:delete n.originalIndex,null!=e.success?n.success=e.success:!1!==o?n.success=!1:delete n.success,null!=e.error?n.error=$root.wix.api.ApplicationError.fromJSON(e.error,t):delete n.error,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.id&&(o.id=$root.google.protobuf.StringValue.toGRPC(e.id,t)),null!=e.originalIndex&&(o.originalIndex=e.originalIndex),null!=e.success&&(o.success=e.success),null!=e.error&&(o.error=$root.wix.api.ApplicationError.toGRPC(e.error,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.ItemMetadata;return null!=e.id?o.id=$root.google.protobuf.StringValue.fromGRPC(e.id,t):delete o.id,null!=e.originalIndex?o.originalIndex=e.originalIndex:o.originalIndex=0,null!=e.success?o.success=e.success:o.success=!1,null!=e.error?o.error=$root.wix.api.ApplicationError.fromGRPC(e.error,t):delete o.error,o}}}return __builtIn.Object.defineProperty(ItemMetadata.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.ItemMetadata"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ItemMetadata.prototype,"__fqn__",{value:"wix.common.ItemMetadata",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ItemMetadata.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ItemMetadata.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ItemMetadata}(),e.BulkActionType={UNKNOWN_ACTION_TYPE:"UNKNOWN_ACTION_TYPE",0:"UNKNOWN_ACTION_TYPE",INSERT:"INSERT",1:"INSERT",UPDATE:"UPDATE",2:"UPDATE",DELETE:"DELETE",3:"DELETE"},e.IdentificationData=function(){class IdentificationData{constructor(e){this.contactId=e&&e.contactId,this.identityType=e&&e.identityType,this.anonymousVisitorId=e&&e.anonymousVisitorId,this.memberId=e&&e.memberId,this.wixUserId=e&&e.wixUserId,this.appId=e&&e.appId}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.contactId?n.contactId=$root.google.protobuf.StringValue.toJSON(e.contactId,t,o):o&&delete n.contactId,null!=e.identityType?n.identityType=$root.wix.common.IdentificationData.IdentityType[e.identityType]:o&&(n.identityType="UNKNOWN"),null!=e.anonymousVisitorId?n.anonymousVisitorId=e.anonymousVisitorId:o&&delete n.anonymousVisitorId,null!=e.memberId?n.memberId=e.memberId:o&&delete n.memberId,null!=e.wixUserId?n.wixUserId=e.wixUserId:o&&delete n.wixUserId,null!=e.appId?n.appId=e.appId:o&&delete n.appId,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.IdentificationData;return null!=e.contactId?n.contactId=$root.google.protobuf.StringValue.fromJSON(e.contactId,t):delete n.contactId,null!=e.identityType?n.identityType="string"==typeof e.identityType?e.identityType:$root.wix.common.IdentificationData.IdentityType[e.identityType]:!1!==o?n.identityType="UNKNOWN":delete n.identityType,null!=e.anonymousVisitorId?n.anonymousVisitorId=e.anonymousVisitorId:delete n.anonymousVisitorId,null!=e.memberId?n.memberId=e.memberId:delete n.memberId,null!=e.wixUserId?n.wixUserId=e.wixUserId:delete n.wixUserId,null!=e.appId?n.appId=e.appId:delete n.appId,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.contactId&&(o.contactId=$root.google.protobuf.StringValue.toGRPC(e.contactId,t)),null!=e.identityType&&(o.identityType=e.identityType),null!=e.anonymousVisitorId&&(o.anonymousVisitorId=e.anonymousVisitorId),null!=e.memberId&&(o.memberId=e.memberId),null!=e.wixUserId&&(o.wixUserId=e.wixUserId),null!=e.appId&&(o.appId=e.appId),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.IdentificationData;return null!=e.contactId?o.contactId=$root.google.protobuf.StringValue.fromGRPC(e.contactId,t):delete o.contactId,null!=e.identityType?o.identityType=e.identityType:o.identityType="UNKNOWN",null!=e.anonymousVisitorId?o.anonymousVisitorId=e.anonymousVisitorId:delete o.anonymousVisitorId,null!=e.memberId?o.memberId=e.memberId:delete o.memberId,null!=e.wixUserId?o.wixUserId=e.wixUserId:delete o.wixUserId,null!=e.appId?o.appId=e.appId:delete o.appId,o}}}return IdentificationData.IdentityType={UNKNOWN:"UNKNOWN",0:"UNKNOWN",ANONYMOUS_VISITOR:"ANONYMOUS_VISITOR",1:"ANONYMOUS_VISITOR",MEMBER:"MEMBER",2:"MEMBER",WIX_USER:"WIX_USER",3:"WIX_USER",APP:"APP",4:"APP"},IdentificationData.IdentityType={UNKNOWN:"UNKNOWN",0:"UNKNOWN",ANONYMOUS_VISITOR:"ANONYMOUS_VISITOR",1:"ANONYMOUS_VISITOR",MEMBER:"MEMBER",2:"MEMBER",WIX_USER:"WIX_USER",3:"WIX_USER",APP:"APP",4:"APP"},__builtIn.Object.defineProperty(IdentificationData.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.IdentificationData"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IdentificationData.prototype,"__fqn__",{value:"wix.common.IdentificationData",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IdentificationData.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IdentificationData.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),IdentificationData}(),e.Image=function(){class Image{constructor(e){this.id=e&&e.id,this.url=e&&e.url,this.height=e&&e.height,this.width=e&&e.width,this.altText=e&&e.altText,this.urlExpirationDate=e&&e.urlExpirationDate,this.filename=e&&e.filename,this.sizeInBytes=e&&e.sizeInBytes,this.focalPoint=e&&e.focalPoint}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.id?n.id=e.id:o&&(n.id=""),null!=e.url?n.url=e.url:o&&(n.url=""),null!=e.height?n.height=e.height:o&&(n.height=0),null!=e.width?n.width=e.width:o&&(n.width=0),null!=e.altText?n.altText=$root.google.protobuf.StringValue.toJSON(e.altText,t,o):o&&delete n.altText,null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,t,o):o&&delete n.urlExpirationDate,null!=e.filename?n.filename=$root.google.protobuf.StringValue.toJSON(e.filename,t,o):o&&delete n.filename,null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.toJSON(e.sizeInBytes,t,o):o&&delete n.sizeInBytes,null!=e.focalPoint?n.focalPoint=$root.wix.common.FocalPoint.toJSON(e.focalPoint,t,o):o&&delete n.focalPoint,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Image;return null!=e.id?n.id=e.id:!1!==o?n.id="":delete n.id,null!=e.url?n.url=e.url:!1!==o?n.url="":delete n.url,null!=e.height?n.height=e.height:!1!==o?n.height=0:delete n.height,null!=e.width?n.width=e.width:!1!==o?n.width=0:delete n.width,null!=e.altText?n.altText=$root.google.protobuf.StringValue.fromJSON(e.altText,t):delete n.altText,null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,t):delete n.urlExpirationDate,null!=e.filename?n.filename=$root.google.protobuf.StringValue.fromJSON(e.filename,t):delete n.filename,null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.fromJSON(e.sizeInBytes,t):delete n.sizeInBytes,null!=e.focalPoint?n.focalPoint=$root.wix.common.FocalPoint.fromJSON(e.focalPoint,t):delete n.focalPoint,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.id&&(o.id=e.id),null!=e.url&&(o.url=e.url),null!=e.height&&(o.height=e.height),null!=e.width&&(o.width=e.width),null!=e.altText&&(o.altText=$root.google.protobuf.StringValue.toGRPC(e.altText,t)),null!=e.urlExpirationDate&&(o.urlExpirationDate=$root.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,t)),null!=e.filename&&(o.filename=$root.google.protobuf.StringValue.toGRPC(e.filename,t)),null!=e.sizeInBytes&&(o.sizeInBytes=$root.google.protobuf.StringValue.toGRPC(e.sizeInBytes,t)),null!=e.focalPoint&&(o.focalPoint=$root.wix.common.FocalPoint.toGRPC(e.focalPoint,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Image;return null!=e.id?o.id=e.id:o.id="",null!=e.url?o.url=e.url:o.url="",null!=e.height?o.height=e.height:o.height=0,null!=e.width?o.width=e.width:o.width=0,null!=e.altText?o.altText=$root.google.protobuf.StringValue.fromGRPC(e.altText,t):delete o.altText,null!=e.urlExpirationDate?o.urlExpirationDate=$root.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,t):delete o.urlExpirationDate,null!=e.filename?o.filename=$root.google.protobuf.StringValue.fromGRPC(e.filename,t):delete o.filename,null!=e.sizeInBytes?o.sizeInBytes=$root.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,t):delete o.sizeInBytes,null!=e.focalPoint?o.focalPoint=$root.wix.common.FocalPoint.fromGRPC(e.focalPoint,t):delete o.focalPoint,o}}}return __builtIn.Object.defineProperty(Image.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Image"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Image.prototype,"__fqn__",{value:"wix.common.Image",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Image.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Image.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Image}(),e.Video=function(){class Video{constructor(e){this.id=e&&e.id,this.url=e&&e.url,this.height=e&&e.height,this.width=e&&e.width,this.thumbnail=e&&e.thumbnail}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.id?n.id=e.id:o&&(n.id=""),null!=e.url?n.url=e.url:o&&(n.url=""),null!=e.height?n.height=e.height:o&&(n.height=0),null!=e.width?n.width=e.width:o&&(n.width=0),null!=e.thumbnail?n.thumbnail=$root.wix.common.Image.toJSON(e.thumbnail,t,o):o&&delete n.thumbnail,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Video;return null!=e.id?n.id=e.id:!1!==o?n.id="":delete n.id,null!=e.url?n.url=e.url:!1!==o?n.url="":delete n.url,null!=e.height?n.height=e.height:!1!==o?n.height=0:delete n.height,null!=e.width?n.width=e.width:!1!==o?n.width=0:delete n.width,null!=e.thumbnail?n.thumbnail=$root.wix.common.Image.fromJSON(e.thumbnail,t):delete n.thumbnail,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.id&&(o.id=e.id),null!=e.url&&(o.url=e.url),null!=e.height&&(o.height=e.height),null!=e.width&&(o.width=e.width),null!=e.thumbnail&&(o.thumbnail=$root.wix.common.Image.toGRPC(e.thumbnail,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Video;return null!=e.id?o.id=e.id:o.id="",null!=e.url?o.url=e.url:o.url="",null!=e.height?o.height=e.height:o.height=0,null!=e.width?o.width=e.width:o.width=0,null!=e.thumbnail?o.thumbnail=$root.wix.common.Image.fromGRPC(e.thumbnail,t):delete o.thumbnail,o}}}return __builtIn.Object.defineProperty(Video.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Video"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Video.prototype,"__fqn__",{value:"wix.common.Video",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Video.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Video.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Video}(),e.VideoV2=function(){class VideoV2{constructor(e){this.id=e&&e.id,this.url=e&&e.url,this.resolutions=e&&e.resolutions,this.filename=e&&e.filename,this.posters=e&&e.posters,this.sizeInBytes=e&&e.sizeInBytes,this.urlExpirationDate=e&&e.urlExpirationDate,this.durationInMilliseconds=e&&e.durationInMilliseconds,this.title=e&&e.title,this.description=e&&e.description,this.height=e&&e.height,this.width=e&&e.width}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.id?n.id=e.id:o&&(n.id=""),null!=e.url?n.url=e.url:o&&(n.url=""),null!=e.resolutions?n.resolutions=e.resolutions.map(e=>$root.wix.common.VideoResolution.toJSON(e,t,o)):o&&(n.resolutions=[]),null!=e.filename?n.filename=$root.google.protobuf.StringValue.toJSON(e.filename,t,o):o&&delete n.filename,null!=e.posters?n.posters=e.posters.map(e=>$root.wix.common.Image.toJSON(e,t,o)):o&&(n.posters=[]),null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.toJSON(e.sizeInBytes,t,o):o&&delete n.sizeInBytes,null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,t,o):o&&delete n.urlExpirationDate,null!=e.durationInMilliseconds?n.durationInMilliseconds=$root.google.protobuf.Int32Value.toJSON(e.durationInMilliseconds,t,o):o&&delete n.durationInMilliseconds,null!=e.title?n.title=$root.google.protobuf.StringValue.toJSON(e.title,t,o):o&&delete n.title,null!=e.description?n.description=$root.google.protobuf.StringValue.toJSON(e.description,t,o):o&&delete n.description,null!=e.height?n.height=$root.google.protobuf.Int32Value.toJSON(e.height,t,o):o&&delete n.height,null!=e.width?n.width=$root.google.protobuf.Int32Value.toJSON(e.width,t,o):o&&delete n.width,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.VideoV2;return null!=e.id?n.id=e.id:!1!==o?n.id="":delete n.id,null!=e.url?n.url=e.url:!1!==o?n.url="":delete n.url,null!=e.resolutions?n.resolutions=Array.isArray(e.resolutions)?e.resolutions.map(e=>$root.wix.common.VideoResolution.fromJSON(e,t)):e.resolutions:!1!==o?n.resolutions=[]:delete n.resolutions,null!=e.filename?n.filename=$root.google.protobuf.StringValue.fromJSON(e.filename,t):delete n.filename,null!=e.posters?n.posters=Array.isArray(e.posters)?e.posters.map(e=>$root.wix.common.Image.fromJSON(e,t)):e.posters:!1!==o?n.posters=[]:delete n.posters,null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.fromJSON(e.sizeInBytes,t):delete n.sizeInBytes,null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,t):delete n.urlExpirationDate,null!=e.durationInMilliseconds?n.durationInMilliseconds=$root.google.protobuf.Int32Value.fromJSON(e.durationInMilliseconds,t):delete n.durationInMilliseconds,null!=e.title?n.title=$root.google.protobuf.StringValue.fromJSON(e.title,t):delete n.title,null!=e.description?n.description=$root.google.protobuf.StringValue.fromJSON(e.description,t):delete n.description,null!=e.height?n.height=$root.google.protobuf.Int32Value.fromJSON(e.height,t):delete n.height,null!=e.width?n.width=$root.google.protobuf.Int32Value.fromJSON(e.width,t):delete n.width,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.id&&(o.id=e.id),null!=e.url&&(o.url=e.url),null!=e.resolutions&&(o.resolutions=e.resolutions.map(e=>$root.wix.common.VideoResolution.toGRPC(e,t))),null!=e.filename&&(o.filename=$root.google.protobuf.StringValue.toGRPC(e.filename,t)),null!=e.posters&&(o.posters=e.posters.map(e=>$root.wix.common.Image.toGRPC(e,t))),null!=e.sizeInBytes&&(o.sizeInBytes=$root.google.protobuf.StringValue.toGRPC(e.sizeInBytes,t)),null!=e.urlExpirationDate&&(o.urlExpirationDate=$root.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,t)),null!=e.durationInMilliseconds&&(o.durationInMilliseconds=$root.google.protobuf.Int32Value.toGRPC(e.durationInMilliseconds,t)),null!=e.title&&(o.title=$root.google.protobuf.StringValue.toGRPC(e.title,t)),null!=e.description&&(o.description=$root.google.protobuf.StringValue.toGRPC(e.description,t)),null!=e.height&&(o.height=$root.google.protobuf.Int32Value.toGRPC(e.height,t)),null!=e.width&&(o.width=$root.google.protobuf.Int32Value.toGRPC(e.width,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.VideoV2;return null!=e.id?o.id=e.id:o.id="",null!=e.url?o.url=e.url:o.url="",null!=e.resolutions?o.resolutions=e.resolutions.map(e=>$root.wix.common.VideoResolution.fromGRPC(e,t)):o.resolutions=[],null!=e.filename?o.filename=$root.google.protobuf.StringValue.fromGRPC(e.filename,t):delete o.filename,null!=e.posters?o.posters=e.posters.map(e=>$root.wix.common.Image.fromGRPC(e,t)):o.posters=[],null!=e.sizeInBytes?o.sizeInBytes=$root.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,t):delete o.sizeInBytes,null!=e.urlExpirationDate?o.urlExpirationDate=$root.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,t):delete o.urlExpirationDate,null!=e.durationInMilliseconds?o.durationInMilliseconds=$root.google.protobuf.Int32Value.fromGRPC(e.durationInMilliseconds,t):delete o.durationInMilliseconds,null!=e.title?o.title=$root.google.protobuf.StringValue.fromGRPC(e.title,t):delete o.title,null!=e.description?o.description=$root.google.protobuf.StringValue.fromGRPC(e.description,t):delete o.description,null!=e.height?o.height=$root.google.protobuf.Int32Value.fromGRPC(e.height,t):delete o.height,null!=e.width?o.width=$root.google.protobuf.Int32Value.fromGRPC(e.width,t):delete o.width,o}}}return __builtIn.Object.defineProperty(VideoV2.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.VideoV2"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(VideoV2.prototype,"__fqn__",{value:"wix.common.VideoV2",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(VideoV2.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(VideoV2.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),VideoV2}(),e.VideoResolution=function(){class VideoResolution{constructor(e){this.url=e&&e.url,this.height=e&&e.height,this.width=e&&e.width,this.poster=e&&e.poster,this.format=e&&e.format,this.urlExpirationDate=e&&e.urlExpirationDate,this.sizeInBytes=e&&e.sizeInBytes,this.quality=e&&e.quality,this.filename=e&&e.filename,this.durationInSeconds=e&&e.durationInSeconds,this.durationInMilliseconds=e&&e.durationInMilliseconds,this.private=e&&e.private,this.assetKey=e&&e.assetKey}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.url?n.url=e.url:o&&(n.url=""),null!=e.height?n.height=e.height:o&&(n.height=0),null!=e.width?n.width=e.width:o&&(n.width=0),null!=e.poster?n.poster=$root.wix.common.Image.toJSON(e.poster,t,o):o&&delete n.poster,null!=e.format?n.format=e.format:o&&(n.format=""),null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,t,o):o&&delete n.urlExpirationDate,null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.toJSON(e.sizeInBytes,t,o):o&&delete n.sizeInBytes,null!=e.quality?n.quality=$root.google.protobuf.StringValue.toJSON(e.quality,t,o):o&&delete n.quality,null!=e.filename?n.filename=$root.google.protobuf.StringValue.toJSON(e.filename,t,o):o&&delete n.filename,null!=e.durationInSeconds?n.durationInSeconds=$root.google.protobuf.Int32Value.toJSON(e.durationInSeconds,t,o):o&&delete n.durationInSeconds,null!=e.durationInMilliseconds?n.durationInMilliseconds=$root.google.protobuf.Int32Value.toJSON(e.durationInMilliseconds,t,o):o&&delete n.durationInMilliseconds,null!=e.private?n.private=$root.google.protobuf.BoolValue.toJSON(e.private,t,o):o&&delete n.private,null!=e.assetKey?n.assetKey=$root.google.protobuf.StringValue.toJSON(e.assetKey,t,o):o&&delete n.assetKey,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.VideoResolution;return null!=e.url?n.url=e.url:!1!==o?n.url="":delete n.url,null!=e.height?n.height=e.height:!1!==o?n.height=0:delete n.height,null!=e.width?n.width=e.width:!1!==o?n.width=0:delete n.width,null!=e.poster?n.poster=$root.wix.common.Image.fromJSON(e.poster,t):delete n.poster,null!=e.format?n.format=e.format:!1!==o?n.format="":delete n.format,null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,t):delete n.urlExpirationDate,null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.fromJSON(e.sizeInBytes,t):delete n.sizeInBytes,null!=e.quality?n.quality=$root.google.protobuf.StringValue.fromJSON(e.quality,t):delete n.quality,null!=e.filename?n.filename=$root.google.protobuf.StringValue.fromJSON(e.filename,t):delete n.filename,null!=e.durationInSeconds?n.durationInSeconds=$root.google.protobuf.Int32Value.fromJSON(e.durationInSeconds,t):delete n.durationInSeconds,null!=e.durationInMilliseconds?n.durationInMilliseconds=$root.google.protobuf.Int32Value.fromJSON(e.durationInMilliseconds,t):delete n.durationInMilliseconds,null!=e.private?n.private=$root.google.protobuf.BoolValue.fromJSON(e.private,t):delete n.private,null!=e.assetKey?n.assetKey=$root.google.protobuf.StringValue.fromJSON(e.assetKey,t):delete n.assetKey,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.url&&(o.url=e.url),null!=e.height&&(o.height=e.height),null!=e.width&&(o.width=e.width),null!=e.poster&&(o.poster=$root.wix.common.Image.toGRPC(e.poster,t)),null!=e.format&&(o.format=e.format),null!=e.urlExpirationDate&&(o.urlExpirationDate=$root.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,t)),null!=e.sizeInBytes&&(o.sizeInBytes=$root.google.protobuf.StringValue.toGRPC(e.sizeInBytes,t)),null!=e.quality&&(o.quality=$root.google.protobuf.StringValue.toGRPC(e.quality,t)),null!=e.filename&&(o.filename=$root.google.protobuf.StringValue.toGRPC(e.filename,t)),null!=e.durationInSeconds&&(o.durationInSeconds=$root.google.protobuf.Int32Value.toGRPC(e.durationInSeconds,t)),null!=e.durationInMilliseconds&&(o.durationInMilliseconds=$root.google.protobuf.Int32Value.toGRPC(e.durationInMilliseconds,t)),null!=e.private&&(o.private=$root.google.protobuf.BoolValue.toGRPC(e.private,t)),null!=e.assetKey&&(o.assetKey=$root.google.protobuf.StringValue.toGRPC(e.assetKey,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.VideoResolution;return null!=e.url?o.url=e.url:o.url="",null!=e.height?o.height=e.height:o.height=0,null!=e.width?o.width=e.width:o.width=0,null!=e.poster?o.poster=$root.wix.common.Image.fromGRPC(e.poster,t):delete o.poster,null!=e.format?o.format=e.format:o.format="",null!=e.urlExpirationDate?o.urlExpirationDate=$root.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,t):delete o.urlExpirationDate,null!=e.sizeInBytes?o.sizeInBytes=$root.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,t):delete o.sizeInBytes,null!=e.quality?o.quality=$root.google.protobuf.StringValue.fromGRPC(e.quality,t):delete o.quality,null!=e.filename?o.filename=$root.google.protobuf.StringValue.fromGRPC(e.filename,t):delete o.filename,null!=e.durationInSeconds?o.durationInSeconds=$root.google.protobuf.Int32Value.fromGRPC(e.durationInSeconds,t):delete o.durationInSeconds,null!=e.durationInMilliseconds?o.durationInMilliseconds=$root.google.protobuf.Int32Value.fromGRPC(e.durationInMilliseconds,t):delete o.durationInMilliseconds,null!=e.private?o.private=$root.google.protobuf.BoolValue.fromGRPC(e.private,t):delete o.private,null!=e.assetKey?o.assetKey=$root.google.protobuf.StringValue.fromGRPC(e.assetKey,t):delete o.assetKey,o}}}return __builtIn.Object.defineProperty(VideoResolution.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.VideoResolution"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(VideoResolution.prototype,"__fqn__",{value:"wix.common.VideoResolution",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(VideoResolution.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(VideoResolution.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),VideoResolution}(),e.Audio=function(){class Audio{constructor(e){this.id=e&&e.id,this.url=e&&e.url,this.urlExpirationDate=e&&e.urlExpirationDate,this.sizeInBytes=e&&e.sizeInBytes,this.filename=e&&e.filename,this.duration=e&&e.duration,this.private=e&&e.private,this.assetKey=e&&e.assetKey,this.format=e&&e.format,this.quality=e&&e.quality}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.id?n.id=e.id:o&&(n.id=""),null!=e.url?n.url=e.url:o&&(n.url=""),null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,t,o):o&&delete n.urlExpirationDate,null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.toJSON(e.sizeInBytes,t,o):o&&delete n.sizeInBytes,null!=e.filename?n.filename=$root.google.protobuf.StringValue.toJSON(e.filename,t,o):o&&delete n.filename,null!=e.duration?n.duration=$root.google.protobuf.Int32Value.toJSON(e.duration,t,o):o&&delete n.duration,null!=e.private?n.private=$root.google.protobuf.BoolValue.toJSON(e.private,t,o):o&&delete n.private,null!=e.assetKey?n.assetKey=$root.google.protobuf.StringValue.toJSON(e.assetKey,t,o):o&&delete n.assetKey,null!=e.format?n.format=$root.google.protobuf.StringValue.toJSON(e.format,t,o):o&&delete n.format,null!=e.quality?n.quality=$root.google.protobuf.StringValue.toJSON(e.quality,t,o):o&&delete n.quality,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Audio;return null!=e.id?n.id=e.id:!1!==o?n.id="":delete n.id,null!=e.url?n.url=e.url:!1!==o?n.url="":delete n.url,null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,t):delete n.urlExpirationDate,null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.fromJSON(e.sizeInBytes,t):delete n.sizeInBytes,null!=e.filename?n.filename=$root.google.protobuf.StringValue.fromJSON(e.filename,t):delete n.filename,null!=e.duration?n.duration=$root.google.protobuf.Int32Value.fromJSON(e.duration,t):delete n.duration,null!=e.private?n.private=$root.google.protobuf.BoolValue.fromJSON(e.private,t):delete n.private,null!=e.assetKey?n.assetKey=$root.google.protobuf.StringValue.fromJSON(e.assetKey,t):delete n.assetKey,null!=e.format?n.format=$root.google.protobuf.StringValue.fromJSON(e.format,t):delete n.format,null!=e.quality?n.quality=$root.google.protobuf.StringValue.fromJSON(e.quality,t):delete n.quality,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.id&&(o.id=e.id),null!=e.url&&(o.url=e.url),null!=e.urlExpirationDate&&(o.urlExpirationDate=$root.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,t)),null!=e.sizeInBytes&&(o.sizeInBytes=$root.google.protobuf.StringValue.toGRPC(e.sizeInBytes,t)),null!=e.filename&&(o.filename=$root.google.protobuf.StringValue.toGRPC(e.filename,t)),null!=e.duration&&(o.duration=$root.google.protobuf.Int32Value.toGRPC(e.duration,t)),null!=e.private&&(o.private=$root.google.protobuf.BoolValue.toGRPC(e.private,t)),null!=e.assetKey&&(o.assetKey=$root.google.protobuf.StringValue.toGRPC(e.assetKey,t)),null!=e.format&&(o.format=$root.google.protobuf.StringValue.toGRPC(e.format,t)),null!=e.quality&&(o.quality=$root.google.protobuf.StringValue.toGRPC(e.quality,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Audio;return null!=e.id?o.id=e.id:o.id="",null!=e.url?o.url=e.url:o.url="",null!=e.urlExpirationDate?o.urlExpirationDate=$root.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,t):delete o.urlExpirationDate,null!=e.sizeInBytes?o.sizeInBytes=$root.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,t):delete o.sizeInBytes,null!=e.filename?o.filename=$root.google.protobuf.StringValue.fromGRPC(e.filename,t):delete o.filename,null!=e.duration?o.duration=$root.google.protobuf.Int32Value.fromGRPC(e.duration,t):delete o.duration,null!=e.private?o.private=$root.google.protobuf.BoolValue.fromGRPC(e.private,t):delete o.private,null!=e.assetKey?o.assetKey=$root.google.protobuf.StringValue.fromGRPC(e.assetKey,t):delete o.assetKey,null!=e.format?o.format=$root.google.protobuf.StringValue.fromGRPC(e.format,t):delete o.format,null!=e.quality?o.quality=$root.google.protobuf.StringValue.fromGRPC(e.quality,t):delete o.quality,o}}}return __builtIn.Object.defineProperty(Audio.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Audio"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Audio.prototype,"__fqn__",{value:"wix.common.Audio",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Audio.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Audio.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Audio}(),e.Document=function(){class Document{constructor(e){this.id=e&&e.id,this.url=e&&e.url,this.urlExpirationDate=e&&e.urlExpirationDate,this.sizeInBytes=e&&e.sizeInBytes,this.filename=e&&e.filename,this.thumbnail=e&&e.thumbnail}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.id?n.id=e.id:o&&(n.id=""),null!=e.url?n.url=e.url:o&&(n.url=""),null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,t,o):o&&delete n.urlExpirationDate,null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.toJSON(e.sizeInBytes,t,o):o&&delete n.sizeInBytes,null!=e.filename?n.filename=$root.google.protobuf.StringValue.toJSON(e.filename,t,o):o&&delete n.filename,null!=e.thumbnail?n.thumbnail=$root.wix.common.Image.toJSON(e.thumbnail,t,o):o&&delete n.thumbnail,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Document;return null!=e.id?n.id=e.id:!1!==o?n.id="":delete n.id,null!=e.url?n.url=e.url:!1!==o?n.url="":delete n.url,null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,t):delete n.urlExpirationDate,null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.fromJSON(e.sizeInBytes,t):delete n.sizeInBytes,null!=e.filename?n.filename=$root.google.protobuf.StringValue.fromJSON(e.filename,t):delete n.filename,null!=e.thumbnail?n.thumbnail=$root.wix.common.Image.fromJSON(e.thumbnail,t):delete n.thumbnail,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.id&&(o.id=e.id),null!=e.url&&(o.url=e.url),null!=e.urlExpirationDate&&(o.urlExpirationDate=$root.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,t)),null!=e.sizeInBytes&&(o.sizeInBytes=$root.google.protobuf.StringValue.toGRPC(e.sizeInBytes,t)),null!=e.filename&&(o.filename=$root.google.protobuf.StringValue.toGRPC(e.filename,t)),null!=e.thumbnail&&(o.thumbnail=$root.wix.common.Image.toGRPC(e.thumbnail,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Document;return null!=e.id?o.id=e.id:o.id="",null!=e.url?o.url=e.url:o.url="",null!=e.urlExpirationDate?o.urlExpirationDate=$root.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,t):delete o.urlExpirationDate,null!=e.sizeInBytes?o.sizeInBytes=$root.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,t):delete o.sizeInBytes,null!=e.filename?o.filename=$root.google.protobuf.StringValue.fromGRPC(e.filename,t):delete o.filename,null!=e.thumbnail?o.thumbnail=$root.wix.common.Image.fromGRPC(e.thumbnail,t):delete o.thumbnail,o}}}return __builtIn.Object.defineProperty(Document.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Document"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Document.prototype,"__fqn__",{value:"wix.common.Document",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Document.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Document.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Document}(),e.Model3D=function(){class Model3D{constructor(e){this.id=e&&e.id,this.url=e&&e.url,this.thumbnail=e&&e.thumbnail,this.altText=e&&e.altText,this.urlExpirationDate=e&&e.urlExpirationDate,this.filename=e&&e.filename,this.sizeInBytes=e&&e.sizeInBytes}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.id?n.id=e.id:o&&(n.id=""),null!=e.url?n.url=e.url:o&&(n.url=""),null!=e.thumbnail?n.thumbnail=$root.wix.common.Image.toJSON(e.thumbnail,t,o):o&&delete n.thumbnail,null!=e.altText?n.altText=$root.google.protobuf.StringValue.toJSON(e.altText,t,o):o&&delete n.altText,null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,t,o):o&&delete n.urlExpirationDate,null!=e.filename?n.filename=$root.google.protobuf.StringValue.toJSON(e.filename,t,o):o&&delete n.filename,null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.toJSON(e.sizeInBytes,t,o):o&&delete n.sizeInBytes,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Model3D;return null!=e.id?n.id=e.id:!1!==o?n.id="":delete n.id,null!=e.url?n.url=e.url:!1!==o?n.url="":delete n.url,null!=e.thumbnail?n.thumbnail=$root.wix.common.Image.fromJSON(e.thumbnail,t):delete n.thumbnail,null!=e.altText?n.altText=$root.google.protobuf.StringValue.fromJSON(e.altText,t):delete n.altText,null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,t):delete n.urlExpirationDate,null!=e.filename?n.filename=$root.google.protobuf.StringValue.fromJSON(e.filename,t):delete n.filename,null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.fromJSON(e.sizeInBytes,t):delete n.sizeInBytes,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.id&&(o.id=e.id),null!=e.url&&(o.url=e.url),null!=e.thumbnail&&(o.thumbnail=$root.wix.common.Image.toGRPC(e.thumbnail,t)),null!=e.altText&&(o.altText=$root.google.protobuf.StringValue.toGRPC(e.altText,t)),null!=e.urlExpirationDate&&(o.urlExpirationDate=$root.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,t)),null!=e.filename&&(o.filename=$root.google.protobuf.StringValue.toGRPC(e.filename,t)),null!=e.sizeInBytes&&(o.sizeInBytes=$root.google.protobuf.StringValue.toGRPC(e.sizeInBytes,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Model3D;return null!=e.id?o.id=e.id:o.id="",null!=e.url?o.url=e.url:o.url="",null!=e.thumbnail?o.thumbnail=$root.wix.common.Image.fromGRPC(e.thumbnail,t):delete o.thumbnail,null!=e.altText?o.altText=$root.google.protobuf.StringValue.fromGRPC(e.altText,t):delete o.altText,null!=e.urlExpirationDate?o.urlExpirationDate=$root.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,t):delete o.urlExpirationDate,null!=e.filename?o.filename=$root.google.protobuf.StringValue.fromGRPC(e.filename,t):delete o.filename,null!=e.sizeInBytes?o.sizeInBytes=$root.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,t):delete o.sizeInBytes,o}}}return __builtIn.Object.defineProperty(Model3D.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Model3D"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Model3D.prototype,"__fqn__",{value:"wix.common.Model3D",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Model3D.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Model3D.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Model3D}(),e.Archive=function(){class Archive{constructor(e){this.id=e&&e.id,this.url=e&&e.url,this.urlExpirationDate=e&&e.urlExpirationDate,this.sizeInBytes=e&&e.sizeInBytes,this.filename=e&&e.filename}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.id?n.id=e.id:o&&(n.id=""),null!=e.url?n.url=e.url:o&&(n.url=""),null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,t,o):o&&delete n.urlExpirationDate,null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.toJSON(e.sizeInBytes,t,o):o&&delete n.sizeInBytes,null!=e.filename?n.filename=$root.google.protobuf.StringValue.toJSON(e.filename,t,o):o&&delete n.filename,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Archive;return null!=e.id?n.id=e.id:!1!==o?n.id="":delete n.id,null!=e.url?n.url=e.url:!1!==o?n.url="":delete n.url,null!=e.urlExpirationDate?n.urlExpirationDate=$root.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,t):delete n.urlExpirationDate,null!=e.sizeInBytes?n.sizeInBytes=$root.google.protobuf.StringValue.fromJSON(e.sizeInBytes,t):delete n.sizeInBytes,null!=e.filename?n.filename=$root.google.protobuf.StringValue.fromJSON(e.filename,t):delete n.filename,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.id&&(o.id=e.id),null!=e.url&&(o.url=e.url),null!=e.urlExpirationDate&&(o.urlExpirationDate=$root.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,t)),null!=e.sizeInBytes&&(o.sizeInBytes=$root.google.protobuf.StringValue.toGRPC(e.sizeInBytes,t)),null!=e.filename&&(o.filename=$root.google.protobuf.StringValue.toGRPC(e.filename,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Archive;return null!=e.id?o.id=e.id:o.id="",null!=e.url?o.url=e.url:o.url="",null!=e.urlExpirationDate?o.urlExpirationDate=$root.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,t):delete o.urlExpirationDate,null!=e.sizeInBytes?o.sizeInBytes=$root.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,t):delete o.sizeInBytes,null!=e.filename?o.filename=$root.google.protobuf.StringValue.fromGRPC(e.filename,t):delete o.filename,o}}}return __builtIn.Object.defineProperty(Archive.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Archive"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Archive.prototype,"__fqn__",{value:"wix.common.Archive",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Archive.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Archive.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Archive}(),e.MediaItem=function(){class MediaItem{constructor(e){this.image=e&&e.image,this.video=e&&e.video,this.document=e&&e.document}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.image?n.image=$root.wix.common.Image.toJSON(e.image,t,o):o&&delete n.image,null!=e.video?n.video=$root.wix.common.Video.toJSON(e.video,t,o):o&&delete n.video,null!=e.document?n.document=$root.wix.common.Document.toJSON(e.document,t,o):o&&delete n.document,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.MediaItem;return null!=e.image?o.image=$root.wix.common.Image.fromJSON(e.image,t):delete o.image,null!=e.video?o.video=$root.wix.common.Video.fromJSON(e.video,t):delete o.video,null!=e.document?o.document=$root.wix.common.Document.fromJSON(e.document,t):delete o.document,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.image&&(o.image=$root.wix.common.Image.toGRPC(e.image,t)),null!=e.video&&(o.video=$root.wix.common.Video.toGRPC(e.video,t)),null!=e.document&&(o.document=$root.wix.common.Document.toGRPC(e.document,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.MediaItem;return null!=e.image?o.image=$root.wix.common.Image.fromGRPC(e.image,t):delete o.image,null!=e.video?o.video=$root.wix.common.Video.fromGRPC(e.video,t):delete o.video,null!=e.document?o.document=$root.wix.common.Document.fromGRPC(e.document,t):delete o.document,o}}}return __builtIn.Object.defineProperty(MediaItem.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.MediaItem"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MediaItem.prototype,"__fqn__",{value:"wix.common.MediaItem",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MediaItem.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MediaItem.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),MediaItem}(),e.FocalPoint=function(){class FocalPoint{constructor(e){this.x=e&&e.x,this.y=e&&e.y,this.height=e&&e.height,this.width=e&&e.width}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.x?n.x=null==e.x?e.x:isNaN(e.x)?"NaN":isFinite(e.x)?e.x:e.x.toString():o&&(n.x=0),null!=e.y?n.y=null==e.y?e.y:isNaN(e.y)?"NaN":isFinite(e.y)?e.y:e.y.toString():o&&(n.y=0),null!=e.height?n.height=$root.google.protobuf.Int32Value.toJSON(e.height,t,o):o&&delete n.height,null!=e.width?n.width=$root.google.protobuf.Int32Value.toJSON(e.width,t,o):o&&delete n.width,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.FocalPoint;return null!=e.x?n.x="NaN"===e.x?NaN:"Infinity"===e.x?1/0:"-Infinity"===e.x?-1/0:e.x:!1!==o?n.x=0:delete n.x,null!=e.y?n.y="NaN"===e.y?NaN:"Infinity"===e.y?1/0:"-Infinity"===e.y?-1/0:e.y:!1!==o?n.y=0:delete n.y,null!=e.height?n.height=$root.google.protobuf.Int32Value.fromJSON(e.height,t):delete n.height,null!=e.width?n.width=$root.google.protobuf.Int32Value.fromJSON(e.width,t):delete n.width,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.x&&(o.x=e.x),null!=e.y&&(o.y=e.y),null!=e.height&&(o.height=$root.google.protobuf.Int32Value.toGRPC(e.height,t)),null!=e.width&&(o.width=$root.google.protobuf.Int32Value.toGRPC(e.width,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.FocalPoint;return null!=e.x?o.x=e.x:o.x=0,null!=e.y?o.y=e.y:o.y=0,null!=e.height?o.height=$root.google.protobuf.Int32Value.fromGRPC(e.height,t):delete o.height,null!=e.width?o.width=$root.google.protobuf.Int32Value.fromGRPC(e.width,t):delete o.width,o}}}return __builtIn.Object.defineProperty(FocalPoint.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.FocalPoint"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FocalPoint.prototype,"__fqn__",{value:"wix.common.FocalPoint",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FocalPoint.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FocalPoint.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),FocalPoint}(),e.Money=function(){class Money{constructor(e){this.value=e&&e.value,this.currency=e&&e.currency,this.formattedValue=e&&e.formattedValue}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.currency?n.currency=e.currency:o&&(n.currency=""),null!=e.formattedValue?n.formattedValue=$root.google.protobuf.StringValue.toJSON(e.formattedValue,t,o):o&&delete n.formattedValue,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Money;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.currency?n.currency=e.currency:!1!==o?n.currency="":delete n.currency,null!=e.formattedValue?n.formattedValue=$root.google.protobuf.StringValue.fromJSON(e.formattedValue,t):delete n.formattedValue,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.currency&&(o.currency=e.currency),null!=e.formattedValue&&(o.formattedValue=$root.google.protobuf.StringValue.toGRPC(e.formattedValue,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Money;return null!=e.value?o.value=e.value:o.value="",null!=e.currency?o.currency=e.currency:o.currency="",null!=e.formattedValue?o.formattedValue=$root.google.protobuf.StringValue.fromGRPC(e.formattedValue,t):delete o.formattedValue,o}}}return __builtIn.Object.defineProperty(Money.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Money"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Money.prototype,"__fqn__",{value:"wix.common.Money",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Money.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Money.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Money}(),e.PageUrl=function(){class PageUrl{constructor(e){this.base=e&&e.base,this.path=e&&e.path}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.base?t.base=e.base:o&&(t.base=""),null!=e.path?t.path=e.path:o&&(t.path=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.PageUrl;return null!=e.base?t.base=e.base:!1!==o?t.base="":delete t.base,null!=e.path?t.path=e.path:!1!==o?t.path="":delete t.path,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.base&&(t.base=e.base),null!=e.path&&(t.path=e.path),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.PageUrl;return null!=e.base?t.base=e.base:t.base="",null!=e.path?t.path=e.path:t.path="",t}}}return __builtIn.Object.defineProperty(PageUrl.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.PageUrl"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PageUrl.prototype,"__fqn__",{value:"wix.common.PageUrl",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PageUrl.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PageUrl.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),PageUrl}(),e.PageUrlV2=function(){class PageUrlV2{constructor(e){this.relativePath=e&&e.relativePath,this.url=e&&e.url}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.relativePath?n.relativePath=e.relativePath:o&&(n.relativePath=""),null!=e.url?n.url=$root.google.protobuf.StringValue.toJSON(e.url,t,o):o&&delete n.url,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.PageUrlV2;return null!=e.relativePath?n.relativePath=e.relativePath:!1!==o?n.relativePath="":delete n.relativePath,null!=e.url?n.url=$root.google.protobuf.StringValue.fromJSON(e.url,t):delete n.url,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.relativePath&&(o.relativePath=e.relativePath),null!=e.url&&(o.url=$root.google.protobuf.StringValue.toGRPC(e.url,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.PageUrlV2;return null!=e.relativePath?o.relativePath=e.relativePath:o.relativePath="",null!=e.url?o.url=$root.google.protobuf.StringValue.fromGRPC(e.url,t):delete o.url,o}}}return __builtIn.Object.defineProperty(PageUrlV2.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.PageUrlV2"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PageUrlV2.prototype,"__fqn__",{value:"wix.common.PageUrlV2",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PageUrlV2.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PageUrlV2.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),PageUrlV2}(),e.Paging=function(){class Paging{constructor(e){this.limit=e&&e.limit,this.offset=e&&e.offset}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.limit?n.limit=$root.google.protobuf.Int32Value.toJSON(e.limit,t,o):o&&delete n.limit,null!=e.offset?n.offset=$root.google.protobuf.Int32Value.toJSON(e.offset,t,o):o&&delete n.offset,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.Paging;return null!=e.limit?o.limit=$root.google.protobuf.Int32Value.fromJSON(e.limit,t):delete o.limit,null!=e.offset?o.offset=$root.google.protobuf.Int32Value.fromJSON(e.offset,t):delete o.offset,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.limit&&(o.limit=$root.google.protobuf.Int32Value.toGRPC(e.limit,t)),null!=e.offset&&(o.offset=$root.google.protobuf.Int32Value.toGRPC(e.offset,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Paging;return null!=e.limit?o.limit=$root.google.protobuf.Int32Value.fromGRPC(e.limit,t):delete o.limit,null!=e.offset?o.offset=$root.google.protobuf.Int32Value.fromGRPC(e.offset,t):delete o.offset,o}}}return __builtIn.Object.defineProperty(Paging.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Paging"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Paging.prototype,"__fqn__",{value:"wix.common.Paging",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Paging.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Paging.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Paging}(),e.CursorPaging=function(){class CursorPaging{constructor(e){this.limit=e&&e.limit,this.cursor=e&&e.cursor}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.limit?n.limit=$root.google.protobuf.Int32Value.toJSON(e.limit,t,o):o&&delete n.limit,null!=e.cursor?n.cursor=$root.google.protobuf.StringValue.toJSON(e.cursor,t,o):o&&delete n.cursor,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.CursorPaging;return null!=e.limit?o.limit=$root.google.protobuf.Int32Value.fromJSON(e.limit,t):delete o.limit,null!=e.cursor?o.cursor=$root.google.protobuf.StringValue.fromJSON(e.cursor,t):delete o.cursor,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.limit&&(o.limit=$root.google.protobuf.Int32Value.toGRPC(e.limit,t)),null!=e.cursor&&(o.cursor=$root.google.protobuf.StringValue.toGRPC(e.cursor,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.CursorPaging;return null!=e.limit?o.limit=$root.google.protobuf.Int32Value.fromGRPC(e.limit,t):delete o.limit,null!=e.cursor?o.cursor=$root.google.protobuf.StringValue.fromGRPC(e.cursor,t):delete o.cursor,o}}}return __builtIn.Object.defineProperty(CursorPaging.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.CursorPaging"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CursorPaging.prototype,"__fqn__",{value:"wix.common.CursorPaging",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CursorPaging.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CursorPaging.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),CursorPaging}(),e.PagingMetadata=function(){class PagingMetadata{constructor(e){this.count=e&&e.count,this.offset=e&&e.offset,this.total=e&&e.total,this.tooManyToCount=e&&e.tooManyToCount,this.hasNext=e&&e.hasNext}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,null!=e.offset?n.offset=$root.google.protobuf.Int32Value.toJSON(e.offset,t,o):o&&delete n.offset,null!=e.total?n.total=$root.google.protobuf.Int32Value.toJSON(e.total,t,o):o&&delete n.total,null!=e.tooManyToCount?n.tooManyToCount=$root.google.protobuf.BoolValue.toJSON(e.tooManyToCount,t,o):o&&delete n.tooManyToCount,null!=e.hasNext?n.hasNext=$root.google.protobuf.BoolValue.toJSON(e.hasNext,t,o):o&&delete n.hasNext,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.PagingMetadata;return null!=e.count?o.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete o.count,null!=e.offset?o.offset=$root.google.protobuf.Int32Value.fromJSON(e.offset,t):delete o.offset,null!=e.total?o.total=$root.google.protobuf.Int32Value.fromJSON(e.total,t):delete o.total,null!=e.tooManyToCount?o.tooManyToCount=$root.google.protobuf.BoolValue.fromJSON(e.tooManyToCount,t):delete o.tooManyToCount,null!=e.hasNext?o.hasNext=$root.google.protobuf.BoolValue.fromJSON(e.hasNext,t):delete o.hasNext,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),null!=e.offset&&(o.offset=$root.google.protobuf.Int32Value.toGRPC(e.offset,t)),null!=e.total&&(o.total=$root.google.protobuf.Int32Value.toGRPC(e.total,t)),null!=e.tooManyToCount&&(o.tooManyToCount=$root.google.protobuf.BoolValue.toGRPC(e.tooManyToCount,t)),null!=e.hasNext&&(o.hasNext=$root.google.protobuf.BoolValue.toGRPC(e.hasNext,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.PagingMetadata;return null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,null!=e.offset?o.offset=$root.google.protobuf.Int32Value.fromGRPC(e.offset,t):delete o.offset,null!=e.total?o.total=$root.google.protobuf.Int32Value.fromGRPC(e.total,t):delete o.total,null!=e.tooManyToCount?o.tooManyToCount=$root.google.protobuf.BoolValue.fromGRPC(e.tooManyToCount,t):delete o.tooManyToCount,null!=e.hasNext?o.hasNext=$root.google.protobuf.BoolValue.fromGRPC(e.hasNext,t):delete o.hasNext,o}}}return __builtIn.Object.defineProperty(PagingMetadata.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.PagingMetadata"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PagingMetadata.prototype,"__fqn__",{value:"wix.common.PagingMetadata",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PagingMetadata.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PagingMetadata.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),PagingMetadata}(),e.PagingMetadataV2=function(){class PagingMetadataV2{constructor(e){this.count=e&&e.count,this.offset=e&&e.offset,this.total=e&&e.total,this.tooManyToCount=e&&e.tooManyToCount,this.cursors=e&&e.cursors,this.hasNext=e&&e.hasNext}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,null!=e.offset?n.offset=$root.google.protobuf.Int32Value.toJSON(e.offset,t,o):o&&delete n.offset,null!=e.total?n.total=$root.google.protobuf.Int32Value.toJSON(e.total,t,o):o&&delete n.total,null!=e.tooManyToCount?n.tooManyToCount=$root.google.protobuf.BoolValue.toJSON(e.tooManyToCount,t,o):o&&delete n.tooManyToCount,null!=e.cursors?n.cursors=$root.wix.common.Cursors.toJSON(e.cursors,t,o):o&&delete n.cursors,null!=e.hasNext?n.hasNext=$root.google.protobuf.BoolValue.toJSON(e.hasNext,t,o):o&&delete n.hasNext,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.PagingMetadataV2;return null!=e.count?o.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete o.count,null!=e.offset?o.offset=$root.google.protobuf.Int32Value.fromJSON(e.offset,t):delete o.offset,null!=e.total?o.total=$root.google.protobuf.Int32Value.fromJSON(e.total,t):delete o.total,null!=e.tooManyToCount?o.tooManyToCount=$root.google.protobuf.BoolValue.fromJSON(e.tooManyToCount,t):delete o.tooManyToCount,null!=e.cursors?o.cursors=$root.wix.common.Cursors.fromJSON(e.cursors,t):delete o.cursors,null!=e.hasNext?o.hasNext=$root.google.protobuf.BoolValue.fromJSON(e.hasNext,t):delete o.hasNext,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),null!=e.offset&&(o.offset=$root.google.protobuf.Int32Value.toGRPC(e.offset,t)),null!=e.total&&(o.total=$root.google.protobuf.Int32Value.toGRPC(e.total,t)),null!=e.tooManyToCount&&(o.tooManyToCount=$root.google.protobuf.BoolValue.toGRPC(e.tooManyToCount,t)),null!=e.cursors&&(o.cursors=$root.wix.common.Cursors.toGRPC(e.cursors,t)),null!=e.hasNext&&(o.hasNext=$root.google.protobuf.BoolValue.toGRPC(e.hasNext,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.PagingMetadataV2;return null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,null!=e.offset?o.offset=$root.google.protobuf.Int32Value.fromGRPC(e.offset,t):delete o.offset,null!=e.total?o.total=$root.google.protobuf.Int32Value.fromGRPC(e.total,t):delete o.total,null!=e.tooManyToCount?o.tooManyToCount=$root.google.protobuf.BoolValue.fromGRPC(e.tooManyToCount,t):delete o.tooManyToCount,null!=e.cursors?o.cursors=$root.wix.common.Cursors.fromGRPC(e.cursors,t):delete o.cursors,null!=e.hasNext?o.hasNext=$root.google.protobuf.BoolValue.fromGRPC(e.hasNext,t):delete o.hasNext,o}}}return __builtIn.Object.defineProperty(PagingMetadataV2.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.PagingMetadataV2"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PagingMetadataV2.prototype,"__fqn__",{value:"wix.common.PagingMetadataV2",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PagingMetadataV2.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PagingMetadataV2.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),PagingMetadataV2}(),e.CursorPagingMetadata=function(){class CursorPagingMetadata{constructor(e){this.count=e&&e.count,this.cursors=e&&e.cursors,this.hasNext=e&&e.hasNext,this.total=e&&e.total}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,null!=e.cursors?n.cursors=$root.wix.common.Cursors.toJSON(e.cursors,t,o):o&&delete n.cursors,null!=e.hasNext?n.hasNext=$root.google.protobuf.BoolValue.toJSON(e.hasNext,t,o):o&&delete n.hasNext,null!=e.total?n.total=$root.google.protobuf.Int32Value.toJSON(e.total,t,o):o&&delete n.total,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.CursorPagingMetadata;return null!=e.count?o.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete o.count,null!=e.cursors?o.cursors=$root.wix.common.Cursors.fromJSON(e.cursors,t):delete o.cursors,null!=e.hasNext?o.hasNext=$root.google.protobuf.BoolValue.fromJSON(e.hasNext,t):delete o.hasNext,null!=e.total?o.total=$root.google.protobuf.Int32Value.fromJSON(e.total,t):delete o.total,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),null!=e.cursors&&(o.cursors=$root.wix.common.Cursors.toGRPC(e.cursors,t)),null!=e.hasNext&&(o.hasNext=$root.google.protobuf.BoolValue.toGRPC(e.hasNext,t)),null!=e.total&&(o.total=$root.google.protobuf.Int32Value.toGRPC(e.total,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.CursorPagingMetadata;return null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,null!=e.cursors?o.cursors=$root.wix.common.Cursors.fromGRPC(e.cursors,t):delete o.cursors,null!=e.hasNext?o.hasNext=$root.google.protobuf.BoolValue.fromGRPC(e.hasNext,t):delete o.hasNext,null!=e.total?o.total=$root.google.protobuf.Int32Value.fromGRPC(e.total,t):delete o.total,o}}}return __builtIn.Object.defineProperty(CursorPagingMetadata.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.CursorPagingMetadata"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CursorPagingMetadata.prototype,"__fqn__",{value:"wix.common.CursorPagingMetadata",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CursorPagingMetadata.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CursorPagingMetadata.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),CursorPagingMetadata}(),e.Cursors=function(){class Cursors{constructor(e){this.next=e&&e.next,this.prev=e&&e.prev}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.next?n.next=$root.google.protobuf.StringValue.toJSON(e.next,t,o):o&&delete n.next,null!=e.prev?n.prev=$root.google.protobuf.StringValue.toJSON(e.prev,t,o):o&&delete n.prev,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.Cursors;return null!=e.next?o.next=$root.google.protobuf.StringValue.fromJSON(e.next,t):delete o.next,null!=e.prev?o.prev=$root.google.protobuf.StringValue.fromJSON(e.prev,t):delete o.prev,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.next&&(o.next=$root.google.protobuf.StringValue.toGRPC(e.next,t)),null!=e.prev&&(o.prev=$root.google.protobuf.StringValue.toGRPC(e.prev,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Cursors;return null!=e.next?o.next=$root.google.protobuf.StringValue.fromGRPC(e.next,t):delete o.next,null!=e.prev?o.prev=$root.google.protobuf.StringValue.fromGRPC(e.prev,t):delete o.prev,o}}}return __builtIn.Object.defineProperty(Cursors.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Cursors"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Cursors.prototype,"__fqn__",{value:"wix.common.Cursors",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Cursors.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Cursors.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Cursors}(),e.Query=function(){class Query{constructor(e){this.filter=e&&e.filter,this.sort=e&&e.sort,this.paging=e&&e.paging,this.fields=e&&e.fields,this.fieldsets=e&&e.fieldsets}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.filter?n.filter=$root.google.protobuf.Value.toJSON(e.filter,t,o):o&&delete n.filter,null!=e.sort?n.sort=e.sort.map(e=>$root.wix.common.Sorting.toJSON(e,t,o)):o&&(n.sort=[]),null!=e.paging?n.paging=$root.wix.common.Paging.toJSON(e.paging,t,o):o&&delete n.paging,null!=e.fields?n.fields=e.fields.map(e=>e):o&&(n.fields=[]),null!=e.fieldsets?n.fieldsets=e.fieldsets.map(e=>e):o&&(n.fieldsets=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Query;return null!=e.filter?n.filter=$root.google.protobuf.Value.fromJSON(e.filter,t):delete n.filter,null!=e.sort?n.sort=Array.isArray(e.sort)?e.sort.map(e=>$root.wix.common.Sorting.fromJSON(e,t)):e.sort:!1!==o?n.sort=[]:delete n.sort,null!=e.paging?n.paging=$root.wix.common.Paging.fromJSON(e.paging,t):delete n.paging,null!=e.fields?n.fields=Array.isArray(e.fields)?e.fields.map(e=>e):e.fields:!1!==o?n.fields=[]:delete n.fields,null!=e.fieldsets?n.fieldsets=Array.isArray(e.fieldsets)?e.fieldsets.map(e=>e):e.fieldsets:!1!==o?n.fieldsets=[]:delete n.fieldsets,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return o.filter=$root.google.protobuf.Value.toGRPC(e.filter,t),null!=e.sort&&(o.sort=e.sort.map(e=>$root.wix.common.Sorting.toGRPC(e,t))),null!=e.paging&&(o.paging=$root.wix.common.Paging.toGRPC(e.paging,t)),null!=e.fields&&(o.fields=e.fields.map(e=>e)),null!=e.fieldsets&&(o.fieldsets=e.fieldsets.map(e=>e)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Query;return null!=e.filter?o.filter=$root.google.protobuf.Value.fromGRPC(e.filter,t):delete o.filter,null!=e.sort?o.sort=e.sort.map(e=>$root.wix.common.Sorting.fromGRPC(e,t)):o.sort=[],null!=e.paging?o.paging=$root.wix.common.Paging.fromGRPC(e.paging,t):delete o.paging,null!=e.fields?o.fields=e.fields.map(e=>e):o.fields=[],null!=e.fieldsets?o.fieldsets=e.fieldsets.map(e=>e):o.fieldsets=[],o}}}return __builtIn.Object.defineProperty(Query.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Query"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Query.prototype,"__fqn__",{value:"wix.common.Query",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Query.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Query.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Query}(),e.QueryV2=function(){class QueryV2{constructor(e){this.filter=e&&e.filter,this.sort=e&&e.sort,this.fields=e&&e.fields,this.fieldsets=e&&e.fieldsets,this.paging=e&&e.paging,this.cursorPaging=e&&e.cursorPaging}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.filter?n.filter=$root.google.protobuf.Struct.toJSON(e.filter,t,o):o&&delete n.filter,null!=e.sort?n.sort=e.sort.map(e=>$root.wix.common.Sorting.toJSON(e,t,o)):o&&(n.sort=[]),null!=e.fields?n.fields=e.fields.map(e=>e):o&&(n.fields=[]),null!=e.fieldsets?n.fieldsets=e.fieldsets.map(e=>e):o&&(n.fieldsets=[]),null!=e.paging?n.paging=$root.wix.common.Paging.toJSON(e.paging,t,o):o&&delete n.paging,null!=e.cursorPaging?n.cursorPaging=$root.wix.common.CursorPaging.toJSON(e.cursorPaging,t,o):o&&delete n.cursorPaging,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.QueryV2;return null!=e.filter?n.filter=$root.google.protobuf.Struct.fromJSON(e.filter,t):delete n.filter,null!=e.sort?n.sort=Array.isArray(e.sort)?e.sort.map(e=>$root.wix.common.Sorting.fromJSON(e,t)):e.sort:!1!==o?n.sort=[]:delete n.sort,null!=e.fields?n.fields=Array.isArray(e.fields)?e.fields.map(e=>e):e.fields:!1!==o?n.fields=[]:delete n.fields,null!=e.fieldsets?n.fieldsets=Array.isArray(e.fieldsets)?e.fieldsets.map(e=>e):e.fieldsets:!1!==o?n.fieldsets=[]:delete n.fieldsets,null!=e.paging?n.paging=$root.wix.common.Paging.fromJSON(e.paging,t):delete n.paging,null!=e.cursorPaging?n.cursorPaging=$root.wix.common.CursorPaging.fromJSON(e.cursorPaging,t):delete n.cursorPaging,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.filter&&(o.filter=$root.google.protobuf.Struct.toGRPC(e.filter,t)),null!=e.sort&&(o.sort=e.sort.map(e=>$root.wix.common.Sorting.toGRPC(e,t))),null!=e.fields&&(o.fields=e.fields.map(e=>e)),null!=e.fieldsets&&(o.fieldsets=e.fieldsets.map(e=>e)),null!=e.paging&&(o.paging=$root.wix.common.Paging.toGRPC(e.paging,t)),null!=e.cursorPaging&&(o.cursorPaging=$root.wix.common.CursorPaging.toGRPC(e.cursorPaging,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.QueryV2;return null!=e.filter?o.filter=$root.google.protobuf.Struct.fromGRPC(e.filter,t):delete o.filter,null!=e.sort?o.sort=e.sort.map(e=>$root.wix.common.Sorting.fromGRPC(e,t)):o.sort=[],null!=e.fields?o.fields=e.fields.map(e=>e):o.fields=[],null!=e.fieldsets?o.fieldsets=e.fieldsets.map(e=>e):o.fieldsets=[],null!=e.paging?o.paging=$root.wix.common.Paging.fromGRPC(e.paging,t):delete o.paging,null!=e.cursorPaging?o.cursorPaging=$root.wix.common.CursorPaging.fromGRPC(e.cursorPaging,t):delete o.cursorPaging,o}}}return __builtIn.Object.defineProperty(QueryV2.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.QueryV2"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryV2.prototype,"__fqn__",{value:"wix.common.QueryV2",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryV2.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryV2.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),QueryV2}(),e.CursorQuery=function(){class CursorQuery{constructor(e){this.filter=e&&e.filter,this.sort=e&&e.sort,this.cursorPaging=e&&e.cursorPaging}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.filter?n.filter=$root.google.protobuf.Struct.toJSON(e.filter,t,o):o&&delete n.filter,null!=e.sort?n.sort=e.sort.map(e=>$root.wix.common.Sorting.toJSON(e,t,o)):o&&(n.sort=[]),null!=e.cursorPaging?n.cursorPaging=$root.wix.common.CursorPaging.toJSON(e.cursorPaging,t,o):o&&delete n.cursorPaging,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.CursorQuery;return null!=e.filter?n.filter=$root.google.protobuf.Struct.fromJSON(e.filter,t):delete n.filter,null!=e.sort?n.sort=Array.isArray(e.sort)?e.sort.map(e=>$root.wix.common.Sorting.fromJSON(e,t)):e.sort:!1!==o?n.sort=[]:delete n.sort,null!=e.cursorPaging?n.cursorPaging=$root.wix.common.CursorPaging.fromJSON(e.cursorPaging,t):delete n.cursorPaging,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.filter&&(o.filter=$root.google.protobuf.Struct.toGRPC(e.filter,t)),null!=e.sort&&(o.sort=e.sort.map(e=>$root.wix.common.Sorting.toGRPC(e,t))),null!=e.cursorPaging&&(o.cursorPaging=$root.wix.common.CursorPaging.toGRPC(e.cursorPaging,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.CursorQuery;return null!=e.filter?o.filter=$root.google.protobuf.Struct.fromGRPC(e.filter,t):delete o.filter,null!=e.sort?o.sort=e.sort.map(e=>$root.wix.common.Sorting.fromGRPC(e,t)):o.sort=[],null!=e.cursorPaging?o.cursorPaging=$root.wix.common.CursorPaging.fromGRPC(e.cursorPaging,t):delete o.cursorPaging,o}}}return __builtIn.Object.defineProperty(CursorQuery.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.CursorQuery"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CursorQuery.prototype,"__fqn__",{value:"wix.common.CursorQuery",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CursorQuery.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CursorQuery.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),CursorQuery}(),e.Search=function(){class Search{constructor(e){this.filter=e&&e.filter,this.sort=e&&e.sort,this.fields=e&&e.fields,this.fieldsets=e&&e.fieldsets,this.aggregations=e&&e.aggregations,this.search=e&&e.search,this.paging=e&&e.paging,this.cursorPaging=e&&e.cursorPaging,this.timeZone=e&&e.timeZone}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.filter?n.filter=$root.google.protobuf.Struct.toJSON(e.filter,t,o):o&&delete n.filter,null!=e.sort?n.sort=e.sort.map(e=>$root.wix.common.Sorting.toJSON(e,t,o)):o&&(n.sort=[]),null!=e.fields?n.fields=e.fields.map(e=>e):o&&(n.fields=[]),null!=e.fieldsets?n.fieldsets=e.fieldsets.map(e=>e):o&&(n.fieldsets=[]),null!=e.aggregations?n.aggregations=e.aggregations.map(e=>$root.wix.common.Aggregation.toJSON(e,t,o)):o&&(n.aggregations=[]),null!=e.search?n.search=$root.wix.common.SearchDetails.toJSON(e.search,t,o):o&&delete n.search,null!=e.paging?n.paging=$root.wix.common.Paging.toJSON(e.paging,t,o):o&&delete n.paging,null!=e.cursorPaging?n.cursorPaging=$root.wix.common.CursorPaging.toJSON(e.cursorPaging,t,o):o&&delete n.cursorPaging,null!=e.timeZone?n.timeZone=$root.google.protobuf.StringValue.toJSON(e.timeZone,t,o):o&&delete n.timeZone,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Search;return null!=e.filter?n.filter=$root.google.protobuf.Struct.fromJSON(e.filter,t):delete n.filter,null!=e.sort?n.sort=Array.isArray(e.sort)?e.sort.map(e=>$root.wix.common.Sorting.fromJSON(e,t)):e.sort:!1!==o?n.sort=[]:delete n.sort,null!=e.fields?n.fields=Array.isArray(e.fields)?e.fields.map(e=>e):e.fields:!1!==o?n.fields=[]:delete n.fields,null!=e.fieldsets?n.fieldsets=Array.isArray(e.fieldsets)?e.fieldsets.map(e=>e):e.fieldsets:!1!==o?n.fieldsets=[]:delete n.fieldsets,null!=e.aggregations?n.aggregations=Array.isArray(e.aggregations)?e.aggregations.map(e=>$root.wix.common.Aggregation.fromJSON(e,t)):e.aggregations:!1!==o?n.aggregations=[]:delete n.aggregations,null!=e.search?n.search=$root.wix.common.SearchDetails.fromJSON(e.search,t):delete n.search,null!=e.paging?n.paging=$root.wix.common.Paging.fromJSON(e.paging,t):delete n.paging,null!=e.cursorPaging?n.cursorPaging=$root.wix.common.CursorPaging.fromJSON(e.cursorPaging,t):delete n.cursorPaging,null!=e.timeZone?n.timeZone=$root.google.protobuf.StringValue.fromJSON(e.timeZone,t):delete n.timeZone,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.filter&&(o.filter=$root.google.protobuf.Struct.toGRPC(e.filter,t)),null!=e.sort&&(o.sort=e.sort.map(e=>$root.wix.common.Sorting.toGRPC(e,t))),null!=e.fields&&(o.fields=e.fields.map(e=>e)),null!=e.fieldsets&&(o.fieldsets=e.fieldsets.map(e=>e)),null!=e.aggregations&&(o.aggregations=e.aggregations.map(e=>$root.wix.common.Aggregation.toGRPC(e,t))),null!=e.search&&(o.search=$root.wix.common.SearchDetails.toGRPC(e.search,t)),null!=e.paging&&(o.paging=$root.wix.common.Paging.toGRPC(e.paging,t)),null!=e.cursorPaging&&(o.cursorPaging=$root.wix.common.CursorPaging.toGRPC(e.cursorPaging,t)),null!=e.timeZone&&(o.timeZone=$root.google.protobuf.StringValue.toGRPC(e.timeZone,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Search;return null!=e.filter?o.filter=$root.google.protobuf.Struct.fromGRPC(e.filter,t):delete o.filter,null!=e.sort?o.sort=e.sort.map(e=>$root.wix.common.Sorting.fromGRPC(e,t)):o.sort=[],null!=e.fields?o.fields=e.fields.map(e=>e):o.fields=[],null!=e.fieldsets?o.fieldsets=e.fieldsets.map(e=>e):o.fieldsets=[],null!=e.aggregations?o.aggregations=e.aggregations.map(e=>$root.wix.common.Aggregation.fromGRPC(e,t)):o.aggregations=[],null!=e.search?o.search=$root.wix.common.SearchDetails.fromGRPC(e.search,t):delete o.search,null!=e.paging?o.paging=$root.wix.common.Paging.fromGRPC(e.paging,t):delete o.paging,null!=e.cursorPaging?o.cursorPaging=$root.wix.common.CursorPaging.fromGRPC(e.cursorPaging,t):delete o.cursorPaging,null!=e.timeZone?o.timeZone=$root.google.protobuf.StringValue.fromGRPC(e.timeZone,t):delete o.timeZone,o}}}return __builtIn.Object.defineProperty(Search.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Search"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Search.prototype,"__fqn__",{value:"wix.common.Search",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Search.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Search.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Search}(),e.CursorSearch=function(){class CursorSearch{constructor(e){this.filter=e&&e.filter,this.sort=e&&e.sort,this.aggregations=e&&e.aggregations,this.search=e&&e.search,this.cursorPaging=e&&e.cursorPaging,this.timeZone=e&&e.timeZone}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.filter?n.filter=$root.google.protobuf.Struct.toJSON(e.filter,t,o):o&&delete n.filter,null!=e.sort?n.sort=e.sort.map(e=>$root.wix.common.Sorting.toJSON(e,t,o)):o&&(n.sort=[]),null!=e.aggregations?n.aggregations=e.aggregations.map(e=>$root.wix.common.Aggregation.toJSON(e,t,o)):o&&(n.aggregations=[]),null!=e.search?n.search=$root.wix.common.SearchDetails.toJSON(e.search,t,o):o&&delete n.search,null!=e.cursorPaging?n.cursorPaging=$root.wix.common.CursorPaging.toJSON(e.cursorPaging,t,o):o&&delete n.cursorPaging,null!=e.timeZone?n.timeZone=$root.google.protobuf.StringValue.toJSON(e.timeZone,t,o):o&&delete n.timeZone,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.CursorSearch;return null!=e.filter?n.filter=$root.google.protobuf.Struct.fromJSON(e.filter,t):delete n.filter,null!=e.sort?n.sort=Array.isArray(e.sort)?e.sort.map(e=>$root.wix.common.Sorting.fromJSON(e,t)):e.sort:!1!==o?n.sort=[]:delete n.sort,null!=e.aggregations?n.aggregations=Array.isArray(e.aggregations)?e.aggregations.map(e=>$root.wix.common.Aggregation.fromJSON(e,t)):e.aggregations:!1!==o?n.aggregations=[]:delete n.aggregations,null!=e.search?n.search=$root.wix.common.SearchDetails.fromJSON(e.search,t):delete n.search,null!=e.cursorPaging?n.cursorPaging=$root.wix.common.CursorPaging.fromJSON(e.cursorPaging,t):delete n.cursorPaging,null!=e.timeZone?n.timeZone=$root.google.protobuf.StringValue.fromJSON(e.timeZone,t):delete n.timeZone,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.filter&&(o.filter=$root.google.protobuf.Struct.toGRPC(e.filter,t)),null!=e.sort&&(o.sort=e.sort.map(e=>$root.wix.common.Sorting.toGRPC(e,t))),null!=e.aggregations&&(o.aggregations=e.aggregations.map(e=>$root.wix.common.Aggregation.toGRPC(e,t))),null!=e.search&&(o.search=$root.wix.common.SearchDetails.toGRPC(e.search,t)),null!=e.cursorPaging&&(o.cursorPaging=$root.wix.common.CursorPaging.toGRPC(e.cursorPaging,t)),null!=e.timeZone&&(o.timeZone=$root.google.protobuf.StringValue.toGRPC(e.timeZone,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.CursorSearch;return null!=e.filter?o.filter=$root.google.protobuf.Struct.fromGRPC(e.filter,t):delete o.filter,null!=e.sort?o.sort=e.sort.map(e=>$root.wix.common.Sorting.fromGRPC(e,t)):o.sort=[],null!=e.aggregations?o.aggregations=e.aggregations.map(e=>$root.wix.common.Aggregation.fromGRPC(e,t)):o.aggregations=[],null!=e.search?o.search=$root.wix.common.SearchDetails.fromGRPC(e.search,t):delete o.search,null!=e.cursorPaging?o.cursorPaging=$root.wix.common.CursorPaging.fromGRPC(e.cursorPaging,t):delete o.cursorPaging,null!=e.timeZone?o.timeZone=$root.google.protobuf.StringValue.fromGRPC(e.timeZone,t):delete o.timeZone,o}}}return __builtIn.Object.defineProperty(CursorSearch.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.CursorSearch"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CursorSearch.prototype,"__fqn__",{value:"wix.common.CursorSearch",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CursorSearch.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CursorSearch.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),CursorSearch}(),e.SearchRelated=function(){class SearchRelated{constructor(e){this.relatedToIds=e&&e.relatedToIds,this.search=e&&e.search,this.filter=e&&e.filter,this.sort=e&&e.sort,this.limit=e&&e.limit}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.relatedToIds?n.relatedToIds=e.relatedToIds.map(e=>e):o&&(n.relatedToIds=[]),null!=e.search?n.search=$root.wix.common.SearchRelatedDetails.toJSON(e.search,t,o):o&&delete n.search,null!=e.filter?n.filter=$root.google.protobuf.Struct.toJSON(e.filter,t,o):o&&delete n.filter,null!=e.sort?n.sort=e.sort.map(e=>$root.wix.common.Sorting.toJSON(e,t,o)):o&&(n.sort=[]),null!=e.limit?n.limit=$root.google.protobuf.Int32Value.toJSON(e.limit,t,o):o&&delete n.limit,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.SearchRelated;return null!=e.relatedToIds?n.relatedToIds=Array.isArray(e.relatedToIds)?e.relatedToIds.map(e=>e):e.relatedToIds:!1!==o?n.relatedToIds=[]:delete n.relatedToIds,null!=e.search?n.search=$root.wix.common.SearchRelatedDetails.fromJSON(e.search,t):delete n.search,null!=e.filter?n.filter=$root.google.protobuf.Struct.fromJSON(e.filter,t):delete n.filter,null!=e.sort?n.sort=Array.isArray(e.sort)?e.sort.map(e=>$root.wix.common.Sorting.fromJSON(e,t)):e.sort:!1!==o?n.sort=[]:delete n.sort,null!=e.limit?n.limit=$root.google.protobuf.Int32Value.fromJSON(e.limit,t):delete n.limit,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.relatedToIds&&(o.relatedToIds=e.relatedToIds.map(e=>e)),null!=e.search&&(o.search=$root.wix.common.SearchRelatedDetails.toGRPC(e.search,t)),null!=e.filter&&(o.filter=$root.google.protobuf.Struct.toGRPC(e.filter,t)),null!=e.sort&&(o.sort=e.sort.map(e=>$root.wix.common.Sorting.toGRPC(e,t))),null!=e.limit&&(o.limit=$root.google.protobuf.Int32Value.toGRPC(e.limit,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.SearchRelated;return null!=e.relatedToIds?o.relatedToIds=e.relatedToIds.map(e=>e):o.relatedToIds=[],null!=e.search?o.search=$root.wix.common.SearchRelatedDetails.fromGRPC(e.search,t):delete o.search,null!=e.filter?o.filter=$root.google.protobuf.Struct.fromGRPC(e.filter,t):delete o.filter,null!=e.sort?o.sort=e.sort.map(e=>$root.wix.common.Sorting.fromGRPC(e,t)):o.sort=[],null!=e.limit?o.limit=$root.google.protobuf.Int32Value.fromGRPC(e.limit,t):delete o.limit,o}}}return __builtIn.Object.defineProperty(SearchRelated.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.SearchRelated"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchRelated.prototype,"__fqn__",{value:"wix.common.SearchRelated",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchRelated.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchRelated.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),SearchRelated}(),e.SearchRelatedDetails=function(){class SearchRelatedDetails{constructor(e){this.expression=e&&e.expression,this.fields=e&&e.fields}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.expression?n.expression=$root.google.protobuf.StringValue.toJSON(e.expression,t,o):o&&delete n.expression,null!=e.fields?n.fields=e.fields.map(e=>e):o&&(n.fields=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.SearchRelatedDetails;return null!=e.expression?n.expression=$root.google.protobuf.StringValue.fromJSON(e.expression,t):delete n.expression,null!=e.fields?n.fields=Array.isArray(e.fields)?e.fields.map(e=>e):e.fields:!1!==o?n.fields=[]:delete n.fields,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.expression&&(o.expression=$root.google.protobuf.StringValue.toGRPC(e.expression,t)),null!=e.fields&&(o.fields=e.fields.map(e=>e)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.SearchRelatedDetails;return null!=e.expression?o.expression=$root.google.protobuf.StringValue.fromGRPC(e.expression,t):delete o.expression,null!=e.fields?o.fields=e.fields.map(e=>e):o.fields=[],o}}}return __builtIn.Object.defineProperty(SearchRelatedDetails.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.SearchRelatedDetails"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchRelatedDetails.prototype,"__fqn__",{value:"wix.common.SearchRelatedDetails",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchRelatedDetails.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchRelatedDetails.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),SearchRelatedDetails}(),e.SearchDetails=function(){class SearchDetails{constructor(e){this.mode=e&&e.mode,this.expression=e&&e.expression,this.fields=e&&e.fields,this.fuzzy=e&&e.fuzzy}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.mode?n.mode=$root.wix.common.SearchDetails.Mode[e.mode]:o&&(n.mode="OR"),null!=e.expression?n.expression=$root.google.protobuf.StringValue.toJSON(e.expression,t,o):o&&delete n.expression,null!=e.fields?n.fields=e.fields.map(e=>e):o&&(n.fields=[]),null!=e.fuzzy?n.fuzzy=e.fuzzy:o&&(n.fuzzy=!1),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.SearchDetails;return null!=e.mode?n.mode="string"==typeof e.mode?e.mode:$root.wix.common.SearchDetails.Mode[e.mode]:!1!==o?n.mode="OR":delete n.mode,null!=e.expression?n.expression=$root.google.protobuf.StringValue.fromJSON(e.expression,t):delete n.expression,null!=e.fields?n.fields=Array.isArray(e.fields)?e.fields.map(e=>e):e.fields:!1!==o?n.fields=[]:delete n.fields,null!=e.fuzzy?n.fuzzy=e.fuzzy:!1!==o?n.fuzzy=!1:delete n.fuzzy,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.mode&&(o.mode=e.mode),null!=e.expression&&(o.expression=$root.google.protobuf.StringValue.toGRPC(e.expression,t)),null!=e.fields&&(o.fields=e.fields.map(e=>e)),null!=e.fuzzy&&(o.fuzzy=e.fuzzy),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.SearchDetails;return null!=e.mode?o.mode=e.mode:o.mode="OR",null!=e.expression?o.expression=$root.google.protobuf.StringValue.fromGRPC(e.expression,t):delete o.expression,null!=e.fields?o.fields=e.fields.map(e=>e):o.fields=[],null!=e.fuzzy?o.fuzzy=e.fuzzy:o.fuzzy=!1,o}}}return SearchDetails.Mode={OR:"OR",0:"OR",AND:"AND",1:"AND"},SearchDetails.Mode={OR:"OR",0:"OR",AND:"AND",1:"AND"},__builtIn.Object.defineProperty(SearchDetails.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.SearchDetails"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchDetails.prototype,"__fqn__",{value:"wix.common.SearchDetails",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchDetails.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SearchDetails.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),SearchDetails}(),e.AggregationType={UNKNOWN_AGGREGATION_TYPE:"UNKNOWN_AGGREGATION_TYPE",0:"UNKNOWN_AGGREGATION_TYPE",VALUE:"VALUE",1:"VALUE",RANGE:"RANGE",2:"RANGE",SCALAR:"SCALAR",3:"SCALAR",DATE_HISTOGRAM:"DATE_HISTOGRAM",4:"DATE_HISTOGRAM",NESTED:"NESTED",5:"NESTED"},e.ScalarType={UNKNOWN_SCALAR_TYPE:"UNKNOWN_SCALAR_TYPE",0:"UNKNOWN_SCALAR_TYPE",COUNT_DISTINCT:"COUNT_DISTINCT",1:"COUNT_DISTINCT",MIN:"MIN",2:"MIN",MAX:"MAX",3:"MAX",SUM:"SUM",4:"SUM",AVG:"AVG",5:"AVG"},e.Aggregation=function(){class Aggregation{constructor(e){this.name=e&&e.name,this.type=e&&e.type,this.fieldPath=e&&e.fieldPath,this.value=e&&e.value,this.range=e&&e.range,this.scalar=e&&e.scalar,this.dateHistogram=e&&e.dateHistogram,this.nested=e&&e.nested,this.groupBy=e&&e.groupBy}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=$root.google.protobuf.StringValue.toJSON(e.name,t,o):o&&delete n.name,null!=e.type?n.type=$root.wix.common.AggregationType[e.type]:o&&(n.type="UNKNOWN_AGGREGATION_TYPE"),null!=e.fieldPath?n.fieldPath=e.fieldPath:o&&(n.fieldPath=""),null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.toJSON(e.value,t,o):o&&delete n.value,null!=e.range?n.range=$root.wix.common.Aggregation.RangeAggregation.toJSON(e.range,t,o):o&&delete n.range,null!=e.scalar?n.scalar=$root.wix.common.Aggregation.ScalarAggregation.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,null!=e.nested?n.nested=$root.wix.common.Aggregation.NestedAggregation.toJSON(e.nested,t,o):o&&delete n.nested,null!=e.groupBy?n.groupBy=$root.wix.common.Aggregation.GroupByAggregation.toJSON(e.groupBy,t,o):o&&delete n.groupBy,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Aggregation;return null!=e.name?n.name=$root.google.protobuf.StringValue.fromJSON(e.name,t):delete n.name,null!=e.type?n.type="string"==typeof e.type?e.type:$root.wix.common.AggregationType[e.type]:!1!==o?n.type="UNKNOWN_AGGREGATION_TYPE":delete n.type,null!=e.fieldPath?n.fieldPath=e.fieldPath:!1!==o?n.fieldPath="":delete n.fieldPath,null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.fromJSON(e.value,t):delete n.value,null!=e.range?n.range=$root.wix.common.Aggregation.RangeAggregation.fromJSON(e.range,t):delete n.range,null!=e.scalar?n.scalar=$root.wix.common.Aggregation.ScalarAggregation.fromJSON(e.scalar,t):delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.fromJSON(e.dateHistogram,t):delete n.dateHistogram,null!=e.nested?n.nested=$root.wix.common.Aggregation.NestedAggregation.fromJSON(e.nested,t):delete n.nested,null!=e.groupBy?n.groupBy=$root.wix.common.Aggregation.GroupByAggregation.fromJSON(e.groupBy,t):delete n.groupBy,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=$root.google.protobuf.StringValue.toGRPC(e.name,t)),null!=e.type&&(o.type=e.type),null!=e.fieldPath&&(o.fieldPath=e.fieldPath),null!=e.value&&(o.value=$root.wix.common.Aggregation.ValueAggregation.toGRPC(e.value,t)),null!=e.range&&(o.range=$root.wix.common.Aggregation.RangeAggregation.toGRPC(e.range,t)),null!=e.scalar&&(o.scalar=$root.wix.common.Aggregation.ScalarAggregation.toGRPC(e.scalar,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.toGRPC(e.dateHistogram,t)),null!=e.nested&&(o.nested=$root.wix.common.Aggregation.NestedAggregation.toGRPC(e.nested,t)),null!=e.groupBy&&(o.groupBy=$root.wix.common.Aggregation.GroupByAggregation.toGRPC(e.groupBy,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation;return null!=e.name?o.name=$root.google.protobuf.StringValue.fromGRPC(e.name,t):delete o.name,null!=e.type?o.type=e.type:o.type="UNKNOWN_AGGREGATION_TYPE",null!=e.fieldPath?o.fieldPath=e.fieldPath:o.fieldPath="",null!=e.value?o.value=$root.wix.common.Aggregation.ValueAggregation.fromGRPC(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.Aggregation.RangeAggregation.fromGRPC(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.Aggregation.ScalarAggregation.fromGRPC(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,null!=e.nested?o.nested=$root.wix.common.Aggregation.NestedAggregation.fromGRPC(e.nested,t):delete o.nested,null!=e.groupBy?o.groupBy=$root.wix.common.Aggregation.GroupByAggregation.fromGRPC(e.groupBy,t):delete o.groupBy,o}}}return Aggregation.RangeAggregation=function(){class RangeAggregation{constructor(e){this.buckets=e&&e.buckets}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.buckets?n.buckets=e.buckets.map(e=>$root.wix.common.Aggregation.RangeAggregation.RangeBucket.toJSON(e,t,o)):o&&(n.buckets=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Aggregation.RangeAggregation;return null!=e.buckets?n.buckets=Array.isArray(e.buckets)?e.buckets.map(e=>$root.wix.common.Aggregation.RangeAggregation.RangeBucket.fromJSON(e,t)):e.buckets:!1!==o?n.buckets=[]:delete n.buckets,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.buckets&&(o.buckets=e.buckets.map(e=>$root.wix.common.Aggregation.RangeAggregation.RangeBucket.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.RangeAggregation;return null!=e.buckets?o.buckets=e.buckets.map(e=>$root.wix.common.Aggregation.RangeAggregation.RangeBucket.fromGRPC(e,t)):o.buckets=[],o}}}return RangeAggregation.RangeBucket=function(){class RangeBucket{constructor(e){this.from=e&&e.from,this.to=e&&e.to}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.Aggregation.RangeAggregation.RangeBucket;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete o.to,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.RangeAggregation.RangeBucket;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,o}}}return __builtIn.Object.defineProperty(RangeBucket.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.RangeAggregation.RangeBucket"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeBucket.prototype,"__fqn__",{value:"wix.common.Aggregation.RangeAggregation.RangeBucket",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeBucket.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeBucket.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeBucket}(),RangeAggregation.RangeBucket=function(){class RangeBucket{constructor(e){this.from=e&&e.from,this.to=e&&e.to}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.Aggregation.RangeAggregation.RangeBucket;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete o.to,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.RangeAggregation.RangeBucket;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,o}}}return __builtIn.Object.defineProperty(RangeBucket.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.RangeAggregation.RangeBucket"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeBucket.prototype,"__fqn__",{value:"wix.common.Aggregation.RangeAggregation.RangeBucket",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeBucket.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeBucket.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeBucket}(),__builtIn.Object.defineProperty(RangeAggregation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.RangeAggregation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregation.prototype,"__fqn__",{value:"wix.common.Aggregation.RangeAggregation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeAggregation}(),Aggregation.ValueAggregation=function(){class ValueAggregation{constructor(e){this.sortType=e&&e.sortType,this.sortDirection=e&&e.sortDirection,this.limit=e&&e.limit,this.missingValues=e&&e.missingValues,this.includeOptions=e&&e.includeOptions}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.sortType?n.sortType=$root.wix.common.Aggregation.ValueAggregation.SortType[e.sortType]:o&&(n.sortType="COUNT"),null!=e.sortDirection?n.sortDirection=$root.wix.common.Aggregation.ValueAggregation.SortDirection[e.sortDirection]:o&&(n.sortDirection="DESC"),null!=e.limit?n.limit=$root.google.protobuf.Int32Value.toJSON(e.limit,t,o):o&&delete n.limit,null!=e.missingValues?n.missingValues=$root.wix.common.Aggregation.ValueAggregation.MissingValues[e.missingValues]:o&&(n.missingValues="EXCLUDE"),null!=e.includeOptions?n.includeOptions=$root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions.toJSON(e.includeOptions,t,o):o&&delete n.includeOptions,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Aggregation.ValueAggregation;return null!=e.sortType?n.sortType="string"==typeof e.sortType?e.sortType:$root.wix.common.Aggregation.ValueAggregation.SortType[e.sortType]:!1!==o?n.sortType="COUNT":delete n.sortType,null!=e.sortDirection?n.sortDirection="string"==typeof e.sortDirection?e.sortDirection:$root.wix.common.Aggregation.ValueAggregation.SortDirection[e.sortDirection]:!1!==o?n.sortDirection="DESC":delete n.sortDirection,null!=e.limit?n.limit=$root.google.protobuf.Int32Value.fromJSON(e.limit,t):delete n.limit,null!=e.missingValues?n.missingValues="string"==typeof e.missingValues?e.missingValues:$root.wix.common.Aggregation.ValueAggregation.MissingValues[e.missingValues]:!1!==o?n.missingValues="EXCLUDE":delete n.missingValues,null!=e.includeOptions?n.includeOptions=$root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions.fromJSON(e.includeOptions,t):delete n.includeOptions,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.sortType&&(o.sortType=e.sortType),null!=e.sortDirection&&(o.sortDirection=e.sortDirection),null!=e.limit&&(o.limit=$root.google.protobuf.Int32Value.toGRPC(e.limit,t)),null!=e.missingValues&&(o.missingValues=e.missingValues),null!=e.includeOptions&&(o.includeOptions=$root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions.toGRPC(e.includeOptions,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.ValueAggregation;return null!=e.sortType?o.sortType=e.sortType:o.sortType="COUNT",null!=e.sortDirection?o.sortDirection=e.sortDirection:o.sortDirection="DESC",null!=e.limit?o.limit=$root.google.protobuf.Int32Value.fromGRPC(e.limit,t):delete o.limit,null!=e.missingValues?o.missingValues=e.missingValues:o.missingValues="EXCLUDE",null!=e.includeOptions?o.includeOptions=$root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions.fromGRPC(e.includeOptions,t):delete o.includeOptions,o}}}return ValueAggregation.SortType={COUNT:"COUNT",0:"COUNT",VALUE:"VALUE",1:"VALUE"},ValueAggregation.SortDirection={DESC:"DESC",0:"DESC",ASC:"ASC",1:"ASC"},ValueAggregation.MissingValues={EXCLUDE:"EXCLUDE",0:"EXCLUDE",INCLUDE:"INCLUDE",1:"INCLUDE"},ValueAggregation.IncludeMissingValuesOptions=function(){class IncludeMissingValuesOptions{constructor(e){this.addToBucket=e&&e.addToBucket}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.addToBucket?t.addToBucket=e.addToBucket:o&&(t.addToBucket=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions;return null!=e.addToBucket?t.addToBucket=e.addToBucket:!1!==o?t.addToBucket="":delete t.addToBucket,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.addToBucket&&(t.addToBucket=e.addToBucket),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions;return null!=e.addToBucket?t.addToBucket=e.addToBucket:t.addToBucket="",t}}}return __builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__fqn__",{value:"wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),IncludeMissingValuesOptions}(),ValueAggregation.SortType={COUNT:"COUNT",0:"COUNT",VALUE:"VALUE",1:"VALUE"},ValueAggregation.SortDirection={DESC:"DESC",0:"DESC",ASC:"ASC",1:"ASC"},ValueAggregation.MissingValues={EXCLUDE:"EXCLUDE",0:"EXCLUDE",INCLUDE:"INCLUDE",1:"INCLUDE"},ValueAggregation.IncludeMissingValuesOptions=function(){class IncludeMissingValuesOptions{constructor(e){this.addToBucket=e&&e.addToBucket}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.addToBucket?t.addToBucket=e.addToBucket:o&&(t.addToBucket=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions;return null!=e.addToBucket?t.addToBucket=e.addToBucket:!1!==o?t.addToBucket="":delete t.addToBucket,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.addToBucket&&(t.addToBucket=e.addToBucket),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions;return null!=e.addToBucket?t.addToBucket=e.addToBucket:t.addToBucket="",t}}}return __builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__fqn__",{value:"wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),IncludeMissingValuesOptions}(),__builtIn.Object.defineProperty(ValueAggregation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.ValueAggregation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregation.prototype,"__fqn__",{value:"wix.common.Aggregation.ValueAggregation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueAggregation}(),Aggregation.ScalarAggregation=function(){class ScalarAggregation{constructor(e){this.type=e&&e.type}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.type?t.type=$root.wix.common.ScalarType[e.type]:o&&(t.type="UNKNOWN_SCALAR_TYPE"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.Aggregation.ScalarAggregation;return null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.common.ScalarType[e.type]:!1!==o?t.type="UNKNOWN_SCALAR_TYPE":delete t.type,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.Aggregation.ScalarAggregation;return null!=e.type?t.type=e.type:t.type="UNKNOWN_SCALAR_TYPE",t}}}return __builtIn.Object.defineProperty(ScalarAggregation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.ScalarAggregation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarAggregation.prototype,"__fqn__",{value:"wix.common.Aggregation.ScalarAggregation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarAggregation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarAggregation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarAggregation}(),Aggregation.GroupByAggregation=function(){class GroupByAggregation{constructor(e){this.name=e&&e.name,this.fieldPath=e&&e.fieldPath,this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=$root.google.protobuf.StringValue.toJSON(e.name,t,o):o&&delete n.name,null!=e.fieldPath?n.fieldPath=e.fieldPath:o&&(n.fieldPath=""),null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.toJSON(e.value,t,o):o&&delete n.value,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Aggregation.GroupByAggregation;return null!=e.name?n.name=$root.google.protobuf.StringValue.fromJSON(e.name,t):delete n.name,null!=e.fieldPath?n.fieldPath=e.fieldPath:!1!==o?n.fieldPath="":delete n.fieldPath,null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.fromJSON(e.value,t):delete n.value,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=$root.google.protobuf.StringValue.toGRPC(e.name,t)),null!=e.fieldPath&&(o.fieldPath=e.fieldPath),null!=e.value&&(o.value=$root.wix.common.Aggregation.ValueAggregation.toGRPC(e.value,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.GroupByAggregation;return null!=e.name?o.name=$root.google.protobuf.StringValue.fromGRPC(e.name,t):delete o.name,null!=e.fieldPath?o.fieldPath=e.fieldPath:o.fieldPath="",null!=e.value?o.value=$root.wix.common.Aggregation.ValueAggregation.fromGRPC(e.value,t):delete o.value,o}}}return __builtIn.Object.defineProperty(GroupByAggregation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.GroupByAggregation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByAggregation.prototype,"__fqn__",{value:"wix.common.Aggregation.GroupByAggregation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByAggregation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByAggregation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),GroupByAggregation}(),Aggregation.NestedAggregation=function(){class NestedAggregation{constructor(e){this.nestedAggregations=e&&e.nestedAggregations}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.nestedAggregations?n.nestedAggregations=e.nestedAggregations.map(e=>$root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem.toJSON(e,t,o)):o&&(n.nestedAggregations=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Aggregation.NestedAggregation;return null!=e.nestedAggregations?n.nestedAggregations=Array.isArray(e.nestedAggregations)?e.nestedAggregations.map(e=>$root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem.fromJSON(e,t)):e.nestedAggregations:!1!==o?n.nestedAggregations=[]:delete n.nestedAggregations,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.nestedAggregations&&(o.nestedAggregations=e.nestedAggregations.map(e=>$root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.NestedAggregation;return null!=e.nestedAggregations?o.nestedAggregations=e.nestedAggregations.map(e=>$root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem.fromGRPC(e,t)):o.nestedAggregations=[],o}}}return NestedAggregation.NestedAggregationType={UNKNOWN_AGGREGATION_TYPE:"UNKNOWN_AGGREGATION_TYPE",0:"UNKNOWN_AGGREGATION_TYPE",VALUE:"VALUE",1:"VALUE",RANGE:"RANGE",2:"RANGE",SCALAR:"SCALAR",3:"SCALAR",DATE_HISTOGRAM:"DATE_HISTOGRAM",4:"DATE_HISTOGRAM"},NestedAggregation.NestedAggregationItem=function(){class NestedAggregationItem{constructor(e){this.name=e&&e.name,this.type=e&&e.type,this.fieldPath=e&&e.fieldPath,this.value=e&&e.value,this.range=e&&e.range,this.scalar=e&&e.scalar,this.dateHistogram=e&&e.dateHistogram}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=$root.google.protobuf.StringValue.toJSON(e.name,t,o):o&&delete n.name,null!=e.type?n.type=$root.wix.common.Aggregation.NestedAggregation.NestedAggregationType[e.type]:o&&(n.type="UNKNOWN_AGGREGATION_TYPE"),null!=e.fieldPath?n.fieldPath=e.fieldPath:o&&(n.fieldPath=""),null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.toJSON(e.value,t,o):o&&delete n.value,null!=e.range?n.range=$root.wix.common.Aggregation.RangeAggregation.toJSON(e.range,t,o):o&&delete n.range,null!=e.scalar?n.scalar=$root.wix.common.Aggregation.ScalarAggregation.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem;return null!=e.name?n.name=$root.google.protobuf.StringValue.fromJSON(e.name,t):delete n.name,null!=e.type?n.type="string"==typeof e.type?e.type:$root.wix.common.Aggregation.NestedAggregation.NestedAggregationType[e.type]:!1!==o?n.type="UNKNOWN_AGGREGATION_TYPE":delete n.type,null!=e.fieldPath?n.fieldPath=e.fieldPath:!1!==o?n.fieldPath="":delete n.fieldPath,null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.fromJSON(e.value,t):delete n.value,null!=e.range?n.range=$root.wix.common.Aggregation.RangeAggregation.fromJSON(e.range,t):delete n.range,null!=e.scalar?n.scalar=$root.wix.common.Aggregation.ScalarAggregation.fromJSON(e.scalar,t):delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.fromJSON(e.dateHistogram,t):delete n.dateHistogram,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=$root.google.protobuf.StringValue.toGRPC(e.name,t)),null!=e.type&&(o.type=e.type),null!=e.fieldPath&&(o.fieldPath=e.fieldPath),null!=e.value&&(o.value=$root.wix.common.Aggregation.ValueAggregation.toGRPC(e.value,t)),null!=e.range&&(o.range=$root.wix.common.Aggregation.RangeAggregation.toGRPC(e.range,t)),null!=e.scalar&&(o.scalar=$root.wix.common.Aggregation.ScalarAggregation.toGRPC(e.scalar,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.toGRPC(e.dateHistogram,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem;return null!=e.name?o.name=$root.google.protobuf.StringValue.fromGRPC(e.name,t):delete o.name,null!=e.type?o.type=e.type:o.type="UNKNOWN_AGGREGATION_TYPE",null!=e.fieldPath?o.fieldPath=e.fieldPath:o.fieldPath="",null!=e.value?o.value=$root.wix.common.Aggregation.ValueAggregation.fromGRPC(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.Aggregation.RangeAggregation.fromGRPC(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.Aggregation.ScalarAggregation.fromGRPC(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,o}}}return __builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.NestedAggregation.NestedAggregationItem"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__fqn__",{value:"wix.common.Aggregation.NestedAggregation.NestedAggregationItem",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedAggregationItem}(),NestedAggregation.NestedAggregationType={UNKNOWN_AGGREGATION_TYPE:"UNKNOWN_AGGREGATION_TYPE",0:"UNKNOWN_AGGREGATION_TYPE",VALUE:"VALUE",1:"VALUE",RANGE:"RANGE",2:"RANGE",SCALAR:"SCALAR",3:"SCALAR",DATE_HISTOGRAM:"DATE_HISTOGRAM",4:"DATE_HISTOGRAM"},NestedAggregation.NestedAggregationItem=function(){class NestedAggregationItem{constructor(e){this.name=e&&e.name,this.type=e&&e.type,this.fieldPath=e&&e.fieldPath,this.value=e&&e.value,this.range=e&&e.range,this.scalar=e&&e.scalar,this.dateHistogram=e&&e.dateHistogram}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=$root.google.protobuf.StringValue.toJSON(e.name,t,o):o&&delete n.name,null!=e.type?n.type=$root.wix.common.Aggregation.NestedAggregation.NestedAggregationType[e.type]:o&&(n.type="UNKNOWN_AGGREGATION_TYPE"),null!=e.fieldPath?n.fieldPath=e.fieldPath:o&&(n.fieldPath=""),null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.toJSON(e.value,t,o):o&&delete n.value,null!=e.range?n.range=$root.wix.common.Aggregation.RangeAggregation.toJSON(e.range,t,o):o&&delete n.range,null!=e.scalar?n.scalar=$root.wix.common.Aggregation.ScalarAggregation.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem;return null!=e.name?n.name=$root.google.protobuf.StringValue.fromJSON(e.name,t):delete n.name,null!=e.type?n.type="string"==typeof e.type?e.type:$root.wix.common.Aggregation.NestedAggregation.NestedAggregationType[e.type]:!1!==o?n.type="UNKNOWN_AGGREGATION_TYPE":delete n.type,null!=e.fieldPath?n.fieldPath=e.fieldPath:!1!==o?n.fieldPath="":delete n.fieldPath,null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.fromJSON(e.value,t):delete n.value,null!=e.range?n.range=$root.wix.common.Aggregation.RangeAggregation.fromJSON(e.range,t):delete n.range,null!=e.scalar?n.scalar=$root.wix.common.Aggregation.ScalarAggregation.fromJSON(e.scalar,t):delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.fromJSON(e.dateHistogram,t):delete n.dateHistogram,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=$root.google.protobuf.StringValue.toGRPC(e.name,t)),null!=e.type&&(o.type=e.type),null!=e.fieldPath&&(o.fieldPath=e.fieldPath),null!=e.value&&(o.value=$root.wix.common.Aggregation.ValueAggregation.toGRPC(e.value,t)),null!=e.range&&(o.range=$root.wix.common.Aggregation.RangeAggregation.toGRPC(e.range,t)),null!=e.scalar&&(o.scalar=$root.wix.common.Aggregation.ScalarAggregation.toGRPC(e.scalar,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.toGRPC(e.dateHistogram,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem;return null!=e.name?o.name=$root.google.protobuf.StringValue.fromGRPC(e.name,t):delete o.name,null!=e.type?o.type=e.type:o.type="UNKNOWN_AGGREGATION_TYPE",null!=e.fieldPath?o.fieldPath=e.fieldPath:o.fieldPath="",null!=e.value?o.value=$root.wix.common.Aggregation.ValueAggregation.fromGRPC(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.Aggregation.RangeAggregation.fromGRPC(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.Aggregation.ScalarAggregation.fromGRPC(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,o}}}return __builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.NestedAggregation.NestedAggregationItem"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__fqn__",{value:"wix.common.Aggregation.NestedAggregation.NestedAggregationItem",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedAggregationItem}(),__builtIn.Object.defineProperty(NestedAggregation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.NestedAggregation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregation.prototype,"__fqn__",{value:"wix.common.Aggregation.NestedAggregation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedAggregation}(),Aggregation.DateHistogramAggregation=function(){class DateHistogramAggregation{constructor(e){this.interval=e&&e.interval}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.interval?t.interval=$root.wix.common.Aggregation.DateHistogramAggregation.Interval[e.interval]:o&&(t.interval="UNKNOWN_INTERVAL"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.Aggregation.DateHistogramAggregation;return null!=e.interval?t.interval="string"==typeof e.interval?e.interval:$root.wix.common.Aggregation.DateHistogramAggregation.Interval[e.interval]:!1!==o?t.interval="UNKNOWN_INTERVAL":delete t.interval,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.interval&&(t.interval=e.interval),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.Aggregation.DateHistogramAggregation;return null!=e.interval?t.interval=e.interval:t.interval="UNKNOWN_INTERVAL",t}}}return DateHistogramAggregation.Interval={UNKNOWN_INTERVAL:"UNKNOWN_INTERVAL",0:"UNKNOWN_INTERVAL",YEAR:"YEAR",1:"YEAR",MONTH:"MONTH",2:"MONTH",WEEK:"WEEK",3:"WEEK",DAY:"DAY",4:"DAY",HOUR:"HOUR",5:"HOUR",MINUTE:"MINUTE",6:"MINUTE",SECOND:"SECOND",7:"SECOND"},DateHistogramAggregation.Interval={UNKNOWN_INTERVAL:"UNKNOWN_INTERVAL",0:"UNKNOWN_INTERVAL",YEAR:"YEAR",1:"YEAR",MONTH:"MONTH",2:"MONTH",WEEK:"WEEK",3:"WEEK",DAY:"DAY",4:"DAY",HOUR:"HOUR",5:"HOUR",MINUTE:"MINUTE",6:"MINUTE",SECOND:"SECOND",7:"SECOND"},__builtIn.Object.defineProperty(DateHistogramAggregation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.DateHistogramAggregation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramAggregation.prototype,"__fqn__",{value:"wix.common.Aggregation.DateHistogramAggregation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramAggregation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramAggregation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramAggregation}(),Aggregation.RangeAggregation=function(){class RangeAggregation{constructor(e){this.buckets=e&&e.buckets}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.buckets?n.buckets=e.buckets.map(e=>$root.wix.common.Aggregation.RangeAggregation.RangeBucket.toJSON(e,t,o)):o&&(n.buckets=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Aggregation.RangeAggregation;return null!=e.buckets?n.buckets=Array.isArray(e.buckets)?e.buckets.map(e=>$root.wix.common.Aggregation.RangeAggregation.RangeBucket.fromJSON(e,t)):e.buckets:!1!==o?n.buckets=[]:delete n.buckets,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.buckets&&(o.buckets=e.buckets.map(e=>$root.wix.common.Aggregation.RangeAggregation.RangeBucket.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.RangeAggregation;return null!=e.buckets?o.buckets=e.buckets.map(e=>$root.wix.common.Aggregation.RangeAggregation.RangeBucket.fromGRPC(e,t)):o.buckets=[],o}}}return RangeAggregation.RangeBucket=function(){class RangeBucket{constructor(e){this.from=e&&e.from,this.to=e&&e.to}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.Aggregation.RangeAggregation.RangeBucket;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete o.to,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.RangeAggregation.RangeBucket;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,o}}}return __builtIn.Object.defineProperty(RangeBucket.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.RangeAggregation.RangeBucket"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeBucket.prototype,"__fqn__",{value:"wix.common.Aggregation.RangeAggregation.RangeBucket",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeBucket.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeBucket.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeBucket}(),RangeAggregation.RangeBucket=function(){class RangeBucket{constructor(e){this.from=e&&e.from,this.to=e&&e.to}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.Aggregation.RangeAggregation.RangeBucket;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete o.to,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.RangeAggregation.RangeBucket;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,o}}}return __builtIn.Object.defineProperty(RangeBucket.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.RangeAggregation.RangeBucket"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeBucket.prototype,"__fqn__",{value:"wix.common.Aggregation.RangeAggregation.RangeBucket",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeBucket.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeBucket.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeBucket}(),__builtIn.Object.defineProperty(RangeAggregation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.RangeAggregation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregation.prototype,"__fqn__",{value:"wix.common.Aggregation.RangeAggregation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeAggregation}(),Aggregation.ValueAggregation=function(){class ValueAggregation{constructor(e){this.sortType=e&&e.sortType,this.sortDirection=e&&e.sortDirection,this.limit=e&&e.limit,this.missingValues=e&&e.missingValues,this.includeOptions=e&&e.includeOptions}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.sortType?n.sortType=$root.wix.common.Aggregation.ValueAggregation.SortType[e.sortType]:o&&(n.sortType="COUNT"),null!=e.sortDirection?n.sortDirection=$root.wix.common.Aggregation.ValueAggregation.SortDirection[e.sortDirection]:o&&(n.sortDirection="DESC"),null!=e.limit?n.limit=$root.google.protobuf.Int32Value.toJSON(e.limit,t,o):o&&delete n.limit,null!=e.missingValues?n.missingValues=$root.wix.common.Aggregation.ValueAggregation.MissingValues[e.missingValues]:o&&(n.missingValues="EXCLUDE"),null!=e.includeOptions?n.includeOptions=$root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions.toJSON(e.includeOptions,t,o):o&&delete n.includeOptions,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Aggregation.ValueAggregation;return null!=e.sortType?n.sortType="string"==typeof e.sortType?e.sortType:$root.wix.common.Aggregation.ValueAggregation.SortType[e.sortType]:!1!==o?n.sortType="COUNT":delete n.sortType,null!=e.sortDirection?n.sortDirection="string"==typeof e.sortDirection?e.sortDirection:$root.wix.common.Aggregation.ValueAggregation.SortDirection[e.sortDirection]:!1!==o?n.sortDirection="DESC":delete n.sortDirection,null!=e.limit?n.limit=$root.google.protobuf.Int32Value.fromJSON(e.limit,t):delete n.limit,null!=e.missingValues?n.missingValues="string"==typeof e.missingValues?e.missingValues:$root.wix.common.Aggregation.ValueAggregation.MissingValues[e.missingValues]:!1!==o?n.missingValues="EXCLUDE":delete n.missingValues,null!=e.includeOptions?n.includeOptions=$root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions.fromJSON(e.includeOptions,t):delete n.includeOptions,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.sortType&&(o.sortType=e.sortType),null!=e.sortDirection&&(o.sortDirection=e.sortDirection),null!=e.limit&&(o.limit=$root.google.protobuf.Int32Value.toGRPC(e.limit,t)),null!=e.missingValues&&(o.missingValues=e.missingValues),null!=e.includeOptions&&(o.includeOptions=$root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions.toGRPC(e.includeOptions,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.ValueAggregation;return null!=e.sortType?o.sortType=e.sortType:o.sortType="COUNT",null!=e.sortDirection?o.sortDirection=e.sortDirection:o.sortDirection="DESC",null!=e.limit?o.limit=$root.google.protobuf.Int32Value.fromGRPC(e.limit,t):delete o.limit,null!=e.missingValues?o.missingValues=e.missingValues:o.missingValues="EXCLUDE",null!=e.includeOptions?o.includeOptions=$root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions.fromGRPC(e.includeOptions,t):delete o.includeOptions,o}}}return ValueAggregation.SortType={COUNT:"COUNT",0:"COUNT",VALUE:"VALUE",1:"VALUE"},ValueAggregation.SortDirection={DESC:"DESC",0:"DESC",ASC:"ASC",1:"ASC"},ValueAggregation.MissingValues={EXCLUDE:"EXCLUDE",0:"EXCLUDE",INCLUDE:"INCLUDE",1:"INCLUDE"},ValueAggregation.IncludeMissingValuesOptions=function(){class IncludeMissingValuesOptions{constructor(e){this.addToBucket=e&&e.addToBucket}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.addToBucket?t.addToBucket=e.addToBucket:o&&(t.addToBucket=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions;return null!=e.addToBucket?t.addToBucket=e.addToBucket:!1!==o?t.addToBucket="":delete t.addToBucket,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.addToBucket&&(t.addToBucket=e.addToBucket),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions;return null!=e.addToBucket?t.addToBucket=e.addToBucket:t.addToBucket="",t}}}return __builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__fqn__",{value:"wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),IncludeMissingValuesOptions}(),ValueAggregation.SortType={COUNT:"COUNT",0:"COUNT",VALUE:"VALUE",1:"VALUE"},ValueAggregation.SortDirection={DESC:"DESC",0:"DESC",ASC:"ASC",1:"ASC"},ValueAggregation.MissingValues={EXCLUDE:"EXCLUDE",0:"EXCLUDE",INCLUDE:"INCLUDE",1:"INCLUDE"},ValueAggregation.IncludeMissingValuesOptions=function(){class IncludeMissingValuesOptions{constructor(e){this.addToBucket=e&&e.addToBucket}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.addToBucket?t.addToBucket=e.addToBucket:o&&(t.addToBucket=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions;return null!=e.addToBucket?t.addToBucket=e.addToBucket:!1!==o?t.addToBucket="":delete t.addToBucket,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.addToBucket&&(t.addToBucket=e.addToBucket),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions;return null!=e.addToBucket?t.addToBucket=e.addToBucket:t.addToBucket="",t}}}return __builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__fqn__",{value:"wix.common.Aggregation.ValueAggregation.IncludeMissingValuesOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IncludeMissingValuesOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),IncludeMissingValuesOptions}(),__builtIn.Object.defineProperty(ValueAggregation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.ValueAggregation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregation.prototype,"__fqn__",{value:"wix.common.Aggregation.ValueAggregation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueAggregation}(),Aggregation.ScalarAggregation=function(){class ScalarAggregation{constructor(e){this.type=e&&e.type}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.type?t.type=$root.wix.common.ScalarType[e.type]:o&&(t.type="UNKNOWN_SCALAR_TYPE"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.Aggregation.ScalarAggregation;return null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.common.ScalarType[e.type]:!1!==o?t.type="UNKNOWN_SCALAR_TYPE":delete t.type,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.Aggregation.ScalarAggregation;return null!=e.type?t.type=e.type:t.type="UNKNOWN_SCALAR_TYPE",t}}}return __builtIn.Object.defineProperty(ScalarAggregation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.ScalarAggregation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarAggregation.prototype,"__fqn__",{value:"wix.common.Aggregation.ScalarAggregation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarAggregation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarAggregation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarAggregation}(),Aggregation.GroupByAggregation=function(){class GroupByAggregation{constructor(e){this.name=e&&e.name,this.fieldPath=e&&e.fieldPath,this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=$root.google.protobuf.StringValue.toJSON(e.name,t,o):o&&delete n.name,null!=e.fieldPath?n.fieldPath=e.fieldPath:o&&(n.fieldPath=""),null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.toJSON(e.value,t,o):o&&delete n.value,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Aggregation.GroupByAggregation;return null!=e.name?n.name=$root.google.protobuf.StringValue.fromJSON(e.name,t):delete n.name,null!=e.fieldPath?n.fieldPath=e.fieldPath:!1!==o?n.fieldPath="":delete n.fieldPath,null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.fromJSON(e.value,t):delete n.value,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=$root.google.protobuf.StringValue.toGRPC(e.name,t)),null!=e.fieldPath&&(o.fieldPath=e.fieldPath),null!=e.value&&(o.value=$root.wix.common.Aggregation.ValueAggregation.toGRPC(e.value,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.GroupByAggregation;return null!=e.name?o.name=$root.google.protobuf.StringValue.fromGRPC(e.name,t):delete o.name,null!=e.fieldPath?o.fieldPath=e.fieldPath:o.fieldPath="",null!=e.value?o.value=$root.wix.common.Aggregation.ValueAggregation.fromGRPC(e.value,t):delete o.value,o}}}return __builtIn.Object.defineProperty(GroupByAggregation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.GroupByAggregation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByAggregation.prototype,"__fqn__",{value:"wix.common.Aggregation.GroupByAggregation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByAggregation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByAggregation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),GroupByAggregation}(),Aggregation.NestedAggregation=function(){class NestedAggregation{constructor(e){this.nestedAggregations=e&&e.nestedAggregations}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.nestedAggregations?n.nestedAggregations=e.nestedAggregations.map(e=>$root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem.toJSON(e,t,o)):o&&(n.nestedAggregations=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Aggregation.NestedAggregation;return null!=e.nestedAggregations?n.nestedAggregations=Array.isArray(e.nestedAggregations)?e.nestedAggregations.map(e=>$root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem.fromJSON(e,t)):e.nestedAggregations:!1!==o?n.nestedAggregations=[]:delete n.nestedAggregations,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.nestedAggregations&&(o.nestedAggregations=e.nestedAggregations.map(e=>$root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.NestedAggregation;return null!=e.nestedAggregations?o.nestedAggregations=e.nestedAggregations.map(e=>$root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem.fromGRPC(e,t)):o.nestedAggregations=[],o}}}return NestedAggregation.NestedAggregationType={UNKNOWN_AGGREGATION_TYPE:"UNKNOWN_AGGREGATION_TYPE",0:"UNKNOWN_AGGREGATION_TYPE",VALUE:"VALUE",1:"VALUE",RANGE:"RANGE",2:"RANGE",SCALAR:"SCALAR",3:"SCALAR",DATE_HISTOGRAM:"DATE_HISTOGRAM",4:"DATE_HISTOGRAM"},NestedAggregation.NestedAggregationItem=function(){class NestedAggregationItem{constructor(e){this.name=e&&e.name,this.type=e&&e.type,this.fieldPath=e&&e.fieldPath,this.value=e&&e.value,this.range=e&&e.range,this.scalar=e&&e.scalar,this.dateHistogram=e&&e.dateHistogram}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=$root.google.protobuf.StringValue.toJSON(e.name,t,o):o&&delete n.name,null!=e.type?n.type=$root.wix.common.Aggregation.NestedAggregation.NestedAggregationType[e.type]:o&&(n.type="UNKNOWN_AGGREGATION_TYPE"),null!=e.fieldPath?n.fieldPath=e.fieldPath:o&&(n.fieldPath=""),null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.toJSON(e.value,t,o):o&&delete n.value,null!=e.range?n.range=$root.wix.common.Aggregation.RangeAggregation.toJSON(e.range,t,o):o&&delete n.range,null!=e.scalar?n.scalar=$root.wix.common.Aggregation.ScalarAggregation.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem;return null!=e.name?n.name=$root.google.protobuf.StringValue.fromJSON(e.name,t):delete n.name,null!=e.type?n.type="string"==typeof e.type?e.type:$root.wix.common.Aggregation.NestedAggregation.NestedAggregationType[e.type]:!1!==o?n.type="UNKNOWN_AGGREGATION_TYPE":delete n.type,null!=e.fieldPath?n.fieldPath=e.fieldPath:!1!==o?n.fieldPath="":delete n.fieldPath,null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.fromJSON(e.value,t):delete n.value,null!=e.range?n.range=$root.wix.common.Aggregation.RangeAggregation.fromJSON(e.range,t):delete n.range,null!=e.scalar?n.scalar=$root.wix.common.Aggregation.ScalarAggregation.fromJSON(e.scalar,t):delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.fromJSON(e.dateHistogram,t):delete n.dateHistogram,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=$root.google.protobuf.StringValue.toGRPC(e.name,t)),null!=e.type&&(o.type=e.type),null!=e.fieldPath&&(o.fieldPath=e.fieldPath),null!=e.value&&(o.value=$root.wix.common.Aggregation.ValueAggregation.toGRPC(e.value,t)),null!=e.range&&(o.range=$root.wix.common.Aggregation.RangeAggregation.toGRPC(e.range,t)),null!=e.scalar&&(o.scalar=$root.wix.common.Aggregation.ScalarAggregation.toGRPC(e.scalar,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.toGRPC(e.dateHistogram,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem;return null!=e.name?o.name=$root.google.protobuf.StringValue.fromGRPC(e.name,t):delete o.name,null!=e.type?o.type=e.type:o.type="UNKNOWN_AGGREGATION_TYPE",null!=e.fieldPath?o.fieldPath=e.fieldPath:o.fieldPath="",null!=e.value?o.value=$root.wix.common.Aggregation.ValueAggregation.fromGRPC(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.Aggregation.RangeAggregation.fromGRPC(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.Aggregation.ScalarAggregation.fromGRPC(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,o}}}return __builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.NestedAggregation.NestedAggregationItem"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__fqn__",{value:"wix.common.Aggregation.NestedAggregation.NestedAggregationItem",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedAggregationItem}(),NestedAggregation.NestedAggregationType={UNKNOWN_AGGREGATION_TYPE:"UNKNOWN_AGGREGATION_TYPE",0:"UNKNOWN_AGGREGATION_TYPE",VALUE:"VALUE",1:"VALUE",RANGE:"RANGE",2:"RANGE",SCALAR:"SCALAR",3:"SCALAR",DATE_HISTOGRAM:"DATE_HISTOGRAM",4:"DATE_HISTOGRAM"},NestedAggregation.NestedAggregationItem=function(){class NestedAggregationItem{constructor(e){this.name=e&&e.name,this.type=e&&e.type,this.fieldPath=e&&e.fieldPath,this.value=e&&e.value,this.range=e&&e.range,this.scalar=e&&e.scalar,this.dateHistogram=e&&e.dateHistogram}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=$root.google.protobuf.StringValue.toJSON(e.name,t,o):o&&delete n.name,null!=e.type?n.type=$root.wix.common.Aggregation.NestedAggregation.NestedAggregationType[e.type]:o&&(n.type="UNKNOWN_AGGREGATION_TYPE"),null!=e.fieldPath?n.fieldPath=e.fieldPath:o&&(n.fieldPath=""),null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.toJSON(e.value,t,o):o&&delete n.value,null!=e.range?n.range=$root.wix.common.Aggregation.RangeAggregation.toJSON(e.range,t,o):o&&delete n.range,null!=e.scalar?n.scalar=$root.wix.common.Aggregation.ScalarAggregation.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem;return null!=e.name?n.name=$root.google.protobuf.StringValue.fromJSON(e.name,t):delete n.name,null!=e.type?n.type="string"==typeof e.type?e.type:$root.wix.common.Aggregation.NestedAggregation.NestedAggregationType[e.type]:!1!==o?n.type="UNKNOWN_AGGREGATION_TYPE":delete n.type,null!=e.fieldPath?n.fieldPath=e.fieldPath:!1!==o?n.fieldPath="":delete n.fieldPath,null!=e.value?n.value=$root.wix.common.Aggregation.ValueAggregation.fromJSON(e.value,t):delete n.value,null!=e.range?n.range=$root.wix.common.Aggregation.RangeAggregation.fromJSON(e.range,t):delete n.range,null!=e.scalar?n.scalar=$root.wix.common.Aggregation.ScalarAggregation.fromJSON(e.scalar,t):delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.fromJSON(e.dateHistogram,t):delete n.dateHistogram,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=$root.google.protobuf.StringValue.toGRPC(e.name,t)),null!=e.type&&(o.type=e.type),null!=e.fieldPath&&(o.fieldPath=e.fieldPath),null!=e.value&&(o.value=$root.wix.common.Aggregation.ValueAggregation.toGRPC(e.value,t)),null!=e.range&&(o.range=$root.wix.common.Aggregation.RangeAggregation.toGRPC(e.range,t)),null!=e.scalar&&(o.scalar=$root.wix.common.Aggregation.ScalarAggregation.toGRPC(e.scalar,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.toGRPC(e.dateHistogram,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Aggregation.NestedAggregation.NestedAggregationItem;return null!=e.name?o.name=$root.google.protobuf.StringValue.fromGRPC(e.name,t):delete o.name,null!=e.type?o.type=e.type:o.type="UNKNOWN_AGGREGATION_TYPE",null!=e.fieldPath?o.fieldPath=e.fieldPath:o.fieldPath="",null!=e.value?o.value=$root.wix.common.Aggregation.ValueAggregation.fromGRPC(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.Aggregation.RangeAggregation.fromGRPC(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.Aggregation.ScalarAggregation.fromGRPC(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.Aggregation.DateHistogramAggregation.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,o}}}return __builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.NestedAggregation.NestedAggregationItem"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__fqn__",{value:"wix.common.Aggregation.NestedAggregation.NestedAggregationItem",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationItem.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedAggregationItem}(),__builtIn.Object.defineProperty(NestedAggregation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.NestedAggregation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregation.prototype,"__fqn__",{value:"wix.common.Aggregation.NestedAggregation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedAggregation}(),Aggregation.DateHistogramAggregation=function(){class DateHistogramAggregation{constructor(e){this.interval=e&&e.interval}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.interval?t.interval=$root.wix.common.Aggregation.DateHistogramAggregation.Interval[e.interval]:o&&(t.interval="UNKNOWN_INTERVAL"),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.Aggregation.DateHistogramAggregation;return null!=e.interval?t.interval="string"==typeof e.interval?e.interval:$root.wix.common.Aggregation.DateHistogramAggregation.Interval[e.interval]:!1!==o?t.interval="UNKNOWN_INTERVAL":delete t.interval,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.interval&&(t.interval=e.interval),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.Aggregation.DateHistogramAggregation;return null!=e.interval?t.interval=e.interval:t.interval="UNKNOWN_INTERVAL",t}}}return DateHistogramAggregation.Interval={UNKNOWN_INTERVAL:"UNKNOWN_INTERVAL",0:"UNKNOWN_INTERVAL",YEAR:"YEAR",1:"YEAR",MONTH:"MONTH",2:"MONTH",WEEK:"WEEK",3:"WEEK",DAY:"DAY",4:"DAY",HOUR:"HOUR",5:"HOUR",MINUTE:"MINUTE",6:"MINUTE",SECOND:"SECOND",7:"SECOND"},DateHistogramAggregation.Interval={UNKNOWN_INTERVAL:"UNKNOWN_INTERVAL",0:"UNKNOWN_INTERVAL",YEAR:"YEAR",1:"YEAR",MONTH:"MONTH",2:"MONTH",WEEK:"WEEK",3:"WEEK",DAY:"DAY",4:"DAY",HOUR:"HOUR",5:"HOUR",MINUTE:"MINUTE",6:"MINUTE",SECOND:"SECOND",7:"SECOND"},__builtIn.Object.defineProperty(DateHistogramAggregation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation.DateHistogramAggregation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramAggregation.prototype,"__fqn__",{value:"wix.common.Aggregation.DateHistogramAggregation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramAggregation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramAggregation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramAggregation}(),__builtIn.Object.defineProperty(Aggregation.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Aggregation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Aggregation.prototype,"__fqn__",{value:"wix.common.Aggregation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Aggregation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Aggregation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Aggregation}(),e.AggregationData=function(){class AggregationData{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.fromGRPC(e,t)):o.results=[],o}}}return AggregationData.AggregationResults=function(){class AggregationResults{constructor(e){this.name=e&&e.name,this.type=e&&e.type,this.fieldPath=e&&e.fieldPath,this.values=e&&e.values,this.ranges=e&&e.ranges,this.scalar=e&&e.scalar,this.groupedByValue=e&&e.groupedByValue,this.dateHistogram=e&&e.dateHistogram,this.nested=e&&e.nested}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.type?n.type=$root.wix.common.AggregationType[e.type]:o&&(n.type="UNKNOWN_AGGREGATION_TYPE"),null!=e.fieldPath?n.fieldPath=e.fieldPath:o&&(n.fieldPath=""),null!=e.values?n.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.toJSON(e.values,t,o):o&&delete n.values,null!=e.ranges?n.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.toJSON(e.ranges,t,o):o&&delete n.ranges,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.groupedByValue?n.groupedByValue=$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.toJSON(e.groupedByValue,t,o):o&&delete n.groupedByValue,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,null!=e.nested?n.nested=$root.wix.common.AggregationData.AggregationResults.NestedResults.toJSON(e.nested,t,o):o&&delete n.nested,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.type?n.type="string"==typeof e.type?e.type:$root.wix.common.AggregationType[e.type]:!1!==o?n.type="UNKNOWN_AGGREGATION_TYPE":delete n.type,null!=e.fieldPath?n.fieldPath=e.fieldPath:!1!==o?n.fieldPath="":delete n.fieldPath,null!=e.values?n.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.fromJSON(e.values,t):delete n.values,null!=e.ranges?n.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.fromJSON(e.ranges,t):delete n.ranges,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.fromJSON(e.scalar,t):delete n.scalar,null!=e.groupedByValue?n.groupedByValue=$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.fromJSON(e.groupedByValue,t):delete n.groupedByValue,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.fromJSON(e.dateHistogram,t):delete n.dateHistogram,null!=e.nested?n.nested=$root.wix.common.AggregationData.AggregationResults.NestedResults.fromJSON(e.nested,t):delete n.nested,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.type&&(o.type=e.type),null!=e.fieldPath&&(o.fieldPath=e.fieldPath),null!=e.values&&(o.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.toGRPC(e.values,t)),null!=e.ranges&&(o.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.toGRPC(e.ranges,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.toGRPC(e.scalar,t)),null!=e.groupedByValue&&(o.groupedByValue=$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.toGRPC(e.groupedByValue,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.toGRPC(e.dateHistogram,t)),null!=e.nested&&(o.nested=$root.wix.common.AggregationData.AggregationResults.NestedResults.toGRPC(e.nested,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults;return null!=e.name?o.name=e.name:o.name="",null!=e.type?o.type=e.type:o.type="UNKNOWN_AGGREGATION_TYPE",null!=e.fieldPath?o.fieldPath=e.fieldPath:o.fieldPath="",null!=e.values?o.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.fromGRPC(e.values,t):delete o.values,null!=e.ranges?o.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.fromGRPC(e.ranges,t):delete o.ranges,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,null!=e.groupedByValue?o.groupedByValue=$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.fromGRPC(e.groupedByValue,t):delete o.groupedByValue,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,null!=e.nested?o.nested=$root.wix.common.AggregationData.AggregationResults.NestedResults.fromGRPC(e.nested,t):delete o.nested,o}}}return AggregationResults.ValueResults=function(){class ValueResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.ValueResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.ValueResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.fromGRPC(e,t)):o.results=[],o}}}return ValueResults.ValueAggregationResult=function(){class ValueAggregationResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueAggregationResult}(),ValueResults.ValueAggregationResult=function(){class ValueAggregationResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueAggregationResult}(),__builtIn.Object.defineProperty(ValueResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ValueResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ValueResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueResults}(),AggregationResults.RangeResults=function(){class RangeResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.RangeResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.RangeResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.fromGRPC(e,t)):o.results=[],o}}}return RangeResults.RangeAggregationResult=function(){class RangeAggregationResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=e.count:o&&(n.count=0),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?n.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete n.to,null!=e.count?n.count=e.count:!1!==o?n.count=0:delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=e.count),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=e.count:o.count=0,o}}}return __builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeAggregationResult}(),RangeResults.RangeAggregationResult=function(){class RangeAggregationResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=e.count:o&&(n.count=0),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?n.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete n.to,null!=e.count?n.count=e.count:!1!==o?n.count=0:delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=e.count),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=e.count:o.count=0,o}}}return __builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeAggregationResult}(),__builtIn.Object.defineProperty(RangeResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.RangeResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.RangeResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeResults}(),AggregationResults.ScalarResult=function(){class ScalarResult{constructor(e){this.type=e&&e.type,this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.type?t.type=$root.wix.common.ScalarType[e.type]:o&&(t.type="UNKNOWN_SCALAR_TYPE"),null!=e.value?t.value=null==e.value?e.value:isNaN(e.value)?"NaN":isFinite(e.value)?e.value:e.value.toString():o&&(t.value=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.ScalarResult;return null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.common.ScalarType[e.type]:!1!==o?t.type="UNKNOWN_SCALAR_TYPE":delete t.type,null!=e.value?t.value="NaN"===e.value?NaN:"Infinity"===e.value?1/0:"-Infinity"===e.value?-1/0:e.value:!1!==o?t.value=0:delete t.value,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),null!=e.value&&(t.value=e.value),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.ScalarResult;return null!=e.type?t.type=e.type:t.type="UNKNOWN_SCALAR_TYPE",null!=e.value?t.value=e.value:t.value=0,t}}}return __builtIn.Object.defineProperty(ScalarResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ScalarResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ScalarResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarResult}(),AggregationResults.GroupByValueResults=function(){class GroupByValueResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.fromGRPC(e,t)):o.results=[],o}}}return GroupByValueResults.NestedValueAggregationResult=function(){class NestedValueAggregationResult{constructor(e){this.value=e&&e.value,this.nestedResults=e&&e.nestedResults}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toJSON(e.nestedResults,t,o):o&&delete n.nestedResults,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromJSON(e.nestedResults,t):delete n.nestedResults,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.nestedResults&&(o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toGRPC(e.nestedResults,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?o.value=e.value:o.value="",null!=e.nestedResults?o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromGRPC(e.nestedResults,t):delete o.nestedResults,o}}}return __builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedValueAggregationResult}(),GroupByValueResults.NestedValueAggregationResult=function(){class NestedValueAggregationResult{constructor(e){this.value=e&&e.value,this.nestedResults=e&&e.nestedResults}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toJSON(e.nestedResults,t,o):o&&delete n.nestedResults,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromJSON(e.nestedResults,t):delete n.nestedResults,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.nestedResults&&(o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toGRPC(e.nestedResults,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?o.value=e.value:o.value="",null!=e.nestedResults?o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromGRPC(e.nestedResults,t):delete o.nestedResults,o}}}return __builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedValueAggregationResult}(),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.GroupByValueResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.GroupByValueResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),GroupByValueResults}(),AggregationResults.NestedAggregationResults=function(){class NestedAggregationResults{constructor(e){this.name=e&&e.name,this.type=e&&e.type,this.fieldPath=e&&e.fieldPath,this.values=e&&e.values,this.ranges=e&&e.ranges,this.scalar=e&&e.scalar}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.type?n.type=$root.wix.common.AggregationType[e.type]:o&&(n.type="UNKNOWN_AGGREGATION_TYPE"),null!=e.fieldPath?n.fieldPath=e.fieldPath:o&&(n.fieldPath=""),null!=e.values?n.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.toJSON(e.values,t,o):o&&delete n.values,null!=e.ranges?n.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.toJSON(e.ranges,t,o):o&&delete n.ranges,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedAggregationResults;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.type?n.type="string"==typeof e.type?e.type:$root.wix.common.AggregationType[e.type]:!1!==o?n.type="UNKNOWN_AGGREGATION_TYPE":delete n.type,null!=e.fieldPath?n.fieldPath=e.fieldPath:!1!==o?n.fieldPath="":delete n.fieldPath,null!=e.values?n.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.fromJSON(e.values,t):delete n.values,null!=e.ranges?n.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.fromJSON(e.ranges,t):delete n.ranges,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.fromJSON(e.scalar,t):delete n.scalar,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.type&&(o.type=e.type),null!=e.fieldPath&&(o.fieldPath=e.fieldPath),null!=e.values&&(o.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.toGRPC(e.values,t)),null!=e.ranges&&(o.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.toGRPC(e.ranges,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.toGRPC(e.scalar,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedAggregationResults;return null!=e.name?o.name=e.name:o.name="",null!=e.type?o.type=e.type:o.type="UNKNOWN_AGGREGATION_TYPE",null!=e.fieldPath?o.fieldPath=e.fieldPath:o.fieldPath="",null!=e.values?o.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.fromGRPC(e.values,t):delete o.values,null!=e.ranges?o.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.fromGRPC(e.ranges,t):delete o.ranges,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,o}}}return __builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedAggregationResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedAggregationResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedAggregationResults}(),AggregationResults.NestedResults=function(){class NestedResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.fromGRPC(e,t)):o.results=[],o}}}return NestedResults.ValueResult=function(){class ValueResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.count?n.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?o.value=e.value:o.value="",null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(ValueResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ValueResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ValueResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueResult}(),NestedResults.RangeResult=function(){class RangeResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete o.count,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(RangeResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.RangeResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.RangeResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeResult}(),NestedResults.ScalarResult=function(){class ScalarResult{constructor(e){this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=null==e.value?e.value:isNaN(e.value)?"NaN":isFinite(e.value)?e.value:e.value.toString():o&&(t.value=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value="NaN"===e.value?NaN:"Infinity"===e.value?1/0:"-Infinity"===e.value?-1/0:e.value:!1!==o?t.value=0:delete t.value,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value=e.value:t.value=0,t}}}return __builtIn.Object.defineProperty(ScalarResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarResult}(),NestedResults.NestedResultValue=function(){class NestedResultValue{constructor(e){this.value=e&&e.value,this.range=e&&e.range,this.scalar=e&&e.scalar,this.dateHistogram=e&&e.dateHistogram}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.value,t,o):o&&delete n.value,null!=e.range?n.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toJSON(e.range,t,o):o&&delete n.range,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromJSON(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromJSON(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.dateHistogram,t):delete o.dateHistogram,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.value,t)),null!=e.range&&(o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toGRPC(e.range,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toGRPC(e.scalar,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.dateHistogram,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromGRPC(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,o}}}return __builtIn.Object.defineProperty(NestedResultValue.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedResultValue}(),NestedResults.Results=function(){class Results{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=Object.entries(e.results).reduce((e,[n,l])=>(e[n]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toJSON(l,t,o),e),{}):o&&delete n.results,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromJSON(n,t),e),{}):delete o.results,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toGRPC(n,t),e),{})),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromGRPC(n,t),e),{}):delete o.results,o}}}return __builtIn.Object.defineProperty(Results.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.Results"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.Results",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Results}(),NestedResults.ValueResult=function(){class ValueResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.count?n.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?o.value=e.value:o.value="",null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(ValueResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ValueResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ValueResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueResult}(),NestedResults.RangeResult=function(){class RangeResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete o.count,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(RangeResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.RangeResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.RangeResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeResult}(),NestedResults.ScalarResult=function(){class ScalarResult{constructor(e){this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=null==e.value?e.value:isNaN(e.value)?"NaN":isFinite(e.value)?e.value:e.value.toString():o&&(t.value=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value="NaN"===e.value?NaN:"Infinity"===e.value?1/0:"-Infinity"===e.value?-1/0:e.value:!1!==o?t.value=0:delete t.value,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value=e.value:t.value=0,t}}}return __builtIn.Object.defineProperty(ScalarResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarResult}(),NestedResults.NestedResultValue=function(){class NestedResultValue{constructor(e){this.value=e&&e.value,this.range=e&&e.range,this.scalar=e&&e.scalar,this.dateHistogram=e&&e.dateHistogram}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.value,t,o):o&&delete n.value,null!=e.range?n.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toJSON(e.range,t,o):o&&delete n.range,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromJSON(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromJSON(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.dateHistogram,t):delete o.dateHistogram,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.value,t)),null!=e.range&&(o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toGRPC(e.range,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toGRPC(e.scalar,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.dateHistogram,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromGRPC(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,o}}}return __builtIn.Object.defineProperty(NestedResultValue.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedResultValue}(),NestedResults.Results=function(){class Results{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=Object.entries(e.results).reduce((e,[n,l])=>(e[n]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toJSON(l,t,o),e),{}):o&&delete n.results,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromJSON(n,t),e),{}):delete o.results,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toGRPC(n,t),e),{})),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromGRPC(n,t),e),{}):delete o.results,o}}}return __builtIn.Object.defineProperty(Results.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.Results"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.Results",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Results}(),__builtIn.Object.defineProperty(NestedResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedResults}(),AggregationResults.DateHistogramResults=function(){class DateHistogramResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.fromGRPC(e,t)):o.results=[],o}}}return DateHistogramResults.DateHistogramResult=function(){class DateHistogramResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(DateHistogramResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramResult}(),DateHistogramResults.DateHistogramResult=function(){class DateHistogramResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(DateHistogramResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramResult}(),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.DateHistogramResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.DateHistogramResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramResults}(),AggregationResults.ValueResults=function(){class ValueResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.ValueResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.ValueResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.fromGRPC(e,t)):o.results=[],o}}}return ValueResults.ValueAggregationResult=function(){class ValueAggregationResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueAggregationResult}(),ValueResults.ValueAggregationResult=function(){class ValueAggregationResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueAggregationResult}(),__builtIn.Object.defineProperty(ValueResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ValueResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ValueResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueResults}(),AggregationResults.RangeResults=function(){class RangeResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.RangeResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.RangeResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.fromGRPC(e,t)):o.results=[],o}}}return RangeResults.RangeAggregationResult=function(){class RangeAggregationResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=e.count:o&&(n.count=0),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?n.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete n.to,null!=e.count?n.count=e.count:!1!==o?n.count=0:delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=e.count),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=e.count:o.count=0,o}}}return __builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeAggregationResult}(),RangeResults.RangeAggregationResult=function(){class RangeAggregationResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=e.count:o&&(n.count=0),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?n.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete n.to,null!=e.count?n.count=e.count:!1!==o?n.count=0:delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=e.count),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=e.count:o.count=0,o}}}return __builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeAggregationResult}(),__builtIn.Object.defineProperty(RangeResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.RangeResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.RangeResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeResults}(),AggregationResults.ScalarResult=function(){class ScalarResult{constructor(e){this.type=e&&e.type,this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.type?t.type=$root.wix.common.ScalarType[e.type]:o&&(t.type="UNKNOWN_SCALAR_TYPE"),null!=e.value?t.value=null==e.value?e.value:isNaN(e.value)?"NaN":isFinite(e.value)?e.value:e.value.toString():o&&(t.value=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.ScalarResult;return null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.common.ScalarType[e.type]:!1!==o?t.type="UNKNOWN_SCALAR_TYPE":delete t.type,null!=e.value?t.value="NaN"===e.value?NaN:"Infinity"===e.value?1/0:"-Infinity"===e.value?-1/0:e.value:!1!==o?t.value=0:delete t.value,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),null!=e.value&&(t.value=e.value),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.ScalarResult;return null!=e.type?t.type=e.type:t.type="UNKNOWN_SCALAR_TYPE",null!=e.value?t.value=e.value:t.value=0,t}}}return __builtIn.Object.defineProperty(ScalarResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ScalarResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ScalarResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarResult}(),AggregationResults.GroupByValueResults=function(){class GroupByValueResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.fromGRPC(e,t)):o.results=[],o}}}return GroupByValueResults.NestedValueAggregationResult=function(){class NestedValueAggregationResult{constructor(e){this.value=e&&e.value,this.nestedResults=e&&e.nestedResults}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toJSON(e.nestedResults,t,o):o&&delete n.nestedResults,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromJSON(e.nestedResults,t):delete n.nestedResults,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.nestedResults&&(o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toGRPC(e.nestedResults,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?o.value=e.value:o.value="",null!=e.nestedResults?o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromGRPC(e.nestedResults,t):delete o.nestedResults,o}}}return __builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedValueAggregationResult}(),GroupByValueResults.NestedValueAggregationResult=function(){class NestedValueAggregationResult{constructor(e){this.value=e&&e.value,this.nestedResults=e&&e.nestedResults}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toJSON(e.nestedResults,t,o):o&&delete n.nestedResults,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromJSON(e.nestedResults,t):delete n.nestedResults,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.nestedResults&&(o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toGRPC(e.nestedResults,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?o.value=e.value:o.value="",null!=e.nestedResults?o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromGRPC(e.nestedResults,t):delete o.nestedResults,o}}}return __builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedValueAggregationResult}(),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.GroupByValueResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.GroupByValueResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),GroupByValueResults}(),AggregationResults.NestedAggregationResults=function(){class NestedAggregationResults{constructor(e){this.name=e&&e.name,this.type=e&&e.type,this.fieldPath=e&&e.fieldPath,this.values=e&&e.values,this.ranges=e&&e.ranges,this.scalar=e&&e.scalar}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.type?n.type=$root.wix.common.AggregationType[e.type]:o&&(n.type="UNKNOWN_AGGREGATION_TYPE"),null!=e.fieldPath?n.fieldPath=e.fieldPath:o&&(n.fieldPath=""),null!=e.values?n.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.toJSON(e.values,t,o):o&&delete n.values,null!=e.ranges?n.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.toJSON(e.ranges,t,o):o&&delete n.ranges,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedAggregationResults;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.type?n.type="string"==typeof e.type?e.type:$root.wix.common.AggregationType[e.type]:!1!==o?n.type="UNKNOWN_AGGREGATION_TYPE":delete n.type,null!=e.fieldPath?n.fieldPath=e.fieldPath:!1!==o?n.fieldPath="":delete n.fieldPath,null!=e.values?n.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.fromJSON(e.values,t):delete n.values,null!=e.ranges?n.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.fromJSON(e.ranges,t):delete n.ranges,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.fromJSON(e.scalar,t):delete n.scalar,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.type&&(o.type=e.type),null!=e.fieldPath&&(o.fieldPath=e.fieldPath),null!=e.values&&(o.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.toGRPC(e.values,t)),null!=e.ranges&&(o.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.toGRPC(e.ranges,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.toGRPC(e.scalar,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedAggregationResults;return null!=e.name?o.name=e.name:o.name="",null!=e.type?o.type=e.type:o.type="UNKNOWN_AGGREGATION_TYPE",null!=e.fieldPath?o.fieldPath=e.fieldPath:o.fieldPath="",null!=e.values?o.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.fromGRPC(e.values,t):delete o.values,null!=e.ranges?o.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.fromGRPC(e.ranges,t):delete o.ranges,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,o}}}return __builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedAggregationResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedAggregationResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedAggregationResults}(),AggregationResults.NestedResults=function(){class NestedResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.fromGRPC(e,t)):o.results=[],o}}}return NestedResults.ValueResult=function(){class ValueResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.count?n.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?o.value=e.value:o.value="",null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(ValueResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ValueResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ValueResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueResult}(),NestedResults.RangeResult=function(){class RangeResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete o.count,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(RangeResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.RangeResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.RangeResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeResult}(),NestedResults.ScalarResult=function(){class ScalarResult{constructor(e){this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=null==e.value?e.value:isNaN(e.value)?"NaN":isFinite(e.value)?e.value:e.value.toString():o&&(t.value=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value="NaN"===e.value?NaN:"Infinity"===e.value?1/0:"-Infinity"===e.value?-1/0:e.value:!1!==o?t.value=0:delete t.value,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value=e.value:t.value=0,t}}}return __builtIn.Object.defineProperty(ScalarResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarResult}(),NestedResults.NestedResultValue=function(){class NestedResultValue{constructor(e){this.value=e&&e.value,this.range=e&&e.range,this.scalar=e&&e.scalar,this.dateHistogram=e&&e.dateHistogram}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.value,t,o):o&&delete n.value,null!=e.range?n.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toJSON(e.range,t,o):o&&delete n.range,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromJSON(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromJSON(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.dateHistogram,t):delete o.dateHistogram,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.value,t)),null!=e.range&&(o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toGRPC(e.range,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toGRPC(e.scalar,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.dateHistogram,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromGRPC(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,o}}}return __builtIn.Object.defineProperty(NestedResultValue.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedResultValue}(),NestedResults.Results=function(){class Results{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=Object.entries(e.results).reduce((e,[n,l])=>(e[n]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toJSON(l,t,o),e),{}):o&&delete n.results,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromJSON(n,t),e),{}):delete o.results,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toGRPC(n,t),e),{})),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromGRPC(n,t),e),{}):delete o.results,o}}}return __builtIn.Object.defineProperty(Results.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.Results"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.Results",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Results}(),NestedResults.ValueResult=function(){class ValueResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.count?n.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?o.value=e.value:o.value="",null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(ValueResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ValueResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ValueResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueResult}(),NestedResults.RangeResult=function(){class RangeResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete o.count,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(RangeResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.RangeResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.RangeResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeResult}(),NestedResults.ScalarResult=function(){class ScalarResult{constructor(e){this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=null==e.value?e.value:isNaN(e.value)?"NaN":isFinite(e.value)?e.value:e.value.toString():o&&(t.value=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value="NaN"===e.value?NaN:"Infinity"===e.value?1/0:"-Infinity"===e.value?-1/0:e.value:!1!==o?t.value=0:delete t.value,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value=e.value:t.value=0,t}}}return __builtIn.Object.defineProperty(ScalarResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarResult}(),NestedResults.NestedResultValue=function(){class NestedResultValue{constructor(e){this.value=e&&e.value,this.range=e&&e.range,this.scalar=e&&e.scalar,this.dateHistogram=e&&e.dateHistogram}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.value,t,o):o&&delete n.value,null!=e.range?n.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toJSON(e.range,t,o):o&&delete n.range,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromJSON(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromJSON(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.dateHistogram,t):delete o.dateHistogram,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.value,t)),null!=e.range&&(o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toGRPC(e.range,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toGRPC(e.scalar,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.dateHistogram,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromGRPC(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,o}}}return __builtIn.Object.defineProperty(NestedResultValue.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedResultValue}(),NestedResults.Results=function(){class Results{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=Object.entries(e.results).reduce((e,[n,l])=>(e[n]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toJSON(l,t,o),e),{}):o&&delete n.results,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromJSON(n,t),e),{}):delete o.results,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toGRPC(n,t),e),{})),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromGRPC(n,t),e),{}):delete o.results,o}}}return __builtIn.Object.defineProperty(Results.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.Results"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.Results",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Results}(),__builtIn.Object.defineProperty(NestedResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedResults}(),AggregationResults.DateHistogramResults=function(){class DateHistogramResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.fromGRPC(e,t)):o.results=[],o}}}return DateHistogramResults.DateHistogramResult=function(){class DateHistogramResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(DateHistogramResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramResult}(),DateHistogramResults.DateHistogramResult=function(){class DateHistogramResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(DateHistogramResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramResult}(),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.DateHistogramResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.DateHistogramResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramResults}(),__builtIn.Object.defineProperty(AggregationResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AggregationResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AggregationResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AggregationResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),AggregationResults}(),AggregationData.AggregationResults=function(){class AggregationResults{constructor(e){this.name=e&&e.name,this.type=e&&e.type,this.fieldPath=e&&e.fieldPath,this.values=e&&e.values,this.ranges=e&&e.ranges,this.scalar=e&&e.scalar,this.groupedByValue=e&&e.groupedByValue,this.dateHistogram=e&&e.dateHistogram,this.nested=e&&e.nested}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.type?n.type=$root.wix.common.AggregationType[e.type]:o&&(n.type="UNKNOWN_AGGREGATION_TYPE"),null!=e.fieldPath?n.fieldPath=e.fieldPath:o&&(n.fieldPath=""),null!=e.values?n.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.toJSON(e.values,t,o):o&&delete n.values,null!=e.ranges?n.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.toJSON(e.ranges,t,o):o&&delete n.ranges,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.groupedByValue?n.groupedByValue=$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.toJSON(e.groupedByValue,t,o):o&&delete n.groupedByValue,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,null!=e.nested?n.nested=$root.wix.common.AggregationData.AggregationResults.NestedResults.toJSON(e.nested,t,o):o&&delete n.nested,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.type?n.type="string"==typeof e.type?e.type:$root.wix.common.AggregationType[e.type]:!1!==o?n.type="UNKNOWN_AGGREGATION_TYPE":delete n.type,null!=e.fieldPath?n.fieldPath=e.fieldPath:!1!==o?n.fieldPath="":delete n.fieldPath,null!=e.values?n.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.fromJSON(e.values,t):delete n.values,null!=e.ranges?n.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.fromJSON(e.ranges,t):delete n.ranges,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.fromJSON(e.scalar,t):delete n.scalar,null!=e.groupedByValue?n.groupedByValue=$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.fromJSON(e.groupedByValue,t):delete n.groupedByValue,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.fromJSON(e.dateHistogram,t):delete n.dateHistogram,null!=e.nested?n.nested=$root.wix.common.AggregationData.AggregationResults.NestedResults.fromJSON(e.nested,t):delete n.nested,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.type&&(o.type=e.type),null!=e.fieldPath&&(o.fieldPath=e.fieldPath),null!=e.values&&(o.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.toGRPC(e.values,t)),null!=e.ranges&&(o.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.toGRPC(e.ranges,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.toGRPC(e.scalar,t)),null!=e.groupedByValue&&(o.groupedByValue=$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.toGRPC(e.groupedByValue,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.toGRPC(e.dateHistogram,t)),null!=e.nested&&(o.nested=$root.wix.common.AggregationData.AggregationResults.NestedResults.toGRPC(e.nested,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults;return null!=e.name?o.name=e.name:o.name="",null!=e.type?o.type=e.type:o.type="UNKNOWN_AGGREGATION_TYPE",null!=e.fieldPath?o.fieldPath=e.fieldPath:o.fieldPath="",null!=e.values?o.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.fromGRPC(e.values,t):delete o.values,null!=e.ranges?o.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.fromGRPC(e.ranges,t):delete o.ranges,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,null!=e.groupedByValue?o.groupedByValue=$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.fromGRPC(e.groupedByValue,t):delete o.groupedByValue,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,null!=e.nested?o.nested=$root.wix.common.AggregationData.AggregationResults.NestedResults.fromGRPC(e.nested,t):delete o.nested,o}}}return AggregationResults.ValueResults=function(){class ValueResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.ValueResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.ValueResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.fromGRPC(e,t)):o.results=[],o}}}return ValueResults.ValueAggregationResult=function(){class ValueAggregationResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueAggregationResult}(),ValueResults.ValueAggregationResult=function(){class ValueAggregationResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueAggregationResult}(),__builtIn.Object.defineProperty(ValueResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ValueResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ValueResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueResults}(),AggregationResults.RangeResults=function(){class RangeResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.RangeResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.RangeResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.fromGRPC(e,t)):o.results=[],o}}}return RangeResults.RangeAggregationResult=function(){class RangeAggregationResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=e.count:o&&(n.count=0),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?n.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete n.to,null!=e.count?n.count=e.count:!1!==o?n.count=0:delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=e.count),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=e.count:o.count=0,o}}}return __builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeAggregationResult}(),RangeResults.RangeAggregationResult=function(){class RangeAggregationResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=e.count:o&&(n.count=0),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?n.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete n.to,null!=e.count?n.count=e.count:!1!==o?n.count=0:delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=e.count),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=e.count:o.count=0,o}}}return __builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeAggregationResult}(),__builtIn.Object.defineProperty(RangeResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.RangeResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.RangeResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeResults}(),AggregationResults.ScalarResult=function(){class ScalarResult{constructor(e){this.type=e&&e.type,this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.type?t.type=$root.wix.common.ScalarType[e.type]:o&&(t.type="UNKNOWN_SCALAR_TYPE"),null!=e.value?t.value=null==e.value?e.value:isNaN(e.value)?"NaN":isFinite(e.value)?e.value:e.value.toString():o&&(t.value=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.ScalarResult;return null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.common.ScalarType[e.type]:!1!==o?t.type="UNKNOWN_SCALAR_TYPE":delete t.type,null!=e.value?t.value="NaN"===e.value?NaN:"Infinity"===e.value?1/0:"-Infinity"===e.value?-1/0:e.value:!1!==o?t.value=0:delete t.value,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),null!=e.value&&(t.value=e.value),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.ScalarResult;return null!=e.type?t.type=e.type:t.type="UNKNOWN_SCALAR_TYPE",null!=e.value?t.value=e.value:t.value=0,t}}}return __builtIn.Object.defineProperty(ScalarResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ScalarResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ScalarResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarResult}(),AggregationResults.GroupByValueResults=function(){class GroupByValueResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.fromGRPC(e,t)):o.results=[],o}}}return GroupByValueResults.NestedValueAggregationResult=function(){class NestedValueAggregationResult{constructor(e){this.value=e&&e.value,this.nestedResults=e&&e.nestedResults}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toJSON(e.nestedResults,t,o):o&&delete n.nestedResults,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromJSON(e.nestedResults,t):delete n.nestedResults,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.nestedResults&&(o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toGRPC(e.nestedResults,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?o.value=e.value:o.value="",null!=e.nestedResults?o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromGRPC(e.nestedResults,t):delete o.nestedResults,o}}}return __builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedValueAggregationResult}(),GroupByValueResults.NestedValueAggregationResult=function(){class NestedValueAggregationResult{constructor(e){this.value=e&&e.value,this.nestedResults=e&&e.nestedResults}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toJSON(e.nestedResults,t,o):o&&delete n.nestedResults,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromJSON(e.nestedResults,t):delete n.nestedResults,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.nestedResults&&(o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toGRPC(e.nestedResults,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?o.value=e.value:o.value="",null!=e.nestedResults?o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromGRPC(e.nestedResults,t):delete o.nestedResults,o}}}return __builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedValueAggregationResult}(),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.GroupByValueResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.GroupByValueResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),GroupByValueResults}(),AggregationResults.NestedAggregationResults=function(){class NestedAggregationResults{constructor(e){this.name=e&&e.name,this.type=e&&e.type,this.fieldPath=e&&e.fieldPath,this.values=e&&e.values,this.ranges=e&&e.ranges,this.scalar=e&&e.scalar}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.type?n.type=$root.wix.common.AggregationType[e.type]:o&&(n.type="UNKNOWN_AGGREGATION_TYPE"),null!=e.fieldPath?n.fieldPath=e.fieldPath:o&&(n.fieldPath=""),null!=e.values?n.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.toJSON(e.values,t,o):o&&delete n.values,null!=e.ranges?n.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.toJSON(e.ranges,t,o):o&&delete n.ranges,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedAggregationResults;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.type?n.type="string"==typeof e.type?e.type:$root.wix.common.AggregationType[e.type]:!1!==o?n.type="UNKNOWN_AGGREGATION_TYPE":delete n.type,null!=e.fieldPath?n.fieldPath=e.fieldPath:!1!==o?n.fieldPath="":delete n.fieldPath,null!=e.values?n.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.fromJSON(e.values,t):delete n.values,null!=e.ranges?n.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.fromJSON(e.ranges,t):delete n.ranges,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.fromJSON(e.scalar,t):delete n.scalar,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.type&&(o.type=e.type),null!=e.fieldPath&&(o.fieldPath=e.fieldPath),null!=e.values&&(o.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.toGRPC(e.values,t)),null!=e.ranges&&(o.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.toGRPC(e.ranges,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.toGRPC(e.scalar,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedAggregationResults;return null!=e.name?o.name=e.name:o.name="",null!=e.type?o.type=e.type:o.type="UNKNOWN_AGGREGATION_TYPE",null!=e.fieldPath?o.fieldPath=e.fieldPath:o.fieldPath="",null!=e.values?o.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.fromGRPC(e.values,t):delete o.values,null!=e.ranges?o.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.fromGRPC(e.ranges,t):delete o.ranges,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,o}}}return __builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedAggregationResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedAggregationResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedAggregationResults}(),AggregationResults.NestedResults=function(){class NestedResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.fromGRPC(e,t)):o.results=[],o}}}return NestedResults.ValueResult=function(){class ValueResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.count?n.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?o.value=e.value:o.value="",null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(ValueResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ValueResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ValueResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueResult}(),NestedResults.RangeResult=function(){class RangeResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete o.count,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(RangeResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.RangeResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.RangeResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeResult}(),NestedResults.ScalarResult=function(){class ScalarResult{constructor(e){this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=null==e.value?e.value:isNaN(e.value)?"NaN":isFinite(e.value)?e.value:e.value.toString():o&&(t.value=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value="NaN"===e.value?NaN:"Infinity"===e.value?1/0:"-Infinity"===e.value?-1/0:e.value:!1!==o?t.value=0:delete t.value,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value=e.value:t.value=0,t}}}return __builtIn.Object.defineProperty(ScalarResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarResult}(),NestedResults.NestedResultValue=function(){class NestedResultValue{constructor(e){this.value=e&&e.value,this.range=e&&e.range,this.scalar=e&&e.scalar,this.dateHistogram=e&&e.dateHistogram}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.value,t,o):o&&delete n.value,null!=e.range?n.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toJSON(e.range,t,o):o&&delete n.range,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromJSON(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromJSON(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.dateHistogram,t):delete o.dateHistogram,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.value,t)),null!=e.range&&(o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toGRPC(e.range,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toGRPC(e.scalar,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.dateHistogram,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromGRPC(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,o}}}return __builtIn.Object.defineProperty(NestedResultValue.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedResultValue}(),NestedResults.Results=function(){class Results{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=Object.entries(e.results).reduce((e,[n,l])=>(e[n]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toJSON(l,t,o),e),{}):o&&delete n.results,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromJSON(n,t),e),{}):delete o.results,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toGRPC(n,t),e),{})),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromGRPC(n,t),e),{}):delete o.results,o}}}return __builtIn.Object.defineProperty(Results.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.Results"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.Results",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Results}(),NestedResults.ValueResult=function(){class ValueResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.count?n.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?o.value=e.value:o.value="",null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(ValueResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ValueResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ValueResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueResult}(),NestedResults.RangeResult=function(){class RangeResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete o.count,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(RangeResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.RangeResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.RangeResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeResult}(),NestedResults.ScalarResult=function(){class ScalarResult{constructor(e){this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=null==e.value?e.value:isNaN(e.value)?"NaN":isFinite(e.value)?e.value:e.value.toString():o&&(t.value=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value="NaN"===e.value?NaN:"Infinity"===e.value?1/0:"-Infinity"===e.value?-1/0:e.value:!1!==o?t.value=0:delete t.value,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value=e.value:t.value=0,t}}}return __builtIn.Object.defineProperty(ScalarResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarResult}(),NestedResults.NestedResultValue=function(){class NestedResultValue{constructor(e){this.value=e&&e.value,this.range=e&&e.range,this.scalar=e&&e.scalar,this.dateHistogram=e&&e.dateHistogram}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.value,t,o):o&&delete n.value,null!=e.range?n.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toJSON(e.range,t,o):o&&delete n.range,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromJSON(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromJSON(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.dateHistogram,t):delete o.dateHistogram,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.value,t)),null!=e.range&&(o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toGRPC(e.range,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toGRPC(e.scalar,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.dateHistogram,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromGRPC(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,o}}}return __builtIn.Object.defineProperty(NestedResultValue.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedResultValue}(),NestedResults.Results=function(){class Results{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=Object.entries(e.results).reduce((e,[n,l])=>(e[n]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toJSON(l,t,o),e),{}):o&&delete n.results,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromJSON(n,t),e),{}):delete o.results,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toGRPC(n,t),e),{})),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromGRPC(n,t),e),{}):delete o.results,o}}}return __builtIn.Object.defineProperty(Results.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.Results"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.Results",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Results}(),__builtIn.Object.defineProperty(NestedResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedResults}(),AggregationResults.DateHistogramResults=function(){class DateHistogramResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.fromGRPC(e,t)):o.results=[],o}}}return DateHistogramResults.DateHistogramResult=function(){class DateHistogramResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(DateHistogramResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramResult}(),DateHistogramResults.DateHistogramResult=function(){class DateHistogramResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(DateHistogramResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramResult}(),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.DateHistogramResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.DateHistogramResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramResults}(),AggregationResults.ValueResults=function(){class ValueResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.ValueResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.ValueResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult.fromGRPC(e,t)):o.results=[],o}}}return ValueResults.ValueAggregationResult=function(){class ValueAggregationResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueAggregationResult}(),ValueResults.ValueAggregationResult=function(){class ValueAggregationResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueAggregationResult}(),__builtIn.Object.defineProperty(ValueResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ValueResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ValueResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueResults}(),AggregationResults.RangeResults=function(){class RangeResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.RangeResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.RangeResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult.fromGRPC(e,t)):o.results=[],o}}}return RangeResults.RangeAggregationResult=function(){class RangeAggregationResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=e.count:o&&(n.count=0),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?n.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete n.to,null!=e.count?n.count=e.count:!1!==o?n.count=0:delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=e.count),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=e.count:o.count=0,o}}}return __builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeAggregationResult}(),RangeResults.RangeAggregationResult=function(){class RangeAggregationResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=e.count:o&&(n.count=0),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?n.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete n.to,null!=e.count?n.count=e.count:!1!==o?n.count=0:delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=e.count),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=e.count:o.count=0,o}}}return __builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeAggregationResult}(),__builtIn.Object.defineProperty(RangeResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.RangeResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.RangeResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeResults}(),AggregationResults.ScalarResult=function(){class ScalarResult{constructor(e){this.type=e&&e.type,this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.type?t.type=$root.wix.common.ScalarType[e.type]:o&&(t.type="UNKNOWN_SCALAR_TYPE"),null!=e.value?t.value=null==e.value?e.value:isNaN(e.value)?"NaN":isFinite(e.value)?e.value:e.value.toString():o&&(t.value=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.ScalarResult;return null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.common.ScalarType[e.type]:!1!==o?t.type="UNKNOWN_SCALAR_TYPE":delete t.type,null!=e.value?t.value="NaN"===e.value?NaN:"Infinity"===e.value?1/0:"-Infinity"===e.value?-1/0:e.value:!1!==o?t.value=0:delete t.value,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),null!=e.value&&(t.value=e.value),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.ScalarResult;return null!=e.type?t.type=e.type:t.type="UNKNOWN_SCALAR_TYPE",null!=e.value?t.value=e.value:t.value=0,t}}}return __builtIn.Object.defineProperty(ScalarResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.ScalarResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.ScalarResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarResult}(),AggregationResults.GroupByValueResults=function(){class GroupByValueResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult.fromGRPC(e,t)):o.results=[],o}}}return GroupByValueResults.NestedValueAggregationResult=function(){class NestedValueAggregationResult{constructor(e){this.value=e&&e.value,this.nestedResults=e&&e.nestedResults}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toJSON(e.nestedResults,t,o):o&&delete n.nestedResults,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromJSON(e.nestedResults,t):delete n.nestedResults,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.nestedResults&&(o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toGRPC(e.nestedResults,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?o.value=e.value:o.value="",null!=e.nestedResults?o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromGRPC(e.nestedResults,t):delete o.nestedResults,o}}}return __builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedValueAggregationResult}(),GroupByValueResults.NestedValueAggregationResult=function(){class NestedValueAggregationResult{constructor(e){this.value=e&&e.value,this.nestedResults=e&&e.nestedResults}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toJSON(e.nestedResults,t,o):o&&delete n.nestedResults,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.nestedResults?n.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromJSON(e.nestedResults,t):delete n.nestedResults,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.nestedResults&&(o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.toGRPC(e.nestedResults,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult;return null!=e.value?o.value=e.value:o.value="",null!=e.nestedResults?o.nestedResults=$root.wix.common.AggregationData.AggregationResults.NestedAggregationResults.fromGRPC(e.nestedResults,t):delete o.nestedResults,o}}}return __builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.GroupByValueResults.NestedValueAggregationResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedValueAggregationResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedValueAggregationResult}(),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.GroupByValueResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.GroupByValueResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GroupByValueResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),GroupByValueResults}(),AggregationResults.NestedAggregationResults=function(){class NestedAggregationResults{constructor(e){this.name=e&&e.name,this.type=e&&e.type,this.fieldPath=e&&e.fieldPath,this.values=e&&e.values,this.ranges=e&&e.ranges,this.scalar=e&&e.scalar}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.type?n.type=$root.wix.common.AggregationType[e.type]:o&&(n.type="UNKNOWN_AGGREGATION_TYPE"),null!=e.fieldPath?n.fieldPath=e.fieldPath:o&&(n.fieldPath=""),null!=e.values?n.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.toJSON(e.values,t,o):o&&delete n.values,null!=e.ranges?n.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.toJSON(e.ranges,t,o):o&&delete n.ranges,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedAggregationResults;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.type?n.type="string"==typeof e.type?e.type:$root.wix.common.AggregationType[e.type]:!1!==o?n.type="UNKNOWN_AGGREGATION_TYPE":delete n.type,null!=e.fieldPath?n.fieldPath=e.fieldPath:!1!==o?n.fieldPath="":delete n.fieldPath,null!=e.values?n.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.fromJSON(e.values,t):delete n.values,null!=e.ranges?n.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.fromJSON(e.ranges,t):delete n.ranges,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.fromJSON(e.scalar,t):delete n.scalar,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.type&&(o.type=e.type),null!=e.fieldPath&&(o.fieldPath=e.fieldPath),null!=e.values&&(o.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.toGRPC(e.values,t)),null!=e.ranges&&(o.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.toGRPC(e.ranges,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.toGRPC(e.scalar,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedAggregationResults;return null!=e.name?o.name=e.name:o.name="",null!=e.type?o.type=e.type:o.type="UNKNOWN_AGGREGATION_TYPE",null!=e.fieldPath?o.fieldPath=e.fieldPath:o.fieldPath="",null!=e.values?o.values=$root.wix.common.AggregationData.AggregationResults.ValueResults.fromGRPC(e.values,t):delete o.values,null!=e.ranges?o.ranges=$root.wix.common.AggregationData.AggregationResults.RangeResults.fromGRPC(e.ranges,t):delete o.ranges,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,o}}}return __builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedAggregationResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedAggregationResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedAggregationResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedAggregationResults}(),AggregationResults.NestedResults=function(){class NestedResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.NestedResults.Results.fromGRPC(e,t)):o.results=[],o}}}return NestedResults.ValueResult=function(){class ValueResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.count?n.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?o.value=e.value:o.value="",null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(ValueResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ValueResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ValueResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueResult}(),NestedResults.RangeResult=function(){class RangeResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete o.count,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(RangeResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.RangeResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.RangeResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeResult}(),NestedResults.ScalarResult=function(){class ScalarResult{constructor(e){this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=null==e.value?e.value:isNaN(e.value)?"NaN":isFinite(e.value)?e.value:e.value.toString():o&&(t.value=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value="NaN"===e.value?NaN:"Infinity"===e.value?1/0:"-Infinity"===e.value?-1/0:e.value:!1!==o?t.value=0:delete t.value,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value=e.value:t.value=0,t}}}return __builtIn.Object.defineProperty(ScalarResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarResult}(),NestedResults.NestedResultValue=function(){class NestedResultValue{constructor(e){this.value=e&&e.value,this.range=e&&e.range,this.scalar=e&&e.scalar,this.dateHistogram=e&&e.dateHistogram}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.value,t,o):o&&delete n.value,null!=e.range?n.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toJSON(e.range,t,o):o&&delete n.range,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromJSON(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromJSON(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.dateHistogram,t):delete o.dateHistogram,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.value,t)),null!=e.range&&(o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toGRPC(e.range,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toGRPC(e.scalar,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.dateHistogram,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromGRPC(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,o}}}return __builtIn.Object.defineProperty(NestedResultValue.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedResultValue}(),NestedResults.Results=function(){class Results{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=Object.entries(e.results).reduce((e,[n,l])=>(e[n]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toJSON(l,t,o),e),{}):o&&delete n.results,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromJSON(n,t),e),{}):delete o.results,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toGRPC(n,t),e),{})),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromGRPC(n,t),e),{}):delete o.results,o}}}return __builtIn.Object.defineProperty(Results.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.Results"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.Results",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Results}(),NestedResults.ValueResult=function(){class ValueResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=e.value:o&&(n.value=""),null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?n.value=e.value:!1!==o?n.value="":delete n.value,null!=e.count?n.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete n.count,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=e.value),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult;return null!=e.value?o.value=e.value:o.value="",null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(ValueResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ValueResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ValueResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ValueResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ValueResult}(),NestedResults.RangeResult=function(){class RangeResult{constructor(e){this.from=e&&e.from,this.to=e&&e.to,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.from?n.from=$root.google.protobuf.DoubleValue.toJSON(e.from,t,o):o&&delete n.from,null!=e.to?n.to=$root.google.protobuf.DoubleValue.toJSON(e.to,t,o):o&&delete n.to,null!=e.count?n.count=$root.google.protobuf.Int32Value.toJSON(e.count,t,o):o&&delete n.count,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromJSON(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromJSON(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromJSON(e.count,t):delete o.count,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.from&&(o.from=$root.google.protobuf.DoubleValue.toGRPC(e.from,t)),null!=e.to&&(o.to=$root.google.protobuf.DoubleValue.toGRPC(e.to,t)),null!=e.count&&(o.count=$root.google.protobuf.Int32Value.toGRPC(e.count,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult;return null!=e.from?o.from=$root.google.protobuf.DoubleValue.fromGRPC(e.from,t):delete o.from,null!=e.to?o.to=$root.google.protobuf.DoubleValue.fromGRPC(e.to,t):delete o.to,null!=e.count?o.count=$root.google.protobuf.Int32Value.fromGRPC(e.count,t):delete o.count,o}}}return __builtIn.Object.defineProperty(RangeResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.RangeResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.RangeResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(RangeResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),RangeResult}(),NestedResults.ScalarResult=function(){class ScalarResult{constructor(e){this.value=e&&e.value}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=null==e.value?e.value:isNaN(e.value)?"NaN":isFinite(e.value)?e.value:e.value.toString():o&&(t.value=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value="NaN"===e.value?NaN:"Infinity"===e.value?1/0:"-Infinity"===e.value?-1/0:e.value:!1!==o?t.value=0:delete t.value,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult;return null!=e.value?t.value=e.value:t.value=0,t}}}return __builtIn.Object.defineProperty(ScalarResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ScalarResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ScalarResult}(),NestedResults.NestedResultValue=function(){class NestedResultValue{constructor(e){this.value=e&&e.value,this.range=e&&e.range,this.scalar=e&&e.scalar,this.dateHistogram=e&&e.dateHistogram}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.value?n.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.value,t,o):o&&delete n.value,null!=e.range?n.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toJSON(e.range,t,o):o&&delete n.range,null!=e.scalar?n.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toJSON(e.scalar,t,o):o&&delete n.scalar,null!=e.dateHistogram?n.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toJSON(e.dateHistogram,t,o):o&&delete n.dateHistogram,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromJSON(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromJSON(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromJSON(e.dateHistogram,t):delete o.dateHistogram,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.value&&(o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.value,t)),null!=e.range&&(o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.toGRPC(e.range,t)),null!=e.scalar&&(o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.toGRPC(e.scalar,t)),null!=e.dateHistogram&&(o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.toGRPC(e.dateHistogram,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue;return null!=e.value?o.value=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.value,t):delete o.value,null!=e.range?o.range=$root.wix.common.AggregationData.AggregationResults.NestedResults.RangeResult.fromGRPC(e.range,t):delete o.range,null!=e.scalar?o.scalar=$root.wix.common.AggregationData.AggregationResults.NestedResults.ScalarResult.fromGRPC(e.scalar,t):delete o.scalar,null!=e.dateHistogram?o.dateHistogram=$root.wix.common.AggregationData.AggregationResults.NestedResults.ValueResult.fromGRPC(e.dateHistogram,t):delete o.dateHistogram,o}}}return __builtIn.Object.defineProperty(NestedResultValue.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResultValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedResultValue}(),NestedResults.Results=function(){class Results{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=Object.entries(e.results).reduce((e,[n,l])=>(e[n]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toJSON(l,t,o),e),{}):o&&delete n.results,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromJSON(n,t),e),{}):delete o.results,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.toGRPC(n,t),e),{})),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.NestedResults.Results;return null!=e.results?o.results=Object.entries(e.results).reduce((e,[o,n])=>(e[o]=$root.wix.common.AggregationData.AggregationResults.NestedResults.NestedResultValue.fromGRPC(n,t),e),{}):delete o.results,o}}}return __builtIn.Object.defineProperty(Results.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults.Results"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults.Results",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Results.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Results}(),__builtIn.Object.defineProperty(NestedResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.NestedResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.NestedResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NestedResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NestedResults}(),AggregationResults.DateHistogramResults=function(){class DateHistogramResults{constructor(e){this.results=e&&e.results}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.results?n.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.toJSON(e,t,o)):o&&(n.results=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults;return null!=e.results?n.results=Array.isArray(e.results)?e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.fromJSON(e,t)):e.results:!1!==o?n.results=[]:delete n.results,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.results&&(o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults;return null!=e.results?o.results=e.results.map(e=>$root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult.fromGRPC(e,t)):o.results=[],o}}}return DateHistogramResults.DateHistogramResult=function(){class DateHistogramResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(DateHistogramResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramResult}(),DateHistogramResults.DateHistogramResult=function(){class DateHistogramResult{constructor(e){this.value=e&&e.value,this.count=e&&e.count}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.value?t.value=e.value:o&&(t.value=""),null!=e.count?t.count=e.count:o&&(t.count=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:!1!==o?t.value="":delete t.value,null!=e.count?t.count=e.count:!1!==o?t.count=0:delete t.count,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.value&&(t.value=e.value),null!=e.count&&(t.count=e.count),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult;return null!=e.value?t.value=e.value:t.value="",null!=e.count?t.count=e.count:t.count=0,t}}}return __builtIn.Object.defineProperty(DateHistogramResult.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.DateHistogramResults.DateHistogramResult",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResult.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramResult}(),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults.DateHistogramResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults.DateHistogramResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DateHistogramResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DateHistogramResults}(),__builtIn.Object.defineProperty(AggregationResults.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData.AggregationResults"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AggregationResults.prototype,"__fqn__",{value:"wix.common.AggregationData.AggregationResults",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AggregationResults.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AggregationResults.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),AggregationResults}(),__builtIn.Object.defineProperty(AggregationData.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AggregationData"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AggregationData.prototype,"__fqn__",{value:"wix.common.AggregationData",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AggregationData.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AggregationData.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),AggregationData}(),e.Sorting=function(){class Sorting{constructor(e){this.fieldName=e&&e.fieldName,this.order=e&&e.order,this.selectItemsBy=e&&e.selectItemsBy}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.fieldName?n.fieldName=e.fieldName:o&&(n.fieldName=""),null!=e.order?n.order=$root.wix.common.SortOrder[e.order]:o&&(n.order="ASC"),null!=e.selectItemsBy?n.selectItemsBy=e.selectItemsBy.map(e=>$root.google.protobuf.Struct.toJSON(e,t,o)):o&&(n.selectItemsBy=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.Sorting;return null!=e.fieldName?n.fieldName=e.fieldName:!1!==o?n.fieldName="":delete n.fieldName,null!=e.order?n.order="string"==typeof e.order?e.order:$root.wix.common.SortOrder[e.order]:!1!==o?n.order="ASC":delete n.order,null!=e.selectItemsBy?n.selectItemsBy=Array.isArray(e.selectItemsBy)?e.selectItemsBy.map(e=>$root.google.protobuf.Struct.fromJSON(e,t)):e.selectItemsBy:!1!==o?n.selectItemsBy=[]:delete n.selectItemsBy,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.fieldName&&(o.fieldName=e.fieldName),null!=e.order&&(o.order=e.order),null!=e.selectItemsBy&&(o.selectItemsBy=e.selectItemsBy.map(e=>$root.google.protobuf.Struct.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.Sorting;return null!=e.fieldName?o.fieldName=e.fieldName:o.fieldName="",null!=e.order?o.order=e.order:o.order="ASC",null!=e.selectItemsBy?o.selectItemsBy=e.selectItemsBy.map(e=>$root.google.protobuf.Struct.fromGRPC(e,t)):o.selectItemsBy=[],o}}}return __builtIn.Object.defineProperty(Sorting.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.Sorting"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Sorting.prototype,"__fqn__",{value:"wix.common.Sorting",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Sorting.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Sorting.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Sorting}(),e.SortOrder={ASC:"ASC",0:"ASC",DESC:"DESC",1:"DESC"},e.spi=function(){const e={};return e.SpiBaseUri=function(){class SpiBaseUri{constructor(e){this.baseUri=e&&e.baseUri,this.alternativeUris=e&&e.alternativeUris}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.baseUri?n.baseUri=e.baseUri:o&&(n.baseUri=""),null!=e.alternativeUris?n.alternativeUris=e.alternativeUris.map(e=>$root.wix.common.spi.SpiBaseUri.AlternativeUri.toJSON(e,t,o)):o&&(n.alternativeUris=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.spi.SpiBaseUri;return null!=e.baseUri?n.baseUri=e.baseUri:!1!==o?n.baseUri="":delete n.baseUri,null!=e.alternativeUris?n.alternativeUris=Array.isArray(e.alternativeUris)?e.alternativeUris.map(e=>$root.wix.common.spi.SpiBaseUri.AlternativeUri.fromJSON(e,t)):e.alternativeUris:!1!==o?n.alternativeUris=[]:delete n.alternativeUris,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.baseUri&&(o.baseUri=e.baseUri),null!=e.alternativeUris&&(o.alternativeUris=e.alternativeUris.map(e=>$root.wix.common.spi.SpiBaseUri.AlternativeUri.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.spi.SpiBaseUri;return null!=e.baseUri?o.baseUri=e.baseUri:o.baseUri="",null!=e.alternativeUris?o.alternativeUris=e.alternativeUris.map(e=>$root.wix.common.spi.SpiBaseUri.AlternativeUri.fromGRPC(e,t)):o.alternativeUris=[],o}}}return SpiBaseUri.AlternativeUri=function(){class AlternativeUri{constructor(e){this.methodName=e&&e.methodName,this.absoluteUri=e&&e.absoluteUri}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.methodName?t.methodName=e.methodName:o&&(t.methodName=""),null!=e.absoluteUri?t.absoluteUri=e.absoluteUri:o&&(t.absoluteUri=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.spi.SpiBaseUri.AlternativeUri;return null!=e.methodName?t.methodName=e.methodName:!1!==o?t.methodName="":delete t.methodName,null!=e.absoluteUri?t.absoluteUri=e.absoluteUri:!1!==o?t.absoluteUri="":delete t.absoluteUri,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.methodName&&(t.methodName=e.methodName),null!=e.absoluteUri&&(t.absoluteUri=e.absoluteUri),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.spi.SpiBaseUri.AlternativeUri;return null!=e.methodName?t.methodName=e.methodName:t.methodName="",null!=e.absoluteUri?t.absoluteUri=e.absoluteUri:t.absoluteUri="",t}}}return __builtIn.Object.defineProperty(AlternativeUri.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.spi.SpiBaseUri.AlternativeUri"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AlternativeUri.prototype,"__fqn__",{value:"wix.common.spi.SpiBaseUri.AlternativeUri",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AlternativeUri.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AlternativeUri.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),AlternativeUri}(),SpiBaseUri.AlternativeUri=function(){class AlternativeUri{constructor(e){this.methodName=e&&e.methodName,this.absoluteUri=e&&e.absoluteUri}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.methodName?t.methodName=e.methodName:o&&(t.methodName=""),null!=e.absoluteUri?t.absoluteUri=e.absoluteUri:o&&(t.absoluteUri=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.spi.SpiBaseUri.AlternativeUri;return null!=e.methodName?t.methodName=e.methodName:!1!==o?t.methodName="":delete t.methodName,null!=e.absoluteUri?t.absoluteUri=e.absoluteUri:!1!==o?t.absoluteUri="":delete t.absoluteUri,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.methodName&&(t.methodName=e.methodName),null!=e.absoluteUri&&(t.absoluteUri=e.absoluteUri),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.spi.SpiBaseUri.AlternativeUri;return null!=e.methodName?t.methodName=e.methodName:t.methodName="",null!=e.absoluteUri?t.absoluteUri=e.absoluteUri:t.absoluteUri="",t}}}return __builtIn.Object.defineProperty(AlternativeUri.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.spi.SpiBaseUri.AlternativeUri"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AlternativeUri.prototype,"__fqn__",{value:"wix.common.spi.SpiBaseUri.AlternativeUri",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AlternativeUri.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AlternativeUri.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),AlternativeUri}(),__builtIn.Object.defineProperty(SpiBaseUri.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.spi.SpiBaseUri"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SpiBaseUri.prototype,"__fqn__",{value:"wix.common.spi.SpiBaseUri",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SpiBaseUri.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SpiBaseUri.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),SpiBaseUri}(),e.Context=function(){class Context{constructor(e){this.requestId=e&&e.requestId,this.currency=e&&e.currency,this.identity=e&&e.identity,this.languages=e&&e.languages,this.instanceId=e&&e.instanceId,this.appExtensionId=e&&e.appExtensionId,this.appExtensionType=e&&e.appExtensionType,this.functionName=e&&e.functionName}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.requestId?n.requestId=$root.google.protobuf.StringValue.toJSON(e.requestId,t,o):o&&delete n.requestId,null!=e.currency?n.currency=$root.google.protobuf.StringValue.toJSON(e.currency,t,o):o&&delete n.currency,null!=e.identity?n.identity=$root.wix.common.spi.Context.IdentificationData.toJSON(e.identity,t,o):o&&delete n.identity,null!=e.languages?n.languages=e.languages.map(e=>e):o&&(n.languages=[]),null!=e.instanceId?n.instanceId=$root.google.protobuf.StringValue.toJSON(e.instanceId,t,o):o&&delete n.instanceId,null!=e.appExtensionId?n.appExtensionId=$root.google.protobuf.StringValue.toJSON(e.appExtensionId,t,o):o&&delete n.appExtensionId,null!=e.appExtensionType?n.appExtensionType=$root.google.protobuf.StringValue.toJSON(e.appExtensionType,t,o):o&&delete n.appExtensionType,null!=e.functionName?n.functionName=$root.google.protobuf.StringValue.toJSON(e.functionName,t,o):o&&delete n.functionName,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.spi.Context;return null!=e.requestId?n.requestId=$root.google.protobuf.StringValue.fromJSON(e.requestId,t):delete n.requestId,null!=e.currency?n.currency=$root.google.protobuf.StringValue.fromJSON(e.currency,t):delete n.currency,null!=e.identity?n.identity=$root.wix.common.spi.Context.IdentificationData.fromJSON(e.identity,t):delete n.identity,null!=e.languages?n.languages=Array.isArray(e.languages)?e.languages.map(e=>e):e.languages:!1!==o?n.languages=[]:delete n.languages,null!=e.instanceId?n.instanceId=$root.google.protobuf.StringValue.fromJSON(e.instanceId,t):delete n.instanceId,null!=e.appExtensionId?n.appExtensionId=$root.google.protobuf.StringValue.fromJSON(e.appExtensionId,t):delete n.appExtensionId,null!=e.appExtensionType?n.appExtensionType=$root.google.protobuf.StringValue.fromJSON(e.appExtensionType,t):delete n.appExtensionType,null!=e.functionName?n.functionName=$root.google.protobuf.StringValue.fromJSON(e.functionName,t):delete n.functionName,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.requestId&&(o.requestId=$root.google.protobuf.StringValue.toGRPC(e.requestId,t)),null!=e.currency&&(o.currency=$root.google.protobuf.StringValue.toGRPC(e.currency,t)),null!=e.identity&&(o.identity=$root.wix.common.spi.Context.IdentificationData.toGRPC(e.identity,t)),null!=e.languages&&(o.languages=e.languages.map(e=>e)),null!=e.instanceId&&(o.instanceId=$root.google.protobuf.StringValue.toGRPC(e.instanceId,t)),null!=e.appExtensionId&&(o.appExtensionId=$root.google.protobuf.StringValue.toGRPC(e.appExtensionId,t)),null!=e.appExtensionType&&(o.appExtensionType=$root.google.protobuf.StringValue.toGRPC(e.appExtensionType,t)),null!=e.functionName&&(o.functionName=$root.google.protobuf.StringValue.toGRPC(e.functionName,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.spi.Context;return null!=e.requestId?o.requestId=$root.google.protobuf.StringValue.fromGRPC(e.requestId,t):delete o.requestId,null!=e.currency?o.currency=$root.google.protobuf.StringValue.fromGRPC(e.currency,t):delete o.currency,null!=e.identity?o.identity=$root.wix.common.spi.Context.IdentificationData.fromGRPC(e.identity,t):delete o.identity,null!=e.languages?o.languages=e.languages.map(e=>e):o.languages=[],null!=e.instanceId?o.instanceId=$root.google.protobuf.StringValue.fromGRPC(e.instanceId,t):delete o.instanceId,null!=e.appExtensionId?o.appExtensionId=$root.google.protobuf.StringValue.fromGRPC(e.appExtensionId,t):delete o.appExtensionId,null!=e.appExtensionType?o.appExtensionType=$root.google.protobuf.StringValue.fromGRPC(e.appExtensionType,t):delete o.appExtensionType,null!=e.functionName?o.functionName=$root.google.protobuf.StringValue.fromGRPC(e.functionName,t):delete o.functionName,o}}}return Context.IdentificationData=function(){class IdentificationData{constructor(e){this.identityType=e&&e.identityType,this.anonymousVisitorId=e&&e.anonymousVisitorId,this.memberId=e&&e.memberId,this.wixUserId=e&&e.wixUserId,this.appId=e&&e.appId}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.identityType?t.identityType=$root.wix.common.spi.Context.IdentificationData.IdentityType[e.identityType]:o&&(t.identityType="UNKNOWN"),null!=e.anonymousVisitorId?t.anonymousVisitorId=e.anonymousVisitorId:o&&delete t.anonymousVisitorId,null!=e.memberId?t.memberId=e.memberId:o&&delete t.memberId,null!=e.wixUserId?t.wixUserId=e.wixUserId:o&&delete t.wixUserId,null!=e.appId?t.appId=e.appId:o&&delete t.appId,t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.spi.Context.IdentificationData;return null!=e.identityType?t.identityType="string"==typeof e.identityType?e.identityType:$root.wix.common.spi.Context.IdentificationData.IdentityType[e.identityType]:!1!==o?t.identityType="UNKNOWN":delete t.identityType,null!=e.anonymousVisitorId?t.anonymousVisitorId=e.anonymousVisitorId:delete t.anonymousVisitorId,null!=e.memberId?t.memberId=e.memberId:delete t.memberId,null!=e.wixUserId?t.wixUserId=e.wixUserId:delete t.wixUserId,null!=e.appId?t.appId=e.appId:delete t.appId,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.identityType&&(t.identityType=e.identityType),null!=e.anonymousVisitorId&&(t.anonymousVisitorId=e.anonymousVisitorId),null!=e.memberId&&(t.memberId=e.memberId),null!=e.wixUserId&&(t.wixUserId=e.wixUserId),null!=e.appId&&(t.appId=e.appId),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.spi.Context.IdentificationData;return null!=e.identityType?t.identityType=e.identityType:t.identityType="UNKNOWN",null!=e.anonymousVisitorId?t.anonymousVisitorId=e.anonymousVisitorId:delete t.anonymousVisitorId,null!=e.memberId?t.memberId=e.memberId:delete t.memberId,null!=e.wixUserId?t.wixUserId=e.wixUserId:delete t.wixUserId,null!=e.appId?t.appId=e.appId:delete t.appId,t}}}return IdentificationData.IdentityType={UNKNOWN:"UNKNOWN",0:"UNKNOWN",ANONYMOUS_VISITOR:"ANONYMOUS_VISITOR",1:"ANONYMOUS_VISITOR",MEMBER:"MEMBER",2:"MEMBER",WIX_USER:"WIX_USER",3:"WIX_USER",APP:"APP",4:"APP"},IdentificationData.IdentityType={UNKNOWN:"UNKNOWN",0:"UNKNOWN",ANONYMOUS_VISITOR:"ANONYMOUS_VISITOR",1:"ANONYMOUS_VISITOR",MEMBER:"MEMBER",2:"MEMBER",WIX_USER:"WIX_USER",3:"WIX_USER",APP:"APP",4:"APP"},__builtIn.Object.defineProperty(IdentificationData.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.spi.Context.IdentificationData"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IdentificationData.prototype,"__fqn__",{value:"wix.common.spi.Context.IdentificationData",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IdentificationData.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IdentificationData.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),IdentificationData}(),Context.IdentificationData=function(){class IdentificationData{constructor(e){this.identityType=e&&e.identityType,this.anonymousVisitorId=e&&e.anonymousVisitorId,this.memberId=e&&e.memberId,this.wixUserId=e&&e.wixUserId,this.appId=e&&e.appId}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.identityType?t.identityType=$root.wix.common.spi.Context.IdentificationData.IdentityType[e.identityType]:o&&(t.identityType="UNKNOWN"),null!=e.anonymousVisitorId?t.anonymousVisitorId=e.anonymousVisitorId:o&&delete t.anonymousVisitorId,null!=e.memberId?t.memberId=e.memberId:o&&delete t.memberId,null!=e.wixUserId?t.wixUserId=e.wixUserId:o&&delete t.wixUserId,null!=e.appId?t.appId=e.appId:o&&delete t.appId,t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.spi.Context.IdentificationData;return null!=e.identityType?t.identityType="string"==typeof e.identityType?e.identityType:$root.wix.common.spi.Context.IdentificationData.IdentityType[e.identityType]:!1!==o?t.identityType="UNKNOWN":delete t.identityType,null!=e.anonymousVisitorId?t.anonymousVisitorId=e.anonymousVisitorId:delete t.anonymousVisitorId,null!=e.memberId?t.memberId=e.memberId:delete t.memberId,null!=e.wixUserId?t.wixUserId=e.wixUserId:delete t.wixUserId,null!=e.appId?t.appId=e.appId:delete t.appId,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.identityType&&(t.identityType=e.identityType),null!=e.anonymousVisitorId&&(t.anonymousVisitorId=e.anonymousVisitorId),null!=e.memberId&&(t.memberId=e.memberId),null!=e.wixUserId&&(t.wixUserId=e.wixUserId),null!=e.appId&&(t.appId=e.appId),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.spi.Context.IdentificationData;return null!=e.identityType?t.identityType=e.identityType:t.identityType="UNKNOWN",null!=e.anonymousVisitorId?t.anonymousVisitorId=e.anonymousVisitorId:delete t.anonymousVisitorId,null!=e.memberId?t.memberId=e.memberId:delete t.memberId,null!=e.wixUserId?t.wixUserId=e.wixUserId:delete t.wixUserId,null!=e.appId?t.appId=e.appId:delete t.appId,t}}}return IdentificationData.IdentityType={UNKNOWN:"UNKNOWN",0:"UNKNOWN",ANONYMOUS_VISITOR:"ANONYMOUS_VISITOR",1:"ANONYMOUS_VISITOR",MEMBER:"MEMBER",2:"MEMBER",WIX_USER:"WIX_USER",3:"WIX_USER",APP:"APP",4:"APP"},IdentificationData.IdentityType={UNKNOWN:"UNKNOWN",0:"UNKNOWN",ANONYMOUS_VISITOR:"ANONYMOUS_VISITOR",1:"ANONYMOUS_VISITOR",MEMBER:"MEMBER",2:"MEMBER",WIX_USER:"WIX_USER",3:"WIX_USER",APP:"APP",4:"APP"},__builtIn.Object.defineProperty(IdentificationData.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.spi.Context.IdentificationData"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IdentificationData.prototype,"__fqn__",{value:"wix.common.spi.Context.IdentificationData",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IdentificationData.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(IdentificationData.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),IdentificationData}(),__builtIn.Object.defineProperty(Context.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.spi.Context"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Context.prototype,"__fqn__",{value:"wix.common.spi.Context",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Context.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Context.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Context}(),e}(),e.tags=function(){const e={};return e.Tags=function(){class Tags{constructor(e){this.privateTags=e&&e.privateTags,this.tags=e&&e.tags}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.privateTags?n.privateTags=$root.wix.common.tags.Tags.TagList.toJSON(e.privateTags,t,o):o&&delete n.privateTags,null!=e.tags?n.tags=$root.wix.common.tags.Tags.TagList.toJSON(e.tags,t,o):o&&delete n.tags,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.tags.Tags;return null!=e.privateTags?o.privateTags=$root.wix.common.tags.Tags.TagList.fromJSON(e.privateTags,t):delete o.privateTags,null!=e.tags?o.tags=$root.wix.common.tags.Tags.TagList.fromJSON(e.tags,t):delete o.tags,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.privateTags&&(o.privateTags=$root.wix.common.tags.Tags.TagList.toGRPC(e.privateTags,t)),null!=e.tags&&(o.tags=$root.wix.common.tags.Tags.TagList.toGRPC(e.tags,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.tags.Tags;return null!=e.privateTags?o.privateTags=$root.wix.common.tags.Tags.TagList.fromGRPC(e.privateTags,t):delete o.privateTags,null!=e.tags?o.tags=$root.wix.common.tags.Tags.TagList.fromGRPC(e.tags,t):delete o.tags,o}}}return Tags.TagList=function(){class TagList{constructor(e){this.tagIds=e&&e.tagIds}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.tagIds?t.tagIds=e.tagIds.map(e=>e):o&&(t.tagIds=[]),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.tags.Tags.TagList;return null!=e.tagIds?t.tagIds=Array.isArray(e.tagIds)?e.tagIds.map(e=>e):e.tagIds:!1!==o?t.tagIds=[]:delete t.tagIds,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.tagIds&&(t.tagIds=e.tagIds.map(e=>e)),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.tags.Tags.TagList;return null!=e.tagIds?t.tagIds=e.tagIds.map(e=>e):t.tagIds=[],t}}}return __builtIn.Object.defineProperty(TagList.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.tags.Tags.TagList"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TagList.prototype,"__fqn__",{value:"wix.common.tags.Tags.TagList",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TagList.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TagList.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),TagList}(),Tags.TagList=function(){class TagList{constructor(e){this.tagIds=e&&e.tagIds}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.tagIds?t.tagIds=e.tagIds.map(e=>e):o&&(t.tagIds=[]),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.tags.Tags.TagList;return null!=e.tagIds?t.tagIds=Array.isArray(e.tagIds)?e.tagIds.map(e=>e):e.tagIds:!1!==o?t.tagIds=[]:delete t.tagIds,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.tagIds&&(t.tagIds=e.tagIds.map(e=>e)),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.tags.Tags.TagList;return null!=e.tagIds?t.tagIds=e.tagIds.map(e=>e):t.tagIds=[],t}}}return __builtIn.Object.defineProperty(TagList.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.tags.Tags.TagList"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TagList.prototype,"__fqn__",{value:"wix.common.tags.Tags.TagList",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TagList.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TagList.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),TagList}(),__builtIn.Object.defineProperty(Tags.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.tags.Tags"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Tags.prototype,"__fqn__",{value:"wix.common.tags.Tags",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Tags.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Tags.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Tags}(),e.PublicTags=function(){class PublicTags{constructor(e){this.tags=e&&e.tags}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.tags?n.tags=$root.wix.common.tags.PublicTags.TagList.toJSON(e.tags,t,o):o&&delete n.tags,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.tags.PublicTags;return null!=e.tags?o.tags=$root.wix.common.tags.PublicTags.TagList.fromJSON(e.tags,t):delete o.tags,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.tags&&(o.tags=$root.wix.common.tags.PublicTags.TagList.toGRPC(e.tags,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.tags.PublicTags;return null!=e.tags?o.tags=$root.wix.common.tags.PublicTags.TagList.fromGRPC(e.tags,t):delete o.tags,o}}}return PublicTags.TagList=function(){class TagList{constructor(e){this.tagIds=e&&e.tagIds}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.tagIds?t.tagIds=e.tagIds.map(e=>e):o&&(t.tagIds=[]),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.tags.PublicTags.TagList;return null!=e.tagIds?t.tagIds=Array.isArray(e.tagIds)?e.tagIds.map(e=>e):e.tagIds:!1!==o?t.tagIds=[]:delete t.tagIds,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.tagIds&&(t.tagIds=e.tagIds.map(e=>e)),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.tags.PublicTags.TagList;return null!=e.tagIds?t.tagIds=e.tagIds.map(e=>e):t.tagIds=[],t}}}return __builtIn.Object.defineProperty(TagList.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.tags.PublicTags.TagList"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TagList.prototype,"__fqn__",{value:"wix.common.tags.PublicTags.TagList",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TagList.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TagList.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),TagList}(),PublicTags.TagList=function(){class TagList{constructor(e){this.tagIds=e&&e.tagIds}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.tagIds?t.tagIds=e.tagIds.map(e=>e):o&&(t.tagIds=[]),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.tags.PublicTags.TagList;return null!=e.tagIds?t.tagIds=Array.isArray(e.tagIds)?e.tagIds.map(e=>e):e.tagIds:!1!==o?t.tagIds=[]:delete t.tagIds,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.tagIds&&(t.tagIds=e.tagIds.map(e=>e)),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.tags.PublicTags.TagList;return null!=e.tagIds?t.tagIds=e.tagIds.map(e=>e):t.tagIds=[],t}}}return __builtIn.Object.defineProperty(TagList.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.tags.PublicTags.TagList"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TagList.prototype,"__fqn__",{value:"wix.common.tags.PublicTags.TagList",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TagList.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TagList.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),TagList}(),__builtIn.Object.defineProperty(PublicTags.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.tags.PublicTags"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PublicTags.prototype,"__fqn__",{value:"wix.common.tags.PublicTags",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PublicTags.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PublicTags.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),PublicTags}(),e}(),e.WixLink=function(){class WixLink{constructor(e){this.external=e&&e.external,this.page=e&&e.page,this.anchor=e&&e.anchor,this.dynamicPage=e&&e.dynamicPage,this.document=e&&e.document,this.email=e&&e.email,this.phone=e&&e.phone,this.address=e&&e.address,this.whatsApp=e&&e.whatsApp,this.tpaPage=e&&e.tpaPage}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.external?n.external=$root.wix.common.ExternalLink.toJSON(e.external,t,o):o&&delete n.external,null!=e.page?n.page=$root.wix.common.PageLink.toJSON(e.page,t,o):o&&delete n.page,null!=e.anchor?n.anchor=$root.wix.common.AnchorLink.toJSON(e.anchor,t,o):o&&delete n.anchor,null!=e.dynamicPage?n.dynamicPage=$root.wix.common.DynamicPageLink.toJSON(e.dynamicPage,t,o):o&&delete n.dynamicPage,null!=e.document?n.document=$root.wix.common.DocumentLink.toJSON(e.document,t,o):o&&delete n.document,null!=e.email?n.email=$root.wix.common.EmailLink.toJSON(e.email,t,o):o&&delete n.email,null!=e.phone?n.phone=$root.wix.common.PhoneLink.toJSON(e.phone,t,o):o&&delete n.phone,null!=e.address?n.address=$root.wix.common.AddressLink.toJSON(e.address,t,o):o&&delete n.address,null!=e.whatsApp?n.whatsApp=$root.wix.common.WhatsAppLink.toJSON(e.whatsApp,t,o):o&&delete n.whatsApp,null!=e.tpaPage?n.tpaPage=$root.wix.common.TpaPageLink.toJSON(e.tpaPage,t,o):o&&delete n.tpaPage,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.common.WixLink;return null!=e.external?o.external=$root.wix.common.ExternalLink.fromJSON(e.external,t):delete o.external,null!=e.page?o.page=$root.wix.common.PageLink.fromJSON(e.page,t):delete o.page,null!=e.anchor?o.anchor=$root.wix.common.AnchorLink.fromJSON(e.anchor,t):delete o.anchor,null!=e.dynamicPage?o.dynamicPage=$root.wix.common.DynamicPageLink.fromJSON(e.dynamicPage,t):delete o.dynamicPage,null!=e.document?o.document=$root.wix.common.DocumentLink.fromJSON(e.document,t):delete o.document,null!=e.email?o.email=$root.wix.common.EmailLink.fromJSON(e.email,t):delete o.email,null!=e.phone?o.phone=$root.wix.common.PhoneLink.fromJSON(e.phone,t):delete o.phone,null!=e.address?o.address=$root.wix.common.AddressLink.fromJSON(e.address,t):delete o.address,null!=e.whatsApp?o.whatsApp=$root.wix.common.WhatsAppLink.fromJSON(e.whatsApp,t):delete o.whatsApp,null!=e.tpaPage?o.tpaPage=$root.wix.common.TpaPageLink.fromJSON(e.tpaPage,t):delete o.tpaPage,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.external&&(o.external=$root.wix.common.ExternalLink.toGRPC(e.external,t)),null!=e.page&&(o.page=$root.wix.common.PageLink.toGRPC(e.page,t)),null!=e.anchor&&(o.anchor=$root.wix.common.AnchorLink.toGRPC(e.anchor,t)),null!=e.dynamicPage&&(o.dynamicPage=$root.wix.common.DynamicPageLink.toGRPC(e.dynamicPage,t)),null!=e.document&&(o.document=$root.wix.common.DocumentLink.toGRPC(e.document,t)),null!=e.email&&(o.email=$root.wix.common.EmailLink.toGRPC(e.email,t)),null!=e.phone&&(o.phone=$root.wix.common.PhoneLink.toGRPC(e.phone,t)),null!=e.address&&(o.address=$root.wix.common.AddressLink.toGRPC(e.address,t)),null!=e.whatsApp&&(o.whatsApp=$root.wix.common.WhatsAppLink.toGRPC(e.whatsApp,t)),null!=e.tpaPage&&(o.tpaPage=$root.wix.common.TpaPageLink.toGRPC(e.tpaPage,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.WixLink;return null!=e.external?o.external=$root.wix.common.ExternalLink.fromGRPC(e.external,t):delete o.external,null!=e.page?o.page=$root.wix.common.PageLink.fromGRPC(e.page,t):delete o.page,null!=e.anchor?o.anchor=$root.wix.common.AnchorLink.fromGRPC(e.anchor,t):delete o.anchor,null!=e.dynamicPage?o.dynamicPage=$root.wix.common.DynamicPageLink.fromGRPC(e.dynamicPage,t):delete o.dynamicPage,null!=e.document?o.document=$root.wix.common.DocumentLink.fromGRPC(e.document,t):delete o.document,null!=e.email?o.email=$root.wix.common.EmailLink.fromGRPC(e.email,t):delete o.email,null!=e.phone?o.phone=$root.wix.common.PhoneLink.fromGRPC(e.phone,t):delete o.phone,null!=e.address?o.address=$root.wix.common.AddressLink.fromGRPC(e.address,t):delete o.address,null!=e.whatsApp?o.whatsApp=$root.wix.common.WhatsAppLink.fromGRPC(e.whatsApp,t):delete o.whatsApp,null!=e.tpaPage?o.tpaPage=$root.wix.common.TpaPageLink.fromGRPC(e.tpaPage,t):delete o.tpaPage,o}}}return __builtIn.Object.defineProperty(WixLink.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.WixLink"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(WixLink.prototype,"__fqn__",{value:"wix.common.WixLink",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(WixLink.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(WixLink.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),WixLink}(),e.ExternalLink=function(){class ExternalLink{constructor(e){this.url=e&&e.url,this.target=e&&e.target,this.rel=e&&e.rel}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.url?n.url=e.url:o&&(n.url=""),null!=e.target?n.target=$root.google.protobuf.StringValue.toJSON(e.target,t,o):o&&delete n.target,null!=e.rel?n.rel=e.rel.map(e=>$root.wix.common.LinkRel[e]):o&&(n.rel=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.ExternalLink;return null!=e.url?n.url=e.url:!1!==o?n.url="":delete n.url,null!=e.target?n.target=$root.google.protobuf.StringValue.fromJSON(e.target,t):delete n.target,null!=e.rel?n.rel=Array.isArray(e.rel)?e.rel.map(e=>"string"==typeof e?e:$root.wix.common.LinkRel[e]):e.rel:!1!==o?n.rel=[]:delete n.rel,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.url&&(o.url=e.url),null!=e.target&&(o.target=$root.google.protobuf.StringValue.toGRPC(e.target,t)),null!=e.rel&&(o.rel=e.rel.map(e=>e)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.ExternalLink;return null!=e.url?o.url=e.url:o.url="",null!=e.target?o.target=$root.google.protobuf.StringValue.fromGRPC(e.target,t):delete o.target,null!=e.rel?o.rel=e.rel.map(e=>e):o.rel=[],o}}}return __builtIn.Object.defineProperty(ExternalLink.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.ExternalLink"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ExternalLink.prototype,"__fqn__",{value:"wix.common.ExternalLink",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ExternalLink.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ExternalLink.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ExternalLink}(),e.PageLink=function(){class PageLink{constructor(e){this.pageId=e&&e.pageId,this.target=e&&e.target,this.rel=e&&e.rel}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.pageId?n.pageId=e.pageId:o&&(n.pageId=""),null!=e.target?n.target=$root.google.protobuf.StringValue.toJSON(e.target,t,o):o&&delete n.target,null!=e.rel?n.rel=e.rel.map(e=>$root.wix.common.LinkRel[e]):o&&(n.rel=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.PageLink;return null!=e.pageId?n.pageId=e.pageId:!1!==o?n.pageId="":delete n.pageId,null!=e.target?n.target=$root.google.protobuf.StringValue.fromJSON(e.target,t):delete n.target,null!=e.rel?n.rel=Array.isArray(e.rel)?e.rel.map(e=>"string"==typeof e?e:$root.wix.common.LinkRel[e]):e.rel:!1!==o?n.rel=[]:delete n.rel,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.pageId&&(o.pageId=e.pageId),null!=e.target&&(o.target=$root.google.protobuf.StringValue.toGRPC(e.target,t)),null!=e.rel&&(o.rel=e.rel.map(e=>e)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.PageLink;return null!=e.pageId?o.pageId=e.pageId:o.pageId="",null!=e.target?o.target=$root.google.protobuf.StringValue.fromGRPC(e.target,t):delete o.target,null!=e.rel?o.rel=e.rel.map(e=>e):o.rel=[],o}}}return __builtIn.Object.defineProperty(PageLink.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.PageLink"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PageLink.prototype,"__fqn__",{value:"wix.common.PageLink",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PageLink.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PageLink.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),PageLink}(),e.AnchorLink=function(){class AnchorLink{constructor(e){this.anchorName=e&&e.anchorName,this.anchorDataId=e&&e.anchorDataId,this.pageId=e&&e.pageId,this.rel=e&&e.rel}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.anchorName?t.anchorName=e.anchorName:o&&(t.anchorName=""),null!=e.anchorDataId?t.anchorDataId=e.anchorDataId:o&&(t.anchorDataId=""),null!=e.pageId?t.pageId=e.pageId:o&&(t.pageId=""),null!=e.rel?t.rel=e.rel.map(e=>$root.wix.common.LinkRel[e]):o&&(t.rel=[]),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AnchorLink;return null!=e.anchorName?t.anchorName=e.anchorName:!1!==o?t.anchorName="":delete t.anchorName,null!=e.anchorDataId?t.anchorDataId=e.anchorDataId:!1!==o?t.anchorDataId="":delete t.anchorDataId,null!=e.pageId?t.pageId=e.pageId:!1!==o?t.pageId="":delete t.pageId,null!=e.rel?t.rel=Array.isArray(e.rel)?e.rel.map(e=>"string"==typeof e?e:$root.wix.common.LinkRel[e]):e.rel:!1!==o?t.rel=[]:delete t.rel,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.anchorName&&(t.anchorName=e.anchorName),null!=e.anchorDataId&&(t.anchorDataId=e.anchorDataId),null!=e.pageId&&(t.pageId=e.pageId),null!=e.rel&&(t.rel=e.rel.map(e=>e)),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AnchorLink;return null!=e.anchorName?t.anchorName=e.anchorName:t.anchorName="",null!=e.anchorDataId?t.anchorDataId=e.anchorDataId:t.anchorDataId="",null!=e.pageId?t.pageId=e.pageId:t.pageId="",null!=e.rel?t.rel=e.rel.map(e=>e):t.rel=[],t}}}return __builtIn.Object.defineProperty(AnchorLink.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AnchorLink"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AnchorLink.prototype,"__fqn__",{value:"wix.common.AnchorLink",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AnchorLink.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AnchorLink.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),AnchorLink}(),e.DynamicPageLink=function(){class DynamicPageLink{constructor(e){this.routerId=e&&e.routerId,this.innerRoute=e&&e.innerRoute,this.anchorDataId=e&&e.anchorDataId,this.rel=e&&e.rel}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.routerId?n.routerId=e.routerId:o&&(n.routerId=""),null!=e.innerRoute?n.innerRoute=e.innerRoute:o&&(n.innerRoute=""),null!=e.anchorDataId?n.anchorDataId=$root.google.protobuf.StringValue.toJSON(e.anchorDataId,t,o):o&&delete n.anchorDataId,null!=e.rel?n.rel=e.rel.map(e=>$root.wix.common.LinkRel[e]):o&&(n.rel=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.DynamicPageLink;return null!=e.routerId?n.routerId=e.routerId:!1!==o?n.routerId="":delete n.routerId,null!=e.innerRoute?n.innerRoute=e.innerRoute:!1!==o?n.innerRoute="":delete n.innerRoute,null!=e.anchorDataId?n.anchorDataId=$root.google.protobuf.StringValue.fromJSON(e.anchorDataId,t):delete n.anchorDataId,null!=e.rel?n.rel=Array.isArray(e.rel)?e.rel.map(e=>"string"==typeof e?e:$root.wix.common.LinkRel[e]):e.rel:!1!==o?n.rel=[]:delete n.rel,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.routerId&&(o.routerId=e.routerId),null!=e.innerRoute&&(o.innerRoute=e.innerRoute),null!=e.anchorDataId&&(o.anchorDataId=$root.google.protobuf.StringValue.toGRPC(e.anchorDataId,t)),null!=e.rel&&(o.rel=e.rel.map(e=>e)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.DynamicPageLink;return null!=e.routerId?o.routerId=e.routerId:o.routerId="",null!=e.innerRoute?o.innerRoute=e.innerRoute:o.innerRoute="",null!=e.anchorDataId?o.anchorDataId=$root.google.protobuf.StringValue.fromGRPC(e.anchorDataId,t):delete o.anchorDataId,null!=e.rel?o.rel=e.rel.map(e=>e):o.rel=[],o}}}return __builtIn.Object.defineProperty(DynamicPageLink.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.DynamicPageLink"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DynamicPageLink.prototype,"__fqn__",{value:"wix.common.DynamicPageLink",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DynamicPageLink.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DynamicPageLink.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DynamicPageLink}(),e.DocumentLink=function(){class DocumentLink{constructor(e){this.docId=e&&e.docId,this.name=e&&e.name,this.indexable=e&&e.indexable}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.docId?n.docId=e.docId:o&&(n.docId=""),null!=e.name?n.name=$root.google.protobuf.StringValue.toJSON(e.name,t,o):o&&delete n.name,null!=e.indexable?n.indexable=e.indexable:o&&(n.indexable=!1),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.DocumentLink;return null!=e.docId?n.docId=e.docId:!1!==o?n.docId="":delete n.docId,null!=e.name?n.name=$root.google.protobuf.StringValue.fromJSON(e.name,t):delete n.name,null!=e.indexable?n.indexable=e.indexable:!1!==o?n.indexable=!1:delete n.indexable,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.docId&&(o.docId=e.docId),null!=e.name&&(o.name=$root.google.protobuf.StringValue.toGRPC(e.name,t)),null!=e.indexable&&(o.indexable=e.indexable),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.DocumentLink;return null!=e.docId?o.docId=e.docId:o.docId="",null!=e.name?o.name=$root.google.protobuf.StringValue.fromGRPC(e.name,t):delete o.name,null!=e.indexable?o.indexable=e.indexable:o.indexable=!1,o}}}return __builtIn.Object.defineProperty(DocumentLink.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.DocumentLink"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DocumentLink.prototype,"__fqn__",{value:"wix.common.DocumentLink",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DocumentLink.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DocumentLink.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DocumentLink}(),e.EmailLink=function(){class EmailLink{constructor(e){this.recipient=e&&e.recipient,this.subject=e&&e.subject,this.body=e&&e.body}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.recipient?n.recipient=e.recipient:o&&(n.recipient=""),null!=e.subject?n.subject=$root.google.protobuf.StringValue.toJSON(e.subject,t,o):o&&delete n.subject,null!=e.body?n.body=$root.google.protobuf.StringValue.toJSON(e.body,t,o):o&&delete n.body,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.common.EmailLink;return null!=e.recipient?n.recipient=e.recipient:!1!==o?n.recipient="":delete n.recipient,null!=e.subject?n.subject=$root.google.protobuf.StringValue.fromJSON(e.subject,t):delete n.subject,null!=e.body?n.body=$root.google.protobuf.StringValue.fromJSON(e.body,t):delete n.body,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.recipient&&(o.recipient=e.recipient),null!=e.subject&&(o.subject=$root.google.protobuf.StringValue.toGRPC(e.subject,t)),null!=e.body&&(o.body=$root.google.protobuf.StringValue.toGRPC(e.body,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.common.EmailLink;return null!=e.recipient?o.recipient=e.recipient:o.recipient="",null!=e.subject?o.subject=$root.google.protobuf.StringValue.fromGRPC(e.subject,t):delete o.subject,null!=e.body?o.body=$root.google.protobuf.StringValue.fromGRPC(e.body,t):delete o.body,o}}}return __builtIn.Object.defineProperty(EmailLink.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.EmailLink"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EmailLink.prototype,"__fqn__",{value:"wix.common.EmailLink",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EmailLink.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EmailLink.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),EmailLink}(),e.PhoneLink=function(){class PhoneLink{constructor(e){this.phoneNumber=e&&e.phoneNumber}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.phoneNumber?t.phoneNumber=e.phoneNumber:o&&(t.phoneNumber=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.PhoneLink;return null!=e.phoneNumber?t.phoneNumber=e.phoneNumber:!1!==o?t.phoneNumber="":delete t.phoneNumber,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.phoneNumber&&(t.phoneNumber=e.phoneNumber),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.PhoneLink;return null!=e.phoneNumber?t.phoneNumber=e.phoneNumber:t.phoneNumber="",t}}}return __builtIn.Object.defineProperty(PhoneLink.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.PhoneLink"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PhoneLink.prototype,"__fqn__",{value:"wix.common.PhoneLink",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PhoneLink.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(PhoneLink.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),PhoneLink}(),e.AddressLink=function(){class AddressLink{constructor(e){this.address=e&&e.address}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.address?t.address=e.address:o&&(t.address=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.AddressLink;return null!=e.address?t.address=e.address:!1!==o?t.address="":delete t.address,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.address&&(t.address=e.address),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.AddressLink;return null!=e.address?t.address=e.address:t.address="",t}}}return __builtIn.Object.defineProperty(AddressLink.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.AddressLink"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AddressLink.prototype,"__fqn__",{value:"wix.common.AddressLink",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AddressLink.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AddressLink.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),AddressLink}(),e.WhatsAppLink=function(){class WhatsAppLink{constructor(e){this.phoneNumber=e&&e.phoneNumber}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.phoneNumber?t.phoneNumber=e.phoneNumber:o&&(t.phoneNumber=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.WhatsAppLink;return null!=e.phoneNumber?t.phoneNumber=e.phoneNumber:!1!==o?t.phoneNumber="":delete t.phoneNumber,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.phoneNumber&&(t.phoneNumber=e.phoneNumber),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.WhatsAppLink;return null!=e.phoneNumber?t.phoneNumber=e.phoneNumber:t.phoneNumber="",t}}}return __builtIn.Object.defineProperty(WhatsAppLink.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.WhatsAppLink"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(WhatsAppLink.prototype,"__fqn__",{value:"wix.common.WhatsAppLink",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(WhatsAppLink.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(WhatsAppLink.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),WhatsAppLink}(),e.TpaPageLink=function(){class TpaPageLink{constructor(e){this.itemTypeIdentifier=e&&e.itemTypeIdentifier,this.itemId=e&&e.itemId,this.pageId=e&&e.pageId,this.appDefinitionId=e&&e.appDefinitionId,this.path=e&&e.path,this.rel=e&&e.rel}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.itemTypeIdentifier?t.itemTypeIdentifier=e.itemTypeIdentifier:o&&(t.itemTypeIdentifier=""),null!=e.itemId?t.itemId=e.itemId:o&&(t.itemId=""),null!=e.pageId?t.pageId=e.pageId:o&&(t.pageId=""),null!=e.appDefinitionId?t.appDefinitionId=e.appDefinitionId:o&&(t.appDefinitionId=""),null!=e.path?t.path=e.path:o&&(t.path=""),null!=e.rel?t.rel=e.rel.map(e=>$root.wix.common.LinkRel[e]):o&&(t.rel=[]),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.common.TpaPageLink;return null!=e.itemTypeIdentifier?t.itemTypeIdentifier=e.itemTypeIdentifier:!1!==o?t.itemTypeIdentifier="":delete t.itemTypeIdentifier,null!=e.itemId?t.itemId=e.itemId:!1!==o?t.itemId="":delete t.itemId,null!=e.pageId?t.pageId=e.pageId:!1!==o?t.pageId="":delete t.pageId,null!=e.appDefinitionId?t.appDefinitionId=e.appDefinitionId:!1!==o?t.appDefinitionId="":delete t.appDefinitionId,null!=e.path?t.path=e.path:!1!==o?t.path="":delete t.path,null!=e.rel?t.rel=Array.isArray(e.rel)?e.rel.map(e=>"string"==typeof e?e:$root.wix.common.LinkRel[e]):e.rel:!1!==o?t.rel=[]:delete t.rel,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemTypeIdentifier&&(t.itemTypeIdentifier=e.itemTypeIdentifier),null!=e.itemId&&(t.itemId=e.itemId),null!=e.pageId&&(t.pageId=e.pageId),null!=e.appDefinitionId&&(t.appDefinitionId=e.appDefinitionId),null!=e.path&&(t.path=e.path),null!=e.rel&&(t.rel=e.rel.map(e=>e)),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.common.TpaPageLink;return null!=e.itemTypeIdentifier?t.itemTypeIdentifier=e.itemTypeIdentifier:t.itemTypeIdentifier="",null!=e.itemId?t.itemId=e.itemId:t.itemId="",null!=e.pageId?t.pageId=e.pageId:t.pageId="",null!=e.appDefinitionId?t.appDefinitionId=e.appDefinitionId:t.appDefinitionId="",null!=e.path?t.path=e.path:t.path="",null!=e.rel?t.rel=e.rel.map(e=>e):t.rel=[],t}}}return __builtIn.Object.defineProperty(TpaPageLink.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.common.TpaPageLink"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TpaPageLink.prototype,"__fqn__",{value:"wix.common.TpaPageLink",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TpaPageLink.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(TpaPageLink.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),TpaPageLink}(),e.LinkRel={unknown_link_rel:"unknown_link_rel",0:"unknown_link_rel",nofollow:"nofollow",1:"nofollow",noopener:"noopener",2:"noopener",noreferrer:"noreferrer",3:"noreferrer",sponsored:"sponsored",4:"sponsored"},e}(),e.dealerOfferEvents=function(){const e={};return e.api=function(){const e={};return e.v1=function(){const e={};return e.DealerOfferEventsService=function(){class DealerOfferEventsService{reportEvent(e,t){throw new TypeError("method reportEvent is abstract")}listEventsSummary(e,t){throw new TypeError("method listEventsSummary is abstract")}queryEvents(e,t){throw new TypeError("method queryEvents is abstract")}}return DealerOfferEventsService.prototype.reportEvent._messageTypes=function(){return[$root.wix.dealerOfferEvents.api.v1.ReportEventRequest,$root.wix.dealerOfferEvents.api.v1.ReportEventResponse]},DealerOfferEventsService.prototype.listEventsSummary._messageTypes=function(){return[$root.wix.dealerOfferEvents.api.v1.ListEventsSummaryRequest,$root.wix.dealerOfferEvents.api.v1.ListEventsSummaryResponse]},DealerOfferEventsService.prototype.queryEvents._messageTypes=function(){return[$root.wix.dealerOfferEvents.api.v1.QueryEventsRequest,$root.wix.dealerOfferEvents.api.v1.QueryEventsResponse]},DealerOfferEventsService.prototype.reportEvent.__proto=e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.DealerOfferEventsService.ReportEvent"),DealerOfferEventsService.prototype.listEventsSummary.__proto=e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.DealerOfferEventsService.ListEventsSummary"),DealerOfferEventsService.prototype.queryEvents.__proto=e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.DealerOfferEventsService.QueryEvents"),__builtIn.Object.defineProperty(DealerOfferEventsService.prototype,"__isRpcService__",{value:!0,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DealerOfferEventsService.prototype,"__fqn__",{value:"wix.dealerOfferEvents.api.v1.DealerOfferEventsService",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DealerOfferEventsService.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.DealerOfferEventsService"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DealerOfferEventsService.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DealerOfferEventsService.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DealerOfferEventsService.prototype,"__filename",{value:__filename,enumerable:!1,configurable:!1}),DealerOfferEventsService}(),e.ReportEventRequest=function(){class ReportEventRequest{constructor(e){this.event=e&&e.event,this.deviantArtUserId=e&&e.deviantArtUserId}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.event?n.event=$root.wix.dealerOfferEvents.api.v1.OfferEvent.toJSON(e.event,t,o):o&&delete n.event,null!=e.deviantArtUserId?n.deviantArtUserId=$root.google.protobuf.StringValue.toJSON(e.deviantArtUserId,t,o):o&&delete n.deviantArtUserId,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.dealerOfferEvents.api.v1.ReportEventRequest;return null!=e.event?o.event=$root.wix.dealerOfferEvents.api.v1.OfferEvent.fromJSON(e.event,t):delete o.event,null!=e.deviantArtUserId?o.deviantArtUserId=$root.google.protobuf.StringValue.fromJSON(e.deviantArtUserId,t):delete o.deviantArtUserId,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.event&&(o.event=$root.wix.dealerOfferEvents.api.v1.OfferEvent.toGRPC(e.event,t)),null!=e.deviantArtUserId&&(o.deviantArtUserId=$root.google.protobuf.StringValue.toGRPC(e.deviantArtUserId,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.dealerOfferEvents.api.v1.ReportEventRequest;return null!=e.event?o.event=$root.wix.dealerOfferEvents.api.v1.OfferEvent.fromGRPC(e.event,t):delete o.event,null!=e.deviantArtUserId?o.deviantArtUserId=$root.google.protobuf.StringValue.fromGRPC(e.deviantArtUserId,t):delete o.deviantArtUserId,o}}}return __builtIn.Object.defineProperty(ReportEventRequest.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.ReportEventRequest"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReportEventRequest.prototype,"__fqn__",{value:"wix.dealerOfferEvents.api.v1.ReportEventRequest",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReportEventRequest.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReportEventRequest.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ReportEventRequest}(),e.ReportEventResponse=function(){class ReportEventResponse{constructor(e){}static toJSON(e,t,o){if(null==e)return null;return{}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;return new $root.wix.dealerOfferEvents.api.v1.ReportEventResponse}static toGRPC(e,t){if(null==e)return null;return{}}static fromGRPC(e,t){if(null==e)return null;return new $root.wix.dealerOfferEvents.api.v1.ReportEventResponse}}return __builtIn.Object.defineProperty(ReportEventResponse.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.ReportEventResponse"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReportEventResponse.prototype,"__fqn__",{value:"wix.dealerOfferEvents.api.v1.ReportEventResponse",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReportEventResponse.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReportEventResponse.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ReportEventResponse}(),e.ListEventsSummaryRequest=function(){class ListEventsSummaryRequest{constructor(e){this.offerIds=e&&e.offerIds,this.campaignIds=e&&e.campaignIds,this.summaryFilter=e&&e.summaryFilter}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.offerIds?n.offerIds=e.offerIds.map(e=>e):o&&(n.offerIds=[]),null!=e.campaignIds?n.campaignIds=e.campaignIds.map(e=>e):o&&(n.campaignIds=[]),null!=e.summaryFilter?n.summaryFilter=$root.wix.dealerOfferEvents.api.v1.SummaryFilter.toJSON(e.summaryFilter,t,o):o&&delete n.summaryFilter,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.dealerOfferEvents.api.v1.ListEventsSummaryRequest;return null!=e.offerIds?n.offerIds=Array.isArray(e.offerIds)?e.offerIds.map(e=>e):e.offerIds:!1!==o?n.offerIds=[]:delete n.offerIds,null!=e.campaignIds?n.campaignIds=Array.isArray(e.campaignIds)?e.campaignIds.map(e=>e):e.campaignIds:!1!==o?n.campaignIds=[]:delete n.campaignIds,null!=e.summaryFilter?n.summaryFilter=$root.wix.dealerOfferEvents.api.v1.SummaryFilter.fromJSON(e.summaryFilter,t):delete n.summaryFilter,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.offerIds&&(o.offerIds=e.offerIds.map(e=>e)),null!=e.campaignIds&&(o.campaignIds=e.campaignIds.map(e=>e)),null!=e.summaryFilter&&(o.summaryFilter=$root.wix.dealerOfferEvents.api.v1.SummaryFilter.toGRPC(e.summaryFilter,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.dealerOfferEvents.api.v1.ListEventsSummaryRequest;return null!=e.offerIds?o.offerIds=e.offerIds.map(e=>e):o.offerIds=[],null!=e.campaignIds?o.campaignIds=e.campaignIds.map(e=>e):o.campaignIds=[],null!=e.summaryFilter?o.summaryFilter=$root.wix.dealerOfferEvents.api.v1.SummaryFilter.fromGRPC(e.summaryFilter,t):delete o.summaryFilter,o}}}return __builtIn.Object.defineProperty(ListEventsSummaryRequest.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.ListEventsSummaryRequest"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListEventsSummaryRequest.prototype,"__fqn__",{value:"wix.dealerOfferEvents.api.v1.ListEventsSummaryRequest",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListEventsSummaryRequest.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListEventsSummaryRequest.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ListEventsSummaryRequest}(),e.SummaryFilter=function(){class SummaryFilter{constructor(e){this.userId=e&&e.userId,this.targetAccountId=e&&e.targetAccountId,this.siteId=e&&e.siteId,this.placementId=e&&e.placementId,this.fieldMask=e&&e.fieldMask}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.userId?n.userId=$root.google.protobuf.StringValue.toJSON(e.userId,t,o):o&&delete n.userId,null!=e.targetAccountId?n.targetAccountId=$root.google.protobuf.StringValue.toJSON(e.targetAccountId,t,o):o&&delete n.targetAccountId,null!=e.siteId?n.siteId=$root.google.protobuf.StringValue.toJSON(e.siteId,t,o):o&&delete n.siteId,null!=e.placementId?n.placementId=$root.google.protobuf.StringValue.toJSON(e.placementId,t,o):o&&delete n.placementId,null!=e.fieldMask?n.fieldMask=$root.google.protobuf.FieldMask.toJSON(e.fieldMask,t,o):o&&delete n.fieldMask,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.dealerOfferEvents.api.v1.SummaryFilter;return null!=e.userId?o.userId=$root.google.protobuf.StringValue.fromJSON(e.userId,t):delete o.userId,null!=e.targetAccountId?o.targetAccountId=$root.google.protobuf.StringValue.fromJSON(e.targetAccountId,t):delete o.targetAccountId,null!=e.siteId?o.siteId=$root.google.protobuf.StringValue.fromJSON(e.siteId,t):delete o.siteId,null!=e.placementId?o.placementId=$root.google.protobuf.StringValue.fromJSON(e.placementId,t):delete o.placementId,null!=e.fieldMask?o.fieldMask=$root.google.protobuf.FieldMask.fromJSON(e.fieldMask,t):delete o.fieldMask,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.userId&&(o.userId=$root.google.protobuf.StringValue.toGRPC(e.userId,t)),null!=e.targetAccountId&&(o.targetAccountId=$root.google.protobuf.StringValue.toGRPC(e.targetAccountId,t)),null!=e.siteId&&(o.siteId=$root.google.protobuf.StringValue.toGRPC(e.siteId,t)),null!=e.placementId&&(o.placementId=$root.google.protobuf.StringValue.toGRPC(e.placementId,t)),null!=e.fieldMask&&(o.fieldMask=$root.google.protobuf.FieldMask.toGRPC(e.fieldMask,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.dealerOfferEvents.api.v1.SummaryFilter;return null!=e.userId?o.userId=$root.google.protobuf.StringValue.fromGRPC(e.userId,t):delete o.userId,null!=e.targetAccountId?o.targetAccountId=$root.google.protobuf.StringValue.fromGRPC(e.targetAccountId,t):delete o.targetAccountId,null!=e.siteId?o.siteId=$root.google.protobuf.StringValue.fromGRPC(e.siteId,t):delete o.siteId,null!=e.placementId?o.placementId=$root.google.protobuf.StringValue.fromGRPC(e.placementId,t):delete o.placementId,null!=e.fieldMask?o.fieldMask=$root.google.protobuf.FieldMask.fromGRPC(e.fieldMask,t):delete o.fieldMask,o}}}return __builtIn.Object.defineProperty(SummaryFilter.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.SummaryFilter"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SummaryFilter.prototype,"__fqn__",{value:"wix.dealerOfferEvents.api.v1.SummaryFilter",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SummaryFilter.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SummaryFilter.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),SummaryFilter}(),e.EventCounts=function(){class EventCounts{constructor(e){this.totalCount=e&&e.totalCount}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.totalCount?n.totalCount=$root.google.protobuf.Int32Value.toJSON(e.totalCount,t,o):o&&delete n.totalCount,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.dealerOfferEvents.api.v1.EventCounts;return null!=e.totalCount?o.totalCount=$root.google.protobuf.Int32Value.fromJSON(e.totalCount,t):delete o.totalCount,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.totalCount&&(o.totalCount=$root.google.protobuf.Int32Value.toGRPC(e.totalCount,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.dealerOfferEvents.api.v1.EventCounts;return null!=e.totalCount?o.totalCount=$root.google.protobuf.Int32Value.fromGRPC(e.totalCount,t):delete o.totalCount,o}}}return __builtIn.Object.defineProperty(EventCounts.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.EventCounts"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EventCounts.prototype,"__fqn__",{value:"wix.dealerOfferEvents.api.v1.EventCounts",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EventCounts.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EventCounts.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),EventCounts}(),e.EventsSummary=function(){class EventsSummary{constructor(e){this.offerId=e&&e.offerId,this.campaignId=e&&e.campaignId,this.lastEvent=e&&e.lastEvent,this.eventsCount=e&&e.eventsCount}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.offerId?n.offerId=$root.google.protobuf.StringValue.toJSON(e.offerId,t,o):o&&delete n.offerId,null!=e.campaignId?n.campaignId=$root.google.protobuf.StringValue.toJSON(e.campaignId,t,o):o&&delete n.campaignId,null!=e.lastEvent?n.lastEvent=Object.entries(e.lastEvent).reduce((e,[n,l])=>(e[n]=$root.wix.dealerOfferEvents.api.v1.OfferEvent.toJSON(l,t,o),e),{}):o&&delete n.lastEvent,null!=e.eventsCount?n.eventsCount=Object.entries(e.eventsCount).reduce((e,[n,l])=>(e[n]=$root.wix.dealerOfferEvents.api.v1.EventCounts.toJSON(l,t,o),e),{}):o&&delete n.eventsCount,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.dealerOfferEvents.api.v1.EventsSummary;return null!=e.offerId?o.offerId=$root.google.protobuf.StringValue.fromJSON(e.offerId,t):delete o.offerId,null!=e.campaignId?o.campaignId=$root.google.protobuf.StringValue.fromJSON(e.campaignId,t):delete o.campaignId,null!=e.lastEvent?o.lastEvent=Object.entries(e.lastEvent).reduce((e,[o,n])=>(e[o]=$root.wix.dealerOfferEvents.api.v1.OfferEvent.fromJSON(n,t),e),{}):delete o.lastEvent,null!=e.eventsCount?o.eventsCount=Object.entries(e.eventsCount).reduce((e,[o,n])=>(e[o]=$root.wix.dealerOfferEvents.api.v1.EventCounts.fromJSON(n,t),e),{}):delete o.eventsCount,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.offerId&&(o.offerId=$root.google.protobuf.StringValue.toGRPC(e.offerId,t)),null!=e.campaignId&&(o.campaignId=$root.google.protobuf.StringValue.toGRPC(e.campaignId,t)),null!=e.lastEvent&&(o.lastEvent=Object.entries(e.lastEvent).reduce((e,[o,n])=>(e[o]=$root.wix.dealerOfferEvents.api.v1.OfferEvent.toGRPC(n,t),e),{})),null!=e.eventsCount&&(o.eventsCount=Object.entries(e.eventsCount).reduce((e,[o,n])=>(e[o]=$root.wix.dealerOfferEvents.api.v1.EventCounts.toGRPC(n,t),e),{})),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.dealerOfferEvents.api.v1.EventsSummary;return null!=e.offerId?o.offerId=$root.google.protobuf.StringValue.fromGRPC(e.offerId,t):delete o.offerId,null!=e.campaignId?o.campaignId=$root.google.protobuf.StringValue.fromGRPC(e.campaignId,t):delete o.campaignId,null!=e.lastEvent?o.lastEvent=Object.entries(e.lastEvent).reduce((e,[o,n])=>(e[o]=$root.wix.dealerOfferEvents.api.v1.OfferEvent.fromGRPC(n,t),e),{}):delete o.lastEvent,null!=e.eventsCount?o.eventsCount=Object.entries(e.eventsCount).reduce((e,[o,n])=>(e[o]=$root.wix.dealerOfferEvents.api.v1.EventCounts.fromGRPC(n,t),e),{}):delete o.eventsCount,o}}}return __builtIn.Object.defineProperty(EventsSummary.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.EventsSummary"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EventsSummary.prototype,"__fqn__",{value:"wix.dealerOfferEvents.api.v1.EventsSummary",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EventsSummary.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EventsSummary.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),EventsSummary}(),e.ListEventsSummaryResponse=function(){class ListEventsSummaryResponse{constructor(e){this.eventsSummary=e&&e.eventsSummary,this.campaignEventsSummary=e&&e.campaignEventsSummary}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.eventsSummary?n.eventsSummary=e.eventsSummary.map(e=>$root.wix.dealerOfferEvents.api.v1.EventsSummary.toJSON(e,t,o)):o&&(n.eventsSummary=[]),null!=e.campaignEventsSummary?n.campaignEventsSummary=e.campaignEventsSummary.map(e=>$root.wix.dealerOfferEvents.api.v1.EventsSummary.toJSON(e,t,o)):o&&(n.campaignEventsSummary=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.dealerOfferEvents.api.v1.ListEventsSummaryResponse;return null!=e.eventsSummary?n.eventsSummary=Array.isArray(e.eventsSummary)?e.eventsSummary.map(e=>$root.wix.dealerOfferEvents.api.v1.EventsSummary.fromJSON(e,t)):e.eventsSummary:!1!==o?n.eventsSummary=[]:delete n.eventsSummary,null!=e.campaignEventsSummary?n.campaignEventsSummary=Array.isArray(e.campaignEventsSummary)?e.campaignEventsSummary.map(e=>$root.wix.dealerOfferEvents.api.v1.EventsSummary.fromJSON(e,t)):e.campaignEventsSummary:!1!==o?n.campaignEventsSummary=[]:delete n.campaignEventsSummary,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.eventsSummary&&(o.eventsSummary=e.eventsSummary.map(e=>$root.wix.dealerOfferEvents.api.v1.EventsSummary.toGRPC(e,t))),null!=e.campaignEventsSummary&&(o.campaignEventsSummary=e.campaignEventsSummary.map(e=>$root.wix.dealerOfferEvents.api.v1.EventsSummary.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.dealerOfferEvents.api.v1.ListEventsSummaryResponse;return null!=e.eventsSummary?o.eventsSummary=e.eventsSummary.map(e=>$root.wix.dealerOfferEvents.api.v1.EventsSummary.fromGRPC(e,t)):o.eventsSummary=[],null!=e.campaignEventsSummary?o.campaignEventsSummary=e.campaignEventsSummary.map(e=>$root.wix.dealerOfferEvents.api.v1.EventsSummary.fromGRPC(e,t)):o.campaignEventsSummary=[],o}}}return __builtIn.Object.defineProperty(ListEventsSummaryResponse.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.ListEventsSummaryResponse"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListEventsSummaryResponse.prototype,"__fqn__",{value:"wix.dealerOfferEvents.api.v1.ListEventsSummaryResponse",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListEventsSummaryResponse.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListEventsSummaryResponse.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ListEventsSummaryResponse}(),e.QueryEventsRequest=function(){class QueryEventsRequest{constructor(e){this.query=e&&e.query}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.query?n.query=$root.wix.common.Query.toJSON(e.query,t,o):o&&delete n.query,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.dealerOfferEvents.api.v1.QueryEventsRequest;return null!=e.query?o.query=$root.wix.common.Query.fromJSON(e.query,t):delete o.query,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.query&&(o.query=$root.wix.common.Query.toGRPC(e.query,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.dealerOfferEvents.api.v1.QueryEventsRequest;return null!=e.query?o.query=$root.wix.common.Query.fromGRPC(e.query,t):delete o.query,o}}}return __builtIn.Object.defineProperty(QueryEventsRequest.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.QueryEventsRequest"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryEventsRequest.prototype,"__fqn__",{value:"wix.dealerOfferEvents.api.v1.QueryEventsRequest",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryEventsRequest.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryEventsRequest.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),QueryEventsRequest}(),e.QueryEventsResponse=function(){class QueryEventsResponse{constructor(e){this.events=e&&e.events,this.pagingMetadata=e&&e.pagingMetadata}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.events?n.events=e.events.map(e=>$root.wix.dealerOfferEvents.api.v1.OfferEvent.toJSON(e,t,o)):o&&(n.events=[]),null!=e.pagingMetadata?n.pagingMetadata=$root.wix.common.PagingMetadata.toJSON(e.pagingMetadata,t,o):o&&delete n.pagingMetadata,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.dealerOfferEvents.api.v1.QueryEventsResponse;return null!=e.events?n.events=Array.isArray(e.events)?e.events.map(e=>$root.wix.dealerOfferEvents.api.v1.OfferEvent.fromJSON(e,t)):e.events:!1!==o?n.events=[]:delete n.events,null!=e.pagingMetadata?n.pagingMetadata=$root.wix.common.PagingMetadata.fromJSON(e.pagingMetadata,t):delete n.pagingMetadata,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.events&&(o.events=e.events.map(e=>$root.wix.dealerOfferEvents.api.v1.OfferEvent.toGRPC(e,t))),null!=e.pagingMetadata&&(o.pagingMetadata=$root.wix.common.PagingMetadata.toGRPC(e.pagingMetadata,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.dealerOfferEvents.api.v1.QueryEventsResponse;return null!=e.events?o.events=e.events.map(e=>$root.wix.dealerOfferEvents.api.v1.OfferEvent.fromGRPC(e,t)):o.events=[],null!=e.pagingMetadata?o.pagingMetadata=$root.wix.common.PagingMetadata.fromGRPC(e.pagingMetadata,t):delete o.pagingMetadata,o}}}return __builtIn.Object.defineProperty(QueryEventsResponse.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.QueryEventsResponse"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryEventsResponse.prototype,"__fqn__",{value:"wix.dealerOfferEvents.api.v1.QueryEventsResponse",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryEventsResponse.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(QueryEventsResponse.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),QueryEventsResponse}(),e.OfferEvent=function(){class OfferEvent{constructor(e){this.offerId=e&&e.offerId,this.userId=e&&e.userId,this.targetAccountId=e&&e.targetAccountId,this.loggedInAccountId=e&&e.loggedInAccountId,this.siteId=e&&e.siteId,this.eventId=e&&e.eventId,this.createdAt=e&&e.createdAt,this.type=e&&e.type,this.agentMark=e&&e.agentMark,this.mainCtaClick=e&&e.mainCtaClick,this.secondaryCtaClick=e&&e.secondaryCtaClick,this.realEstateId=e&&e.realEstateId,this.httpReferrer=e&&e.httpReferrer,this.assetId=e&&e.assetId,this.platform=e&&e.platform}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.offerId?n.offerId=e.offerId:o&&(n.offerId=""),null!=e.userId?n.userId=$root.google.protobuf.StringValue.toJSON(e.userId,t,o):o&&delete n.userId,null!=e.targetAccountId?n.targetAccountId=$root.google.protobuf.StringValue.toJSON(e.targetAccountId,t,o):o&&delete n.targetAccountId,null!=e.loggedInAccountId?n.loggedInAccountId=$root.google.protobuf.StringValue.toJSON(e.loggedInAccountId,t,o):o&&delete n.loggedInAccountId,null!=e.siteId?n.siteId=$root.google.protobuf.StringValue.toJSON(e.siteId,t,o):o&&delete n.siteId,null!=e.eventId?n.eventId=$root.google.protobuf.StringValue.toJSON(e.eventId,t,o):o&&delete n.eventId,null!=e.createdAt?n.createdAt=$root.google.protobuf.Timestamp.toJSON(e.createdAt,t,o):o&&delete n.createdAt,null!=e.type?n.type=$root.wix.dealerOfferEvents.api.v1.EventType[e.type]:o&&(n.type="UNKNOWN"),null!=e.agentMark?n.agentMark=$root.wix.dealerOfferEvents.api.v1.AgentMarkedPayload.toJSON(e.agentMark,t,o):o&&delete n.agentMark,null!=e.mainCtaClick?n.mainCtaClick=$root.wix.dealerOfferEvents.api.v1.CTAClickPayload.toJSON(e.mainCtaClick,t,o):o&&delete n.mainCtaClick,null!=e.secondaryCtaClick?n.secondaryCtaClick=$root.wix.dealerOfferEvents.api.v1.CTAClickPayload.toJSON(e.secondaryCtaClick,t,o):o&&delete n.secondaryCtaClick,null!=e.realEstateId?n.realEstateId=$root.google.protobuf.StringValue.toJSON(e.realEstateId,t,o):o&&delete n.realEstateId,null!=e.httpReferrer?n.httpReferrer=$root.google.protobuf.StringValue.toJSON(e.httpReferrer,t,o):o&&delete n.httpReferrer,null!=e.assetId?n.assetId=$root.google.protobuf.StringValue.toJSON(e.assetId,t,o):o&&delete n.assetId,null!=e.platform?n.platform=$root.wix.dealerOfferEvents.api.v1.OfferEvent.PlatformEnum[e.platform]:o&&(n.platform="UNKNOWN"),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.dealerOfferEvents.api.v1.OfferEvent;return null!=e.offerId?n.offerId=e.offerId:!1!==o?n.offerId="":delete n.offerId,null!=e.userId?n.userId=$root.google.protobuf.StringValue.fromJSON(e.userId,t):delete n.userId,null!=e.targetAccountId?n.targetAccountId=$root.google.protobuf.StringValue.fromJSON(e.targetAccountId,t):delete n.targetAccountId,null!=e.loggedInAccountId?n.loggedInAccountId=$root.google.protobuf.StringValue.fromJSON(e.loggedInAccountId,t):delete n.loggedInAccountId,null!=e.siteId?n.siteId=$root.google.protobuf.StringValue.fromJSON(e.siteId,t):delete n.siteId,null!=e.eventId?n.eventId=$root.google.protobuf.StringValue.fromJSON(e.eventId,t):delete n.eventId,null!=e.createdAt?n.createdAt=$root.google.protobuf.Timestamp.fromJSON(e.createdAt,t):delete n.createdAt,null!=e.type?n.type="string"==typeof e.type?e.type:$root.wix.dealerOfferEvents.api.v1.EventType[e.type]:!1!==o?n.type="UNKNOWN":delete n.type,null!=e.agentMark?n.agentMark=$root.wix.dealerOfferEvents.api.v1.AgentMarkedPayload.fromJSON(e.agentMark,t):delete n.agentMark,null!=e.mainCtaClick?n.mainCtaClick=$root.wix.dealerOfferEvents.api.v1.CTAClickPayload.fromJSON(e.mainCtaClick,t):delete n.mainCtaClick,null!=e.secondaryCtaClick?n.secondaryCtaClick=$root.wix.dealerOfferEvents.api.v1.CTAClickPayload.fromJSON(e.secondaryCtaClick,t):delete n.secondaryCtaClick,null!=e.realEstateId?n.realEstateId=$root.google.protobuf.StringValue.fromJSON(e.realEstateId,t):delete n.realEstateId,null!=e.httpReferrer?n.httpReferrer=$root.google.protobuf.StringValue.fromJSON(e.httpReferrer,t):delete n.httpReferrer,null!=e.assetId?n.assetId=$root.google.protobuf.StringValue.fromJSON(e.assetId,t):delete n.assetId,null!=e.platform?n.platform="string"==typeof e.platform?e.platform:$root.wix.dealerOfferEvents.api.v1.OfferEvent.PlatformEnum[e.platform]:!1!==o?n.platform="UNKNOWN":delete n.platform,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.offerId&&(o.offerId=e.offerId),null!=e.userId&&(o.userId=$root.google.protobuf.StringValue.toGRPC(e.userId,t)),null!=e.targetAccountId&&(o.targetAccountId=$root.google.protobuf.StringValue.toGRPC(e.targetAccountId,t)),null!=e.loggedInAccountId&&(o.loggedInAccountId=$root.google.protobuf.StringValue.toGRPC(e.loggedInAccountId,t)),null!=e.siteId&&(o.siteId=$root.google.protobuf.StringValue.toGRPC(e.siteId,t)),null!=e.eventId&&(o.eventId=$root.google.protobuf.StringValue.toGRPC(e.eventId,t)),null!=e.createdAt&&(o.createdAt=$root.google.protobuf.Timestamp.toGRPC(e.createdAt,t)),null!=e.type&&(o.type=e.type),null!=e.agentMark&&(o.agentMark=$root.wix.dealerOfferEvents.api.v1.AgentMarkedPayload.toGRPC(e.agentMark,t)),null!=e.mainCtaClick&&(o.mainCtaClick=$root.wix.dealerOfferEvents.api.v1.CTAClickPayload.toGRPC(e.mainCtaClick,t)),null!=e.secondaryCtaClick&&(o.secondaryCtaClick=$root.wix.dealerOfferEvents.api.v1.CTAClickPayload.toGRPC(e.secondaryCtaClick,t)),null!=e.realEstateId&&(o.realEstateId=$root.google.protobuf.StringValue.toGRPC(e.realEstateId,t)),null!=e.httpReferrer&&(o.httpReferrer=$root.google.protobuf.StringValue.toGRPC(e.httpReferrer,t)),null!=e.assetId&&(o.assetId=$root.google.protobuf.StringValue.toGRPC(e.assetId,t)),null!=e.platform&&(o.platform=e.platform),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.dealerOfferEvents.api.v1.OfferEvent;return null!=e.offerId?o.offerId=e.offerId:o.offerId="",null!=e.userId?o.userId=$root.google.protobuf.StringValue.fromGRPC(e.userId,t):delete o.userId,null!=e.targetAccountId?o.targetAccountId=$root.google.protobuf.StringValue.fromGRPC(e.targetAccountId,t):delete o.targetAccountId,null!=e.loggedInAccountId?o.loggedInAccountId=$root.google.protobuf.StringValue.fromGRPC(e.loggedInAccountId,t):delete o.loggedInAccountId,null!=e.siteId?o.siteId=$root.google.protobuf.StringValue.fromGRPC(e.siteId,t):delete o.siteId,null!=e.eventId?o.eventId=$root.google.protobuf.StringValue.fromGRPC(e.eventId,t):delete o.eventId,null!=e.createdAt?o.createdAt=$root.google.protobuf.Timestamp.fromGRPC(e.createdAt,t):delete o.createdAt,null!=e.type?o.type=e.type:o.type="UNKNOWN",null!=e.agentMark?o.agentMark=$root.wix.dealerOfferEvents.api.v1.AgentMarkedPayload.fromGRPC(e.agentMark,t):delete o.agentMark,null!=e.mainCtaClick?o.mainCtaClick=$root.wix.dealerOfferEvents.api.v1.CTAClickPayload.fromGRPC(e.mainCtaClick,t):delete o.mainCtaClick,null!=e.secondaryCtaClick?o.secondaryCtaClick=$root.wix.dealerOfferEvents.api.v1.CTAClickPayload.fromGRPC(e.secondaryCtaClick,t):delete o.secondaryCtaClick,null!=e.realEstateId?o.realEstateId=$root.google.protobuf.StringValue.fromGRPC(e.realEstateId,t):delete o.realEstateId,null!=e.httpReferrer?o.httpReferrer=$root.google.protobuf.StringValue.fromGRPC(e.httpReferrer,t):delete o.httpReferrer,null!=e.assetId?o.assetId=$root.google.protobuf.StringValue.fromGRPC(e.assetId,t):delete o.assetId,null!=e.platform?o.platform=e.platform:o.platform="UNKNOWN",o}}}return OfferEvent.PlatformEnum={UNKNOWN:"UNKNOWN",0:"UNKNOWN",BUSINESS_MANAGER:"BUSINESS_MANAGER",1:"BUSINESS_MANAGER",EDITORX:"EDITORX",2:"EDITORX",EDITOR:"EDITOR",3:"EDITOR",ADI:"ADI",4:"ADI",OWNER_APP:"OWNER_APP",5:"OWNER_APP",BRANDED_APP:"BRANDED_APP",6:"BRANDED_APP",DEV_CENTER:"DEV_CENTER",7:"DEV_CENTER"},OfferEvent.PlatformEnum={UNKNOWN:"UNKNOWN",0:"UNKNOWN",BUSINESS_MANAGER:"BUSINESS_MANAGER",1:"BUSINESS_MANAGER",EDITORX:"EDITORX",2:"EDITORX",EDITOR:"EDITOR",3:"EDITOR",ADI:"ADI",4:"ADI",OWNER_APP:"OWNER_APP",5:"OWNER_APP",BRANDED_APP:"BRANDED_APP",6:"BRANDED_APP",DEV_CENTER:"DEV_CENTER",7:"DEV_CENTER"},__builtIn.Object.defineProperty(OfferEvent.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.OfferEvent"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OfferEvent.prototype,"__fqn__",{value:"wix.dealerOfferEvents.api.v1.OfferEvent",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OfferEvent.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OfferEvent.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),OfferEvent}(),e.CTAClickPayload=function(){class CTAClickPayload{constructor(e){this.targetUrl=e&&e.targetUrl}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.targetUrl?n.targetUrl=$root.google.protobuf.StringValue.toJSON(e.targetUrl,t,o):o&&delete n.targetUrl,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new $root.wix.dealerOfferEvents.api.v1.CTAClickPayload;return null!=e.targetUrl?o.targetUrl=$root.google.protobuf.StringValue.fromJSON(e.targetUrl,t):delete o.targetUrl,o}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.targetUrl&&(o.targetUrl=$root.google.protobuf.StringValue.toGRPC(e.targetUrl,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.dealerOfferEvents.api.v1.CTAClickPayload;return null!=e.targetUrl?o.targetUrl=$root.google.protobuf.StringValue.fromGRPC(e.targetUrl,t):delete o.targetUrl,o}}}return __builtIn.Object.defineProperty(CTAClickPayload.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.CTAClickPayload"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CTAClickPayload.prototype,"__fqn__",{value:"wix.dealerOfferEvents.api.v1.CTAClickPayload",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CTAClickPayload.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CTAClickPayload.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),CTAClickPayload}(),e.AgentMarkedPayload=function(){class AgentMarkedPayload{constructor(e){this.agentId=e&&e.agentId,this.status=e&&e.status}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.agentId?n.agentId=$root.google.protobuf.StringValue.toJSON(e.agentId,t,o):o&&delete n.agentId,null!=e.status?n.status=$root.wix.dealerOfferEvents.api.v1.AgentMarkedPayload.AgentOfferStatusEnum[e.status]:o&&(n.status="NOT_STARTED"),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.dealerOfferEvents.api.v1.AgentMarkedPayload;return null!=e.agentId?n.agentId=$root.google.protobuf.StringValue.fromJSON(e.agentId,t):delete n.agentId,null!=e.status?n.status="string"==typeof e.status?e.status:$root.wix.dealerOfferEvents.api.v1.AgentMarkedPayload.AgentOfferStatusEnum[e.status]:!1!==o?n.status="NOT_STARTED":delete n.status,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.agentId&&(o.agentId=$root.google.protobuf.StringValue.toGRPC(e.agentId,t)),null!=e.status&&(o.status=e.status),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.dealerOfferEvents.api.v1.AgentMarkedPayload;return null!=e.agentId?o.agentId=$root.google.protobuf.StringValue.fromGRPC(e.agentId,t):delete o.agentId,null!=e.status?o.status=e.status:o.status="NOT_STARTED",o}}}return AgentMarkedPayload.AgentOfferStatusEnum={NOT_STARTED:"NOT_STARTED",0:"NOT_STARTED",SUGGESTED:"SUGGESTED",1:"SUGGESTED",REJECTED:"REJECTED",2:"REJECTED",REQUESTED:"REQUESTED",3:"REQUESTED",ALREADY_COMPLETED:"ALREADY_COMPLETED",4:"ALREADY_COMPLETED",NOT_RELEVANT:"NOT_RELEVANT",5:"NOT_RELEVANT",PAUSED:"PAUSED",6:"PAUSED"},AgentMarkedPayload.AgentOfferStatusEnum={NOT_STARTED:"NOT_STARTED",0:"NOT_STARTED",SUGGESTED:"SUGGESTED",1:"SUGGESTED",REJECTED:"REJECTED",2:"REJECTED",REQUESTED:"REQUESTED",3:"REQUESTED",ALREADY_COMPLETED:"ALREADY_COMPLETED",4:"ALREADY_COMPLETED",NOT_RELEVANT:"NOT_RELEVANT",5:"NOT_RELEVANT",PAUSED:"PAUSED",6:"PAUSED"},__builtIn.Object.defineProperty(AgentMarkedPayload.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.dealerOfferEvents.api.v1.AgentMarkedPayload"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AgentMarkedPayload.prototype,"__fqn__",{value:"wix.dealerOfferEvents.api.v1.AgentMarkedPayload",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AgentMarkedPayload.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(AgentMarkedPayload.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),AgentMarkedPayload}(),e.EventType={UNKNOWN:"UNKNOWN",0:"UNKNOWN",VIEW:"VIEW",1:"VIEW",MAIN_CTA_CLICK:"MAIN_CTA_CLICK",3:"MAIN_CTA_CLICK",SECONDARY_CTA_CLICK:"SECONDARY_CTA_CLICK",4:"SECONDARY_CTA_CLICK",AGENT_MARK:"AGENT_MARK",5:"AGENT_MARK",SKIP:"SKIP",7:"SKIP",UNSKIP:"UNSKIP",8:"UNSKIP",CLOSE:"CLOSE",9:"CLOSE",SHOW_LATER:"SHOW_LATER",10:"SHOW_LATER"},e}(),e}(),e}(),e.graphql={},e.http=function(){const e={};return e.InferFieldmask=function(){class InferFieldmask{constructor(e){this.from=e&&e.from,this.fieldmask=e&&e.fieldmask,this.snakeCaseCommaSeparatedMask=e&&e.snakeCaseCommaSeparatedMask}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.from?t.from=e.from:o&&(t.from=""),null!=e.fieldmask?t.fieldmask=e.fieldmask:o&&(t.fieldmask=""),null!=e.snakeCaseCommaSeparatedMask?t.snakeCaseCommaSeparatedMask=e.snakeCaseCommaSeparatedMask:o&&(t.snakeCaseCommaSeparatedMask=!1),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.http.InferFieldmask;return null!=e.from?t.from=e.from:!1!==o?t.from="":delete t.from,null!=e.fieldmask?t.fieldmask=e.fieldmask:!1!==o?t.fieldmask="":delete t.fieldmask,null!=e.snakeCaseCommaSeparatedMask?t.snakeCaseCommaSeparatedMask=e.snakeCaseCommaSeparatedMask:!1!==o?t.snakeCaseCommaSeparatedMask=!1:delete t.snakeCaseCommaSeparatedMask,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.from&&(t.from=e.from),null!=e.fieldmask&&(t.fieldmask=e.fieldmask),null!=e.snakeCaseCommaSeparatedMask&&(t.snakeCaseCommaSeparatedMask=e.snakeCaseCommaSeparatedMask),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.http.InferFieldmask;return null!=e.from?t.from=e.from:t.from="",null!=e.fieldmask?t.fieldmask=e.fieldmask:t.fieldmask="",null!=e.snakeCaseCommaSeparatedMask?t.snakeCaseCommaSeparatedMask=e.snakeCaseCommaSeparatedMask:t.snakeCaseCommaSeparatedMask=!1,t}}}return __builtIn.Object.defineProperty(InferFieldmask.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.http.InferFieldmask"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(InferFieldmask.prototype,"__fqn__",{value:"wix.http.InferFieldmask",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(InferFieldmask.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(InferFieldmask.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),InferFieldmask}(),e}(),e.sdk=function(){const e={};return e.Signature=function(){class Signature{constructor(e){this.params=e&&e.params}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.params?t.params=e.params.map(e=>e):o&&(t.params=[]),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.sdk.Signature;return null!=e.params?t.params=Array.isArray(e.params)?e.params.map(e=>e):e.params:!1!==o?t.params=[]:delete t.params,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.params&&(t.params=e.params.map(e=>e)),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.sdk.Signature;return null!=e.params?t.params=e.params.map(e=>e):t.params=[],t}}}return __builtIn.Object.defineProperty(Signature.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.sdk.Signature"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Signature.prototype,"__fqn__",{value:"wix.sdk.Signature",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Signature.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Signature.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Signature}(),e}(),e.spi=function(){const e={};return e.Service=function(){class Service{constructor(e){this.spiIdentifier=e&&e.spiIdentifier,this.configMessage=e&&e.configMessage,this.hostService=e&&e.hostService,this.businessManagerUrl=e&&e.businessManagerUrl,this.fqdn=e&&e.fqdn,this.appId=e&&e.appId,this.appendixFiles=e&&e.appendixFiles}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.spiIdentifier?n.spiIdentifier=e.spiIdentifier:o&&(n.spiIdentifier=""),null!=e.configMessage?n.configMessage=e.configMessage:o&&(n.configMessage=""),null!=e.hostService?n.hostService=e.hostService:o&&(n.hostService=""),null!=e.businessManagerUrl?n.businessManagerUrl=e.businessManagerUrl:o&&(n.businessManagerUrl=""),null!=e.fqdn?n.fqdn=e.fqdn:o&&(n.fqdn=""),null!=e.appId?n.appId=e.appId:o&&(n.appId=""),null!=e.appendixFiles?n.appendixFiles=e.appendixFiles.map(e=>$root.wix.spi.ServiceAppendix.toJSON(e,t,o)):o&&(n.appendixFiles=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.wix.spi.Service;return null!=e.spiIdentifier?n.spiIdentifier=e.spiIdentifier:!1!==o?n.spiIdentifier="":delete n.spiIdentifier,null!=e.configMessage?n.configMessage=e.configMessage:!1!==o?n.configMessage="":delete n.configMessage,null!=e.hostService?n.hostService=e.hostService:!1!==o?n.hostService="":delete n.hostService,null!=e.businessManagerUrl?n.businessManagerUrl=e.businessManagerUrl:!1!==o?n.businessManagerUrl="":delete n.businessManagerUrl,null!=e.fqdn?n.fqdn=e.fqdn:!1!==o?n.fqdn="":delete n.fqdn,null!=e.appId?n.appId=e.appId:!1!==o?n.appId="":delete n.appId,null!=e.appendixFiles?n.appendixFiles=Array.isArray(e.appendixFiles)?e.appendixFiles.map(e=>$root.wix.spi.ServiceAppendix.fromJSON(e,t)):e.appendixFiles:!1!==o?n.appendixFiles=[]:delete n.appendixFiles,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.spiIdentifier&&(o.spiIdentifier=e.spiIdentifier),null!=e.configMessage&&(o.configMessage=e.configMessage),null!=e.hostService&&(o.hostService=e.hostService),null!=e.businessManagerUrl&&(o.businessManagerUrl=e.businessManagerUrl),null!=e.fqdn&&(o.fqdn=e.fqdn),null!=e.appId&&(o.appId=e.appId),null!=e.appendixFiles&&(o.appendixFiles=e.appendixFiles.map(e=>$root.wix.spi.ServiceAppendix.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.wix.spi.Service;return null!=e.spiIdentifier?o.spiIdentifier=e.spiIdentifier:o.spiIdentifier="",null!=e.configMessage?o.configMessage=e.configMessage:o.configMessage="",null!=e.hostService?o.hostService=e.hostService:o.hostService="",null!=e.businessManagerUrl?o.businessManagerUrl=e.businessManagerUrl:o.businessManagerUrl="",null!=e.fqdn?o.fqdn=e.fqdn:o.fqdn="",null!=e.appId?o.appId=e.appId:o.appId="",null!=e.appendixFiles?o.appendixFiles=e.appendixFiles.map(e=>$root.wix.spi.ServiceAppendix.fromGRPC(e,t)):o.appendixFiles=[],o}}}return __builtIn.Object.defineProperty(Service.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.spi.Service"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Service.prototype,"__fqn__",{value:"wix.spi.Service",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Service.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Service.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Service}(),e.ServiceAppendix=function(){class ServiceAppendix{constructor(e){this.type=e&&e.type,this.path=e&&e.path}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.type?t.type=$root.wix.spi.ServiceAppendix.Type[e.type]:o&&(t.type="UNKNOWN_APPENDIX_TYPE"),null!=e.path?t.path=e.path:o&&(t.path=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.spi.ServiceAppendix;return null!=e.type?t.type="string"==typeof e.type?e.type:$root.wix.spi.ServiceAppendix.Type[e.type]:!1!==o?t.type="UNKNOWN_APPENDIX_TYPE":delete t.type,null!=e.path?t.path=e.path:!1!==o?t.path="":delete t.path,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),null!=e.path&&(t.path=e.path),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.spi.ServiceAppendix;return null!=e.type?t.type=e.type:t.type="UNKNOWN_APPENDIX_TYPE",null!=e.path?t.path=e.path:t.path="",t}}}return ServiceAppendix.Type={UNKNOWN_APPENDIX_TYPE:"UNKNOWN_APPENDIX_TYPE",0:"UNKNOWN_APPENDIX_TYPE",AUTO_VELO:"AUTO_VELO",1:"AUTO_VELO",DOCS_CONF:"DOCS_CONF",2:"DOCS_CONF",MULTILINGUAL:"MULTILINGUAL",3:"MULTILINGUAL",SEARCH:"SEARCH",4:"SEARCH",AUTO_SDK:"AUTO_SDK",5:"AUTO_SDK"},ServiceAppendix.Type={UNKNOWN_APPENDIX_TYPE:"UNKNOWN_APPENDIX_TYPE",0:"UNKNOWN_APPENDIX_TYPE",AUTO_VELO:"AUTO_VELO",1:"AUTO_VELO",DOCS_CONF:"DOCS_CONF",2:"DOCS_CONF",MULTILINGUAL:"MULTILINGUAL",3:"MULTILINGUAL",SEARCH:"SEARCH",4:"SEARCH",AUTO_SDK:"AUTO_SDK",5:"AUTO_SDK"},__builtIn.Object.defineProperty(ServiceAppendix.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.spi.ServiceAppendix"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceAppendix.prototype,"__fqn__",{value:"wix.spi.ServiceAppendix",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceAppendix.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceAppendix.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ServiceAppendix}(),e.Error=function(){class Error{constructor(e){this.name=e&&e.name,this.httpCode=e&&e.httpCode,this.applicationCode=e&&e.applicationCode,this.data=e&&e.data}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.name?t.name=e.name:o&&(t.name=""),null!=e.httpCode?t.httpCode=$root.wix.spi.HttpStatusCode[e.httpCode]:o&&(t.httpCode="UNKNOWN_ERROR"),null!=e.applicationCode?t.applicationCode=e.applicationCode:o&&(t.applicationCode=""),null!=e.data?t.data=e.data:o&&(t.data=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.spi.Error;return null!=e.name?t.name=e.name:!1!==o?t.name="":delete t.name,null!=e.httpCode?t.httpCode="string"==typeof e.httpCode?e.httpCode:$root.wix.spi.HttpStatusCode[e.httpCode]:!1!==o?t.httpCode="UNKNOWN_ERROR":delete t.httpCode,null!=e.applicationCode?t.applicationCode=e.applicationCode:!1!==o?t.applicationCode="":delete t.applicationCode,null!=e.data?t.data=e.data:!1!==o?t.data="":delete t.data,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.name&&(t.name=e.name),null!=e.httpCode&&(t.httpCode=e.httpCode),null!=e.applicationCode&&(t.applicationCode=e.applicationCode),null!=e.data&&(t.data=e.data),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.spi.Error;return null!=e.name?t.name=e.name:t.name="",null!=e.httpCode?t.httpCode=e.httpCode:t.httpCode="UNKNOWN_ERROR",null!=e.applicationCode?t.applicationCode=e.applicationCode:t.applicationCode="",null!=e.data?t.data=e.data:t.data="",t}}}return __builtIn.Object.defineProperty(Error.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.spi.Error"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Error.prototype,"__fqn__",{value:"wix.spi.Error",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Error.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Error.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Error}(),e.Event=function(){class Event{constructor(e){this.methodName=e&&e.methodName}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.methodName?t.methodName=e.methodName:o&&(t.methodName=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.wix.spi.Event;return null!=e.methodName?t.methodName=e.methodName:!1!==o?t.methodName="":delete t.methodName,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.methodName&&(t.methodName=e.methodName),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.wix.spi.Event;return null!=e.methodName?t.methodName=e.methodName:t.methodName="",t}}}return __builtIn.Object.defineProperty(Event.prototype,"__proto",{value:e=>$root.__lookup(e)("wix.spi.Event"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Event.prototype,"__fqn__",{value:"wix.spi.Event",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Event.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Event.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Event}(),e.HttpStatusCode={UNKNOWN_ERROR:"UNKNOWN_ERROR",0:"UNKNOWN_ERROR",UNAUTHENTICATED:"UNAUTHENTICATED",1:"UNAUTHENTICATED",INVALID_ARGUMENT:"INVALID_ARGUMENT",3:"INVALID_ARGUMENT",INTERNAL:"INTERNAL",5:"INTERNAL",RESOURCE_EXHAUSTED:"RESOURCE_EXHAUSTED",7:"RESOURCE_EXHAUSTED",CANCELED:"CANCELED",8:"CANCELED",NOT_FOUND:"NOT_FOUND",4:"NOT_FOUND",ALREADY_EXISTS:"ALREADY_EXISTS",9:"ALREADY_EXISTS",FAILED_PRECONDITION:"FAILED_PRECONDITION",10:"FAILED_PRECONDITION"},e}(),e}(),$root.google=function(){const e={};return e.protobuf=function(){const e={};return e.FileDescriptorSet=function(){class FileDescriptorSet{constructor(e){this.file=e&&e.file}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.file?n.file=e.file.map(e=>$root.google.protobuf.FileDescriptorProto.toJSON(e,t,o)):o&&(n.file=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.FileDescriptorSet;return null!=e.file?n.file=Array.isArray(e.file)?e.file.map(e=>$root.google.protobuf.FileDescriptorProto.fromJSON(e,t)):e.file:!1!==o?n.file=[]:delete n.file,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.file&&(o.file=e.file.map(e=>$root.google.protobuf.FileDescriptorProto.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.FileDescriptorSet;return null!=e.file?o.file=e.file.map(e=>$root.google.protobuf.FileDescriptorProto.fromGRPC(e,t)):o.file=[],o}}}return __builtIn.Object.defineProperty(FileDescriptorSet.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.FileDescriptorSet"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FileDescriptorSet.prototype,"__fqn__",{value:"google.protobuf.FileDescriptorSet",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FileDescriptorSet.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FileDescriptorSet.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),FileDescriptorSet}(),e.FileDescriptorProto=function(){class FileDescriptorProto{constructor(e){this.name=e&&e.name,this.package=e&&e.package,this.dependency=e&&e.dependency,this.publicDependency=e&&e.publicDependency,this.weakDependency=e&&e.weakDependency,this.messageType=e&&e.messageType,this.enumType=e&&e.enumType,this.service=e&&e.service,this.extension=e&&e.extension,this.options=e&&e.options,this.sourceCodeInfo=e&&e.sourceCodeInfo,this.syntax=e&&e.syntax}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.package?n.package=e.package:o&&(n.package=""),null!=e.dependency?n.dependency=e.dependency.map(e=>e):o&&(n.dependency=[]),null!=e.publicDependency?n.publicDependency=e.publicDependency.map(e=>e):o&&(n.publicDependency=[]),null!=e.weakDependency?n.weakDependency=e.weakDependency.map(e=>e):o&&(n.weakDependency=[]),null!=e.messageType?n.messageType=e.messageType.map(e=>$root.google.protobuf.DescriptorProto.toJSON(e,t,o)):o&&(n.messageType=[]),null!=e.enumType?n.enumType=e.enumType.map(e=>$root.google.protobuf.EnumDescriptorProto.toJSON(e,t,o)):o&&(n.enumType=[]),null!=e.service?n.service=e.service.map(e=>$root.google.protobuf.ServiceDescriptorProto.toJSON(e,t,o)):o&&(n.service=[]),null!=e.extension?n.extension=e.extension.map(e=>$root.google.protobuf.FieldDescriptorProto.toJSON(e,t,o)):o&&(n.extension=[]),null!=e.options?n.options=$root.google.protobuf.FileOptions.toJSON(e.options,t,o):o&&delete n.options,null!=e.sourceCodeInfo?n.sourceCodeInfo=$root.google.protobuf.SourceCodeInfo.toJSON(e.sourceCodeInfo,t,o):o&&delete n.sourceCodeInfo,null!=e.syntax?n.syntax=e.syntax:o&&(n.syntax=""),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.FileDescriptorProto;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.package?n.package=e.package:!1!==o?n.package="":delete n.package,null!=e.dependency?n.dependency=Array.isArray(e.dependency)?e.dependency.map(e=>e):e.dependency:!1!==o?n.dependency=[]:delete n.dependency,null!=e.publicDependency?n.publicDependency=Array.isArray(e.publicDependency)?e.publicDependency.map(e=>e):e.publicDependency:!1!==o?n.publicDependency=[]:delete n.publicDependency,null!=e.weakDependency?n.weakDependency=Array.isArray(e.weakDependency)?e.weakDependency.map(e=>e):e.weakDependency:!1!==o?n.weakDependency=[]:delete n.weakDependency,null!=e.messageType?n.messageType=Array.isArray(e.messageType)?e.messageType.map(e=>$root.google.protobuf.DescriptorProto.fromJSON(e,t)):e.messageType:!1!==o?n.messageType=[]:delete n.messageType,null!=e.enumType?n.enumType=Array.isArray(e.enumType)?e.enumType.map(e=>$root.google.protobuf.EnumDescriptorProto.fromJSON(e,t)):e.enumType:!1!==o?n.enumType=[]:delete n.enumType,null!=e.service?n.service=Array.isArray(e.service)?e.service.map(e=>$root.google.protobuf.ServiceDescriptorProto.fromJSON(e,t)):e.service:!1!==o?n.service=[]:delete n.service,null!=e.extension?n.extension=Array.isArray(e.extension)?e.extension.map(e=>$root.google.protobuf.FieldDescriptorProto.fromJSON(e,t)):e.extension:!1!==o?n.extension=[]:delete n.extension,null!=e.options?n.options=$root.google.protobuf.FileOptions.fromJSON(e.options,t):delete n.options,null!=e.sourceCodeInfo?n.sourceCodeInfo=$root.google.protobuf.SourceCodeInfo.fromJSON(e.sourceCodeInfo,t):delete n.sourceCodeInfo,null!=e.syntax?n.syntax=e.syntax:!1!==o?n.syntax="":delete n.syntax,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.package&&(o.package=e.package),null!=e.dependency&&(o.dependency=e.dependency.map(e=>e)),null!=e.publicDependency&&(o.publicDependency=e.publicDependency.map(e=>e)),null!=e.weakDependency&&(o.weakDependency=e.weakDependency.map(e=>e)),null!=e.messageType&&(o.messageType=e.messageType.map(e=>$root.google.protobuf.DescriptorProto.toGRPC(e,t))),null!=e.enumType&&(o.enumType=e.enumType.map(e=>$root.google.protobuf.EnumDescriptorProto.toGRPC(e,t))),null!=e.service&&(o.service=e.service.map(e=>$root.google.protobuf.ServiceDescriptorProto.toGRPC(e,t))),null!=e.extension&&(o.extension=e.extension.map(e=>$root.google.protobuf.FieldDescriptorProto.toGRPC(e,t))),null!=e.options&&(o.options=$root.google.protobuf.FileOptions.toGRPC(e.options,t)),null!=e.sourceCodeInfo&&(o.sourceCodeInfo=$root.google.protobuf.SourceCodeInfo.toGRPC(e.sourceCodeInfo,t)),null!=e.syntax&&(o.syntax=e.syntax),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.FileDescriptorProto;return null!=e.name?o.name=e.name:o.name="",null!=e.package?o.package=e.package:o.package="",null!=e.dependency?o.dependency=e.dependency.map(e=>e):o.dependency=[],null!=e.publicDependency?o.publicDependency=e.publicDependency.map(e=>e):o.publicDependency=[],null!=e.weakDependency?o.weakDependency=e.weakDependency.map(e=>e):o.weakDependency=[],null!=e.messageType?o.messageType=e.messageType.map(e=>$root.google.protobuf.DescriptorProto.fromGRPC(e,t)):o.messageType=[],null!=e.enumType?o.enumType=e.enumType.map(e=>$root.google.protobuf.EnumDescriptorProto.fromGRPC(e,t)):o.enumType=[],null!=e.service?o.service=e.service.map(e=>$root.google.protobuf.ServiceDescriptorProto.fromGRPC(e,t)):o.service=[],null!=e.extension?o.extension=e.extension.map(e=>$root.google.protobuf.FieldDescriptorProto.fromGRPC(e,t)):o.extension=[],null!=e.options?o.options=$root.google.protobuf.FileOptions.fromGRPC(e.options,t):delete o.options,null!=e.sourceCodeInfo?o.sourceCodeInfo=$root.google.protobuf.SourceCodeInfo.fromGRPC(e.sourceCodeInfo,t):delete o.sourceCodeInfo,null!=e.syntax?o.syntax=e.syntax:o.syntax="",o}}}return __builtIn.Object.defineProperty(FileDescriptorProto.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.FileDescriptorProto"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FileDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.FileDescriptorProto",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FileDescriptorProto.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FileDescriptorProto.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),FileDescriptorProto}(),e.DescriptorProto=function(){class DescriptorProto{constructor(e){this.name=e&&e.name,this.field=e&&e.field,this.extension=e&&e.extension,this.nestedType=e&&e.nestedType,this.enumType=e&&e.enumType,this.extensionRange=e&&e.extensionRange,this.oneofDecl=e&&e.oneofDecl,this.options=e&&e.options,this.reservedRange=e&&e.reservedRange,this.reservedName=e&&e.reservedName}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.field?n.field=e.field.map(e=>$root.google.protobuf.FieldDescriptorProto.toJSON(e,t,o)):o&&(n.field=[]),null!=e.extension?n.extension=e.extension.map(e=>$root.google.protobuf.FieldDescriptorProto.toJSON(e,t,o)):o&&(n.extension=[]),null!=e.nestedType?n.nestedType=e.nestedType.map(e=>$root.google.protobuf.DescriptorProto.toJSON(e,t,o)):o&&(n.nestedType=[]),null!=e.enumType?n.enumType=e.enumType.map(e=>$root.google.protobuf.EnumDescriptorProto.toJSON(e,t,o)):o&&(n.enumType=[]),null!=e.extensionRange?n.extensionRange=e.extensionRange.map(e=>$root.google.protobuf.DescriptorProto.ExtensionRange.toJSON(e,t,o)):o&&(n.extensionRange=[]),null!=e.oneofDecl?n.oneofDecl=e.oneofDecl.map(e=>$root.google.protobuf.OneofDescriptorProto.toJSON(e,t,o)):o&&(n.oneofDecl=[]),null!=e.options?n.options=$root.google.protobuf.MessageOptions.toJSON(e.options,t,o):o&&delete n.options,null!=e.reservedRange?n.reservedRange=e.reservedRange.map(e=>$root.google.protobuf.DescriptorProto.ReservedRange.toJSON(e,t,o)):o&&(n.reservedRange=[]),null!=e.reservedName?n.reservedName=e.reservedName.map(e=>e):o&&(n.reservedName=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.DescriptorProto;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.field?n.field=Array.isArray(e.field)?e.field.map(e=>$root.google.protobuf.FieldDescriptorProto.fromJSON(e,t)):e.field:!1!==o?n.field=[]:delete n.field,null!=e.extension?n.extension=Array.isArray(e.extension)?e.extension.map(e=>$root.google.protobuf.FieldDescriptorProto.fromJSON(e,t)):e.extension:!1!==o?n.extension=[]:delete n.extension,null!=e.nestedType?n.nestedType=Array.isArray(e.nestedType)?e.nestedType.map(e=>$root.google.protobuf.DescriptorProto.fromJSON(e,t)):e.nestedType:!1!==o?n.nestedType=[]:delete n.nestedType,null!=e.enumType?n.enumType=Array.isArray(e.enumType)?e.enumType.map(e=>$root.google.protobuf.EnumDescriptorProto.fromJSON(e,t)):e.enumType:!1!==o?n.enumType=[]:delete n.enumType,null!=e.extensionRange?n.extensionRange=Array.isArray(e.extensionRange)?e.extensionRange.map(e=>$root.google.protobuf.DescriptorProto.ExtensionRange.fromJSON(e,t)):e.extensionRange:!1!==o?n.extensionRange=[]:delete n.extensionRange,null!=e.oneofDecl?n.oneofDecl=Array.isArray(e.oneofDecl)?e.oneofDecl.map(e=>$root.google.protobuf.OneofDescriptorProto.fromJSON(e,t)):e.oneofDecl:!1!==o?n.oneofDecl=[]:delete n.oneofDecl,null!=e.options?n.options=$root.google.protobuf.MessageOptions.fromJSON(e.options,t):delete n.options,null!=e.reservedRange?n.reservedRange=Array.isArray(e.reservedRange)?e.reservedRange.map(e=>$root.google.protobuf.DescriptorProto.ReservedRange.fromJSON(e,t)):e.reservedRange:!1!==o?n.reservedRange=[]:delete n.reservedRange,null!=e.reservedName?n.reservedName=Array.isArray(e.reservedName)?e.reservedName.map(e=>e):e.reservedName:!1!==o?n.reservedName=[]:delete n.reservedName,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.field&&(o.field=e.field.map(e=>$root.google.protobuf.FieldDescriptorProto.toGRPC(e,t))),null!=e.extension&&(o.extension=e.extension.map(e=>$root.google.protobuf.FieldDescriptorProto.toGRPC(e,t))),null!=e.nestedType&&(o.nestedType=e.nestedType.map(e=>$root.google.protobuf.DescriptorProto.toGRPC(e,t))),null!=e.enumType&&(o.enumType=e.enumType.map(e=>$root.google.protobuf.EnumDescriptorProto.toGRPC(e,t))),null!=e.extensionRange&&(o.extensionRange=e.extensionRange.map(e=>$root.google.protobuf.DescriptorProto.ExtensionRange.toGRPC(e,t))),null!=e.oneofDecl&&(o.oneofDecl=e.oneofDecl.map(e=>$root.google.protobuf.OneofDescriptorProto.toGRPC(e,t))),null!=e.options&&(o.options=$root.google.protobuf.MessageOptions.toGRPC(e.options,t)),null!=e.reservedRange&&(o.reservedRange=e.reservedRange.map(e=>$root.google.protobuf.DescriptorProto.ReservedRange.toGRPC(e,t))),null!=e.reservedName&&(o.reservedName=e.reservedName.map(e=>e)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.DescriptorProto;return null!=e.name?o.name=e.name:o.name="",null!=e.field?o.field=e.field.map(e=>$root.google.protobuf.FieldDescriptorProto.fromGRPC(e,t)):o.field=[],null!=e.extension?o.extension=e.extension.map(e=>$root.google.protobuf.FieldDescriptorProto.fromGRPC(e,t)):o.extension=[],null!=e.nestedType?o.nestedType=e.nestedType.map(e=>$root.google.protobuf.DescriptorProto.fromGRPC(e,t)):o.nestedType=[],null!=e.enumType?o.enumType=e.enumType.map(e=>$root.google.protobuf.EnumDescriptorProto.fromGRPC(e,t)):o.enumType=[],null!=e.extensionRange?o.extensionRange=e.extensionRange.map(e=>$root.google.protobuf.DescriptorProto.ExtensionRange.fromGRPC(e,t)):o.extensionRange=[],null!=e.oneofDecl?o.oneofDecl=e.oneofDecl.map(e=>$root.google.protobuf.OneofDescriptorProto.fromGRPC(e,t)):o.oneofDecl=[],null!=e.options?o.options=$root.google.protobuf.MessageOptions.fromGRPC(e.options,t):delete o.options,null!=e.reservedRange?o.reservedRange=e.reservedRange.map(e=>$root.google.protobuf.DescriptorProto.ReservedRange.fromGRPC(e,t)):o.reservedRange=[],null!=e.reservedName?o.reservedName=e.reservedName.map(e=>e):o.reservedName=[],o}}}return DescriptorProto.ExtensionRange=function(){class ExtensionRange{constructor(e){this.start=e&&e.start,this.end=e&&e.end,this.options=e&&e.options}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.start?n.start=e.start:o&&(n.start=0),null!=e.end?n.end=e.end:o&&(n.end=0),null!=e.options?n.options=$root.google.protobuf.ExtensionRangeOptions.toJSON(e.options,t,o):o&&delete n.options,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.DescriptorProto.ExtensionRange;return null!=e.start?n.start=e.start:!1!==o?n.start=0:delete n.start,null!=e.end?n.end=e.end:!1!==o?n.end=0:delete n.end,null!=e.options?n.options=$root.google.protobuf.ExtensionRangeOptions.fromJSON(e.options,t):delete n.options,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.start&&(o.start=e.start),null!=e.end&&(o.end=e.end),null!=e.options&&(o.options=$root.google.protobuf.ExtensionRangeOptions.toGRPC(e.options,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.DescriptorProto.ExtensionRange;return null!=e.start?o.start=e.start:o.start=0,null!=e.end?o.end=e.end:o.end=0,null!=e.options?o.options=$root.google.protobuf.ExtensionRangeOptions.fromGRPC(e.options,t):delete o.options,o}}}return __builtIn.Object.defineProperty(ExtensionRange.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.DescriptorProto.ExtensionRange"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ExtensionRange.prototype,"__fqn__",{value:"google.protobuf.DescriptorProto.ExtensionRange",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ExtensionRange.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ExtensionRange.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ExtensionRange}(),DescriptorProto.ReservedRange=function(){class ReservedRange{constructor(e){this.start=e&&e.start,this.end=e&&e.end}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.start?t.start=e.start:o&&(t.start=0),null!=e.end?t.end=e.end:o&&(t.end=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.google.protobuf.DescriptorProto.ReservedRange;return null!=e.start?t.start=e.start:!1!==o?t.start=0:delete t.start,null!=e.end?t.end=e.end:!1!==o?t.end=0:delete t.end,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.google.protobuf.DescriptorProto.ReservedRange;return null!=e.start?t.start=e.start:t.start=0,null!=e.end?t.end=e.end:t.end=0,t}}}return __builtIn.Object.defineProperty(ReservedRange.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.DescriptorProto.ReservedRange"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReservedRange.prototype,"__fqn__",{value:"google.protobuf.DescriptorProto.ReservedRange",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReservedRange.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReservedRange.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ReservedRange}(),DescriptorProto.ExtensionRange=function(){class ExtensionRange{constructor(e){this.start=e&&e.start,this.end=e&&e.end,this.options=e&&e.options}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.start?n.start=e.start:o&&(n.start=0),null!=e.end?n.end=e.end:o&&(n.end=0),null!=e.options?n.options=$root.google.protobuf.ExtensionRangeOptions.toJSON(e.options,t,o):o&&delete n.options,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.DescriptorProto.ExtensionRange;return null!=e.start?n.start=e.start:!1!==o?n.start=0:delete n.start,null!=e.end?n.end=e.end:!1!==o?n.end=0:delete n.end,null!=e.options?n.options=$root.google.protobuf.ExtensionRangeOptions.fromJSON(e.options,t):delete n.options,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.start&&(o.start=e.start),null!=e.end&&(o.end=e.end),null!=e.options&&(o.options=$root.google.protobuf.ExtensionRangeOptions.toGRPC(e.options,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.DescriptorProto.ExtensionRange;return null!=e.start?o.start=e.start:o.start=0,null!=e.end?o.end=e.end:o.end=0,null!=e.options?o.options=$root.google.protobuf.ExtensionRangeOptions.fromGRPC(e.options,t):delete o.options,o}}}return __builtIn.Object.defineProperty(ExtensionRange.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.DescriptorProto.ExtensionRange"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ExtensionRange.prototype,"__fqn__",{value:"google.protobuf.DescriptorProto.ExtensionRange",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ExtensionRange.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ExtensionRange.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ExtensionRange}(),DescriptorProto.ReservedRange=function(){class ReservedRange{constructor(e){this.start=e&&e.start,this.end=e&&e.end}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.start?t.start=e.start:o&&(t.start=0),null!=e.end?t.end=e.end:o&&(t.end=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.google.protobuf.DescriptorProto.ReservedRange;return null!=e.start?t.start=e.start:!1!==o?t.start=0:delete t.start,null!=e.end?t.end=e.end:!1!==o?t.end=0:delete t.end,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.google.protobuf.DescriptorProto.ReservedRange;return null!=e.start?t.start=e.start:t.start=0,null!=e.end?t.end=e.end:t.end=0,t}}}return __builtIn.Object.defineProperty(ReservedRange.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.DescriptorProto.ReservedRange"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReservedRange.prototype,"__fqn__",{value:"google.protobuf.DescriptorProto.ReservedRange",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReservedRange.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ReservedRange.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ReservedRange}(),__builtIn.Object.defineProperty(DescriptorProto.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.DescriptorProto"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DescriptorProto.prototype,"__fqn__",{value:"google.protobuf.DescriptorProto",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DescriptorProto.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DescriptorProto.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DescriptorProto}(),e.ExtensionRangeOptions=function(){class ExtensionRangeOptions{constructor(e){this.uninterpretedOption=e&&e.uninterpretedOption}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.uninterpretedOption?n.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toJSON(e,t,o)):o&&(n.uninterpretedOption=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.ExtensionRangeOptions;return null!=e.uninterpretedOption?n.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromJSON(e,t)):e.uninterpretedOption:!1!==o?n.uninterpretedOption=[]:delete n.uninterpretedOption,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.uninterpretedOption&&(o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.ExtensionRangeOptions;return null!=e.uninterpretedOption?o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromGRPC(e,t)):o.uninterpretedOption=[],o}}}return __builtIn.Object.defineProperty(ExtensionRangeOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.ExtensionRangeOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ExtensionRangeOptions.prototype,"__fqn__",{value:"google.protobuf.ExtensionRangeOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ExtensionRangeOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ExtensionRangeOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ExtensionRangeOptions}(),e.FieldDescriptorProto=function(){class FieldDescriptorProto{constructor(e){this.name=e&&e.name,this.number=e&&e.number,this.label=e&&e.label,this.type=e&&e.type,this.typeName=e&&e.typeName,this.extendee=e&&e.extendee,this.defaultValue=e&&e.defaultValue,this.oneofIndex=e&&e.oneofIndex,this.jsonName=e&&e.jsonName,this.options=e&&e.options,this.proto3Optional=e&&e.proto3Optional}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.number?n.number=e.number:o&&(n.number=0),null!=e.label?n.label=$root.google.protobuf.FieldDescriptorProto.Label[e.label]:o&&(n.label="LABEL_OPTIONAL"),null!=e.type?n.type=$root.google.protobuf.FieldDescriptorProto.Type[e.type]:o&&(n.type="TYPE_DOUBLE"),null!=e.typeName?n.typeName=e.typeName:o&&(n.typeName=""),null!=e.extendee?n.extendee=e.extendee:o&&(n.extendee=""),null!=e.defaultValue?n.defaultValue=e.defaultValue:o&&(n.defaultValue=""),null!=e.oneofIndex?n.oneofIndex=e.oneofIndex:o&&(n.oneofIndex=0),null!=e.jsonName?n.jsonName=e.jsonName:o&&(n.jsonName=""),null!=e.options?n.options=$root.google.protobuf.FieldOptions.toJSON(e.options,t,o):o&&delete n.options,null!=e.proto3Optional?n.proto3Optional=e.proto3Optional:o&&(n.proto3Optional=!1),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.FieldDescriptorProto;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.number?n.number=e.number:!1!==o?n.number=0:delete n.number,null!=e.label?n.label="string"==typeof e.label?e.label:$root.google.protobuf.FieldDescriptorProto.Label[e.label]:!1!==o?n.label="LABEL_OPTIONAL":delete n.label,null!=e.type?n.type="string"==typeof e.type?e.type:$root.google.protobuf.FieldDescriptorProto.Type[e.type]:!1!==o?n.type="TYPE_DOUBLE":delete n.type,null!=e.typeName?n.typeName=e.typeName:!1!==o?n.typeName="":delete n.typeName,null!=e.extendee?n.extendee=e.extendee:!1!==o?n.extendee="":delete n.extendee,null!=e.defaultValue?n.defaultValue=e.defaultValue:!1!==o?n.defaultValue="":delete n.defaultValue,null!=e.oneofIndex?n.oneofIndex=e.oneofIndex:!1!==o?n.oneofIndex=0:delete n.oneofIndex,null!=e.jsonName?n.jsonName=e.jsonName:!1!==o?n.jsonName="":delete n.jsonName,null!=e.options?n.options=$root.google.protobuf.FieldOptions.fromJSON(e.options,t):delete n.options,null!=e.proto3Optional?n.proto3Optional=e.proto3Optional:!1!==o?n.proto3Optional=!1:delete n.proto3Optional,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.number&&(o.number=e.number),null!=e.label&&(o.label=e.label),null!=e.type&&(o.type=e.type),null!=e.typeName&&(o.typeName=e.typeName),null!=e.extendee&&(o.extendee=e.extendee),null!=e.defaultValue&&(o.defaultValue=e.defaultValue),null!=e.oneofIndex&&(o.oneofIndex=e.oneofIndex),null!=e.jsonName&&(o.jsonName=e.jsonName),null!=e.options&&(o.options=$root.google.protobuf.FieldOptions.toGRPC(e.options,t)),null!=e.proto3Optional&&(o.proto3Optional=e.proto3Optional),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.FieldDescriptorProto;return null!=e.name?o.name=e.name:o.name="",null!=e.number?o.number=e.number:o.number=0,null!=e.label?o.label=e.label:o.label="LABEL_OPTIONAL",null!=e.type?o.type=e.type:o.type="TYPE_DOUBLE",null!=e.typeName?o.typeName=e.typeName:o.typeName="",null!=e.extendee?o.extendee=e.extendee:o.extendee="",null!=e.defaultValue?o.defaultValue=e.defaultValue:o.defaultValue="",null!=e.oneofIndex?o.oneofIndex=e.oneofIndex:o.oneofIndex=0,null!=e.jsonName?o.jsonName=e.jsonName:o.jsonName="",null!=e.options?o.options=$root.google.protobuf.FieldOptions.fromGRPC(e.options,t):delete o.options,null!=e.proto3Optional?o.proto3Optional=e.proto3Optional:o.proto3Optional=!1,o}}}return FieldDescriptorProto.Type={TYPE_DOUBLE:"TYPE_DOUBLE",1:"TYPE_DOUBLE",TYPE_FLOAT:"TYPE_FLOAT",2:"TYPE_FLOAT",TYPE_INT64:"TYPE_INT64",3:"TYPE_INT64",TYPE_UINT64:"TYPE_UINT64",4:"TYPE_UINT64",TYPE_INT32:"TYPE_INT32",5:"TYPE_INT32",TYPE_FIXED64:"TYPE_FIXED64",6:"TYPE_FIXED64",TYPE_FIXED32:"TYPE_FIXED32",7:"TYPE_FIXED32",TYPE_BOOL:"TYPE_BOOL",8:"TYPE_BOOL",TYPE_STRING:"TYPE_STRING",9:"TYPE_STRING",TYPE_GROUP:"TYPE_GROUP",10:"TYPE_GROUP",TYPE_MESSAGE:"TYPE_MESSAGE",11:"TYPE_MESSAGE",TYPE_BYTES:"TYPE_BYTES",12:"TYPE_BYTES",TYPE_UINT32:"TYPE_UINT32",13:"TYPE_UINT32",TYPE_ENUM:"TYPE_ENUM",14:"TYPE_ENUM",TYPE_SFIXED32:"TYPE_SFIXED32",15:"TYPE_SFIXED32",TYPE_SFIXED64:"TYPE_SFIXED64",16:"TYPE_SFIXED64",TYPE_SINT32:"TYPE_SINT32",17:"TYPE_SINT32",TYPE_SINT64:"TYPE_SINT64",18:"TYPE_SINT64"},FieldDescriptorProto.Label={LABEL_OPTIONAL:"LABEL_OPTIONAL",1:"LABEL_OPTIONAL",LABEL_REQUIRED:"LABEL_REQUIRED",2:"LABEL_REQUIRED",LABEL_REPEATED:"LABEL_REPEATED",3:"LABEL_REPEATED"},FieldDescriptorProto.Type={TYPE_DOUBLE:"TYPE_DOUBLE",1:"TYPE_DOUBLE",TYPE_FLOAT:"TYPE_FLOAT",2:"TYPE_FLOAT",TYPE_INT64:"TYPE_INT64",3:"TYPE_INT64",TYPE_UINT64:"TYPE_UINT64",4:"TYPE_UINT64",TYPE_INT32:"TYPE_INT32",5:"TYPE_INT32",TYPE_FIXED64:"TYPE_FIXED64",6:"TYPE_FIXED64",TYPE_FIXED32:"TYPE_FIXED32",7:"TYPE_FIXED32",TYPE_BOOL:"TYPE_BOOL",8:"TYPE_BOOL",TYPE_STRING:"TYPE_STRING",9:"TYPE_STRING",TYPE_GROUP:"TYPE_GROUP",10:"TYPE_GROUP",TYPE_MESSAGE:"TYPE_MESSAGE",11:"TYPE_MESSAGE",TYPE_BYTES:"TYPE_BYTES",12:"TYPE_BYTES",TYPE_UINT32:"TYPE_UINT32",13:"TYPE_UINT32",TYPE_ENUM:"TYPE_ENUM",14:"TYPE_ENUM",TYPE_SFIXED32:"TYPE_SFIXED32",15:"TYPE_SFIXED32",TYPE_SFIXED64:"TYPE_SFIXED64",16:"TYPE_SFIXED64",TYPE_SINT32:"TYPE_SINT32",17:"TYPE_SINT32",TYPE_SINT64:"TYPE_SINT64",18:"TYPE_SINT64"},FieldDescriptorProto.Label={LABEL_OPTIONAL:"LABEL_OPTIONAL",1:"LABEL_OPTIONAL",LABEL_REQUIRED:"LABEL_REQUIRED",2:"LABEL_REQUIRED",LABEL_REPEATED:"LABEL_REPEATED",3:"LABEL_REPEATED"},__builtIn.Object.defineProperty(FieldDescriptorProto.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.FieldDescriptorProto"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.FieldDescriptorProto",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldDescriptorProto.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldDescriptorProto.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),FieldDescriptorProto}(),e.OneofDescriptorProto=function(){class OneofDescriptorProto{constructor(e){this.name=e&&e.name,this.options=e&&e.options}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.options?n.options=$root.google.protobuf.OneofOptions.toJSON(e.options,t,o):o&&delete n.options,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.OneofDescriptorProto;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.options?n.options=$root.google.protobuf.OneofOptions.fromJSON(e.options,t):delete n.options,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.options&&(o.options=$root.google.protobuf.OneofOptions.toGRPC(e.options,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.OneofDescriptorProto;return null!=e.name?o.name=e.name:o.name="",null!=e.options?o.options=$root.google.protobuf.OneofOptions.fromGRPC(e.options,t):delete o.options,o}}}return __builtIn.Object.defineProperty(OneofDescriptorProto.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.OneofDescriptorProto"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OneofDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.OneofDescriptorProto",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OneofDescriptorProto.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OneofDescriptorProto.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),OneofDescriptorProto}(),e.EnumDescriptorProto=function(){class EnumDescriptorProto{constructor(e){this.name=e&&e.name,this.value=e&&e.value,this.options=e&&e.options,this.reservedRange=e&&e.reservedRange,this.reservedName=e&&e.reservedName}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.value?n.value=e.value.map(e=>$root.google.protobuf.EnumValueDescriptorProto.toJSON(e,t,o)):o&&(n.value=[]),null!=e.options?n.options=$root.google.protobuf.EnumOptions.toJSON(e.options,t,o):o&&delete n.options,null!=e.reservedRange?n.reservedRange=e.reservedRange.map(e=>$root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toJSON(e,t,o)):o&&(n.reservedRange=[]),null!=e.reservedName?n.reservedName=e.reservedName.map(e=>e):o&&(n.reservedName=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.EnumDescriptorProto;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.value?n.value=Array.isArray(e.value)?e.value.map(e=>$root.google.protobuf.EnumValueDescriptorProto.fromJSON(e,t)):e.value:!1!==o?n.value=[]:delete n.value,null!=e.options?n.options=$root.google.protobuf.EnumOptions.fromJSON(e.options,t):delete n.options,null!=e.reservedRange?n.reservedRange=Array.isArray(e.reservedRange)?e.reservedRange.map(e=>$root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromJSON(e,t)):e.reservedRange:!1!==o?n.reservedRange=[]:delete n.reservedRange,null!=e.reservedName?n.reservedName=Array.isArray(e.reservedName)?e.reservedName.map(e=>e):e.reservedName:!1!==o?n.reservedName=[]:delete n.reservedName,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.value&&(o.value=e.value.map(e=>$root.google.protobuf.EnumValueDescriptorProto.toGRPC(e,t))),null!=e.options&&(o.options=$root.google.protobuf.EnumOptions.toGRPC(e.options,t)),null!=e.reservedRange&&(o.reservedRange=e.reservedRange.map(e=>$root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toGRPC(e,t))),null!=e.reservedName&&(o.reservedName=e.reservedName.map(e=>e)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.EnumDescriptorProto;return null!=e.name?o.name=e.name:o.name="",null!=e.value?o.value=e.value.map(e=>$root.google.protobuf.EnumValueDescriptorProto.fromGRPC(e,t)):o.value=[],null!=e.options?o.options=$root.google.protobuf.EnumOptions.fromGRPC(e.options,t):delete o.options,null!=e.reservedRange?o.reservedRange=e.reservedRange.map(e=>$root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromGRPC(e,t)):o.reservedRange=[],null!=e.reservedName?o.reservedName=e.reservedName.map(e=>e):o.reservedName=[],o}}}return EnumDescriptorProto.EnumReservedRange=function(){class EnumReservedRange{constructor(e){this.start=e&&e.start,this.end=e&&e.end}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.start?t.start=e.start:o&&(t.start=0),null!=e.end?t.end=e.end:o&&(t.end=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange;return null!=e.start?t.start=e.start:!1!==o?t.start=0:delete t.start,null!=e.end?t.end=e.end:!1!==o?t.end=0:delete t.end,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange;return null!=e.start?t.start=e.start:t.start=0,null!=e.end?t.end=e.end:t.end=0,t}}}return __builtIn.Object.defineProperty(EnumReservedRange.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.EnumDescriptorProto.EnumReservedRange"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumReservedRange.prototype,"__fqn__",{value:"google.protobuf.EnumDescriptorProto.EnumReservedRange",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumReservedRange.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumReservedRange.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),EnumReservedRange}(),EnumDescriptorProto.EnumReservedRange=function(){class EnumReservedRange{constructor(e){this.start=e&&e.start,this.end=e&&e.end}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.start?t.start=e.start:o&&(t.start=0),null!=e.end?t.end=e.end:o&&(t.end=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange;return null!=e.start?t.start=e.start:!1!==o?t.start=0:delete t.start,null!=e.end?t.end=e.end:!1!==o?t.end=0:delete t.end,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange;return null!=e.start?t.start=e.start:t.start=0,null!=e.end?t.end=e.end:t.end=0,t}}}return __builtIn.Object.defineProperty(EnumReservedRange.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.EnumDescriptorProto.EnumReservedRange"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumReservedRange.prototype,"__fqn__",{value:"google.protobuf.EnumDescriptorProto.EnumReservedRange",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumReservedRange.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumReservedRange.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),EnumReservedRange}(),__builtIn.Object.defineProperty(EnumDescriptorProto.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.EnumDescriptorProto"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.EnumDescriptorProto",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumDescriptorProto.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumDescriptorProto.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),EnumDescriptorProto}(),e.EnumValueDescriptorProto=function(){class EnumValueDescriptorProto{constructor(e){this.name=e&&e.name,this.number=e&&e.number,this.options=e&&e.options}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.number?n.number=e.number:o&&(n.number=0),null!=e.options?n.options=$root.google.protobuf.EnumValueOptions.toJSON(e.options,t,o):o&&delete n.options,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.EnumValueDescriptorProto;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.number?n.number=e.number:!1!==o?n.number=0:delete n.number,null!=e.options?n.options=$root.google.protobuf.EnumValueOptions.fromJSON(e.options,t):delete n.options,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.number&&(o.number=e.number),null!=e.options&&(o.options=$root.google.protobuf.EnumValueOptions.toGRPC(e.options,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.EnumValueDescriptorProto;return null!=e.name?o.name=e.name:o.name="",null!=e.number?o.number=e.number:o.number=0,null!=e.options?o.options=$root.google.protobuf.EnumValueOptions.fromGRPC(e.options,t):delete o.options,o}}}return __builtIn.Object.defineProperty(EnumValueDescriptorProto.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.EnumValueDescriptorProto"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumValueDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.EnumValueDescriptorProto",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumValueDescriptorProto.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumValueDescriptorProto.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),EnumValueDescriptorProto}(),e.ServiceDescriptorProto=function(){class ServiceDescriptorProto{constructor(e){this.name=e&&e.name,this.method=e&&e.method,this.options=e&&e.options}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.method?n.method=e.method.map(e=>$root.google.protobuf.MethodDescriptorProto.toJSON(e,t,o)):o&&(n.method=[]),null!=e.options?n.options=$root.google.protobuf.ServiceOptions.toJSON(e.options,t,o):o&&delete n.options,n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.ServiceDescriptorProto;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.method?n.method=Array.isArray(e.method)?e.method.map(e=>$root.google.protobuf.MethodDescriptorProto.fromJSON(e,t)):e.method:!1!==o?n.method=[]:delete n.method,null!=e.options?n.options=$root.google.protobuf.ServiceOptions.fromJSON(e.options,t):delete n.options,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.method&&(o.method=e.method.map(e=>$root.google.protobuf.MethodDescriptorProto.toGRPC(e,t))),null!=e.options&&(o.options=$root.google.protobuf.ServiceOptions.toGRPC(e.options,t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.ServiceDescriptorProto;return null!=e.name?o.name=e.name:o.name="",null!=e.method?o.method=e.method.map(e=>$root.google.protobuf.MethodDescriptorProto.fromGRPC(e,t)):o.method=[],null!=e.options?o.options=$root.google.protobuf.ServiceOptions.fromGRPC(e.options,t):delete o.options,o}}}return __builtIn.Object.defineProperty(ServiceDescriptorProto.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.ServiceDescriptorProto"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.ServiceDescriptorProto",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceDescriptorProto.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceDescriptorProto.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ServiceDescriptorProto}(),e.MethodDescriptorProto=function(){class MethodDescriptorProto{constructor(e){this.name=e&&e.name,this.inputType=e&&e.inputType,this.outputType=e&&e.outputType,this.options=e&&e.options,this.clientStreaming=e&&e.clientStreaming,this.serverStreaming=e&&e.serverStreaming}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.inputType?n.inputType=e.inputType:o&&(n.inputType=""),null!=e.outputType?n.outputType=e.outputType:o&&(n.outputType=""),null!=e.options?n.options=$root.google.protobuf.MethodOptions.toJSON(e.options,t,o):o&&delete n.options,null!=e.clientStreaming?n.clientStreaming=e.clientStreaming:o&&(n.clientStreaming=!1),null!=e.serverStreaming?n.serverStreaming=e.serverStreaming:o&&(n.serverStreaming=!1),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.MethodDescriptorProto;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.inputType?n.inputType=e.inputType:!1!==o?n.inputType="":delete n.inputType,null!=e.outputType?n.outputType=e.outputType:!1!==o?n.outputType="":delete n.outputType,null!=e.options?n.options=$root.google.protobuf.MethodOptions.fromJSON(e.options,t):delete n.options,null!=e.clientStreaming?n.clientStreaming=e.clientStreaming:!1!==o?n.clientStreaming=!1:delete n.clientStreaming,null!=e.serverStreaming?n.serverStreaming=e.serverStreaming:!1!==o?n.serverStreaming=!1:delete n.serverStreaming,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.inputType&&(o.inputType=e.inputType),null!=e.outputType&&(o.outputType=e.outputType),null!=e.options&&(o.options=$root.google.protobuf.MethodOptions.toGRPC(e.options,t)),null!=e.clientStreaming&&(o.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&(o.serverStreaming=e.serverStreaming),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.MethodDescriptorProto;return null!=e.name?o.name=e.name:o.name="",null!=e.inputType?o.inputType=e.inputType:o.inputType="",null!=e.outputType?o.outputType=e.outputType:o.outputType="",null!=e.options?o.options=$root.google.protobuf.MethodOptions.fromGRPC(e.options,t):delete o.options,null!=e.clientStreaming?o.clientStreaming=e.clientStreaming:o.clientStreaming=!1,null!=e.serverStreaming?o.serverStreaming=e.serverStreaming:o.serverStreaming=!1,o}}}return __builtIn.Object.defineProperty(MethodDescriptorProto.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.MethodDescriptorProto"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MethodDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.MethodDescriptorProto",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MethodDescriptorProto.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MethodDescriptorProto.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),MethodDescriptorProto}(),e.FileOptions=function(){class FileOptions{constructor(e){this.javaPackage=e&&e.javaPackage,this.javaOuterClassname=e&&e.javaOuterClassname,this.javaMultipleFiles=e&&e.javaMultipleFiles,this.javaGenerateEqualsAndHash=e&&e.javaGenerateEqualsAndHash,this.javaStringCheckUtf8=e&&e.javaStringCheckUtf8,this.optimizeFor=e&&e.optimizeFor,this.goPackage=e&&e.goPackage,this.ccGenericServices=e&&e.ccGenericServices,this.javaGenericServices=e&&e.javaGenericServices,this.pyGenericServices=e&&e.pyGenericServices,this.phpGenericServices=e&&e.phpGenericServices,this.deprecated=e&&e.deprecated,this.ccEnableArenas=e&&e.ccEnableArenas,this.objcClassPrefix=e&&e.objcClassPrefix,this.csharpNamespace=e&&e.csharpNamespace,this.swiftPrefix=e&&e.swiftPrefix,this.phpClassPrefix=e&&e.phpClassPrefix,this.phpNamespace=e&&e.phpNamespace,this.phpMetadataNamespace=e&&e.phpMetadataNamespace,this.rubyPackage=e&&e.rubyPackage,this.uninterpretedOption=e&&e.uninterpretedOption,this["wix.graphql.namespace"]=e&&e["wix.graphql.namespace"]}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.javaPackage?n.javaPackage=e.javaPackage:o&&(n.javaPackage=""),null!=e.javaOuterClassname?n.javaOuterClassname=e.javaOuterClassname:o&&(n.javaOuterClassname=""),null!=e.javaMultipleFiles?n.javaMultipleFiles=e.javaMultipleFiles:o&&(n.javaMultipleFiles=!1),null!=e.javaGenerateEqualsAndHash?n.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash:o&&(n.javaGenerateEqualsAndHash=!1),null!=e.javaStringCheckUtf8?n.javaStringCheckUtf8=e.javaStringCheckUtf8:o&&(n.javaStringCheckUtf8=!1),null!=e.optimizeFor?n.optimizeFor=$root.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor]:o&&(n.optimizeFor="SPEED"),null!=e.goPackage?n.goPackage=e.goPackage:o&&(n.goPackage=""),null!=e.ccGenericServices?n.ccGenericServices=e.ccGenericServices:o&&(n.ccGenericServices=!1),null!=e.javaGenericServices?n.javaGenericServices=e.javaGenericServices:o&&(n.javaGenericServices=!1),null!=e.pyGenericServices?n.pyGenericServices=e.pyGenericServices:o&&(n.pyGenericServices=!1),null!=e.phpGenericServices?n.phpGenericServices=e.phpGenericServices:o&&(n.phpGenericServices=!1),null!=e.deprecated?n.deprecated=e.deprecated:o&&(n.deprecated=!1),null!=e.ccEnableArenas?n.ccEnableArenas=e.ccEnableArenas:o&&(n.ccEnableArenas=!1),null!=e.objcClassPrefix?n.objcClassPrefix=e.objcClassPrefix:o&&(n.objcClassPrefix=""),null!=e.csharpNamespace?n.csharpNamespace=e.csharpNamespace:o&&(n.csharpNamespace=""),null!=e.swiftPrefix?n.swiftPrefix=e.swiftPrefix:o&&(n.swiftPrefix=""),null!=e.phpClassPrefix?n.phpClassPrefix=e.phpClassPrefix:o&&(n.phpClassPrefix=""),null!=e.phpNamespace?n.phpNamespace=e.phpNamespace:o&&(n.phpNamespace=""),null!=e.phpMetadataNamespace?n.phpMetadataNamespace=e.phpMetadataNamespace:o&&(n.phpMetadataNamespace=""),null!=e.rubyPackage?n.rubyPackage=e.rubyPackage:o&&(n.rubyPackage=""),null!=e.uninterpretedOption?n.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toJSON(e,t,o)):o&&(n.uninterpretedOption=[]),null!=e["wix.graphql.namespace"]?n["wix.graphql.namespace"]=e["wix.graphql.namespace"]:o&&(n["wix.graphql.namespace"]=""),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.FileOptions;return null!=e.javaPackage?n.javaPackage=e.javaPackage:!1!==o?n.javaPackage="":delete n.javaPackage,null!=e.javaOuterClassname?n.javaOuterClassname=e.javaOuterClassname:!1!==o?n.javaOuterClassname="":delete n.javaOuterClassname,null!=e.javaMultipleFiles?n.javaMultipleFiles=e.javaMultipleFiles:!1!==o?n.javaMultipleFiles=!1:delete n.javaMultipleFiles,null!=e.javaGenerateEqualsAndHash?n.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash:!1!==o?n.javaGenerateEqualsAndHash=!1:delete n.javaGenerateEqualsAndHash,null!=e.javaStringCheckUtf8?n.javaStringCheckUtf8=e.javaStringCheckUtf8:!1!==o?n.javaStringCheckUtf8=!1:delete n.javaStringCheckUtf8,null!=e.optimizeFor?n.optimizeFor="string"==typeof e.optimizeFor?e.optimizeFor:$root.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor]:!1!==o?n.optimizeFor="SPEED":delete n.optimizeFor,null!=e.goPackage?n.goPackage=e.goPackage:!1!==o?n.goPackage="":delete n.goPackage,null!=e.ccGenericServices?n.ccGenericServices=e.ccGenericServices:!1!==o?n.ccGenericServices=!1:delete n.ccGenericServices,null!=e.javaGenericServices?n.javaGenericServices=e.javaGenericServices:!1!==o?n.javaGenericServices=!1:delete n.javaGenericServices,null!=e.pyGenericServices?n.pyGenericServices=e.pyGenericServices:!1!==o?n.pyGenericServices=!1:delete n.pyGenericServices,null!=e.phpGenericServices?n.phpGenericServices=e.phpGenericServices:!1!==o?n.phpGenericServices=!1:delete n.phpGenericServices,null!=e.deprecated?n.deprecated=e.deprecated:!1!==o?n.deprecated=!1:delete n.deprecated,null!=e.ccEnableArenas?n.ccEnableArenas=e.ccEnableArenas:!1!==o?n.ccEnableArenas=!1:delete n.ccEnableArenas,null!=e.objcClassPrefix?n.objcClassPrefix=e.objcClassPrefix:!1!==o?n.objcClassPrefix="":delete n.objcClassPrefix,null!=e.csharpNamespace?n.csharpNamespace=e.csharpNamespace:!1!==o?n.csharpNamespace="":delete n.csharpNamespace,null!=e.swiftPrefix?n.swiftPrefix=e.swiftPrefix:!1!==o?n.swiftPrefix="":delete n.swiftPrefix,null!=e.phpClassPrefix?n.phpClassPrefix=e.phpClassPrefix:!1!==o?n.phpClassPrefix="":delete n.phpClassPrefix,null!=e.phpNamespace?n.phpNamespace=e.phpNamespace:!1!==o?n.phpNamespace="":delete n.phpNamespace,null!=e.phpMetadataNamespace?n.phpMetadataNamespace=e.phpMetadataNamespace:!1!==o?n.phpMetadataNamespace="":delete n.phpMetadataNamespace,null!=e.rubyPackage?n.rubyPackage=e.rubyPackage:!1!==o?n.rubyPackage="":delete n.rubyPackage,null!=e.uninterpretedOption?n.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromJSON(e,t)):e.uninterpretedOption:!1!==o?n.uninterpretedOption=[]:delete n.uninterpretedOption,null!=e["wix.graphql.namespace"]?n["wix.graphql.namespace"]=e["wix.graphql.namespace"]:!1!==o?n["wix.graphql.namespace"]="":delete n["wix.graphql.namespace"],n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.javaPackage&&(o.javaPackage=e.javaPackage),null!=e.javaOuterClassname&&(o.javaOuterClassname=e.javaOuterClassname),null!=e.javaMultipleFiles&&(o.javaMultipleFiles=e.javaMultipleFiles),null!=e.javaGenerateEqualsAndHash&&(o.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash),null!=e.javaStringCheckUtf8&&(o.javaStringCheckUtf8=e.javaStringCheckUtf8),null!=e.optimizeFor&&(o.optimizeFor=e.optimizeFor),null!=e.goPackage&&(o.goPackage=e.goPackage),null!=e.ccGenericServices&&(o.ccGenericServices=e.ccGenericServices),null!=e.javaGenericServices&&(o.javaGenericServices=e.javaGenericServices),null!=e.pyGenericServices&&(o.pyGenericServices=e.pyGenericServices),null!=e.phpGenericServices&&(o.phpGenericServices=e.phpGenericServices),null!=e.deprecated&&(o.deprecated=e.deprecated),null!=e.ccEnableArenas&&(o.ccEnableArenas=e.ccEnableArenas),null!=e.objcClassPrefix&&(o.objcClassPrefix=e.objcClassPrefix),null!=e.csharpNamespace&&(o.csharpNamespace=e.csharpNamespace),null!=e.swiftPrefix&&(o.swiftPrefix=e.swiftPrefix),null!=e.phpClassPrefix&&(o.phpClassPrefix=e.phpClassPrefix),null!=e.phpNamespace&&(o.phpNamespace=e.phpNamespace),null!=e.phpMetadataNamespace&&(o.phpMetadataNamespace=e.phpMetadataNamespace),null!=e.rubyPackage&&(o.rubyPackage=e.rubyPackage),null!=e.uninterpretedOption&&(o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toGRPC(e,t))),null!=e["wix.graphql.namespace"]&&(o["wix.graphql.namespace"]=e["wix.graphql.namespace"]),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.FileOptions;return null!=e.javaPackage?o.javaPackage=e.javaPackage:o.javaPackage="",null!=e.javaOuterClassname?o.javaOuterClassname=e.javaOuterClassname:o.javaOuterClassname="",null!=e.javaMultipleFiles?o.javaMultipleFiles=e.javaMultipleFiles:o.javaMultipleFiles=!1,null!=e.javaGenerateEqualsAndHash?o.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash:o.javaGenerateEqualsAndHash=!1,null!=e.javaStringCheckUtf8?o.javaStringCheckUtf8=e.javaStringCheckUtf8:o.javaStringCheckUtf8=!1,null!=e.optimizeFor?o.optimizeFor=e.optimizeFor:o.optimizeFor="SPEED",null!=e.goPackage?o.goPackage=e.goPackage:o.goPackage="",null!=e.ccGenericServices?o.ccGenericServices=e.ccGenericServices:o.ccGenericServices=!1,null!=e.javaGenericServices?o.javaGenericServices=e.javaGenericServices:o.javaGenericServices=!1,null!=e.pyGenericServices?o.pyGenericServices=e.pyGenericServices:o.pyGenericServices=!1,null!=e.phpGenericServices?o.phpGenericServices=e.phpGenericServices:o.phpGenericServices=!1,null!=e.deprecated?o.deprecated=e.deprecated:o.deprecated=!1,null!=e.ccEnableArenas?o.ccEnableArenas=e.ccEnableArenas:o.ccEnableArenas=!1,null!=e.objcClassPrefix?o.objcClassPrefix=e.objcClassPrefix:o.objcClassPrefix="",null!=e.csharpNamespace?o.csharpNamespace=e.csharpNamespace:o.csharpNamespace="",null!=e.swiftPrefix?o.swiftPrefix=e.swiftPrefix:o.swiftPrefix="",null!=e.phpClassPrefix?o.phpClassPrefix=e.phpClassPrefix:o.phpClassPrefix="",null!=e.phpNamespace?o.phpNamespace=e.phpNamespace:o.phpNamespace="",null!=e.phpMetadataNamespace?o.phpMetadataNamespace=e.phpMetadataNamespace:o.phpMetadataNamespace="",null!=e.rubyPackage?o.rubyPackage=e.rubyPackage:o.rubyPackage="",null!=e.uninterpretedOption?o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromGRPC(e,t)):o.uninterpretedOption=[],null!=e["wix.graphql.namespace"]?o["wix.graphql.namespace"]=e["wix.graphql.namespace"]:o["wix.graphql.namespace"]="",o}}}return FileOptions.OptimizeMode={SPEED:"SPEED",1:"SPEED",CODE_SIZE:"CODE_SIZE",2:"CODE_SIZE",LITE_RUNTIME:"LITE_RUNTIME",3:"LITE_RUNTIME"},FileOptions.OptimizeMode={SPEED:"SPEED",1:"SPEED",CODE_SIZE:"CODE_SIZE",2:"CODE_SIZE",LITE_RUNTIME:"LITE_RUNTIME",3:"LITE_RUNTIME"},__builtIn.Object.defineProperty(FileOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.FileOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FileOptions.prototype,"__fqn__",{value:"google.protobuf.FileOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FileOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FileOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),FileOptions}(),e.MessageOptions=function(){class MessageOptions{constructor(e){this.messageSetWireFormat=e&&e.messageSetWireFormat,this.noStandardDescriptorAccessor=e&&e.noStandardDescriptorAccessor,this.deprecated=e&&e.deprecated,this.mapEntry=e&&e.mapEntry,this.uninterpretedOption=e&&e.uninterpretedOption,this["wix.api.actionPayload"]=e&&e["wix.api.actionPayload"],this["wix.api.decompositeOf"]=e&&e["wix.api.decompositeOf"],this["wix.api.decompositionMinimumFields"]=e&&e["wix.api.decompositionMinimumFields"],this["wix.api.unwrapArrayValue"]=e&&e["wix.api.unwrapArrayValue"],this["wix.api.messageDeprecated"]=e&&e["wix.api.messageDeprecated"],this["wix.api.unique"]=e&&e["wix.api.unique"],this["wix.api.entity"]=e&&e["wix.api.entity"],this["wix.api.domainEvent"]=e&&e["wix.api.domainEvent"]}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.messageSetWireFormat?n.messageSetWireFormat=e.messageSetWireFormat:o&&(n.messageSetWireFormat=!1),null!=e.noStandardDescriptorAccessor?n.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor:o&&(n.noStandardDescriptorAccessor=!1),null!=e.deprecated?n.deprecated=e.deprecated:o&&(n.deprecated=!1),null!=e.mapEntry?n.mapEntry=e.mapEntry:o&&(n.mapEntry=!1),null!=e.uninterpretedOption?n.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toJSON(e,t,o)):o&&(n.uninterpretedOption=[]),null!=e["wix.api.actionPayload"]?n["wix.api.actionPayload"]=$root.wix.api.ActionPayload.toJSON(e["wix.api.actionPayload"],t,o):o&&delete n["wix.api.actionPayload"],null!=e["wix.api.decompositeOf"]?n["wix.api.decompositeOf"]=e["wix.api.decompositeOf"]:o&&(n["wix.api.decompositeOf"]=""),null!=e["wix.api.decompositionMinimumFields"]?n["wix.api.decompositionMinimumFields"]=e["wix.api.decompositionMinimumFields"].map(e=>$root.wix.api.FieldSet.toJSON(e,t,o)):o&&(n["wix.api.decompositionMinimumFields"]=[]),null!=e["wix.api.unwrapArrayValue"]?n["wix.api.unwrapArrayValue"]=e["wix.api.unwrapArrayValue"]:o&&(n["wix.api.unwrapArrayValue"]=!1),null!=e["wix.api.messageDeprecated"]?n["wix.api.messageDeprecated"]=$root.wix.api.Deprecated.toJSON(e["wix.api.messageDeprecated"],t,o):o&&delete n["wix.api.messageDeprecated"],null!=e["wix.api.unique"]?n["wix.api.unique"]=e["wix.api.unique"].map(e=>$root.wix.api.Unique.toJSON(e,t,o)):o&&(n["wix.api.unique"]=[]),null!=e["wix.api.entity"]?n["wix.api.entity"]=$root.wix.api.Entity.toJSON(e["wix.api.entity"],t,o):o&&delete n["wix.api.entity"],null!=e["wix.api.domainEvent"]?n["wix.api.domainEvent"]=e["wix.api.domainEvent"].map(e=>$root.wix.api.DomainEvent.toJSON(e,t,o)):o&&(n["wix.api.domainEvent"]=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.MessageOptions;return null!=e.messageSetWireFormat?n.messageSetWireFormat=e.messageSetWireFormat:!1!==o?n.messageSetWireFormat=!1:delete n.messageSetWireFormat,null!=e.noStandardDescriptorAccessor?n.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor:!1!==o?n.noStandardDescriptorAccessor=!1:delete n.noStandardDescriptorAccessor,null!=e.deprecated?n.deprecated=e.deprecated:!1!==o?n.deprecated=!1:delete n.deprecated,null!=e.mapEntry?n.mapEntry=e.mapEntry:!1!==o?n.mapEntry=!1:delete n.mapEntry,null!=e.uninterpretedOption?n.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromJSON(e,t)):e.uninterpretedOption:!1!==o?n.uninterpretedOption=[]:delete n.uninterpretedOption,null!=e["wix.api.actionPayload"]?n["wix.api.actionPayload"]=$root.wix.api.ActionPayload.fromJSON(e["wix.api.actionPayload"],t):delete n["wix.api.actionPayload"],null!=e["wix.api.decompositeOf"]?n["wix.api.decompositeOf"]=e["wix.api.decompositeOf"]:!1!==o?n["wix.api.decompositeOf"]="":delete n["wix.api.decompositeOf"],null!=e["wix.api.decompositionMinimumFields"]?n["wix.api.decompositionMinimumFields"]=Array.isArray(e["wix.api.decompositionMinimumFields"])?e["wix.api.decompositionMinimumFields"].map(e=>$root.wix.api.FieldSet.fromJSON(e,t)):e["wix.api.decompositionMinimumFields"]:!1!==o?n["wix.api.decompositionMinimumFields"]=[]:delete n["wix.api.decompositionMinimumFields"],null!=e["wix.api.unwrapArrayValue"]?n["wix.api.unwrapArrayValue"]=e["wix.api.unwrapArrayValue"]:!1!==o?n["wix.api.unwrapArrayValue"]=!1:delete n["wix.api.unwrapArrayValue"],null!=e["wix.api.messageDeprecated"]?n["wix.api.messageDeprecated"]=$root.wix.api.Deprecated.fromJSON(e["wix.api.messageDeprecated"],t):delete n["wix.api.messageDeprecated"],null!=e["wix.api.unique"]?n["wix.api.unique"]=Array.isArray(e["wix.api.unique"])?e["wix.api.unique"].map(e=>$root.wix.api.Unique.fromJSON(e,t)):e["wix.api.unique"]:!1!==o?n["wix.api.unique"]=[]:delete n["wix.api.unique"],null!=e["wix.api.entity"]?n["wix.api.entity"]=$root.wix.api.Entity.fromJSON(e["wix.api.entity"],t):delete n["wix.api.entity"],null!=e["wix.api.domainEvent"]?n["wix.api.domainEvent"]=Array.isArray(e["wix.api.domainEvent"])?e["wix.api.domainEvent"].map(e=>$root.wix.api.DomainEvent.fromJSON(e,t)):e["wix.api.domainEvent"]:!1!==o?n["wix.api.domainEvent"]=[]:delete n["wix.api.domainEvent"],n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.messageSetWireFormat&&(o.messageSetWireFormat=e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&(o.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor),null!=e.deprecated&&(o.deprecated=e.deprecated),null!=e.mapEntry&&(o.mapEntry=e.mapEntry),null!=e.uninterpretedOption&&(o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toGRPC(e,t))),null!=e["wix.api.actionPayload"]&&(o["wix.api.actionPayload"]=$root.wix.api.ActionPayload.toGRPC(e["wix.api.actionPayload"],t)),null!=e["wix.api.decompositeOf"]&&(o["wix.api.decompositeOf"]=e["wix.api.decompositeOf"]),null!=e["wix.api.decompositionMinimumFields"]&&(o["wix.api.decompositionMinimumFields"]=e["wix.api.decompositionMinimumFields"].map(e=>$root.wix.api.FieldSet.toGRPC(e,t))),null!=e["wix.api.unwrapArrayValue"]&&(o["wix.api.unwrapArrayValue"]=e["wix.api.unwrapArrayValue"]),null!=e["wix.api.messageDeprecated"]&&(o["wix.api.messageDeprecated"]=$root.wix.api.Deprecated.toGRPC(e["wix.api.messageDeprecated"],t)),null!=e["wix.api.unique"]&&(o["wix.api.unique"]=e["wix.api.unique"].map(e=>$root.wix.api.Unique.toGRPC(e,t))),null!=e["wix.api.entity"]&&(o["wix.api.entity"]=$root.wix.api.Entity.toGRPC(e["wix.api.entity"],t)),null!=e["wix.api.domainEvent"]&&(o["wix.api.domainEvent"]=e["wix.api.domainEvent"].map(e=>$root.wix.api.DomainEvent.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.MessageOptions;return null!=e.messageSetWireFormat?o.messageSetWireFormat=e.messageSetWireFormat:o.messageSetWireFormat=!1,null!=e.noStandardDescriptorAccessor?o.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor:o.noStandardDescriptorAccessor=!1,null!=e.deprecated?o.deprecated=e.deprecated:o.deprecated=!1,null!=e.mapEntry?o.mapEntry=e.mapEntry:o.mapEntry=!1,null!=e.uninterpretedOption?o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromGRPC(e,t)):o.uninterpretedOption=[],null!=e["wix.api.actionPayload"]?o["wix.api.actionPayload"]=$root.wix.api.ActionPayload.fromGRPC(e["wix.api.actionPayload"],t):delete o["wix.api.actionPayload"],null!=e["wix.api.decompositeOf"]?o["wix.api.decompositeOf"]=e["wix.api.decompositeOf"]:o["wix.api.decompositeOf"]="",null!=e["wix.api.decompositionMinimumFields"]?o["wix.api.decompositionMinimumFields"]=e["wix.api.decompositionMinimumFields"].map(e=>$root.wix.api.FieldSet.fromGRPC(e,t)):o["wix.api.decompositionMinimumFields"]=[],null!=e["wix.api.unwrapArrayValue"]?o["wix.api.unwrapArrayValue"]=e["wix.api.unwrapArrayValue"]:o["wix.api.unwrapArrayValue"]=!1,null!=e["wix.api.messageDeprecated"]?o["wix.api.messageDeprecated"]=$root.wix.api.Deprecated.fromGRPC(e["wix.api.messageDeprecated"],t):delete o["wix.api.messageDeprecated"],null!=e["wix.api.unique"]?o["wix.api.unique"]=e["wix.api.unique"].map(e=>$root.wix.api.Unique.fromGRPC(e,t)):o["wix.api.unique"]=[],null!=e["wix.api.entity"]?o["wix.api.entity"]=$root.wix.api.Entity.fromGRPC(e["wix.api.entity"],t):delete o["wix.api.entity"],null!=e["wix.api.domainEvent"]?o["wix.api.domainEvent"]=e["wix.api.domainEvent"].map(e=>$root.wix.api.DomainEvent.fromGRPC(e,t)):o["wix.api.domainEvent"]=[],o}}}return __builtIn.Object.defineProperty(MessageOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.MessageOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MessageOptions.prototype,"__fqn__",{value:"google.protobuf.MessageOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MessageOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MessageOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),MessageOptions}(),e.FieldOptions=function(){class FieldOptions{constructor(e){this.ctype=e&&e.ctype,this.packed=e&&e.packed,this.jstype=e&&e.jstype,this.lazy=e&&e.lazy,this.deprecated=e&&e.deprecated,this.weak=e&&e.weak,this.uninterpretedOption=e&&e.uninterpretedOption,this["wix.api.fieldExposure"]=e&&e["wix.api.fieldExposure"],this["wix.api.fieldMaturity"]=e&&e["wix.api.fieldMaturity"],this["wix.api.pii"]=e&&e["wix.api.pii"],this["wix.api.referencedEntity"]=e&&e["wix.api.referencedEntity"],this["wix.api.referencedEntityField"]=e&&e["wix.api.referencedEntityField"],this["wix.api.fieldDeprecated"]=e&&e["wix.api.fieldDeprecated"],this["wix.api.translatable"]=e&&e["wix.api.translatable"],this["wix.api.sampleData"]=e&&e["wix.api.sampleData"],this["wix.api.conditional"]=e&&e["wix.api.conditional"],this["wix.api.nullable"]=e&&e["wix.api.nullable"],this["wix.api.max"]=e&&e["wix.api.max"],this["wix.api.min"]=e&&e["wix.api.min"],this["wix.api.maxLength"]=e&&e["wix.api.maxLength"],this["wix.api.minLength"]=e&&e["wix.api.minLength"],this["wix.api.exactLength"]=e&&e["wix.api.exactLength"],this["wix.api.maxSize"]=e&&e["wix.api.maxSize"],this["wix.api.minSize"]=e&&e["wix.api.minSize"],this["wix.api.exactSize"]=e&&e["wix.api.exactSize"],this["wix.api.format"]=e&&e["wix.api.format"],this["wix.api.readOnly"]=e&&e["wix.api.readOnly"],this["wix.api.immutable"]=e&&e["wix.api.immutable"],this["wix.api.writeOnly"]=e&&e["wix.api.writeOnly"],this["wix.api.decimalValue"]=e&&e["wix.api.decimalValue"],this["wix.api.customValidation"]=e&&e["wix.api.customValidation"],this["wix.http.inferFieldmaskFrom"]=e&&e["wix.http.inferFieldmaskFrom"],this["wix.spi.baseUri"]=e&&e["wix.spi.baseUri"]}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.ctype?n.ctype=$root.google.protobuf.FieldOptions.CType[e.ctype]:o&&(n.ctype="STRING"),null!=e.packed?n.packed=e.packed:o&&(n.packed=!1),null!=e.jstype?n.jstype=$root.google.protobuf.FieldOptions.JSType[e.jstype]:o&&(n.jstype="JS_NORMAL"),null!=e.lazy?n.lazy=e.lazy:o&&(n.lazy=!1),null!=e.deprecated?n.deprecated=e.deprecated:o&&(n.deprecated=!1),null!=e.weak?n.weak=e.weak:o&&(n.weak=!1),null!=e.uninterpretedOption?n.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toJSON(e,t,o)):o&&(n.uninterpretedOption=[]),null!=e["wix.api.fieldExposure"]?n["wix.api.fieldExposure"]=$root.wix.api.Exposure[e["wix.api.fieldExposure"]]:o&&(n["wix.api.fieldExposure"]="PRIVATE"),null!=e["wix.api.fieldMaturity"]?n["wix.api.fieldMaturity"]=$root.wix.api.Maturity[e["wix.api.fieldMaturity"]]:o&&(n["wix.api.fieldMaturity"]="ALPHA"),null!=e["wix.api.pii"]?n["wix.api.pii"]=e["wix.api.pii"]:o&&(n["wix.api.pii"]=!1),null!=e["wix.api.referencedEntity"]?n["wix.api.referencedEntity"]=e["wix.api.referencedEntity"]:o&&(n["wix.api.referencedEntity"]=""),null!=e["wix.api.referencedEntityField"]?n["wix.api.referencedEntityField"]=$root.wix.api.ReferenceEntityField.toJSON(e["wix.api.referencedEntityField"],t,o):o&&delete n["wix.api.referencedEntityField"],null!=e["wix.api.fieldDeprecated"]?n["wix.api.fieldDeprecated"]=$root.wix.api.Deprecated.toJSON(e["wix.api.fieldDeprecated"],t,o):o&&delete n["wix.api.fieldDeprecated"],null!=e["wix.api.translatable"]?n["wix.api.translatable"]=$root.wix.api.Translatable.toJSON(e["wix.api.translatable"],t,o):o&&delete n["wix.api.translatable"],null!=e["wix.api.sampleData"]?n["wix.api.sampleData"]=e["wix.api.sampleData"]:o&&(n["wix.api.sampleData"]=""),null!=e["wix.api.conditional"]?n["wix.api.conditional"]=$root.wix.api.Conditional.toJSON(e["wix.api.conditional"],t,o):o&&delete n["wix.api.conditional"],null!=e["wix.api.nullable"]?n["wix.api.nullable"]=e["wix.api.nullable"]:o&&(n["wix.api.nullable"]=!1),null!=e["wix.api.max"]?n["wix.api.max"]=null==e["wix.api.max"]?e["wix.api.max"]:isNaN(e["wix.api.max"])?"NaN":isFinite(e["wix.api.max"])?e["wix.api.max"]:e["wix.api.max"].toString():o&&(n["wix.api.max"]=0),null!=e["wix.api.min"]?n["wix.api.min"]=null==e["wix.api.min"]?e["wix.api.min"]:isNaN(e["wix.api.min"])?"NaN":isFinite(e["wix.api.min"])?e["wix.api.min"]:e["wix.api.min"].toString():o&&(n["wix.api.min"]=0),null!=e["wix.api.maxLength"]?n["wix.api.maxLength"]=e["wix.api.maxLength"]:o&&(n["wix.api.maxLength"]=0),null!=e["wix.api.minLength"]?n["wix.api.minLength"]=e["wix.api.minLength"]:o&&(n["wix.api.minLength"]=0),null!=e["wix.api.exactLength"]?n["wix.api.exactLength"]=e["wix.api.exactLength"]:o&&(n["wix.api.exactLength"]=0),null!=e["wix.api.maxSize"]?n["wix.api.maxSize"]=e["wix.api.maxSize"]:o&&(n["wix.api.maxSize"]=0),null!=e["wix.api.minSize"]?n["wix.api.minSize"]=e["wix.api.minSize"]:o&&(n["wix.api.minSize"]=0),null!=e["wix.api.exactSize"]?n["wix.api.exactSize"]=e["wix.api.exactSize"]:o&&(n["wix.api.exactSize"]=0),null!=e["wix.api.format"]?n["wix.api.format"]=$root.wix.api.Format[e["wix.api.format"]]:o&&(n["wix.api.format"]="EMAIL"),null!=e["wix.api.readOnly"]?n["wix.api.readOnly"]=e["wix.api.readOnly"]:o&&(n["wix.api.readOnly"]=!1),null!=e["wix.api.immutable"]?n["wix.api.immutable"]=e["wix.api.immutable"]:o&&(n["wix.api.immutable"]=!1),null!=e["wix.api.writeOnly"]?n["wix.api.writeOnly"]=e["wix.api.writeOnly"]:o&&(n["wix.api.writeOnly"]=!1),null!=e["wix.api.decimalValue"]?n["wix.api.decimalValue"]=$root.wix.api.DecimalValueOptions.toJSON(e["wix.api.decimalValue"],t,o):o&&delete n["wix.api.decimalValue"],null!=e["wix.api.customValidation"]?n["wix.api.customValidation"]=$root.wix.api.CustomValidationError.toJSON(e["wix.api.customValidation"],t,o):o&&delete n["wix.api.customValidation"],null!=e["wix.http.inferFieldmaskFrom"]?n["wix.http.inferFieldmaskFrom"]=e["wix.http.inferFieldmaskFrom"]:o&&(n["wix.http.inferFieldmaskFrom"]=""),null!=e["wix.spi.baseUri"]?n["wix.spi.baseUri"]=e["wix.spi.baseUri"]:o&&(n["wix.spi.baseUri"]=!1),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.FieldOptions;return null!=e.ctype?n.ctype="string"==typeof e.ctype?e.ctype:$root.google.protobuf.FieldOptions.CType[e.ctype]:!1!==o?n.ctype="STRING":delete n.ctype,null!=e.packed?n.packed=e.packed:!1!==o?n.packed=!1:delete n.packed,null!=e.jstype?n.jstype="string"==typeof e.jstype?e.jstype:$root.google.protobuf.FieldOptions.JSType[e.jstype]:!1!==o?n.jstype="JS_NORMAL":delete n.jstype,null!=e.lazy?n.lazy=e.lazy:!1!==o?n.lazy=!1:delete n.lazy,null!=e.deprecated?n.deprecated=e.deprecated:!1!==o?n.deprecated=!1:delete n.deprecated,null!=e.weak?n.weak=e.weak:!1!==o?n.weak=!1:delete n.weak,null!=e.uninterpretedOption?n.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromJSON(e,t)):e.uninterpretedOption:!1!==o?n.uninterpretedOption=[]:delete n.uninterpretedOption,null!=e["wix.api.fieldExposure"]?n["wix.api.fieldExposure"]="string"==typeof e["wix.api.fieldExposure"]?e["wix.api.fieldExposure"]:$root.wix.api.Exposure[e["wix.api.fieldExposure"]]:!1!==o?n["wix.api.fieldExposure"]="PRIVATE":delete n["wix.api.fieldExposure"],null!=e["wix.api.fieldMaturity"]?n["wix.api.fieldMaturity"]="string"==typeof e["wix.api.fieldMaturity"]?e["wix.api.fieldMaturity"]:$root.wix.api.Maturity[e["wix.api.fieldMaturity"]]:!1!==o?n["wix.api.fieldMaturity"]="ALPHA":delete n["wix.api.fieldMaturity"],null!=e["wix.api.pii"]?n["wix.api.pii"]=e["wix.api.pii"]:!1!==o?n["wix.api.pii"]=!1:delete n["wix.api.pii"],null!=e["wix.api.referencedEntity"]?n["wix.api.referencedEntity"]=e["wix.api.referencedEntity"]:!1!==o?n["wix.api.referencedEntity"]="":delete n["wix.api.referencedEntity"],null!=e["wix.api.referencedEntityField"]?n["wix.api.referencedEntityField"]=$root.wix.api.ReferenceEntityField.fromJSON(e["wix.api.referencedEntityField"],t):delete n["wix.api.referencedEntityField"],null!=e["wix.api.fieldDeprecated"]?n["wix.api.fieldDeprecated"]=$root.wix.api.Deprecated.fromJSON(e["wix.api.fieldDeprecated"],t):delete n["wix.api.fieldDeprecated"],null!=e["wix.api.translatable"]?n["wix.api.translatable"]=$root.wix.api.Translatable.fromJSON(e["wix.api.translatable"],t):delete n["wix.api.translatable"],null!=e["wix.api.sampleData"]?n["wix.api.sampleData"]=e["wix.api.sampleData"]:!1!==o?n["wix.api.sampleData"]="":delete n["wix.api.sampleData"],null!=e["wix.api.conditional"]?n["wix.api.conditional"]=$root.wix.api.Conditional.fromJSON(e["wix.api.conditional"],t):delete n["wix.api.conditional"],null!=e["wix.api.nullable"]?n["wix.api.nullable"]=e["wix.api.nullable"]:!1!==o?n["wix.api.nullable"]=!1:delete n["wix.api.nullable"],null!=e["wix.api.max"]?n["wix.api.max"]="NaN"===e["wix.api.max"]?NaN:"Infinity"===e["wix.api.max"]?1/0:"-Infinity"===e["wix.api.max"]?-1/0:e["wix.api.max"]:!1!==o?n["wix.api.max"]=0:delete n["wix.api.max"],null!=e["wix.api.min"]?n["wix.api.min"]="NaN"===e["wix.api.min"]?NaN:"Infinity"===e["wix.api.min"]?1/0:"-Infinity"===e["wix.api.min"]?-1/0:e["wix.api.min"]:!1!==o?n["wix.api.min"]=0:delete n["wix.api.min"],null!=e["wix.api.maxLength"]?n["wix.api.maxLength"]=e["wix.api.maxLength"]:!1!==o?n["wix.api.maxLength"]=0:delete n["wix.api.maxLength"],null!=e["wix.api.minLength"]?n["wix.api.minLength"]=e["wix.api.minLength"]:!1!==o?n["wix.api.minLength"]=0:delete n["wix.api.minLength"],null!=e["wix.api.exactLength"]?n["wix.api.exactLength"]=e["wix.api.exactLength"]:!1!==o?n["wix.api.exactLength"]=0:delete n["wix.api.exactLength"],null!=e["wix.api.maxSize"]?n["wix.api.maxSize"]=e["wix.api.maxSize"]:!1!==o?n["wix.api.maxSize"]=0:delete n["wix.api.maxSize"],null!=e["wix.api.minSize"]?n["wix.api.minSize"]=e["wix.api.minSize"]:!1!==o?n["wix.api.minSize"]=0:delete n["wix.api.minSize"],null!=e["wix.api.exactSize"]?n["wix.api.exactSize"]=e["wix.api.exactSize"]:!1!==o?n["wix.api.exactSize"]=0:delete n["wix.api.exactSize"],null!=e["wix.api.format"]?n["wix.api.format"]="string"==typeof e["wix.api.format"]?e["wix.api.format"]:$root.wix.api.Format[e["wix.api.format"]]:!1!==o?n["wix.api.format"]="EMAIL":delete n["wix.api.format"],null!=e["wix.api.readOnly"]?n["wix.api.readOnly"]=e["wix.api.readOnly"]:!1!==o?n["wix.api.readOnly"]=!1:delete n["wix.api.readOnly"],null!=e["wix.api.immutable"]?n["wix.api.immutable"]=e["wix.api.immutable"]:!1!==o?n["wix.api.immutable"]=!1:delete n["wix.api.immutable"],null!=e["wix.api.writeOnly"]?n["wix.api.writeOnly"]=e["wix.api.writeOnly"]:!1!==o?n["wix.api.writeOnly"]=!1:delete n["wix.api.writeOnly"],null!=e["wix.api.decimalValue"]?n["wix.api.decimalValue"]=$root.wix.api.DecimalValueOptions.fromJSON(e["wix.api.decimalValue"],t):delete n["wix.api.decimalValue"],null!=e["wix.api.customValidation"]?n["wix.api.customValidation"]=$root.wix.api.CustomValidationError.fromJSON(e["wix.api.customValidation"],t):delete n["wix.api.customValidation"],null!=e["wix.http.inferFieldmaskFrom"]?n["wix.http.inferFieldmaskFrom"]=e["wix.http.inferFieldmaskFrom"]:!1!==o?n["wix.http.inferFieldmaskFrom"]="":delete n["wix.http.inferFieldmaskFrom"],null!=e["wix.spi.baseUri"]?n["wix.spi.baseUri"]=e["wix.spi.baseUri"]:!1!==o?n["wix.spi.baseUri"]=!1:delete n["wix.spi.baseUri"],n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.ctype&&(o.ctype=e.ctype),null!=e.packed&&(o.packed=e.packed),null!=e.jstype&&(o.jstype=e.jstype),null!=e.lazy&&(o.lazy=e.lazy),null!=e.deprecated&&(o.deprecated=e.deprecated),null!=e.weak&&(o.weak=e.weak),null!=e.uninterpretedOption&&(o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toGRPC(e,t))),null!=e["wix.api.fieldExposure"]&&(o["wix.api.fieldExposure"]=e["wix.api.fieldExposure"]),null!=e["wix.api.fieldMaturity"]&&(o["wix.api.fieldMaturity"]=e["wix.api.fieldMaturity"]),null!=e["wix.api.pii"]&&(o["wix.api.pii"]=e["wix.api.pii"]),null!=e["wix.api.referencedEntity"]&&(o["wix.api.referencedEntity"]=e["wix.api.referencedEntity"]),null!=e["wix.api.referencedEntityField"]&&(o["wix.api.referencedEntityField"]=$root.wix.api.ReferenceEntityField.toGRPC(e["wix.api.referencedEntityField"],t)),null!=e["wix.api.fieldDeprecated"]&&(o["wix.api.fieldDeprecated"]=$root.wix.api.Deprecated.toGRPC(e["wix.api.fieldDeprecated"],t)),null!=e["wix.api.translatable"]&&(o["wix.api.translatable"]=$root.wix.api.Translatable.toGRPC(e["wix.api.translatable"],t)),null!=e["wix.api.sampleData"]&&(o["wix.api.sampleData"]=e["wix.api.sampleData"]),null!=e["wix.api.conditional"]&&(o["wix.api.conditional"]=$root.wix.api.Conditional.toGRPC(e["wix.api.conditional"],t)),null!=e["wix.api.nullable"]&&(o["wix.api.nullable"]=e["wix.api.nullable"]),null!=e["wix.api.max"]&&(o["wix.api.max"]=e["wix.api.max"]),null!=e["wix.api.min"]&&(o["wix.api.min"]=e["wix.api.min"]),null!=e["wix.api.maxLength"]&&(o["wix.api.maxLength"]=e["wix.api.maxLength"]),null!=e["wix.api.minLength"]&&(o["wix.api.minLength"]=e["wix.api.minLength"]),null!=e["wix.api.exactLength"]&&(o["wix.api.exactLength"]=e["wix.api.exactLength"]),null!=e["wix.api.maxSize"]&&(o["wix.api.maxSize"]=e["wix.api.maxSize"]),null!=e["wix.api.minSize"]&&(o["wix.api.minSize"]=e["wix.api.minSize"]),null!=e["wix.api.exactSize"]&&(o["wix.api.exactSize"]=e["wix.api.exactSize"]),null!=e["wix.api.format"]&&(o["wix.api.format"]=e["wix.api.format"]),null!=e["wix.api.readOnly"]&&(o["wix.api.readOnly"]=e["wix.api.readOnly"]),null!=e["wix.api.immutable"]&&(o["wix.api.immutable"]=e["wix.api.immutable"]),null!=e["wix.api.writeOnly"]&&(o["wix.api.writeOnly"]=e["wix.api.writeOnly"]),null!=e["wix.api.decimalValue"]&&(o["wix.api.decimalValue"]=$root.wix.api.DecimalValueOptions.toGRPC(e["wix.api.decimalValue"],t)),null!=e["wix.api.customValidation"]&&(o["wix.api.customValidation"]=$root.wix.api.CustomValidationError.toGRPC(e["wix.api.customValidation"],t)),null!=e["wix.http.inferFieldmaskFrom"]&&(o["wix.http.inferFieldmaskFrom"]=e["wix.http.inferFieldmaskFrom"]),null!=e["wix.spi.baseUri"]&&(o["wix.spi.baseUri"]=e["wix.spi.baseUri"]),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.FieldOptions;return null!=e.ctype?o.ctype=e.ctype:o.ctype="STRING",null!=e.packed?o.packed=e.packed:o.packed=!1,null!=e.jstype?o.jstype=e.jstype:o.jstype="JS_NORMAL",null!=e.lazy?o.lazy=e.lazy:o.lazy=!1,null!=e.deprecated?o.deprecated=e.deprecated:o.deprecated=!1,null!=e.weak?o.weak=e.weak:o.weak=!1,null!=e.uninterpretedOption?o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromGRPC(e,t)):o.uninterpretedOption=[],null!=e["wix.api.fieldExposure"]?o["wix.api.fieldExposure"]=e["wix.api.fieldExposure"]:o["wix.api.fieldExposure"]="PRIVATE",null!=e["wix.api.fieldMaturity"]?o["wix.api.fieldMaturity"]=e["wix.api.fieldMaturity"]:o["wix.api.fieldMaturity"]="ALPHA",null!=e["wix.api.pii"]?o["wix.api.pii"]=e["wix.api.pii"]:o["wix.api.pii"]=!1,null!=e["wix.api.referencedEntity"]?o["wix.api.referencedEntity"]=e["wix.api.referencedEntity"]:o["wix.api.referencedEntity"]="",null!=e["wix.api.referencedEntityField"]?o["wix.api.referencedEntityField"]=$root.wix.api.ReferenceEntityField.fromGRPC(e["wix.api.referencedEntityField"],t):delete o["wix.api.referencedEntityField"],null!=e["wix.api.fieldDeprecated"]?o["wix.api.fieldDeprecated"]=$root.wix.api.Deprecated.fromGRPC(e["wix.api.fieldDeprecated"],t):delete o["wix.api.fieldDeprecated"],null!=e["wix.api.translatable"]?o["wix.api.translatable"]=$root.wix.api.Translatable.fromGRPC(e["wix.api.translatable"],t):delete o["wix.api.translatable"],null!=e["wix.api.sampleData"]?o["wix.api.sampleData"]=e["wix.api.sampleData"]:o["wix.api.sampleData"]="",null!=e["wix.api.conditional"]?o["wix.api.conditional"]=$root.wix.api.Conditional.fromGRPC(e["wix.api.conditional"],t):delete o["wix.api.conditional"],null!=e["wix.api.nullable"]?o["wix.api.nullable"]=e["wix.api.nullable"]:o["wix.api.nullable"]=!1,null!=e["wix.api.max"]?o["wix.api.max"]=e["wix.api.max"]:o["wix.api.max"]=0,null!=e["wix.api.min"]?o["wix.api.min"]=e["wix.api.min"]:o["wix.api.min"]=0,null!=e["wix.api.maxLength"]?o["wix.api.maxLength"]=e["wix.api.maxLength"]:o["wix.api.maxLength"]=0,null!=e["wix.api.minLength"]?o["wix.api.minLength"]=e["wix.api.minLength"]:o["wix.api.minLength"]=0,null!=e["wix.api.exactLength"]?o["wix.api.exactLength"]=e["wix.api.exactLength"]:o["wix.api.exactLength"]=0,null!=e["wix.api.maxSize"]?o["wix.api.maxSize"]=e["wix.api.maxSize"]:o["wix.api.maxSize"]=0,null!=e["wix.api.minSize"]?o["wix.api.minSize"]=e["wix.api.minSize"]:o["wix.api.minSize"]=0,null!=e["wix.api.exactSize"]?o["wix.api.exactSize"]=e["wix.api.exactSize"]:o["wix.api.exactSize"]=0,null!=e["wix.api.format"]?o["wix.api.format"]=e["wix.api.format"]:o["wix.api.format"]="EMAIL",null!=e["wix.api.readOnly"]?o["wix.api.readOnly"]=e["wix.api.readOnly"]:o["wix.api.readOnly"]=!1,null!=e["wix.api.immutable"]?o["wix.api.immutable"]=e["wix.api.immutable"]:o["wix.api.immutable"]=!1,null!=e["wix.api.writeOnly"]?o["wix.api.writeOnly"]=e["wix.api.writeOnly"]:o["wix.api.writeOnly"]=!1,null!=e["wix.api.decimalValue"]?o["wix.api.decimalValue"]=$root.wix.api.DecimalValueOptions.fromGRPC(e["wix.api.decimalValue"],t):delete o["wix.api.decimalValue"],null!=e["wix.api.customValidation"]?o["wix.api.customValidation"]=$root.wix.api.CustomValidationError.fromGRPC(e["wix.api.customValidation"],t):delete o["wix.api.customValidation"],null!=e["wix.http.inferFieldmaskFrom"]?o["wix.http.inferFieldmaskFrom"]=e["wix.http.inferFieldmaskFrom"]:o["wix.http.inferFieldmaskFrom"]="",null!=e["wix.spi.baseUri"]?o["wix.spi.baseUri"]=e["wix.spi.baseUri"]:o["wix.spi.baseUri"]=!1,o}}}return FieldOptions.CType={STRING:"STRING",0:"STRING",CORD:"CORD",1:"CORD",STRING_PIECE:"STRING_PIECE",2:"STRING_PIECE"},FieldOptions.JSType={JS_NORMAL:"JS_NORMAL",0:"JS_NORMAL",JS_STRING:"JS_STRING",1:"JS_STRING",JS_NUMBER:"JS_NUMBER",2:"JS_NUMBER"},FieldOptions.CType={STRING:"STRING",0:"STRING",CORD:"CORD",1:"CORD",STRING_PIECE:"STRING_PIECE",2:"STRING_PIECE"},FieldOptions.JSType={JS_NORMAL:"JS_NORMAL",0:"JS_NORMAL",JS_STRING:"JS_STRING",1:"JS_STRING",JS_NUMBER:"JS_NUMBER",2:"JS_NUMBER"},__builtIn.Object.defineProperty(FieldOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.FieldOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldOptions.prototype,"__fqn__",{value:"google.protobuf.FieldOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),FieldOptions}(),e.OneofOptions=function(){class OneofOptions{constructor(e){this.uninterpretedOption=e&&e.uninterpretedOption,this["wix.api.alignedWithEnum"]=e&&e["wix.api.alignedWithEnum"]}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.uninterpretedOption?n.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toJSON(e,t,o)):o&&(n.uninterpretedOption=[]),null!=e["wix.api.alignedWithEnum"]?n["wix.api.alignedWithEnum"]=$root.wix.api.AlignedWithEnum.toJSON(e["wix.api.alignedWithEnum"],t,o):o&&delete n["wix.api.alignedWithEnum"],n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.OneofOptions;return null!=e.uninterpretedOption?n.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromJSON(e,t)):e.uninterpretedOption:!1!==o?n.uninterpretedOption=[]:delete n.uninterpretedOption,null!=e["wix.api.alignedWithEnum"]?n["wix.api.alignedWithEnum"]=$root.wix.api.AlignedWithEnum.fromJSON(e["wix.api.alignedWithEnum"],t):delete n["wix.api.alignedWithEnum"],n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.uninterpretedOption&&(o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toGRPC(e,t))),null!=e["wix.api.alignedWithEnum"]&&(o["wix.api.alignedWithEnum"]=$root.wix.api.AlignedWithEnum.toGRPC(e["wix.api.alignedWithEnum"],t)),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.OneofOptions;return null!=e.uninterpretedOption?o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromGRPC(e,t)):o.uninterpretedOption=[],null!=e["wix.api.alignedWithEnum"]?o["wix.api.alignedWithEnum"]=$root.wix.api.AlignedWithEnum.fromGRPC(e["wix.api.alignedWithEnum"],t):delete o["wix.api.alignedWithEnum"],o}}}return __builtIn.Object.defineProperty(OneofOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.OneofOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OneofOptions.prototype,"__fqn__",{value:"google.protobuf.OneofOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OneofOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(OneofOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),OneofOptions}(),e.EnumOptions=function(){class EnumOptions{constructor(e){this.allowAlias=e&&e.allowAlias,this.deprecated=e&&e.deprecated,this.uninterpretedOption=e&&e.uninterpretedOption}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.allowAlias?n.allowAlias=e.allowAlias:o&&(n.allowAlias=!1),null!=e.deprecated?n.deprecated=e.deprecated:o&&(n.deprecated=!1),null!=e.uninterpretedOption?n.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toJSON(e,t,o)):o&&(n.uninterpretedOption=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.EnumOptions;return null!=e.allowAlias?n.allowAlias=e.allowAlias:!1!==o?n.allowAlias=!1:delete n.allowAlias,null!=e.deprecated?n.deprecated=e.deprecated:!1!==o?n.deprecated=!1:delete n.deprecated,null!=e.uninterpretedOption?n.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromJSON(e,t)):e.uninterpretedOption:!1!==o?n.uninterpretedOption=[]:delete n.uninterpretedOption,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.allowAlias&&(o.allowAlias=e.allowAlias),null!=e.deprecated&&(o.deprecated=e.deprecated),null!=e.uninterpretedOption&&(o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.EnumOptions;return null!=e.allowAlias?o.allowAlias=e.allowAlias:o.allowAlias=!1,null!=e.deprecated?o.deprecated=e.deprecated:o.deprecated=!1,null!=e.uninterpretedOption?o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromGRPC(e,t)):o.uninterpretedOption=[],o}}}return __builtIn.Object.defineProperty(EnumOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.EnumOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumOptions.prototype,"__fqn__",{value:"google.protobuf.EnumOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),EnumOptions}(),e.EnumValueOptions=function(){class EnumValueOptions{constructor(e){this.deprecated=e&&e.deprecated,this.uninterpretedOption=e&&e.uninterpretedOption,this["wix.api.enumMaturity"]=e&&e["wix.api.enumMaturity"],this["wix.api.enumExposure"]=e&&e["wix.api.enumExposure"]}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.deprecated?n.deprecated=e.deprecated:o&&(n.deprecated=!1),null!=e.uninterpretedOption?n.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toJSON(e,t,o)):o&&(n.uninterpretedOption=[]),null!=e["wix.api.enumMaturity"]?n["wix.api.enumMaturity"]=$root.wix.api.Maturity[e["wix.api.enumMaturity"]]:o&&(n["wix.api.enumMaturity"]="ALPHA"),null!=e["wix.api.enumExposure"]?n["wix.api.enumExposure"]=$root.wix.api.Exposure[e["wix.api.enumExposure"]]:o&&(n["wix.api.enumExposure"]="PRIVATE"),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.EnumValueOptions;return null!=e.deprecated?n.deprecated=e.deprecated:!1!==o?n.deprecated=!1:delete n.deprecated,null!=e.uninterpretedOption?n.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromJSON(e,t)):e.uninterpretedOption:!1!==o?n.uninterpretedOption=[]:delete n.uninterpretedOption,null!=e["wix.api.enumMaturity"]?n["wix.api.enumMaturity"]="string"==typeof e["wix.api.enumMaturity"]?e["wix.api.enumMaturity"]:$root.wix.api.Maturity[e["wix.api.enumMaturity"]]:!1!==o?n["wix.api.enumMaturity"]="ALPHA":delete n["wix.api.enumMaturity"],null!=e["wix.api.enumExposure"]?n["wix.api.enumExposure"]="string"==typeof e["wix.api.enumExposure"]?e["wix.api.enumExposure"]:$root.wix.api.Exposure[e["wix.api.enumExposure"]]:!1!==o?n["wix.api.enumExposure"]="PRIVATE":delete n["wix.api.enumExposure"],n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.deprecated&&(o.deprecated=e.deprecated),null!=e.uninterpretedOption&&(o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toGRPC(e,t))),null!=e["wix.api.enumMaturity"]&&(o["wix.api.enumMaturity"]=e["wix.api.enumMaturity"]),null!=e["wix.api.enumExposure"]&&(o["wix.api.enumExposure"]=e["wix.api.enumExposure"]),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.EnumValueOptions;return null!=e.deprecated?o.deprecated=e.deprecated:o.deprecated=!1,null!=e.uninterpretedOption?o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromGRPC(e,t)):o.uninterpretedOption=[],null!=e["wix.api.enumMaturity"]?o["wix.api.enumMaturity"]=e["wix.api.enumMaturity"]:o["wix.api.enumMaturity"]="ALPHA",null!=e["wix.api.enumExposure"]?o["wix.api.enumExposure"]=e["wix.api.enumExposure"]:o["wix.api.enumExposure"]="PRIVATE",o}}}return __builtIn.Object.defineProperty(EnumValueOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.EnumValueOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumValueOptions.prototype,"__fqn__",{value:"google.protobuf.EnumValueOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumValueOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(EnumValueOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),EnumValueOptions}(),e.ServiceOptions=function(){class ServiceOptions{constructor(e){this.deprecated=e&&e.deprecated,this.uninterpretedOption=e&&e.uninterpretedOption,this["wix.api.serviceMaturity"]=e&&e["wix.api.serviceMaturity"],this["wix.api.serviceExposure"]=e&&e["wix.api.serviceExposure"],this["wix.api.serviceDeprecated"]=e&&e["wix.api.serviceDeprecated"],this["wix.api.appendixFiles"]=e&&e["wix.api.appendixFiles"],this["wix.api.errorDef"]=e&&e["wix.api.errorDef"],this["wix.api.event"]=e&&e["wix.api.event"],this["wix.api.eventDeprecated"]=e&&e["wix.api.eventDeprecated"],this["wix.api.serviceEntity"]=e&&e["wix.api.serviceEntity"],this["wix.spi.service"]=e&&e["wix.spi.service"],this["wix.spi.event"]=e&&e["wix.spi.event"]}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.deprecated?n.deprecated=e.deprecated:o&&(n.deprecated=!1),null!=e.uninterpretedOption?n.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toJSON(e,t,o)):o&&(n.uninterpretedOption=[]),null!=e["wix.api.serviceMaturity"]?n["wix.api.serviceMaturity"]=$root.wix.api.Maturity[e["wix.api.serviceMaturity"]]:o&&(n["wix.api.serviceMaturity"]="ALPHA"),null!=e["wix.api.serviceExposure"]?n["wix.api.serviceExposure"]=$root.wix.api.Exposure[e["wix.api.serviceExposure"]]:o&&(n["wix.api.serviceExposure"]="PRIVATE"),null!=e["wix.api.serviceDeprecated"]?n["wix.api.serviceDeprecated"]=$root.wix.api.Deprecated.toJSON(e["wix.api.serviceDeprecated"],t,o):o&&delete n["wix.api.serviceDeprecated"],null!=e["wix.api.appendixFiles"]?n["wix.api.appendixFiles"]=e["wix.api.appendixFiles"].map(e=>$root.wix.api.ServiceAppendix.toJSON(e,t,o)):o&&(n["wix.api.appendixFiles"]=[]),null!=e["wix.api.errorDef"]?n["wix.api.errorDef"]=e["wix.api.errorDef"].map(e=>$root.wix.api.Error.toJSON(e,t,o)):o&&(n["wix.api.errorDef"]=[]),null!=e["wix.api.event"]?n["wix.api.event"]=e["wix.api.event"].map(e=>$root.wix.api.Callback.toJSON(e,t,o)):o&&(n["wix.api.event"]=[]),null!=e["wix.api.eventDeprecated"]?n["wix.api.eventDeprecated"]=e["wix.api.eventDeprecated"].map(e=>$root.wix.api.CallbackDeprecation.toJSON(e,t,o)):o&&(n["wix.api.eventDeprecated"]=[]),null!=e["wix.api.serviceEntity"]?n["wix.api.serviceEntity"]=$root.wix.api.ServiceEntity.toJSON(e["wix.api.serviceEntity"],t,o):o&&delete n["wix.api.serviceEntity"],null!=e["wix.spi.service"]?n["wix.spi.service"]=$root.wix.spi.Service.toJSON(e["wix.spi.service"],t,o):o&&delete n["wix.spi.service"],null!=e["wix.spi.event"]?n["wix.spi.event"]=e["wix.spi.event"].map(e=>$root.wix.spi.Event.toJSON(e,t,o)):o&&(n["wix.spi.event"]=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.ServiceOptions;return null!=e.deprecated?n.deprecated=e.deprecated:!1!==o?n.deprecated=!1:delete n.deprecated,null!=e.uninterpretedOption?n.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromJSON(e,t)):e.uninterpretedOption:!1!==o?n.uninterpretedOption=[]:delete n.uninterpretedOption,null!=e["wix.api.serviceMaturity"]?n["wix.api.serviceMaturity"]="string"==typeof e["wix.api.serviceMaturity"]?e["wix.api.serviceMaturity"]:$root.wix.api.Maturity[e["wix.api.serviceMaturity"]]:!1!==o?n["wix.api.serviceMaturity"]="ALPHA":delete n["wix.api.serviceMaturity"],null!=e["wix.api.serviceExposure"]?n["wix.api.serviceExposure"]="string"==typeof e["wix.api.serviceExposure"]?e["wix.api.serviceExposure"]:$root.wix.api.Exposure[e["wix.api.serviceExposure"]]:!1!==o?n["wix.api.serviceExposure"]="PRIVATE":delete n["wix.api.serviceExposure"],null!=e["wix.api.serviceDeprecated"]?n["wix.api.serviceDeprecated"]=$root.wix.api.Deprecated.fromJSON(e["wix.api.serviceDeprecated"],t):delete n["wix.api.serviceDeprecated"],null!=e["wix.api.appendixFiles"]?n["wix.api.appendixFiles"]=Array.isArray(e["wix.api.appendixFiles"])?e["wix.api.appendixFiles"].map(e=>$root.wix.api.ServiceAppendix.fromJSON(e,t)):e["wix.api.appendixFiles"]:!1!==o?n["wix.api.appendixFiles"]=[]:delete n["wix.api.appendixFiles"],null!=e["wix.api.errorDef"]?n["wix.api.errorDef"]=Array.isArray(e["wix.api.errorDef"])?e["wix.api.errorDef"].map(e=>$root.wix.api.Error.fromJSON(e,t)):e["wix.api.errorDef"]:!1!==o?n["wix.api.errorDef"]=[]:delete n["wix.api.errorDef"],null!=e["wix.api.event"]?n["wix.api.event"]=Array.isArray(e["wix.api.event"])?e["wix.api.event"].map(e=>$root.wix.api.Callback.fromJSON(e,t)):e["wix.api.event"]:!1!==o?n["wix.api.event"]=[]:delete n["wix.api.event"],null!=e["wix.api.eventDeprecated"]?n["wix.api.eventDeprecated"]=Array.isArray(e["wix.api.eventDeprecated"])?e["wix.api.eventDeprecated"].map(e=>$root.wix.api.CallbackDeprecation.fromJSON(e,t)):e["wix.api.eventDeprecated"]:!1!==o?n["wix.api.eventDeprecated"]=[]:delete n["wix.api.eventDeprecated"],null!=e["wix.api.serviceEntity"]?n["wix.api.serviceEntity"]=$root.wix.api.ServiceEntity.fromJSON(e["wix.api.serviceEntity"],t):delete n["wix.api.serviceEntity"],null!=e["wix.spi.service"]?n["wix.spi.service"]=$root.wix.spi.Service.fromJSON(e["wix.spi.service"],t):delete n["wix.spi.service"],null!=e["wix.spi.event"]?n["wix.spi.event"]=Array.isArray(e["wix.spi.event"])?e["wix.spi.event"].map(e=>$root.wix.spi.Event.fromJSON(e,t)):e["wix.spi.event"]:!1!==o?n["wix.spi.event"]=[]:delete n["wix.spi.event"],n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.deprecated&&(o.deprecated=e.deprecated),null!=e.uninterpretedOption&&(o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toGRPC(e,t))),null!=e["wix.api.serviceMaturity"]&&(o["wix.api.serviceMaturity"]=e["wix.api.serviceMaturity"]),null!=e["wix.api.serviceExposure"]&&(o["wix.api.serviceExposure"]=e["wix.api.serviceExposure"]),null!=e["wix.api.serviceDeprecated"]&&(o["wix.api.serviceDeprecated"]=$root.wix.api.Deprecated.toGRPC(e["wix.api.serviceDeprecated"],t)),null!=e["wix.api.appendixFiles"]&&(o["wix.api.appendixFiles"]=e["wix.api.appendixFiles"].map(e=>$root.wix.api.ServiceAppendix.toGRPC(e,t))),null!=e["wix.api.errorDef"]&&(o["wix.api.errorDef"]=e["wix.api.errorDef"].map(e=>$root.wix.api.Error.toGRPC(e,t))),null!=e["wix.api.event"]&&(o["wix.api.event"]=e["wix.api.event"].map(e=>$root.wix.api.Callback.toGRPC(e,t))),null!=e["wix.api.eventDeprecated"]&&(o["wix.api.eventDeprecated"]=e["wix.api.eventDeprecated"].map(e=>$root.wix.api.CallbackDeprecation.toGRPC(e,t))),null!=e["wix.api.serviceEntity"]&&(o["wix.api.serviceEntity"]=$root.wix.api.ServiceEntity.toGRPC(e["wix.api.serviceEntity"],t)),null!=e["wix.spi.service"]&&(o["wix.spi.service"]=$root.wix.spi.Service.toGRPC(e["wix.spi.service"],t)),null!=e["wix.spi.event"]&&(o["wix.spi.event"]=e["wix.spi.event"].map(e=>$root.wix.spi.Event.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.ServiceOptions;return null!=e.deprecated?o.deprecated=e.deprecated:o.deprecated=!1,null!=e.uninterpretedOption?o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromGRPC(e,t)):o.uninterpretedOption=[],null!=e["wix.api.serviceMaturity"]?o["wix.api.serviceMaturity"]=e["wix.api.serviceMaturity"]:o["wix.api.serviceMaturity"]="ALPHA",null!=e["wix.api.serviceExposure"]?o["wix.api.serviceExposure"]=e["wix.api.serviceExposure"]:o["wix.api.serviceExposure"]="PRIVATE",null!=e["wix.api.serviceDeprecated"]?o["wix.api.serviceDeprecated"]=$root.wix.api.Deprecated.fromGRPC(e["wix.api.serviceDeprecated"],t):delete o["wix.api.serviceDeprecated"],null!=e["wix.api.appendixFiles"]?o["wix.api.appendixFiles"]=e["wix.api.appendixFiles"].map(e=>$root.wix.api.ServiceAppendix.fromGRPC(e,t)):o["wix.api.appendixFiles"]=[],null!=e["wix.api.errorDef"]?o["wix.api.errorDef"]=e["wix.api.errorDef"].map(e=>$root.wix.api.Error.fromGRPC(e,t)):o["wix.api.errorDef"]=[],null!=e["wix.api.event"]?o["wix.api.event"]=e["wix.api.event"].map(e=>$root.wix.api.Callback.fromGRPC(e,t)):o["wix.api.event"]=[],null!=e["wix.api.eventDeprecated"]?o["wix.api.eventDeprecated"]=e["wix.api.eventDeprecated"].map(e=>$root.wix.api.CallbackDeprecation.fromGRPC(e,t)):o["wix.api.eventDeprecated"]=[],null!=e["wix.api.serviceEntity"]?o["wix.api.serviceEntity"]=$root.wix.api.ServiceEntity.fromGRPC(e["wix.api.serviceEntity"],t):delete o["wix.api.serviceEntity"],null!=e["wix.spi.service"]?o["wix.spi.service"]=$root.wix.spi.Service.fromGRPC(e["wix.spi.service"],t):delete o["wix.spi.service"],null!=e["wix.spi.event"]?o["wix.spi.event"]=e["wix.spi.event"].map(e=>$root.wix.spi.Event.fromGRPC(e,t)):o["wix.spi.event"]=[],o}}}return __builtIn.Object.defineProperty(ServiceOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.ServiceOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceOptions.prototype,"__fqn__",{value:"google.protobuf.ServiceOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ServiceOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ServiceOptions}(),e.MethodOptions=function(){class MethodOptions{constructor(e){this.deprecated=e&&e.deprecated,this.idempotencyLevel=e&&e.idempotencyLevel,this.uninterpretedOption=e&&e.uninterpretedOption,this["wix.api.exposure"]=e&&e["wix.api.exposure"],this["wix.api.maturity"]=e&&e["wix.api.maturity"],this["wix.api.cacheable"]=e&&e["wix.api.cacheable"],this["wix.api.deprecated"]=e&&e["wix.api.deprecated"],this["wix.api.crud"]=e&&e["wix.api.crud"],this["wix.api.acceptsLinguist"]=e&&e["wix.api.acceptsLinguist"],this["wix.api.error"]=e&&e["wix.api.error"],this["wix.api.customValidationError"]=e&&e["wix.api.customValidationError"],this["wix.api.inheritCrudErrors"]=e&&e["wix.api.inheritCrudErrors"],this["wix.api.errorRef"]=e&&e["wix.api.errorRef"],this["wix.api.callback"]=e&&e["wix.api.callback"],this["wix.api.emits"]=e&&e["wix.api.emits"],this["wix.api.idempotency"]=e&&e["wix.api.idempotency"],this["wix.api.permission"]=e&&e["wix.api.permission"],this["wix.api.additionalPermission"]=e&&e["wix.api.additionalPermission"],this["wix.api.sla"]=e&&e["wix.api.sla"],this["wix.api.subscription"]=e&&e["wix.api.subscription"],this["wix.api.required"]=e&&e["wix.api.required"],this["wix.api.writable"]=e&&e["wix.api.writable"],this["google.api.http"]=e&&e["google.api.http"],this["wix.http.inferFieldmask"]=e&&e["wix.http.inferFieldmask"],this["wix.sdk.signature"]=e&&e["wix.sdk.signature"],this["wix.spi.error"]=e&&e["wix.spi.error"],this["wix.spi.featureToggle"]=e&&e["wix.spi.featureToggle"]}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.deprecated?n.deprecated=e.deprecated:o&&(n.deprecated=!1),null!=e.idempotencyLevel?n.idempotencyLevel=$root.google.protobuf.MethodOptions.IdempotencyLevel[e.idempotencyLevel]:o&&(n.idempotencyLevel="IDEMPOTENCY_UNKNOWN"),null!=e.uninterpretedOption?n.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toJSON(e,t,o)):o&&(n.uninterpretedOption=[]),null!=e["wix.api.exposure"]?n["wix.api.exposure"]=$root.wix.api.Exposure[e["wix.api.exposure"]]:o&&(n["wix.api.exposure"]="PRIVATE"),null!=e["wix.api.maturity"]?n["wix.api.maturity"]=$root.wix.api.Maturity[e["wix.api.maturity"]]:o&&(n["wix.api.maturity"]="ALPHA"),null!=e["wix.api.cacheable"]?n["wix.api.cacheable"]=$root.wix.api.CacheSettings.toJSON(e["wix.api.cacheable"],t,o):o&&delete n["wix.api.cacheable"],null!=e["wix.api.deprecated"]?n["wix.api.deprecated"]=$root.wix.api.Deprecated.toJSON(e["wix.api.deprecated"],t,o):o&&delete n["wix.api.deprecated"],null!=e["wix.api.crud"]?n["wix.api.crud"]=$root.wix.api.Crud.toJSON(e["wix.api.crud"],t,o):o&&delete n["wix.api.crud"],null!=e["wix.api.acceptsLinguist"]?n["wix.api.acceptsLinguist"]=e["wix.api.acceptsLinguist"]:o&&(n["wix.api.acceptsLinguist"]=!1),null!=e["wix.api.error"]?n["wix.api.error"]=e["wix.api.error"].map(e=>$root.wix.api.Error.toJSON(e,t,o)):o&&(n["wix.api.error"]=[]),null!=e["wix.api.customValidationError"]?n["wix.api.customValidationError"]=e["wix.api.customValidationError"].map(e=>$root.wix.api.CustomValidationError.toJSON(e,t,o)):o&&(n["wix.api.customValidationError"]=[]),null!=e["wix.api.inheritCrudErrors"]?n["wix.api.inheritCrudErrors"]=e["wix.api.inheritCrudErrors"].map(e=>$root.wix.api.InheritCrudErrors.toJSON(e,t,o)):o&&(n["wix.api.inheritCrudErrors"]=[]),null!=e["wix.api.errorRef"]?n["wix.api.errorRef"]=e["wix.api.errorRef"].map(e=>$root.wix.api.ErrorRef.toJSON(e,t,o)):o&&(n["wix.api.errorRef"]=[]),null!=e["wix.api.callback"]?n["wix.api.callback"]=e["wix.api.callback"].map(e=>$root.wix.api.Callback.toJSON(e,t,o)):o&&(n["wix.api.callback"]=[]),null!=e["wix.api.emits"]?n["wix.api.emits"]=e["wix.api.emits"].map(e=>$root.wix.api.Emits.toJSON(e,t,o)):o&&(n["wix.api.emits"]=[]),null!=e["wix.api.idempotency"]?n["wix.api.idempotency"]=$root.wix.api.Idempotency.toJSON(e["wix.api.idempotency"],t,o):o&&delete n["wix.api.idempotency"],null!=e["wix.api.permission"]?n["wix.api.permission"]=$root.wix.api.PermissionRule.toJSON(e["wix.api.permission"],t,o):o&&delete n["wix.api.permission"],null!=e["wix.api.additionalPermission"]?n["wix.api.additionalPermission"]=e["wix.api.additionalPermission"].map(e=>$root.wix.api.PermissionRule.toJSON(e,t,o)):o&&(n["wix.api.additionalPermission"]=[]),null!=e["wix.api.sla"]?n["wix.api.sla"]=$root.wix.api.Sla.toJSON(e["wix.api.sla"],t,o):o&&delete n["wix.api.sla"],null!=e["wix.api.subscription"]?n["wix.api.subscription"]=$root.wix.api.Subscription.toJSON(e["wix.api.subscription"],t,o):o&&delete n["wix.api.subscription"],null!=e["wix.api.required"]?n["wix.api.required"]=e["wix.api.required"].map(e=>e):o&&(n["wix.api.required"]=[]),null!=e["wix.api.writable"]?n["wix.api.writable"]=e["wix.api.writable"].map(e=>e):o&&(n["wix.api.writable"]=[]),null!=e["google.api.http"]?n["google.api.http"]=$root.google.api.HttpRule.toJSON(e["google.api.http"],t,o):o&&delete n["google.api.http"],null!=e["wix.http.inferFieldmask"]?n["wix.http.inferFieldmask"]=$root.wix.http.InferFieldmask.toJSON(e["wix.http.inferFieldmask"],t,o):o&&delete n["wix.http.inferFieldmask"],null!=e["wix.sdk.signature"]?n["wix.sdk.signature"]=e["wix.sdk.signature"].map(e=>$root.wix.sdk.Signature.toJSON(e,t,o)):o&&(n["wix.sdk.signature"]=[]),null!=e["wix.spi.error"]?n["wix.spi.error"]=e["wix.spi.error"].map(e=>$root.wix.spi.Error.toJSON(e,t,o)):o&&(n["wix.spi.error"]=[]),null!=e["wix.spi.featureToggle"]?n["wix.spi.featureToggle"]=e["wix.spi.featureToggle"]:o&&(n["wix.spi.featureToggle"]=""),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.MethodOptions;return null!=e.deprecated?n.deprecated=e.deprecated:!1!==o?n.deprecated=!1:delete n.deprecated,null!=e.idempotencyLevel?n.idempotencyLevel="string"==typeof e.idempotencyLevel?e.idempotencyLevel:$root.google.protobuf.MethodOptions.IdempotencyLevel[e.idempotencyLevel]:!1!==o?n.idempotencyLevel="IDEMPOTENCY_UNKNOWN":delete n.idempotencyLevel,null!=e.uninterpretedOption?n.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromJSON(e,t)):e.uninterpretedOption:!1!==o?n.uninterpretedOption=[]:delete n.uninterpretedOption,null!=e["wix.api.exposure"]?n["wix.api.exposure"]="string"==typeof e["wix.api.exposure"]?e["wix.api.exposure"]:$root.wix.api.Exposure[e["wix.api.exposure"]]:!1!==o?n["wix.api.exposure"]="PRIVATE":delete n["wix.api.exposure"],null!=e["wix.api.maturity"]?n["wix.api.maturity"]="string"==typeof e["wix.api.maturity"]?e["wix.api.maturity"]:$root.wix.api.Maturity[e["wix.api.maturity"]]:!1!==o?n["wix.api.maturity"]="ALPHA":delete n["wix.api.maturity"],null!=e["wix.api.cacheable"]?n["wix.api.cacheable"]=$root.wix.api.CacheSettings.fromJSON(e["wix.api.cacheable"],t):delete n["wix.api.cacheable"],null!=e["wix.api.deprecated"]?n["wix.api.deprecated"]=$root.wix.api.Deprecated.fromJSON(e["wix.api.deprecated"],t):delete n["wix.api.deprecated"],null!=e["wix.api.crud"]?n["wix.api.crud"]=$root.wix.api.Crud.fromJSON(e["wix.api.crud"],t):delete n["wix.api.crud"],null!=e["wix.api.acceptsLinguist"]?n["wix.api.acceptsLinguist"]=e["wix.api.acceptsLinguist"]:!1!==o?n["wix.api.acceptsLinguist"]=!1:delete n["wix.api.acceptsLinguist"],null!=e["wix.api.error"]?n["wix.api.error"]=Array.isArray(e["wix.api.error"])?e["wix.api.error"].map(e=>$root.wix.api.Error.fromJSON(e,t)):e["wix.api.error"]:!1!==o?n["wix.api.error"]=[]:delete n["wix.api.error"],null!=e["wix.api.customValidationError"]?n["wix.api.customValidationError"]=Array.isArray(e["wix.api.customValidationError"])?e["wix.api.customValidationError"].map(e=>$root.wix.api.CustomValidationError.fromJSON(e,t)):e["wix.api.customValidationError"]:!1!==o?n["wix.api.customValidationError"]=[]:delete n["wix.api.customValidationError"],null!=e["wix.api.inheritCrudErrors"]?n["wix.api.inheritCrudErrors"]=Array.isArray(e["wix.api.inheritCrudErrors"])?e["wix.api.inheritCrudErrors"].map(e=>$root.wix.api.InheritCrudErrors.fromJSON(e,t)):e["wix.api.inheritCrudErrors"]:!1!==o?n["wix.api.inheritCrudErrors"]=[]:delete n["wix.api.inheritCrudErrors"],null!=e["wix.api.errorRef"]?n["wix.api.errorRef"]=Array.isArray(e["wix.api.errorRef"])?e["wix.api.errorRef"].map(e=>$root.wix.api.ErrorRef.fromJSON(e,t)):e["wix.api.errorRef"]:!1!==o?n["wix.api.errorRef"]=[]:delete n["wix.api.errorRef"],null!=e["wix.api.callback"]?n["wix.api.callback"]=Array.isArray(e["wix.api.callback"])?e["wix.api.callback"].map(e=>$root.wix.api.Callback.fromJSON(e,t)):e["wix.api.callback"]:!1!==o?n["wix.api.callback"]=[]:delete n["wix.api.callback"],null!=e["wix.api.emits"]?n["wix.api.emits"]=Array.isArray(e["wix.api.emits"])?e["wix.api.emits"].map(e=>$root.wix.api.Emits.fromJSON(e,t)):e["wix.api.emits"]:!1!==o?n["wix.api.emits"]=[]:delete n["wix.api.emits"],null!=e["wix.api.idempotency"]?n["wix.api.idempotency"]=$root.wix.api.Idempotency.fromJSON(e["wix.api.idempotency"],t):delete n["wix.api.idempotency"],null!=e["wix.api.permission"]?n["wix.api.permission"]=$root.wix.api.PermissionRule.fromJSON(e["wix.api.permission"],t):delete n["wix.api.permission"],null!=e["wix.api.additionalPermission"]?n["wix.api.additionalPermission"]=Array.isArray(e["wix.api.additionalPermission"])?e["wix.api.additionalPermission"].map(e=>$root.wix.api.PermissionRule.fromJSON(e,t)):e["wix.api.additionalPermission"]:!1!==o?n["wix.api.additionalPermission"]=[]:delete n["wix.api.additionalPermission"],null!=e["wix.api.sla"]?n["wix.api.sla"]=$root.wix.api.Sla.fromJSON(e["wix.api.sla"],t):delete n["wix.api.sla"],null!=e["wix.api.subscription"]?n["wix.api.subscription"]=$root.wix.api.Subscription.fromJSON(e["wix.api.subscription"],t):delete n["wix.api.subscription"],null!=e["wix.api.required"]?n["wix.api.required"]=Array.isArray(e["wix.api.required"])?e["wix.api.required"].map(e=>e):e["wix.api.required"]:!1!==o?n["wix.api.required"]=[]:delete n["wix.api.required"],null!=e["wix.api.writable"]?n["wix.api.writable"]=Array.isArray(e["wix.api.writable"])?e["wix.api.writable"].map(e=>e):e["wix.api.writable"]:!1!==o?n["wix.api.writable"]=[]:delete n["wix.api.writable"],null!=e["google.api.http"]?n["google.api.http"]=$root.google.api.HttpRule.fromJSON(e["google.api.http"],t):delete n["google.api.http"],null!=e["wix.http.inferFieldmask"]?n["wix.http.inferFieldmask"]=$root.wix.http.InferFieldmask.fromJSON(e["wix.http.inferFieldmask"],t):delete n["wix.http.inferFieldmask"],null!=e["wix.sdk.signature"]?n["wix.sdk.signature"]=Array.isArray(e["wix.sdk.signature"])?e["wix.sdk.signature"].map(e=>$root.wix.sdk.Signature.fromJSON(e,t)):e["wix.sdk.signature"]:!1!==o?n["wix.sdk.signature"]=[]:delete n["wix.sdk.signature"],null!=e["wix.spi.error"]?n["wix.spi.error"]=Array.isArray(e["wix.spi.error"])?e["wix.spi.error"].map(e=>$root.wix.spi.Error.fromJSON(e,t)):e["wix.spi.error"]:!1!==o?n["wix.spi.error"]=[]:delete n["wix.spi.error"],null!=e["wix.spi.featureToggle"]?n["wix.spi.featureToggle"]=e["wix.spi.featureToggle"]:!1!==o?n["wix.spi.featureToggle"]="":delete n["wix.spi.featureToggle"],n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.deprecated&&(o.deprecated=e.deprecated),null!=e.idempotencyLevel&&(o.idempotencyLevel=e.idempotencyLevel),null!=e.uninterpretedOption&&(o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.toGRPC(e,t))),null!=e["wix.api.exposure"]&&(o["wix.api.exposure"]=e["wix.api.exposure"]),null!=e["wix.api.maturity"]&&(o["wix.api.maturity"]=e["wix.api.maturity"]),null!=e["wix.api.cacheable"]&&(o["wix.api.cacheable"]=$root.wix.api.CacheSettings.toGRPC(e["wix.api.cacheable"],t)),null!=e["wix.api.deprecated"]&&(o["wix.api.deprecated"]=$root.wix.api.Deprecated.toGRPC(e["wix.api.deprecated"],t)),null!=e["wix.api.crud"]&&(o["wix.api.crud"]=$root.wix.api.Crud.toGRPC(e["wix.api.crud"],t)),null!=e["wix.api.acceptsLinguist"]&&(o["wix.api.acceptsLinguist"]=e["wix.api.acceptsLinguist"]),null!=e["wix.api.error"]&&(o["wix.api.error"]=e["wix.api.error"].map(e=>$root.wix.api.Error.toGRPC(e,t))),null!=e["wix.api.customValidationError"]&&(o["wix.api.customValidationError"]=e["wix.api.customValidationError"].map(e=>$root.wix.api.CustomValidationError.toGRPC(e,t))),null!=e["wix.api.inheritCrudErrors"]&&(o["wix.api.inheritCrudErrors"]=e["wix.api.inheritCrudErrors"].map(e=>$root.wix.api.InheritCrudErrors.toGRPC(e,t))),null!=e["wix.api.errorRef"]&&(o["wix.api.errorRef"]=e["wix.api.errorRef"].map(e=>$root.wix.api.ErrorRef.toGRPC(e,t))),null!=e["wix.api.callback"]&&(o["wix.api.callback"]=e["wix.api.callback"].map(e=>$root.wix.api.Callback.toGRPC(e,t))),null!=e["wix.api.emits"]&&(o["wix.api.emits"]=e["wix.api.emits"].map(e=>$root.wix.api.Emits.toGRPC(e,t))),null!=e["wix.api.idempotency"]&&(o["wix.api.idempotency"]=$root.wix.api.Idempotency.toGRPC(e["wix.api.idempotency"],t)),null!=e["wix.api.permission"]&&(o["wix.api.permission"]=$root.wix.api.PermissionRule.toGRPC(e["wix.api.permission"],t)),null!=e["wix.api.additionalPermission"]&&(o["wix.api.additionalPermission"]=e["wix.api.additionalPermission"].map(e=>$root.wix.api.PermissionRule.toGRPC(e,t))),null!=e["wix.api.sla"]&&(o["wix.api.sla"]=$root.wix.api.Sla.toGRPC(e["wix.api.sla"],t)),null!=e["wix.api.subscription"]&&(o["wix.api.subscription"]=$root.wix.api.Subscription.toGRPC(e["wix.api.subscription"],t)),null!=e["wix.api.required"]&&(o["wix.api.required"]=e["wix.api.required"].map(e=>e)),null!=e["wix.api.writable"]&&(o["wix.api.writable"]=e["wix.api.writable"].map(e=>e)),null!=e["google.api.http"]&&(o["google.api.http"]=$root.google.api.HttpRule.toGRPC(e["google.api.http"],t)),null!=e["wix.http.inferFieldmask"]&&(o["wix.http.inferFieldmask"]=$root.wix.http.InferFieldmask.toGRPC(e["wix.http.inferFieldmask"],t)),null!=e["wix.sdk.signature"]&&(o["wix.sdk.signature"]=e["wix.sdk.signature"].map(e=>$root.wix.sdk.Signature.toGRPC(e,t))),null!=e["wix.spi.error"]&&(o["wix.spi.error"]=e["wix.spi.error"].map(e=>$root.wix.spi.Error.toGRPC(e,t))),null!=e["wix.spi.featureToggle"]&&(o["wix.spi.featureToggle"]=e["wix.spi.featureToggle"]),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.MethodOptions;return null!=e.deprecated?o.deprecated=e.deprecated:o.deprecated=!1,null!=e.idempotencyLevel?o.idempotencyLevel=e.idempotencyLevel:o.idempotencyLevel="IDEMPOTENCY_UNKNOWN",null!=e.uninterpretedOption?o.uninterpretedOption=e.uninterpretedOption.map(e=>$root.google.protobuf.UninterpretedOption.fromGRPC(e,t)):o.uninterpretedOption=[],null!=e["wix.api.exposure"]?o["wix.api.exposure"]=e["wix.api.exposure"]:o["wix.api.exposure"]="PRIVATE",null!=e["wix.api.maturity"]?o["wix.api.maturity"]=e["wix.api.maturity"]:o["wix.api.maturity"]="ALPHA",null!=e["wix.api.cacheable"]?o["wix.api.cacheable"]=$root.wix.api.CacheSettings.fromGRPC(e["wix.api.cacheable"],t):delete o["wix.api.cacheable"],null!=e["wix.api.deprecated"]?o["wix.api.deprecated"]=$root.wix.api.Deprecated.fromGRPC(e["wix.api.deprecated"],t):delete o["wix.api.deprecated"],null!=e["wix.api.crud"]?o["wix.api.crud"]=$root.wix.api.Crud.fromGRPC(e["wix.api.crud"],t):delete o["wix.api.crud"],null!=e["wix.api.acceptsLinguist"]?o["wix.api.acceptsLinguist"]=e["wix.api.acceptsLinguist"]:o["wix.api.acceptsLinguist"]=!1,null!=e["wix.api.error"]?o["wix.api.error"]=e["wix.api.error"].map(e=>$root.wix.api.Error.fromGRPC(e,t)):o["wix.api.error"]=[],null!=e["wix.api.customValidationError"]?o["wix.api.customValidationError"]=e["wix.api.customValidationError"].map(e=>$root.wix.api.CustomValidationError.fromGRPC(e,t)):o["wix.api.customValidationError"]=[],null!=e["wix.api.inheritCrudErrors"]?o["wix.api.inheritCrudErrors"]=e["wix.api.inheritCrudErrors"].map(e=>$root.wix.api.InheritCrudErrors.fromGRPC(e,t)):o["wix.api.inheritCrudErrors"]=[],null!=e["wix.api.errorRef"]?o["wix.api.errorRef"]=e["wix.api.errorRef"].map(e=>$root.wix.api.ErrorRef.fromGRPC(e,t)):o["wix.api.errorRef"]=[],null!=e["wix.api.callback"]?o["wix.api.callback"]=e["wix.api.callback"].map(e=>$root.wix.api.Callback.fromGRPC(e,t)):o["wix.api.callback"]=[],null!=e["wix.api.emits"]?o["wix.api.emits"]=e["wix.api.emits"].map(e=>$root.wix.api.Emits.fromGRPC(e,t)):o["wix.api.emits"]=[],null!=e["wix.api.idempotency"]?o["wix.api.idempotency"]=$root.wix.api.Idempotency.fromGRPC(e["wix.api.idempotency"],t):delete o["wix.api.idempotency"],null!=e["wix.api.permission"]?o["wix.api.permission"]=$root.wix.api.PermissionRule.fromGRPC(e["wix.api.permission"],t):delete o["wix.api.permission"],null!=e["wix.api.additionalPermission"]?o["wix.api.additionalPermission"]=e["wix.api.additionalPermission"].map(e=>$root.wix.api.PermissionRule.fromGRPC(e,t)):o["wix.api.additionalPermission"]=[],null!=e["wix.api.sla"]?o["wix.api.sla"]=$root.wix.api.Sla.fromGRPC(e["wix.api.sla"],t):delete o["wix.api.sla"],null!=e["wix.api.subscription"]?o["wix.api.subscription"]=$root.wix.api.Subscription.fromGRPC(e["wix.api.subscription"],t):delete o["wix.api.subscription"],null!=e["wix.api.required"]?o["wix.api.required"]=e["wix.api.required"].map(e=>e):o["wix.api.required"]=[],null!=e["wix.api.writable"]?o["wix.api.writable"]=e["wix.api.writable"].map(e=>e):o["wix.api.writable"]=[],null!=e["google.api.http"]?o["google.api.http"]=$root.google.api.HttpRule.fromGRPC(e["google.api.http"],t):delete o["google.api.http"],null!=e["wix.http.inferFieldmask"]?o["wix.http.inferFieldmask"]=$root.wix.http.InferFieldmask.fromGRPC(e["wix.http.inferFieldmask"],t):delete o["wix.http.inferFieldmask"],null!=e["wix.sdk.signature"]?o["wix.sdk.signature"]=e["wix.sdk.signature"].map(e=>$root.wix.sdk.Signature.fromGRPC(e,t)):o["wix.sdk.signature"]=[],null!=e["wix.spi.error"]?o["wix.spi.error"]=e["wix.spi.error"].map(e=>$root.wix.spi.Error.fromGRPC(e,t)):o["wix.spi.error"]=[],null!=e["wix.spi.featureToggle"]?o["wix.spi.featureToggle"]=e["wix.spi.featureToggle"]:o["wix.spi.featureToggle"]="",o}}}return MethodOptions.IdempotencyLevel={IDEMPOTENCY_UNKNOWN:"IDEMPOTENCY_UNKNOWN",0:"IDEMPOTENCY_UNKNOWN",NO_SIDE_EFFECTS:"NO_SIDE_EFFECTS",1:"NO_SIDE_EFFECTS",IDEMPOTENT:"IDEMPOTENT",2:"IDEMPOTENT"},MethodOptions.IdempotencyLevel={IDEMPOTENCY_UNKNOWN:"IDEMPOTENCY_UNKNOWN",0:"IDEMPOTENCY_UNKNOWN",NO_SIDE_EFFECTS:"NO_SIDE_EFFECTS",1:"NO_SIDE_EFFECTS",IDEMPOTENT:"IDEMPOTENT",2:"IDEMPOTENT"},__builtIn.Object.defineProperty(MethodOptions.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.MethodOptions"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MethodOptions.prototype,"__fqn__",{value:"google.protobuf.MethodOptions",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MethodOptions.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(MethodOptions.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),MethodOptions}(),e.UninterpretedOption=function(){class UninterpretedOption{constructor(e){this.name=e&&e.name,this.identifierValue=e&&e.identifierValue,this.positiveIntValue=e&&e.positiveIntValue,this.negativeIntValue=e&&e.negativeIntValue,this.doubleValue=e&&e.doubleValue,this.stringValue=e&&e.stringValue,this.aggregateValue=e&&e.aggregateValue}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name.map(e=>$root.google.protobuf.UninterpretedOption.NamePart.toJSON(e,t,o)):o&&(n.name=[]),null!=e.identifierValue?n.identifierValue=e.identifierValue:o&&(n.identifierValue=""),null!=e.positiveIntValue?n.positiveIntValue=e.positiveIntValue.toString():o&&(n.positiveIntValue="0"),null!=e.negativeIntValue?n.negativeIntValue=e.negativeIntValue.toString():o&&(n.negativeIntValue="0"),null!=e.doubleValue?n.doubleValue=null==e.doubleValue?e.doubleValue:isNaN(e.doubleValue)?"NaN":isFinite(e.doubleValue)?e.doubleValue:e.doubleValue.toString():o&&(n.doubleValue=0),null!=e.stringValue?n.stringValue=e.stringValue.toString("base64"):o&&(n.stringValue=""),null!=e.aggregateValue?n.aggregateValue=e.aggregateValue:o&&(n.aggregateValue=""),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.UninterpretedOption;return null!=e.name?n.name=Array.isArray(e.name)?e.name.map(e=>$root.google.protobuf.UninterpretedOption.NamePart.fromJSON(e,t)):e.name:!1!==o?n.name=[]:delete n.name,null!=e.identifierValue?n.identifierValue=e.identifierValue:!1!==o?n.identifierValue="":delete n.identifierValue,null!=e.positiveIntValue?n.positiveIntValue="number"==typeof e.positiveIntValue||"string"==typeof e.positiveIntValue&&/^[-+]?\d+$/.test(e.positiveIntValue)?e.positiveIntValue.toString():e.positiveIntValue:!1!==o?n.positiveIntValue="0":delete n.positiveIntValue,null!=e.negativeIntValue?n.negativeIntValue="number"==typeof e.negativeIntValue||"string"==typeof e.negativeIntValue&&/^[-+]?\d+$/.test(e.negativeIntValue)?e.negativeIntValue.toString():e.negativeIntValue:!1!==o?n.negativeIntValue="0":delete n.negativeIntValue,null!=e.doubleValue?n.doubleValue="NaN"===e.doubleValue?NaN:"Infinity"===e.doubleValue?1/0:"-Infinity"===e.doubleValue?-1/0:e.doubleValue:!1!==o?n.doubleValue=0:delete n.doubleValue,null!=e.stringValue?n.stringValue=function tryParseBytes(e){try{return __builtIn.Buffer.from(e,"base64")}catch(t){return e}}(e.stringValue):!1!==o?n.stringValue="":delete n.stringValue,null!=e.aggregateValue?n.aggregateValue=e.aggregateValue:!1!==o?n.aggregateValue="":delete n.aggregateValue,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name.map(e=>$root.google.protobuf.UninterpretedOption.NamePart.toGRPC(e,t))),null!=e.identifierValue&&(o.identifierValue=e.identifierValue),null!=e.positiveIntValue&&(o.positiveIntValue=e.positiveIntValue.toString()),null!=e.negativeIntValue&&(o.negativeIntValue=e.negativeIntValue.toString()),null!=e.doubleValue&&(o.doubleValue=e.doubleValue),null!=e.stringValue&&(o.stringValue=e.stringValue),null!=e.aggregateValue&&(o.aggregateValue=e.aggregateValue),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.UninterpretedOption;return null!=e.name?o.name=e.name.map(e=>$root.google.protobuf.UninterpretedOption.NamePart.fromGRPC(e,t)):o.name=[],null!=e.identifierValue?o.identifierValue=e.identifierValue:o.identifierValue="",null!=e.positiveIntValue?o.positiveIntValue="number"==typeof e.positiveIntValue||"string"==typeof e.positiveIntValue&&/^[-+]?\d+$/.test(e.positiveIntValue)?e.positiveIntValue.toString():e.positiveIntValue:o.positiveIntValue="0",null!=e.negativeIntValue?o.negativeIntValue="number"==typeof e.negativeIntValue||"string"==typeof e.negativeIntValue&&/^[-+]?\d+$/.test(e.negativeIntValue)?e.negativeIntValue.toString():e.negativeIntValue:o.negativeIntValue="0",null!=e.doubleValue?o.doubleValue=e.doubleValue:o.doubleValue=0,null!=e.stringValue?o.stringValue=e.stringValue:o.stringValue="",null!=e.aggregateValue?o.aggregateValue=e.aggregateValue:o.aggregateValue="",o}}}return UninterpretedOption.NamePart=function(){class NamePart{constructor(e){this.namePart=e&&e.namePart,this.isExtension=e&&e.isExtension}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.namePart?t.namePart=e.namePart:o&&(t.namePart=""),null!=e.isExtension?t.isExtension=e.isExtension:o&&(t.isExtension=!1),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.google.protobuf.UninterpretedOption.NamePart;return null!=e.namePart?t.namePart=e.namePart:!1!==o?t.namePart="":delete t.namePart,null!=e.isExtension?t.isExtension=e.isExtension:!1!==o?t.isExtension=!1:delete t.isExtension,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.namePart&&(t.namePart=e.namePart),null!=e.isExtension&&(t.isExtension=e.isExtension),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.google.protobuf.UninterpretedOption.NamePart;return null!=e.namePart?t.namePart=e.namePart:t.namePart="",null!=e.isExtension?t.isExtension=e.isExtension:t.isExtension=!1,t}}}return __builtIn.Object.defineProperty(NamePart.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.UninterpretedOption.NamePart"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NamePart.prototype,"__fqn__",{value:"google.protobuf.UninterpretedOption.NamePart",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NamePart.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NamePart.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NamePart}(),UninterpretedOption.NamePart=function(){class NamePart{constructor(e){this.namePart=e&&e.namePart,this.isExtension=e&&e.isExtension}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.namePart?t.namePart=e.namePart:o&&(t.namePart=""),null!=e.isExtension?t.isExtension=e.isExtension:o&&(t.isExtension=!1),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.google.protobuf.UninterpretedOption.NamePart;return null!=e.namePart?t.namePart=e.namePart:!1!==o?t.namePart="":delete t.namePart,null!=e.isExtension?t.isExtension=e.isExtension:!1!==o?t.isExtension=!1:delete t.isExtension,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.namePart&&(t.namePart=e.namePart),null!=e.isExtension&&(t.isExtension=e.isExtension),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.google.protobuf.UninterpretedOption.NamePart;return null!=e.namePart?t.namePart=e.namePart:t.namePart="",null!=e.isExtension?t.isExtension=e.isExtension:t.isExtension=!1,t}}}return __builtIn.Object.defineProperty(NamePart.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.UninterpretedOption.NamePart"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NamePart.prototype,"__fqn__",{value:"google.protobuf.UninterpretedOption.NamePart",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NamePart.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(NamePart.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),NamePart}(),__builtIn.Object.defineProperty(UninterpretedOption.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.UninterpretedOption"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UninterpretedOption.prototype,"__fqn__",{value:"google.protobuf.UninterpretedOption",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UninterpretedOption.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UninterpretedOption.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),UninterpretedOption}(),e.SourceCodeInfo=function(){class SourceCodeInfo{constructor(e){this.location=e&&e.location}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.location?n.location=e.location.map(e=>$root.google.protobuf.SourceCodeInfo.Location.toJSON(e,t,o)):o&&(n.location=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.SourceCodeInfo;return null!=e.location?n.location=Array.isArray(e.location)?e.location.map(e=>$root.google.protobuf.SourceCodeInfo.Location.fromJSON(e,t)):e.location:!1!==o?n.location=[]:delete n.location,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.location&&(o.location=e.location.map(e=>$root.google.protobuf.SourceCodeInfo.Location.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.SourceCodeInfo;return null!=e.location?o.location=e.location.map(e=>$root.google.protobuf.SourceCodeInfo.Location.fromGRPC(e,t)):o.location=[],o}}}return SourceCodeInfo.Location=function(){class Location{constructor(e){this.path=e&&e.path,this.span=e&&e.span,this.leadingComments=e&&e.leadingComments,this.trailingComments=e&&e.trailingComments,this.leadingDetachedComments=e&&e.leadingDetachedComments}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path.map(e=>e):o&&(t.path=[]),null!=e.span?t.span=e.span.map(e=>e):o&&(t.span=[]),null!=e.leadingComments?t.leadingComments=e.leadingComments:o&&(t.leadingComments=""),null!=e.trailingComments?t.trailingComments=e.trailingComments:o&&(t.trailingComments=""),null!=e.leadingDetachedComments?t.leadingDetachedComments=e.leadingDetachedComments.map(e=>e):o&&(t.leadingDetachedComments=[]),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.google.protobuf.SourceCodeInfo.Location;return null!=e.path?t.path=Array.isArray(e.path)?e.path.map(e=>e):e.path:!1!==o?t.path=[]:delete t.path,null!=e.span?t.span=Array.isArray(e.span)?e.span.map(e=>e):e.span:!1!==o?t.span=[]:delete t.span,null!=e.leadingComments?t.leadingComments=e.leadingComments:!1!==o?t.leadingComments="":delete t.leadingComments,null!=e.trailingComments?t.trailingComments=e.trailingComments:!1!==o?t.trailingComments="":delete t.trailingComments,null!=e.leadingDetachedComments?t.leadingDetachedComments=Array.isArray(e.leadingDetachedComments)?e.leadingDetachedComments.map(e=>e):e.leadingDetachedComments:!1!==o?t.leadingDetachedComments=[]:delete t.leadingDetachedComments,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.path&&(t.path=e.path.map(e=>e)),null!=e.span&&(t.span=e.span.map(e=>e)),null!=e.leadingComments&&(t.leadingComments=e.leadingComments),null!=e.trailingComments&&(t.trailingComments=e.trailingComments),null!=e.leadingDetachedComments&&(t.leadingDetachedComments=e.leadingDetachedComments.map(e=>e)),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.google.protobuf.SourceCodeInfo.Location;return null!=e.path?t.path=e.path.map(e=>e):t.path=[],null!=e.span?t.span=e.span.map(e=>e):t.span=[],null!=e.leadingComments?t.leadingComments=e.leadingComments:t.leadingComments="",null!=e.trailingComments?t.trailingComments=e.trailingComments:t.trailingComments="",null!=e.leadingDetachedComments?t.leadingDetachedComments=e.leadingDetachedComments.map(e=>e):t.leadingDetachedComments=[],t}}}return __builtIn.Object.defineProperty(Location.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.SourceCodeInfo.Location"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Location.prototype,"__fqn__",{value:"google.protobuf.SourceCodeInfo.Location",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Location.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Location.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Location}(),SourceCodeInfo.Location=function(){class Location{constructor(e){this.path=e&&e.path,this.span=e&&e.span,this.leadingComments=e&&e.leadingComments,this.trailingComments=e&&e.trailingComments,this.leadingDetachedComments=e&&e.leadingDetachedComments}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path.map(e=>e):o&&(t.path=[]),null!=e.span?t.span=e.span.map(e=>e):o&&(t.span=[]),null!=e.leadingComments?t.leadingComments=e.leadingComments:o&&(t.leadingComments=""),null!=e.trailingComments?t.trailingComments=e.trailingComments:o&&(t.trailingComments=""),null!=e.leadingDetachedComments?t.leadingDetachedComments=e.leadingDetachedComments.map(e=>e):o&&(t.leadingDetachedComments=[]),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.google.protobuf.SourceCodeInfo.Location;return null!=e.path?t.path=Array.isArray(e.path)?e.path.map(e=>e):e.path:!1!==o?t.path=[]:delete t.path,null!=e.span?t.span=Array.isArray(e.span)?e.span.map(e=>e):e.span:!1!==o?t.span=[]:delete t.span,null!=e.leadingComments?t.leadingComments=e.leadingComments:!1!==o?t.leadingComments="":delete t.leadingComments,null!=e.trailingComments?t.trailingComments=e.trailingComments:!1!==o?t.trailingComments="":delete t.trailingComments,null!=e.leadingDetachedComments?t.leadingDetachedComments=Array.isArray(e.leadingDetachedComments)?e.leadingDetachedComments.map(e=>e):e.leadingDetachedComments:!1!==o?t.leadingDetachedComments=[]:delete t.leadingDetachedComments,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.path&&(t.path=e.path.map(e=>e)),null!=e.span&&(t.span=e.span.map(e=>e)),null!=e.leadingComments&&(t.leadingComments=e.leadingComments),null!=e.trailingComments&&(t.trailingComments=e.trailingComments),null!=e.leadingDetachedComments&&(t.leadingDetachedComments=e.leadingDetachedComments.map(e=>e)),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.google.protobuf.SourceCodeInfo.Location;return null!=e.path?t.path=e.path.map(e=>e):t.path=[],null!=e.span?t.span=e.span.map(e=>e):t.span=[],null!=e.leadingComments?t.leadingComments=e.leadingComments:t.leadingComments="",null!=e.trailingComments?t.trailingComments=e.trailingComments:t.trailingComments="",null!=e.leadingDetachedComments?t.leadingDetachedComments=e.leadingDetachedComments.map(e=>e):t.leadingDetachedComments=[],t}}}return __builtIn.Object.defineProperty(Location.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.SourceCodeInfo.Location"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Location.prototype,"__fqn__",{value:"google.protobuf.SourceCodeInfo.Location",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Location.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Location.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Location}(),__builtIn.Object.defineProperty(SourceCodeInfo.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.SourceCodeInfo"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SourceCodeInfo.prototype,"__fqn__",{value:"google.protobuf.SourceCodeInfo",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SourceCodeInfo.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(SourceCodeInfo.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),SourceCodeInfo}(),e.GeneratedCodeInfo=function(){class GeneratedCodeInfo{constructor(e){this.annotation=e&&e.annotation}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.annotation?n.annotation=e.annotation.map(e=>$root.google.protobuf.GeneratedCodeInfo.Annotation.toJSON(e,t,o)):o&&(n.annotation=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.protobuf.GeneratedCodeInfo;return null!=e.annotation?n.annotation=Array.isArray(e.annotation)?e.annotation.map(e=>$root.google.protobuf.GeneratedCodeInfo.Annotation.fromJSON(e,t)):e.annotation:!1!==o?n.annotation=[]:delete n.annotation,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.annotation&&(o.annotation=e.annotation.map(e=>$root.google.protobuf.GeneratedCodeInfo.Annotation.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.protobuf.GeneratedCodeInfo;return null!=e.annotation?o.annotation=e.annotation.map(e=>$root.google.protobuf.GeneratedCodeInfo.Annotation.fromGRPC(e,t)):o.annotation=[],o}}}return GeneratedCodeInfo.Annotation=function(){class Annotation{constructor(e){this.path=e&&e.path,this.sourceFile=e&&e.sourceFile,this.begin=e&&e.begin,this.end=e&&e.end}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path.map(e=>e):o&&(t.path=[]),null!=e.sourceFile?t.sourceFile=e.sourceFile:o&&(t.sourceFile=""),null!=e.begin?t.begin=e.begin:o&&(t.begin=0),null!=e.end?t.end=e.end:o&&(t.end=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.google.protobuf.GeneratedCodeInfo.Annotation;return null!=e.path?t.path=Array.isArray(e.path)?e.path.map(e=>e):e.path:!1!==o?t.path=[]:delete t.path,null!=e.sourceFile?t.sourceFile=e.sourceFile:!1!==o?t.sourceFile="":delete t.sourceFile,null!=e.begin?t.begin=e.begin:!1!==o?t.begin=0:delete t.begin,null!=e.end?t.end=e.end:!1!==o?t.end=0:delete t.end,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.path&&(t.path=e.path.map(e=>e)),null!=e.sourceFile&&(t.sourceFile=e.sourceFile),null!=e.begin&&(t.begin=e.begin),null!=e.end&&(t.end=e.end),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.google.protobuf.GeneratedCodeInfo.Annotation;return null!=e.path?t.path=e.path.map(e=>e):t.path=[],null!=e.sourceFile?t.sourceFile=e.sourceFile:t.sourceFile="",null!=e.begin?t.begin=e.begin:t.begin=0,null!=e.end?t.end=e.end:t.end=0,t}}}return __builtIn.Object.defineProperty(Annotation.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.GeneratedCodeInfo.Annotation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Annotation.prototype,"__fqn__",{value:"google.protobuf.GeneratedCodeInfo.Annotation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Annotation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Annotation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Annotation}(),GeneratedCodeInfo.Annotation=function(){class Annotation{constructor(e){this.path=e&&e.path,this.sourceFile=e&&e.sourceFile,this.begin=e&&e.begin,this.end=e&&e.end}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path.map(e=>e):o&&(t.path=[]),null!=e.sourceFile?t.sourceFile=e.sourceFile:o&&(t.sourceFile=""),null!=e.begin?t.begin=e.begin:o&&(t.begin=0),null!=e.end?t.end=e.end:o&&(t.end=0),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.google.protobuf.GeneratedCodeInfo.Annotation;return null!=e.path?t.path=Array.isArray(e.path)?e.path.map(e=>e):e.path:!1!==o?t.path=[]:delete t.path,null!=e.sourceFile?t.sourceFile=e.sourceFile:!1!==o?t.sourceFile="":delete t.sourceFile,null!=e.begin?t.begin=e.begin:!1!==o?t.begin=0:delete t.begin,null!=e.end?t.end=e.end:!1!==o?t.end=0:delete t.end,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.path&&(t.path=e.path.map(e=>e)),null!=e.sourceFile&&(t.sourceFile=e.sourceFile),null!=e.begin&&(t.begin=e.begin),null!=e.end&&(t.end=e.end),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.google.protobuf.GeneratedCodeInfo.Annotation;return null!=e.path?t.path=e.path.map(e=>e):t.path=[],null!=e.sourceFile?t.sourceFile=e.sourceFile:t.sourceFile="",null!=e.begin?t.begin=e.begin:t.begin=0,null!=e.end?t.end=e.end:t.end=0,t}}}return __builtIn.Object.defineProperty(Annotation.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.GeneratedCodeInfo.Annotation"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Annotation.prototype,"__fqn__",{value:"google.protobuf.GeneratedCodeInfo.Annotation",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Annotation.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Annotation.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Annotation}(),__builtIn.Object.defineProperty(GeneratedCodeInfo.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.GeneratedCodeInfo"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GeneratedCodeInfo.prototype,"__fqn__",{value:"google.protobuf.GeneratedCodeInfo",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GeneratedCodeInfo.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(GeneratedCodeInfo.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),GeneratedCodeInfo}(),e.Struct=function(){class Struct{constructor(e){this.fields=e&&e.fields}static toJSON(e,t){return e}static fromJSON(e,t){return e}static toGRPC(e,t){return t.grpc.structToGRPC(e)}static fromGRPC(e,t){return t.grpc.structFromGRPC(e)}}return __builtIn.Object.defineProperty(Struct.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.Struct"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Struct.prototype,"__fqn__",{value:"google.protobuf.Struct",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Struct.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Struct.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Struct}(),e.Value=function(){class Value{constructor(e){this.nullValue=e&&e.nullValue,this.numberValue=e&&e.numberValue,this.stringValue=e&&e.stringValue,this.boolValue=e&&e.boolValue,this.structValue=e&&e.structValue,this.listValue=e&&e.listValue}static toJSON(e,t){return e}static fromJSON(e,t){return e}static toGRPC(e,t){return t.grpc.valueToGRPC(e)}static fromGRPC(e,t){return t.grpc.valueFromGRPC(e)}}return __builtIn.Object.defineProperty(Value.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.Value"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Value.prototype,"__fqn__",{value:"google.protobuf.Value",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Value.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Value.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Value}(),e.ListValue=function(){class ListValue{constructor(e){this.values=e&&e.values}static toJSON(e,t){return e}static fromJSON(e,t){return e}static toGRPC(e,t){return t.grpc.listValueToGRPC(e)}static fromGRPC(e,t){return t.grpc.listValueFromGRPC(e)}}return __builtIn.Object.defineProperty(ListValue.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.ListValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListValue.prototype,"__fqn__",{value:"google.protobuf.ListValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(ListValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),ListValue}(),e.DoubleValue=function(){class DoubleValue{constructor(e){this.value=e&&e.value}static toJSON(e,t){return null==e?e:isNaN(e)?"NaN":isFinite(e)?e:e.toString()}static fromJSON(e,t){return"NaN"===e?NaN:"Infinity"===e?1/0:"-Infinity"===e?-1/0:e}static toGRPC(e,t){return null==e?e:{value:e}}static fromGRPC(e,t){return e&&e.value}}return __builtIn.Object.defineProperty(DoubleValue.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.DoubleValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DoubleValue.prototype,"__fqn__",{value:"google.protobuf.DoubleValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DoubleValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(DoubleValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),DoubleValue}(),e.FloatValue=function(){class FloatValue{constructor(e){this.value=e&&e.value}static toJSON(e,t){return null==e?e:isNaN(e)?"NaN":isFinite(e)?e:e.toString()}static fromJSON(e,t){return"NaN"===e?NaN:"Infinity"===e?1/0:"-Infinity"===e?-1/0:e}static toGRPC(e,t){return null==e?e:{value:e}}static fromGRPC(e,t){return e&&e.value}}return __builtIn.Object.defineProperty(FloatValue.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.FloatValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FloatValue.prototype,"__fqn__",{value:"google.protobuf.FloatValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FloatValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FloatValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),FloatValue}(),e.Int64Value=function(){class Int64Value{constructor(e){this.value=e&&e.value}static toJSON(e,t){return null==e?e:e.toString()}static fromJSON(e,t){return null==e?e:"number"==typeof e||"string"==typeof e&&/^[-+]?\d+$/.test(e)?e.toString():e}static toGRPC(e,t){return null==e?e:{value:e.toString()}}static fromGRPC(e,t){return e&&("number"==typeof e.value||"string"==typeof e.value&&/^[-+]?\d+$/.test(e.value)?e.value.toString():e.value)}}return __builtIn.Object.defineProperty(Int64Value.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.Int64Value"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Int64Value.prototype,"__fqn__",{value:"google.protobuf.Int64Value",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Int64Value.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Int64Value.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Int64Value}(),e.UInt64Value=function(){class UInt64Value{constructor(e){this.value=e&&e.value}static toJSON(e,t){return null==e?e:e.toString()}static fromJSON(e,t){return null==e?e:"number"==typeof e||"string"==typeof e&&/^[-+]?\d+$/.test(e)?e.toString():e}static toGRPC(e,t){return null==e?e:{value:e.toString()}}static fromGRPC(e,t){return e&&("number"==typeof e.value||"string"==typeof e.value&&/^[-+]?\d+$/.test(e.value)?e.value.toString():e.value)}}return __builtIn.Object.defineProperty(UInt64Value.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.UInt64Value"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UInt64Value.prototype,"__fqn__",{value:"google.protobuf.UInt64Value",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UInt64Value.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UInt64Value.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),UInt64Value}(),e.Int32Value=function(){class Int32Value{constructor(e){this.value=e&&e.value}static toJSON(e,t){return e}static fromJSON(e,t){return e}static toGRPC(e,t){return null==e?e:{value:e}}static fromGRPC(e,t){return e&&e.value}}return __builtIn.Object.defineProperty(Int32Value.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.Int32Value"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Int32Value.prototype,"__fqn__",{value:"google.protobuf.Int32Value",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Int32Value.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Int32Value.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Int32Value}(),e.UInt32Value=function(){class UInt32Value{constructor(e){this.value=e&&e.value}static toJSON(e,t){return e}static fromJSON(e,t){return e}static toGRPC(e,t){return null==e?e:{value:e}}static fromGRPC(e,t){return e&&e.value}}return __builtIn.Object.defineProperty(UInt32Value.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.UInt32Value"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UInt32Value.prototype,"__fqn__",{value:"google.protobuf.UInt32Value",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UInt32Value.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(UInt32Value.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),UInt32Value}(),e.BoolValue=function(){class BoolValue{constructor(e){this.value=e&&e.value}static toJSON(e,t){return e}static fromJSON(e,t){return e}static toGRPC(e,t){return null==e?e:{value:e}}static fromGRPC(e,t){return e&&e.value}}return __builtIn.Object.defineProperty(BoolValue.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.BoolValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BoolValue.prototype,"__fqn__",{value:"google.protobuf.BoolValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BoolValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BoolValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),BoolValue}(),e.StringValue=function(){class StringValue{constructor(e){this.value=e&&e.value}static toJSON(e,t){return e}static fromJSON(e,t){return e}static toGRPC(e,t){return null==e?e:{value:e}}static fromGRPC(e,t){return e&&e.value}}return __builtIn.Object.defineProperty(StringValue.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.StringValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StringValue.prototype,"__fqn__",{value:"google.protobuf.StringValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StringValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(StringValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),StringValue}(),e.BytesValue=function(){class BytesValue{constructor(e){this.value=e&&e.value}static toJSON(e,t){return e&&e.toString("base64")}static fromJSON(e,t){return e&&function tryParseBytes(e){try{return __builtIn.Buffer.from(e,"base64")}catch(t){return e}}(e)}static toGRPC(e,t){return null==e?e:{value:e}}static fromGRPC(e,t){return e&&e.value}}return __builtIn.Object.defineProperty(BytesValue.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.BytesValue"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BytesValue.prototype,"__fqn__",{value:"google.protobuf.BytesValue",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BytesValue.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(BytesValue.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),BytesValue}(),e.Timestamp=function(){class Timestamp{constructor(e){this.seconds=e&&e.seconds,this.nanos=e&&e.nanos}static toJSON(e,t){return e&&e.toISOString()}static fromJSON(e,t){return"string"!=typeof e||isNaN(new Date(e))?e:new Date(e)}static toGRPC(e,t){return t.grpc.timestampToGRPC(e)}static fromGRPC(e,t){return t.grpc.timestampFromGRPC(e)}}return __builtIn.Object.defineProperty(Timestamp.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.Timestamp"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Timestamp.prototype,"__fqn__",{value:"google.protobuf.Timestamp",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Timestamp.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Timestamp.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Timestamp}(),e.FieldMask=function(){class FieldMask{constructor(e){this.paths=e&&e.paths}static toJSON(e,t){return e&&e.join()}static fromJSON(e,t){return e&&e.split(",")}static toGRPC(e,t){return t.grpc.fieldmaskToGRPC(e)}static fromGRPC(e,t){return t.grpc.fieldmaskFromGRPC(e)}}return __builtIn.Object.defineProperty(FieldMask.prototype,"__proto",{value:e=>$root.__lookup(e)("google.protobuf.FieldMask"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldMask.prototype,"__fqn__",{value:"google.protobuf.FieldMask",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldMask.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(FieldMask.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),FieldMask}(),e}(),e.api=function(){const e={};return e.Http=function(){class Http{constructor(e){this.rules=e&&e.rules}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.rules?n.rules=e.rules.map(e=>$root.google.api.HttpRule.toJSON(e,t,o)):o&&(n.rules=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.api.Http;return null!=e.rules?n.rules=Array.isArray(e.rules)?e.rules.map(e=>$root.google.api.HttpRule.fromJSON(e,t)):e.rules:!1!==o?n.rules=[]:delete n.rules,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.rules&&(o.rules=e.rules.map(e=>$root.google.api.HttpRule.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.api.Http;return null!=e.rules?o.rules=e.rules.map(e=>$root.google.api.HttpRule.fromGRPC(e,t)):o.rules=[],o}}}return __builtIn.Object.defineProperty(Http.prototype,"__proto",{value:e=>$root.__lookup(e)("google.api.Http"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Http.prototype,"__fqn__",{value:"google.api.Http",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Http.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(Http.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),Http}(),e.HttpRule=function(){class HttpRule{constructor(e){this.selector=e&&e.selector,this.get=e&&e.get,this.put=e&&e.put,this.post=e&&e.post,this.delete=e&&e.delete,this.patch=e&&e.patch,this.custom=e&&e.custom,this.body=e&&e.body,this.additionalBindings=e&&e.additionalBindings}static toJSON(e,t,o){if(null==e)return null;{const n={};return null!=e.selector?n.selector=e.selector:o&&(n.selector=""),null!=e.get?n.get=e.get:o&&delete n.get,null!=e.put?n.put=e.put:o&&delete n.put,null!=e.post?n.post=e.post:o&&delete n.post,null!=e.delete?n.delete=e.delete:o&&delete n.delete,null!=e.patch?n.patch=e.patch:o&&delete n.patch,null!=e.custom?n.custom=$root.google.api.CustomHttpPattern.toJSON(e.custom,t,o):o&&delete n.custom,null!=e.body?n.body=e.body:o&&(n.body=""),null!=e.additionalBindings?n.additionalBindings=e.additionalBindings.map(e=>$root.google.api.HttpRule.toJSON(e,t,o)):o&&(n.additionalBindings=[]),n}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new $root.google.api.HttpRule;return null!=e.selector?n.selector=e.selector:!1!==o?n.selector="":delete n.selector,null!=e.get?n.get=e.get:delete n.get,null!=e.put?n.put=e.put:delete n.put,null!=e.post?n.post=e.post:delete n.post,null!=e.delete?n.delete=e.delete:delete n.delete,null!=e.patch?n.patch=e.patch:delete n.patch,null!=e.custom?n.custom=$root.google.api.CustomHttpPattern.fromJSON(e.custom,t):delete n.custom,null!=e.body?n.body=e.body:!1!==o?n.body="":delete n.body,null!=e.additionalBindings?n.additionalBindings=Array.isArray(e.additionalBindings)?e.additionalBindings.map(e=>$root.google.api.HttpRule.fromJSON(e,t)):e.additionalBindings:!1!==o?n.additionalBindings=[]:delete n.additionalBindings,n}}static toGRPC(e,t){if(null==e)return null;{const o={};return null!=e.selector&&(o.selector=e.selector),null!=e.get&&(o.get=e.get),null!=e.put&&(o.put=e.put),null!=e.post&&(o.post=e.post),null!=e.delete&&(o.delete=e.delete),null!=e.patch&&(o.patch=e.patch),null!=e.custom&&(o.custom=$root.google.api.CustomHttpPattern.toGRPC(e.custom,t)),null!=e.body&&(o.body=e.body),null!=e.additionalBindings&&(o.additionalBindings=e.additionalBindings.map(e=>$root.google.api.HttpRule.toGRPC(e,t))),o}}static fromGRPC(e,t){if(null==e)return null;{const o=new $root.google.api.HttpRule;return null!=e.selector?o.selector=e.selector:o.selector="",null!=e.get?o.get=e.get:delete o.get,null!=e.put?o.put=e.put:delete o.put,null!=e.post?o.post=e.post:delete o.post,null!=e.delete?o.delete=e.delete:delete o.delete,null!=e.patch?o.patch=e.patch:delete o.patch,null!=e.custom?o.custom=$root.google.api.CustomHttpPattern.fromGRPC(e.custom,t):delete o.custom,null!=e.body?o.body=e.body:o.body="",null!=e.additionalBindings?o.additionalBindings=e.additionalBindings.map(e=>$root.google.api.HttpRule.fromGRPC(e,t)):o.additionalBindings=[],o}}}return __builtIn.Object.defineProperty(HttpRule.prototype,"__proto",{value:e=>$root.__lookup(e)("google.api.HttpRule"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(HttpRule.prototype,"__fqn__",{value:"google.api.HttpRule",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(HttpRule.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(HttpRule.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),HttpRule}(),e.CustomHttpPattern=function(){class CustomHttpPattern{constructor(e){this.kind=e&&e.kind,this.path=e&&e.path}static toJSON(e,t,o){if(null==e)return null;{const t={};return null!=e.kind?t.kind=e.kind:o&&(t.kind=""),null!=e.path?t.path=e.path:o&&(t.path=""),t}}static fromJSON(e,t,o){if("object"!=typeof e||Array.isArray(e))return e;{const t=new $root.google.api.CustomHttpPattern;return null!=e.kind?t.kind=e.kind:!1!==o?t.kind="":delete t.kind,null!=e.path?t.path=e.path:!1!==o?t.path="":delete t.path,t}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.kind&&(t.kind=e.kind),null!=e.path&&(t.path=e.path),t}}static fromGRPC(e,t){if(null==e)return null;{const t=new $root.google.api.CustomHttpPattern;return null!=e.kind?t.kind=e.kind:t.kind="",null!=e.path?t.path=e.path:t.path="",t}}}return __builtIn.Object.defineProperty(CustomHttpPattern.prototype,"__proto",{value:e=>$root.__lookup(e)("google.api.CustomHttpPattern"),enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CustomHttpPattern.prototype,"__fqn__",{value:"google.api.CustomHttpPattern",enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CustomHttpPattern.prototype,"__options__",{value:$root.__options,enumerable:!1,configurable:!1}),__builtIn.Object.defineProperty(CustomHttpPattern.prototype,"__root__",{value:$root,enumerable:!1,configurable:!1}),CustomHttpPattern}(),e}(),e}(),$root.__binaryDescriptors={},module.exports=$root;