@wix/bex-utils 2.109.0 → 2.110.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 (125) hide show
  1. package/@wix/ambassador-authorization-server/builders.d.ts +2542 -0
  2. package/@wix/ambassador-authorization-server/builders.js +10330 -0
  3. package/@wix/ambassador-authorization-server/builders.js.map +1 -0
  4. package/@wix/ambassador-authorization-server/export-erb.js +101 -0
  5. package/@wix/ambassador-authorization-server/http.d.ts +109 -0
  6. package/@wix/ambassador-authorization-server/http.js +394 -0
  7. package/@wix/ambassador-authorization-server/http.js.map +1 -0
  8. package/@wix/ambassador-authorization-server/index.js +1 -0
  9. package/@wix/ambassador-authorization-server/package.json +30 -0
  10. package/@wix/ambassador-authorization-server/rpc.d.ts +252 -0
  11. package/@wix/ambassador-authorization-server/rpc.js +820 -0
  12. package/@wix/ambassador-authorization-server/rpc.js.map +1 -0
  13. package/@wix/ambassador-authorization-server/src/builders.ts +10663 -0
  14. package/@wix/ambassador-authorization-server/src/http.ts +666 -0
  15. package/@wix/ambassador-authorization-server/src/rpc.ts +1111 -0
  16. package/@wix/ambassador-authorization-server/src/types.ts +1616 -0
  17. package/@wix/ambassador-authorization-server/types.d.ts +1294 -0
  18. package/@wix/ambassador-authorization-server/types.js +62 -0
  19. package/@wix/ambassador-authorization-server/types.js.map +1 -0
  20. package/@wix/ambassador-data-v1-external-database-connection/README.md +34 -0
  21. package/@wix/ambassador-data-v1-external-database-connection/builders/package.json +7 -0
  22. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/builders.impl.d.ts +32 -0
  23. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/builders.impl.js +363 -0
  24. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/builders.impl.js.map +1 -0
  25. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/http.impl.d.ts +1 -0
  26. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/http.impl.js +5 -0
  27. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/http.impl.js.map +1 -0
  28. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/rpc.impl.d.ts +11 -0
  29. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/rpc.impl.js +41 -0
  30. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/rpc.impl.js.map +1 -0
  31. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/http.impl.d.ts +24 -0
  32. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/http.impl.js +530 -0
  33. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/http.impl.js.map +1 -0
  34. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/meta.impl.d.ts +22 -0
  35. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/meta.impl.js +136 -0
  36. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/meta.impl.js.map +1 -0
  37. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/client/proto-generated.d.ts +7218 -0
  38. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/client/proto-generated.js +2 -0
  39. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/proto-generated.d.ts +3606 -0
  40. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/proto-generated.js +1 -0
  41. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/server/proto-generated.d.ts +7207 -0
  42. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/server/proto-generated.js +2 -0
  43. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/rpc.impl.d.ts +33 -0
  44. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/rpc.impl.js +121 -0
  45. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/rpc.impl.js.map +1 -0
  46. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/types.impl.d.ts +424 -0
  47. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/types.impl.js +97 -0
  48. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/types.impl.js.map +1 -0
  49. package/@wix/ambassador-data-v1-external-database-connection/cjs/package.json +3 -0
  50. package/@wix/ambassador-data-v1-external-database-connection/crud/http/package.json +7 -0
  51. package/@wix/ambassador-data-v1-external-database-connection/crud/rpc/package.json +6 -0
  52. package/@wix/ambassador-data-v1-external-database-connection/es/build/builders.impl.d.ts +32 -0
  53. package/@wix/ambassador-data-v1-external-database-connection/es/build/builders.impl.js +314 -0
  54. package/@wix/ambassador-data-v1-external-database-connection/es/build/builders.impl.js.map +1 -0
  55. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/http.impl.d.ts +1 -0
  56. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/http.impl.js +2 -0
  57. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/http.impl.js.map +1 -0
  58. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/rpc.impl.d.ts +11 -0
  59. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/rpc.impl.js +34 -0
  60. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/rpc.impl.js.map +1 -0
  61. package/@wix/ambassador-data-v1-external-database-connection/es/build/http.impl.d.ts +24 -0
  62. package/@wix/ambassador-data-v1-external-database-connection/es/build/http.impl.js +523 -0
  63. package/@wix/ambassador-data-v1-external-database-connection/es/build/http.impl.js.map +1 -0
  64. package/@wix/ambassador-data-v1-external-database-connection/es/build/meta.impl.d.ts +22 -0
  65. package/@wix/ambassador-data-v1-external-database-connection/es/build/meta.impl.js +96 -0
  66. package/@wix/ambassador-data-v1-external-database-connection/es/build/meta.impl.js.map +1 -0
  67. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/client/proto-generated.d.ts +7218 -0
  68. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/client/proto-generated.js +5 -0
  69. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/proto-generated.d.ts +3606 -0
  70. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/proto-generated.js +1 -0
  71. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/server/proto-generated.d.ts +7207 -0
  72. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/server/proto-generated.js +5 -0
  73. package/@wix/ambassador-data-v1-external-database-connection/es/build/rpc.impl.d.ts +33 -0
  74. package/@wix/ambassador-data-v1-external-database-connection/es/build/rpc.impl.js +81 -0
  75. package/@wix/ambassador-data-v1-external-database-connection/es/build/rpc.impl.js.map +1 -0
  76. package/@wix/ambassador-data-v1-external-database-connection/es/build/types.impl.d.ts +424 -0
  77. package/@wix/ambassador-data-v1-external-database-connection/es/build/types.impl.js +94 -0
  78. package/@wix/ambassador-data-v1-external-database-connection/es/build/types.impl.js.map +1 -0
  79. package/@wix/ambassador-data-v1-external-database-connection/http/package.json +7 -0
  80. package/@wix/ambassador-data-v1-external-database-connection/meta/package.json +7 -0
  81. package/@wix/ambassador-data-v1-external-database-connection/package.json +108 -0
  82. package/@wix/ambassador-data-v1-external-database-connection/rpc/package.json +6 -0
  83. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/cloud/data/api/common.proto +63 -0
  84. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/cloud/data/api/externaldatabase/external-database-connection-service.proto +305 -0
  85. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/cloud/data/api/externaldatabase/upstream/externaldatabase/wix/common/paging.proto +112 -0
  86. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/iptf/webhooks/debug.proto +34 -0
  87. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/iptf/webhooks/kv.proto +42 -0
  88. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/iptf/webhooks/message_envelope.proto +54 -0
  89. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/webhooks_debug_service.proto +32 -0
  90. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/webhooks_sync_service.proto +33 -0
  91. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/action_payload.proto +33 -0
  92. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/annotations.proto +559 -0
  93. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/api_errors.proto +142 -0
  94. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/callback.proto +173 -0
  95. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/context.proto +19 -0
  96. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/entity.proto +133 -0
  97. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/errors.proto +127 -0
  98. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/idempotency.proto +25 -0
  99. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/permissions.proto +46 -0
  100. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/sla.proto +24 -0
  101. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/subscription.proto +32 -0
  102. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/validations.proto +147 -0
  103. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/address.proto +148 -0
  104. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/bulk.proto +53 -0
  105. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/domainevents/attributeupdated.proto +20 -0
  106. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/domainevents/domainevents.proto +112 -0
  107. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/identification.proto +40 -0
  108. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/image.proto +8 -0
  109. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/media.proto +280 -0
  110. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/money.proto +32 -0
  111. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/pageurl.proto +32 -0
  112. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/paging.proto +121 -0
  113. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/sorting.proto +36 -0
  114. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/spi.proto +85 -0
  115. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/tags.proto +55 -0
  116. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/wixlink.proto +203 -0
  117. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/graphql/definitions.proto +13 -0
  118. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/http/field_mask.proto +46 -0
  119. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/sdk/definitions.proto +191 -0
  120. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/spi/definitions.proto +188 -0
  121. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/spi/http_error_status.proto +24 -0
  122. package/@wix/ambassador-data-v1-external-database-connection/types/package.json +7 -0
  123. package/@wix/bex-bundled-mini-essentials/CHANGELOG.md +4 -0
  124. package/@wix/bex-bundled-mini-essentials/package.json +1 -1
  125. package/package.json +8 -5
@@ -0,0 +1 @@
1
+ const e={Number:Number,Array:Array,Object:Object,Buffer:Buffer},t={__options:{stringEnums:!0,stringLongs:!0,embedBinaryDescriptors:!1,stdCase:!1,generatorVersion:"2.0.1176",contentHash:"dab99c55034f4b7dfbdd59ed45b90f3ba489b6a8"},__lookup:function(e){const n=e.Root.fromJSON({nested:{com:{nested:{wixpress:{nested:{cloud:{nested:{data:{nested:{api:{nested:{Environment:{values:{UNKNOWN_ENVIRONMENT:0,SANDBOX:1,SANDBOX_PREFERRED:2,LIVE:3},valuesOptions:{UNKNOWN_ENVIRONMENT:{"(.wix.api.enum_maturity)":"NOT_IMPLEMENTED"}},comment:null,comments:{UNKNOWN_ENVIRONMENT:null,SANDBOX:null,SANDBOX_PREFERRED:null,LIVE:null}},FieldType:{values:{UNKNOWN_FIELD_TYPE:0,TEXT:1,NUMBER:2,DATE:3,DATETIME:4,IMAGE:5,BOOLEAN:6,DOCUMENT:7,URL:8,RICH_TEXT:9,VIDEO:10,ANY:11,ARRAY_STRING:12,ARRAY_DOCUMENT:13,AUDIO:14,TIME:15,LANGUAGE:16,RICH_CONTENT:17,MEDIA_GALLERY:18,ADDRESS:19,PAGE_LINK:20,REFERENCE:21,MULTI_REFERENCE:22,OBJECT:23,ARRAY:24,LEGACY_TIME:25,LEGACY_BOOK:26,LEGACY_EXTERNAL_URL:27,LEGACY_BROKEN_REFERENCE:28,LEGACY_IMAGE:29,LEGACY_COLOR:30,LEGACY_EXTERNAL_VIDEO:31,SLUG:32,EMAIL:33,SECURED_MEDIA:34,MEDIA_IMAGE:35,MEDIA_VECTOR_ART:36},valuesOptions:{UNKNOWN_FIELD_TYPE:{"(.wix.api.enum_maturity)":"NOT_IMPLEMENTED"},SLUG:{"(.wix.api.enum_maturity)":"ALPHA","(.wix.api.enum_exposure)":"INTERNAL"},EMAIL:{"(.wix.api.enum_maturity)":"ALPHA"},SECURED_MEDIA:{"(.wix.api.enum_maturity)":"ALPHA"},MEDIA_IMAGE:{"(.wix.api.enum_maturity)":"ALPHA"},MEDIA_VECTOR_ART:{"(.wix.api.enum_maturity)":"ALPHA"}},comment:null,comments:{UNKNOWN_FIELD_TYPE:null,TEXT:null,NUMBER:null,DATE:null,DATETIME:null,IMAGE:null,BOOLEAN:null,DOCUMENT:null,URL:null,RICH_TEXT:null,VIDEO:null,ANY:null,ARRAY_STRING:null,ARRAY_DOCUMENT:null,AUDIO:null,TIME:null,LANGUAGE:null,RICH_CONTENT:null,MEDIA_GALLERY:null,ADDRESS:null,PAGE_LINK:null,REFERENCE:null,MULTI_REFERENCE:null,OBJECT:null,ARRAY:null,LEGACY_TIME:null,LEGACY_BOOK:null,LEGACY_EXTERNAL_URL:null,LEGACY_BROKEN_REFERENCE:null,LEGACY_IMAGE:null,LEGACY_COLOR:null,LEGACY_EXTERNAL_VIDEO:null,SLUG:null,EMAIL:null,SECURED_MEDIA:null,MEDIA_IMAGE:null,MEDIA_VECTOR_ART:null}},externaldatabase:{nested:{ExternalDatabaseConnectionService:{options:{"(wix.api.service_entity).message":"com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection","(wix.api.service_exposure)":"PUBLIC","(wix.api.service_maturity)":"GA"},methods:{GetExternalDatabaseConnection:{requestType:"GetExternalDatabaseConnectionRequest",responseType:"GetExternalDatabaseConnectionResponse",options:{"(wix.api.required)":"GetExternalDatabaseConnectionRequest.name","(wix.api.permission).name":"WIX_DATA.GET_EXTERNAL_DATABASE_CONNECTION","(google.api.http).get":"/v1/external-database-connections/{name=**}","(wix.api.crud).method":"GET_ITEM","(wix.api.crud).get_options.id_field":"name","(wix.api.crud).get_options.item_field":"external_database_connection","(wix.api.crud).get_options":{id_field:"name",item_field:"external_database_connection"},"(wix.api.crud)":{method:"GET_ITEM",get_options:{id_field:"name",item_field:"external_database_connection"}}},comment:null,parsedOptions:[{"(wix.api.required)":"GetExternalDatabaseConnectionRequest.name",__comment:null},{"(wix.api.permission)":{name:"WIX_DATA.GET_EXTERNAL_DATABASE_CONNECTION"},__comment:{name:null}},{"(google.api.http)":{get:"/v1/external-database-connections/{name=**}"},__comment:{get:null}},{"(wix.api.crud)":{method:"GET_ITEM",get_options:{id_field:"name",item_field:"external_database_connection"}},__comment:null}]},ListExternalDatabaseConnections:{requestType:"ListExternalDatabaseConnectionsRequest",responseType:"ListExternalDatabaseConnectionsResponse",options:{"(wix.api.permission).name":"WIX_DATA.LIST_EXTERNAL_DATABASE_CONNECTIONS","(google.api.http).get":"/v1/external-database-connections"},comment:null,parsedOptions:[{"(wix.api.permission)":{name:"WIX_DATA.LIST_EXTERNAL_DATABASE_CONNECTIONS"},__comment:{name:null}},{"(google.api.http)":{get:"/v1/external-database-connections"},__comment:{get:null}}]},CreateExternalDatabaseConnection:{requestType:"CreateExternalDatabaseConnectionRequest",responseType:"CreateExternalDatabaseConnectionResponse",options:{"(wix.api.required)":"CreateExternalDatabaseConnectionRequest.connection_type","(wix.api.writable)":"CreateExternalDatabaseConnectionRequest.external_database_connection.name","(wix.api.permission).name":"WIX_DATA.CREATE_EXTERNAL_DATABASE_CONNECTION","(google.api.http).post":"/v1/external-database-connections","(.wix.sdk.signature).params":"connection_type","(.wix.sdk.signature)":{params:["external_database_connection","connection_type"]},"(wix.api.emits).event_type":"CREATED","(wix.api.emits)":{event_type:"CREATED"},"(wix.api.crud).method":"CREATE","(wix.api.crud).create_options.item_field":"external_database_connection","(wix.api.crud).create_options":{item_field:"external_database_connection"},"(wix.api.crud)":{method:"CREATE",create_options:{item_field:"external_database_connection"}}},comment:null,parsedOptions:[{"(wix.api.required)":"CreateExternalDatabaseConnectionRequest.external_database_connection",__comment:null},{"(wix.api.writable)":"CreateExternalDatabaseConnectionRequest.external_database_connection.name",__comment:null},{"(wix.api.required)":"CreateExternalDatabaseConnectionRequest.external_database_connection.name",__comment:null},{"(wix.api.required)":"CreateExternalDatabaseConnectionRequest.connection_type",__comment:null},{"(wix.api.permission)":{name:"WIX_DATA.CREATE_EXTERNAL_DATABASE_CONNECTION"},__comment:{name:null}},{"(google.api.http)":{post:"/v1/external-database-connections"},__comment:{post:null}},{"(.wix.sdk.signature)":{params:["external_database_connection","connection_type"]},__comment:null},{"(wix.api.emits)":{event_type:"CREATED"},__comment:null},{"(wix.api.crud)":{method:"CREATE",create_options:{item_field:"external_database_connection"}},__comment:null}]},UpdateExternalDatabaseConnection:{requestType:"UpdateExternalDatabaseConnectionRequest",responseType:"UpdateExternalDatabaseConnectionResponse",options:{"(wix.api.required)":"UpdateExternalDatabaseConnectionRequest.external_database_connection.name","(wix.api.permission).name":"WIX_DATA.UPDATE_EXTERNAL_DATABASE_CONNECTION","(google.api.http).put":"/v1/external-database-connections/{externalDatabaseConnection.name=**}","(wix.api.emits).event_type":"UPDATED","(wix.api.emits)":{event_type:"UPDATED"},"(wix.api.crud).method":"UPDATE","(wix.api.crud).update_options.item_field":"external_database_connection","(wix.api.crud).update_options":{item_field:"external_database_connection"},"(wix.api.crud)":{method:"UPDATE",update_options:{item_field:"external_database_connection"}}},comment:null,parsedOptions:[{"(wix.api.required)":"UpdateExternalDatabaseConnectionRequest.external_database_connection",__comment:null},{"(wix.api.required)":"UpdateExternalDatabaseConnectionRequest.external_database_connection.name",__comment:null},{"(wix.api.permission)":{name:"WIX_DATA.UPDATE_EXTERNAL_DATABASE_CONNECTION"},__comment:{name:null}},{"(google.api.http)":{put:"/v1/external-database-connections/{externalDatabaseConnection.name=**}"},__comment:{put:null}},{"(wix.api.emits)":{event_type:"UPDATED"},__comment:null},{"(wix.api.crud)":{method:"UPDATE",update_options:{item_field:"external_database_connection"}},__comment:null}]},DeleteExternalDatabaseConnection:{requestType:"DeleteExternalDatabaseConnectionRequest",responseType:"DeleteExternalDatabaseConnectionResponse",options:{"(wix.api.required)":"DeleteExternalDatabaseConnectionRequest.name","(wix.api.permission).name":"WIX_DATA.DELETE_EXTERNAL_DATABASE_CONNECTION","(google.api.http).delete":"/v1/external-database-connections/{name=**}","(wix.api.emits).event_type":"DELETED","(wix.api.emits)":{event_type:"DELETED"},"(wix.api.crud).method":"DELETE","(wix.api.crud).delete_options.id_field":"name","(wix.api.crud).delete_options":{id_field:"name"},"(wix.api.crud)":{method:"DELETE",delete_options:{id_field:"name"}}},comment:null,parsedOptions:[{"(wix.api.required)":"DeleteExternalDatabaseConnectionRequest.name",__comment:null},{"(wix.api.permission)":{name:"WIX_DATA.DELETE_EXTERNAL_DATABASE_CONNECTION"},__comment:{name:null}},{"(google.api.http)":{delete:"/v1/external-database-connections/{name=**}"},__comment:{delete:null}},{"(wix.api.emits)":{event_type:"DELETED"},__comment:null},{"(wix.api.crud)":{method:"DELETE",delete_options:{id_field:"name"}},__comment:null}]}},comment:null},ExternalDatabaseConnection:{options:{"(.wix.api.entity).fqdn":"wix.data.v1.external_database_connection","(.wix.api.entity).app_def_id":"e593b0bd-b783-45b8-97c2-873d42aacaf4","(.wix.api.entity).segment":"USERS","(.wix.api.entity).appendix_files.type":"DOCS_CONF","(.wix.api.entity).appendix_files.path":"appendices/docs","(.wix.api.entity).appendix_files":{type:"DOCS_CONF",path:"appendices/docs"},"(.wix.api.entity).domain_events_read_permission":"WIX_DATA.GET_EXTERNAL_DATABASE_CONNECTION","(.wix.api.entity)":{fqdn:"wix.data.v1.external_database_connection",app_def_id:"e593b0bd-b783-45b8-97c2-873d42aacaf4",segment:"USERS",appendix_files:[{type:"AUTO_VELO",path:"appendices/velo"},{type:"DOCS_CONF",path:"appendices/docs"}],domain_events_read_permission:"WIX_DATA.GET_EXTERNAL_DATABASE_CONNECTION"},"(.wix.api.domain_event).event_type":"DELETED","(.wix.api.domain_event).exposure":"PUBLIC","(.wix.api.domain_event)":{event_type:"DELETED",exposure:"PUBLIC"}},fields:{name:{type:"string",id:1,options:{"(.wix.api.immutable)":!0,"(wix.api.minLength)":1,"(wix.api.maxLength)":255},comment:null,parsedOptions:[{"(.wix.api.immutable)":!0,__comment:null},{"(wix.api.minLength)":1,__comment:null},{"(wix.api.maxLength)":255,__comment:null}]},endpoint:{type:"google.protobuf.StringValue",id:2,options:{"(wix.api.format)":"WEB_URL"},comment:null,parsedOptions:[{"(wix.api.format)":"WEB_URL",__comment:null}]},configuration:{type:"google.protobuf.Struct",id:3,comment:null,parsedOptions:null},connectionStatus:{type:"ConnectionStatus",id:4,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]},protocolVersion:{type:"ProtocolVersion",id:5,options:{"(.wix.api.readOnly)":!0,"(wix.api.field_exposure)":"INTERNAL"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(wix.api.field_exposure)":"INTERNAL",__comment:null}]},publicKey:{type:"google.protobuf.StringValue",id:6,options:{"(.wix.api.readOnly)":!0,"(.wix.api.maxLength)":128},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.maxLength)":128,__comment:null}]},capabilities:{type:"Capabilities",id:7,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]},applicationId:{type:"google.protobuf.StringValue",id:8,options:{"(.wix.api.readOnly)":!0,"(.wix.api.maxLength)":128,"(wix.api.field_exposure)":"INTERNAL"},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null},{"(.wix.api.maxLength)":128,__comment:null},{"(wix.api.field_exposure)":"INTERNAL",__comment:null}]}},nested:{ConnectionStatus:{fields:{successful:{type:"bool",id:1,comment:null,parsedOptions:null},causeOfFailure:{type:"CauseOfFailure",id:2,comment:null,parsedOptions:null},hasCollections:{type:"CollectionsFound",id:3,options:{"(.wix.api.readOnly)":!0},comment:null,parsedOptions:[{"(.wix.api.readOnly)":!0,__comment:null}]}},nested:{CauseOfFailure:{values:{NONE:0,COMMUNICATION_FAILURE:1,DESTINATION_HOST_UNREACHABLE:2,UNAUTHORIZED:3,DESTINATION_ENDPOINT_NOT_DEFINED:4},comment:null,comments:{NONE:null,COMMUNICATION_FAILURE:null,DESTINATION_HOST_UNREACHABLE:null,UNAUTHORIZED:null,DESTINATION_ENDPOINT_NOT_DEFINED:null}},CollectionsFound:{values:{UNKNOWN:0,YES:1,NO:2},comment:null,comments:{UNKNOWN:null,YES:null,NO:null}}},comment:null},Capabilities:{fields:{collectionModificationsSupported:{type:"bool",id:1,comment:null,parsedOptions:null},fieldTypes:{rule:"repeated",type:"FieldType",id:2,options:{"(.wix.api.maxSize)":255},comment:null,parsedOptions:[{"(.wix.api.maxSize)":255,__comment:null}]}},comment:null},ProtocolVersion:{values:{UNKNOWN_PROTOCOL_VERSION:0,V1:1,V2:2,V3:3},valuesOptions:{UNKNOWN_PROTOCOL_VERSION:{"(.wix.api.enum_maturity)":"NOT_IMPLEMENTED"}},comment:null,comments:{UNKNOWN_PROTOCOL_VERSION:null,V1:null,V2:null,V3:null}}},comment:null},GetExternalDatabaseConnectionRequest:{fields:{name:{type:"string",id:1,options:{"(.wix.api.maxLength)":255},comment:null,parsedOptions:[{"(.wix.api.maxLength)":255,__comment:null}]}},comment:null},GetExternalDatabaseConnectionResponse:{fields:{externalDatabaseConnection:{type:"ExternalDatabaseConnection",id:1,comment:null,parsedOptions:null}},comment:null},ListExternalDatabaseConnectionsRequest:{fields:{paging:{type:"upstream.externaldatabase.wix.common.Paging",id:1,comment:null,parsedOptions:null}},comment:null},ListExternalDatabaseConnectionsResponse:{fields:{externalDatabaseConnections:{rule:"repeated",type:"ExternalDatabaseConnection",id:1,comment:null,parsedOptions:null},pagingMetadata:{type:"upstream.externaldatabase.wix.common.PagingMetadata",id:2,comment:null,parsedOptions:null}},comment:null},CreateExternalDatabaseConnectionRequest:{fields:{externalDatabaseConnection:{type:"ExternalDatabaseConnection",id:1,comment:null,parsedOptions:null},connectionType:{type:"ConnectionType",id:2,comment:null,parsedOptions:null},databaseManagedByWix:{type:"bool",id:3,options:{"(wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(wix.api.field_exposure)":"PRIVATE",__comment:null}]}},comment:null},ConnectionType:{values:{UNKNOWN_CONNECTION_TYPE:0,STANDALONE:1,WIX_SERVICE_PLUGIN:2},valuesOptions:{UNKNOWN_CONNECTION_TYPE:{"(.wix.api.enum_maturity)":"NOT_IMPLEMENTED"}},comment:null,comments:{UNKNOWN_CONNECTION_TYPE:null,STANDALONE:null,WIX_SERVICE_PLUGIN:null}},CreateExternalDatabaseConnectionResponse:{fields:{externalDatabaseConnection:{type:"ExternalDatabaseConnection",id:1,comment:null,parsedOptions:null}},comment:null},UpdateExternalDatabaseConnectionRequest:{fields:{externalDatabaseConnection:{type:"ExternalDatabaseConnection",id:2,comment:null,parsedOptions:null}},comment:null},UpdateExternalDatabaseConnectionResponse:{fields:{externalDatabaseConnection:{type:"ExternalDatabaseConnection",id:1,comment:null,parsedOptions:null}},comment:null},DeleteExternalDatabaseConnectionRequest:{fields:{name:{type:"string",id:1,options:{"(.wix.api.maxLength)":255},comment:null,parsedOptions:[{"(.wix.api.maxLength)":255,__comment:null}]}},comment:null},DeleteExternalDatabaseConnectionResponse:{fields:{},comment:null}}}}}}}}},iptf:{nested:{webhooks:{nested:{Debug:{methods:{queryMessageId:{requestType:"QueryMessageIdRequest",responseType:"QueryResponse",options:{"(google.api.http).post":"/queryMessageId","(google.api.http)":{post:"/queryMessageId"}},comment:null,parsedOptions:[{"(google.api.http)":{post:"/queryMessageId"},__comment:null}]},queryOffset:{requestType:"QueryOffsetRequest",responseType:"QueryResponse",options:{"(google.api.http).post":"/queryOffset","(google.api.http)":{post:"/queryOffset"}},comment:null,parsedOptions:[{"(google.api.http)":{post:"/queryOffset"},__comment:null}]}},comment:null},QueryOffsetRequest:{fields:{topic:{type:"string",id:1,comment:null,parsedOptions:null},partition:{type:"int32",id:2,comment:null,parsedOptions:null},offset:{type:"int64",id:3,comment:null,parsedOptions:null}},comment:null},QueryMessageIdRequest:{fields:{messageId:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},QueryResponse:{fields:{json:{rule:"repeated",type:"string",id:1,comment:null,parsedOptions:null}},comment:null},WebhooksKV:{methods:{queryApp:{requestType:"QueryAppRequest",responseType:"QueryAppResponse",options:{"(google.api.http)":{}},comment:null,parsedOptions:[{"(google.api.http)":{},__comment:null}]},queryAppSecretAndPrivateKey:{requestType:"QueryAppSecretAndPrivateKeyRequest",responseType:"QueryAppSecretAndPrivateKeyResponse",options:{"(google.api.http)":{}},comment:null,parsedOptions:[{"(google.api.http)":{},__comment:null}]}},comment:null},QueryAppRequest:{fields:{appDefId:{type:"string",id:1,comment:null,parsedOptions:null},version:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},QueryAppSecretAndPrivateKeyRequest:{fields:{appDefId:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},QueryAppSecretAndPrivateKeyResponse:{fields:{privateKey:{type:"google.protobuf.StringValue",id:1,comment:null,parsedOptions:null},secret:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},QueryAppResponse:{fields:{permissions:{rule:"repeated",type:"string",id:1,comment:null,parsedOptions:null},privateKey:{type:"google.protobuf.StringValue",id:2,comment:null,parsedOptions:null},secret:{type:"string",id:3,comment:null,parsedOptions:null},webhook:{rule:"repeated",type:"DispatcherAppWebhook",id:4,comment:null,parsedOptions:null}},comment:null},DispatcherAppWebhook:{fields:{webhookSlug:{type:"string",id:1,comment:null,parsedOptions:null},callbackUrl:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},api:{nested:{v1:{nested:{WebhooksDebugService:{methods:{submit:{requestType:"SubmitWebhookRequest",responseType:"SubmitWebhookResponse",options:{"(google.api.http).post":"debug/submit","(google.api.http)":{post:"debug/submit"}},comment:null,parsedOptions:[{"(google.api.http)":{post:"debug/submit"},__comment:null}]}},comment:null},SubmitWebhookRequest:{fields:{url:{type:"string",id:1,comment:null,parsedOptions:null},eventType:{type:"string",id:2,comment:null,parsedOptions:null},topic:{type:"string",id:3,comment:null,parsedOptions:null},payload:{type:"string",id:4,comment:null,parsedOptions:null},httpMethod:{type:"string",id:5,comment:null,parsedOptions:null},jwtSecret:{type:"string",id:6,comment:null,parsedOptions:null},expireInMs:{type:"int64",id:7,comment:null,parsedOptions:null},submitted:{type:"int64",id:8,comment:null,parsedOptions:null},shouldOverrideProxy:{type:"bool",id:9,comment:null,parsedOptions:null},rsaPrivateKey:{type:"string",id:10,comment:null,parsedOptions:null}},comment:null},SubmitWebhookResponse:{fields:{statusCode:{type:"int32",id:1,comment:null,parsedOptions:null},message:{type:"string",id:2,comment:null,parsedOptions:null}},comment:null},WebhooksSyncService:{methods:{signHash:{requestType:"SignHashRequest",responseType:"SignResponse",options:{"(wix.api.required)":"SignHashRequest.appdef_id","(google.api.http).get":"v1/sign/hash","(google.api.http)":{get:"v1/sign/hash"}},comment:null,parsedOptions:[{"(wix.api.required)":"SignHashRequest.hashedPayload",__comment:null},{"(wix.api.required)":"SignHashRequest.appdef_id",__comment:null},{"(google.api.http)":{get:"v1/sign/hash"},__comment:null}]}},comment:null},SignHashRequest:{fields:{hashedPayload:{type:"string",id:1,comment:null,parsedOptions:null},algorithm:{type:"HashFunction",id:2,comment:null,parsedOptions:null},appdefId:{type:"string",id:3,options:{"(wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(wix.api.format)":"GUID",__comment:null}]},expirationInMillis:{type:"int64",id:4,comment:null,parsedOptions:null},artifactId:{type:"google.protobuf.StringValue",id:5,options:{"(wix.api.maxLength)":200},comment:null,parsedOptions:[{"(wix.api.maxLength)":200,__comment:null}]}},comment:null},SignResponse:{fields:{token:{type:"string",id:1,comment:null,parsedOptions:null}},comment:null},HashFunction:{values:{SHA256:0},comment:null,comments:{SHA256:null}}}}}}}},v1:{nested:{webhooks:{nested:{MessageEnvelope:{fields:{instanceId:{type:"google.protobuf.StringValue",id:1,options:{"(.wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(.wix.api.format)":"GUID",__comment:null}]},eventType:{type:"string",id:2,options:{"(.wix.api.maxLength)":150},comment:null,parsedOptions:[{"(.wix.api.maxLength)":150,__comment:null}]},identity:{type:"IdentificationData",id:3,comment:null,parsedOptions:null},data:{type:"string",id:4,comment:null,parsedOptions:null},accountInfo:{type:"AccountInfo",id:6,options:{"(.wix.api.field_maturity)":"BETA"},comment:null,parsedOptions:[{"(.wix.api.field_maturity)":"BETA",__comment:null}]}},reserved:["account_details",[5,5]],comment:null},IdentificationData:{options:{"(.wix.api.decomposite_of)":"wix.common.IdentificationData"},oneofs:{id:{oneof:["anonymousVisitorId","memberId","wixUserId","appId"],comment:null}},fields:{identityType:{type:"WebhookIdentityType",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:{WebhookIdentityType:{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},AccountInfo:{fields:{accountId:{type:"google.protobuf.StringValue",id:1,options:{"(.wix.api.format)":"GUID"},comment:null,parsedOptions:[{"(.wix.api.format)":"GUID",__comment:null}]},parentAccountId:{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}]}},comment:null}}}}}}}}}}},wix:{nested:{api:{options:{java_multiple_files:!0,java_outer_classname:"SubscriptionProto",java_package:"com.wix.api"},nested:{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},serviceTenancy:{type:"TenancyOptions",id:50157,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:{},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},audience:{type:"Audience",id:50155,extend:"google.protobuf.MethodOptions",comment:null,parsedOptions:null},tenancy:{type:"TenancyOptions",id:50156,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:{},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:{},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,DATE_TIME:3},comment:null,comments:{NO_VIRTUAL_SUBFIELDS:null,DATE:null,EMAIL:null,DATE_TIME: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}},Audience:{fields:{uou:{type:"Uou",id:1,comment:null,parsedOptions:null},apps:{type:"Apps",id:2,comment:null,parsedOptions:null},users:{type:"Users",id:3,comment:null,parsedOptions:null},boUsers:{type:"BoUsers",id:4,comment:null,parsedOptions:null},anonymous:{type:"Anonymous",id:5,comment:null,parsedOptions:null}},nested:{Uou:{fields:{access:{type:"Access",id:1,options:{default:"NOT_ALLOWED"},comment:null,parsedOptions:[{default:"NOT_ALLOWED",__comment:null}]}},nested:{Access:{values:{NOT_ALLOWED:0,MEMBER_ONLY:1,MEMBERS_AND_VISITORS:2},comment:null,comments:{NOT_ALLOWED:null,MEMBER_ONLY:null,MEMBERS_AND_VISITORS:null}}},comment:null},Apps:{fields:{access:{type:"Access",id:1,options:{default:"NOT_ALLOWED"},comment:null,parsedOptions:[{default:"NOT_ALLOWED",__comment:null}]}},nested:{Access:{values:{NOT_ALLOWED:0,WIX_APPS_ONLY:1,WIX_AND_PUBLIC_APPS:2},comment:null,comments:{NOT_ALLOWED:null,WIX_APPS_ONLY:null,WIX_AND_PUBLIC_APPS:null}}},comment:null},Users:{fields:{access:{type:"Access",id:1,options:{default:"NOT_ALLOWED"},comment:null,parsedOptions:[{default:"NOT_ALLOWED",__comment:null}]}},nested:{Access:{values:{NOT_ALLOWED:0,ALLOWED:2},reserved:[[1,1]],comment:null,comments:{NOT_ALLOWED:null,ALLOWED:null}}},comment:null},BoUsers:{fields:{access:{type:"Access",id:1,options:{default:"NOT_ALLOWED"},comment:null,parsedOptions:[{default:"NOT_ALLOWED",__comment:null}]}},nested:{Access:{values:{NOT_ALLOWED:0,ALLOWED:1},comment:null,comments:{NOT_ALLOWED:null,ALLOWED:null}}},comment:null},Anonymous:{fields:{access:{type:"Access",id:1,options:{default:"NOT_ALLOWED"},comment:null,parsedOptions:[{default:"NOT_ALLOWED",__comment:null}]}},nested:{Access:{values:{NOT_ALLOWED:0,ALLOWED:1},comment:null,comments:{NOT_ALLOWED:null,ALLOWED:null}}},comment:null}},comment:null},TenancyOptions:{fields:{type:{type:"Type",id:1,options:{default:"SITE"},comment:null,parsedOptions:[{default:"SITE",__comment:null}]}},nested:{Type:{values:{SITE:0,ACCOUNT:1,ORGANIZATION:2,CUSTOM:3,INSTANCE:4},comment:null,comments:{SITE:null,ACCOUNT:null,ORGANIZATION:null,CUSTOM:null,INSTANCE: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",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},tenancy:{type:"Tenancy",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},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},Tenancy:{values:{SITE:0,ACCOUNT:1,GLOBAL:2},comment:"Indicates the callback tenancy",comments:{SITE:null,ACCOUNT:null,GLOBAL: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},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},tenancy:{type:"TenancyOptions",id:19,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},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}},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},skipEmptyOptionsHandling:{type:"bool",id:3,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}},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},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},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},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},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,options:{deprecated:!0},comment:null,parsedOptions:[{deprecated:!0,__comment: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}}},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}},domainevents:{options:{java_multiple_files:!0,java_package:"com.wix.common.domainevents"},nested:{AttributeUpdated:{options:{"(.wix.api.decomposition_minimum_fields).field":"value","(.wix.api.decomposition_minimum_fields)":{field:["previous_value","value"]}},fields:{previousValue:{type:"google.protobuf.Value",id:4,comment:null,parsedOptions:null},value:{type:"google.protobuf.Value",id:5,comment:null,parsedOptions:null}},comment:null},EntityCreatedEvent:{fields:{entityAsJson:{type:"string",id:2,options:{"(wix.api.pii)":!0},comment:null,parsedOptions:[{"(wix.api.pii)":!0,__comment:null}]},triggeredByUndelete:{type:"google.protobuf.BoolValue",id:3,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},restoreInfo:{type:"RestoreInfo",id:4,comment:null,parsedOptions:null},additionalMetadataAsJson:{type:"google.protobuf.StringValue",id:5,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},EntityUpdatedEvent:{fields:{currentEntityAsJson:{type:"string",id:2,options:{"(wix.api.pii)":!0},comment:null,parsedOptions:[{"(wix.api.pii)":!0,__comment:null}]},previousEntityAsJson:{type:"google.protobuf.StringValue",id:3,options:{"(wix.api.pii)":!0,deprecated:!0,"(.wix.api.field_exposure)":"INTERNAL"},comment:null,parsedOptions:[{"(wix.api.pii)":!0,__comment:null},{deprecated:!0,__comment:null},{"(.wix.api.field_exposure)":"INTERNAL",__comment:null}]},modifiedFields:{keyType:"string",type:"google.protobuf.Value",id:5,options:{"(wix.api.pii)":!0,"(.wix.api.field_exposure)":"PRIVATE"},comment:null},additionalMetadataAsJson:{type:"google.protobuf.StringValue",id:6,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}]}},reserved:[[4,4]],comment:null},EntityDeletedEvent:{fields:{movedToTrash:{type:"google.protobuf.BoolValue",id:1,options:{"(.wix.api.field_exposure)":"PRIVATE"},comment:null,parsedOptions:[{"(.wix.api.field_exposure)":"PRIVATE",__comment:null}]},deletedEntityAsJson:{type:"google.protobuf.StringValue",id:2,options:{"(wix.api.pii)":!0},comment:null,parsedOptions:[{"(wix.api.pii)":!0,__comment:null}]},additionalMetadataAsJson:{type:"google.protobuf.StringValue",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}]}},comment:null},ActionEvent:{fields:{bodyAsJson:{type:"string",id:2,options:{"(wix.api.pii)":!0},comment:null,parsedOptions:[{"(wix.api.pii)":!0,__comment:null}]}},comment:null},DomainEvent:{options:{"(.wix.api.decomposition_minimum_fields).field":"event_time","(.wix.api.decomposition_minimum_fields)":{field:["id","entity_fqdn","slug","entity_id","event_time"]}},oneofs:{body:{oneof:["createdEvent","updatedEvent","deletedEvent","actionEvent"],comment:null}},fields:{id:{type:"string",id:1,comment:null,parsedOptions:null},entityFqdn:{type:"string",id:2,comment:null,parsedOptions:null},slug:{type:"string",id:3,comment:null,parsedOptions:null},entityId:{type:"string",id:4,comment:null,parsedOptions:null},createdEvent:{type:"EntityCreatedEvent",id:5,comment:null,parsedOptions:null},updatedEvent:{type:"EntityUpdatedEvent",id:6,comment:null,parsedOptions:null},deletedEvent:{type:"EntityDeletedEvent",id:7,comment:null,parsedOptions:null},actionEvent:{type:"ActionEvent",id:8,comment:null,parsedOptions:null},eventTime:{type:"google.protobuf.Timestamp",id:9,comment:null,parsedOptions:null},triggeredByAnonymizeRequest:{type:"google.protobuf.BoolValue",id:10,comment:null,parsedOptions:null},originatedFrom:{type:"google.protobuf.StringValue",id:11,comment:null,parsedOptions:null},entityEventSequence:{type:"google.protobuf.Int64Value",id:13,comment:null,parsedOptions:null}},reserved:[[12,12]],comment:null},DomainEvents:{fields:{domainEvents:{rule:"repeated",type:"DomainEvent",id:1,comment:null,parsedOptions:null}},comment:null},RestoreInfo:{fields:{deletedDate:{type:"google.protobuf.Timestamp",id:1,comment:null,parsedOptions:null}},comment: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},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}}}},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}}},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:{type:"string",id:1,options:{deprecated:!0},comment:null,parsedOptions:[{deprecated:!0,__comment:null}]},fqn:{type:"string",id:2,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}}}}}},upstream:{nested:{externaldatabase:{nested:{wix:{nested:{common:{options:{java_multiple_files:!0,java_package:"com.upstream.externaldatabase.wix.common"},nested:{Paging:{options:{"(.wix.api.decomposite_of)":"wix.common.Paging","(.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.decomposite_of)":"wix.common.CursorPaging","(.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.decomposite_of)":"wix.common.PagingMetadata","(.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.decomposite_of)":"wix.common.PagingMetadataV2","(.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.CursorPagingMetadata"},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}},comment:null},Cursors:{options:{"(.wix.api.decomposite_of)":"wix.common.Cursors","(.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}}}}}}}}},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},Empty:{fields:{},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}}},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 t.__lookup=function(){return e=>n.lookup(e)},t.__lookup()}};t.com=function(){const n={};return n.wixpress=function(){const n={};return n.cloud=function(){const n={};return n.data=function(){const n={};return n.api=function(){const n={Environment:{UNKNOWN_ENVIRONMENT:"UNKNOWN_ENVIRONMENT",0:"UNKNOWN_ENVIRONMENT",SANDBOX:"SANDBOX",1:"SANDBOX",SANDBOX_PREFERRED:"SANDBOX_PREFERRED",2:"SANDBOX_PREFERRED",LIVE:"LIVE",3:"LIVE"},FieldType:{UNKNOWN_FIELD_TYPE:"UNKNOWN_FIELD_TYPE",0:"UNKNOWN_FIELD_TYPE",TEXT:"TEXT",1:"TEXT",NUMBER:"NUMBER",2:"NUMBER",DATE:"DATE",3:"DATE",DATETIME:"DATETIME",4:"DATETIME",IMAGE:"IMAGE",5:"IMAGE",BOOLEAN:"BOOLEAN",6:"BOOLEAN",DOCUMENT:"DOCUMENT",7:"DOCUMENT",URL:"URL",8:"URL",RICH_TEXT:"RICH_TEXT",9:"RICH_TEXT",VIDEO:"VIDEO",10:"VIDEO",ANY:"ANY",11:"ANY",ARRAY_STRING:"ARRAY_STRING",12:"ARRAY_STRING",ARRAY_DOCUMENT:"ARRAY_DOCUMENT",13:"ARRAY_DOCUMENT",AUDIO:"AUDIO",14:"AUDIO",TIME:"TIME",15:"TIME",LANGUAGE:"LANGUAGE",16:"LANGUAGE",RICH_CONTENT:"RICH_CONTENT",17:"RICH_CONTENT",MEDIA_GALLERY:"MEDIA_GALLERY",18:"MEDIA_GALLERY",ADDRESS:"ADDRESS",19:"ADDRESS",PAGE_LINK:"PAGE_LINK",20:"PAGE_LINK",REFERENCE:"REFERENCE",21:"REFERENCE",MULTI_REFERENCE:"MULTI_REFERENCE",22:"MULTI_REFERENCE",OBJECT:"OBJECT",23:"OBJECT",ARRAY:"ARRAY",24:"ARRAY",LEGACY_TIME:"LEGACY_TIME",25:"LEGACY_TIME",LEGACY_BOOK:"LEGACY_BOOK",26:"LEGACY_BOOK",LEGACY_EXTERNAL_URL:"LEGACY_EXTERNAL_URL",27:"LEGACY_EXTERNAL_URL",LEGACY_BROKEN_REFERENCE:"LEGACY_BROKEN_REFERENCE",28:"LEGACY_BROKEN_REFERENCE",LEGACY_IMAGE:"LEGACY_IMAGE",29:"LEGACY_IMAGE",LEGACY_COLOR:"LEGACY_COLOR",30:"LEGACY_COLOR",LEGACY_EXTERNAL_VIDEO:"LEGACY_EXTERNAL_VIDEO",31:"LEGACY_EXTERNAL_VIDEO",SLUG:"SLUG",32:"SLUG",EMAIL:"EMAIL",33:"EMAIL",SECURED_MEDIA:"SECURED_MEDIA",34:"SECURED_MEDIA",MEDIA_IMAGE:"MEDIA_IMAGE",35:"MEDIA_IMAGE",MEDIA_VECTOR_ART:"MEDIA_VECTOR_ART",36:"MEDIA_VECTOR_ART"}};return n.externaldatabase=function(){const n={};return n.ExternalDatabaseConnectionService=function(){class ExternalDatabaseConnectionService{getExternalDatabaseConnection(e,t){throw new TypeError("method getExternalDatabaseConnection is abstract")}listExternalDatabaseConnections(e,t){throw new TypeError("method listExternalDatabaseConnections is abstract")}createExternalDatabaseConnection(e,t){throw new TypeError("method createExternalDatabaseConnection is abstract")}updateExternalDatabaseConnection(e,t){throw new TypeError("method updateExternalDatabaseConnection is abstract")}deleteExternalDatabaseConnection(e,t){throw new TypeError("method deleteExternalDatabaseConnection is abstract")}}return ExternalDatabaseConnectionService.prototype.getExternalDatabaseConnection._messageTypes=function(){return[t.com.wixpress.cloud.data.api.externaldatabase.GetExternalDatabaseConnectionRequest,t.com.wixpress.cloud.data.api.externaldatabase.GetExternalDatabaseConnectionResponse]},ExternalDatabaseConnectionService.prototype.listExternalDatabaseConnections._messageTypes=function(){return[t.com.wixpress.cloud.data.api.externaldatabase.ListExternalDatabaseConnectionsRequest,t.com.wixpress.cloud.data.api.externaldatabase.ListExternalDatabaseConnectionsResponse]},ExternalDatabaseConnectionService.prototype.createExternalDatabaseConnection._messageTypes=function(){return[t.com.wixpress.cloud.data.api.externaldatabase.CreateExternalDatabaseConnectionRequest,t.com.wixpress.cloud.data.api.externaldatabase.CreateExternalDatabaseConnectionResponse]},ExternalDatabaseConnectionService.prototype.updateExternalDatabaseConnection._messageTypes=function(){return[t.com.wixpress.cloud.data.api.externaldatabase.UpdateExternalDatabaseConnectionRequest,t.com.wixpress.cloud.data.api.externaldatabase.UpdateExternalDatabaseConnectionResponse]},ExternalDatabaseConnectionService.prototype.deleteExternalDatabaseConnection._messageTypes=function(){return[t.com.wixpress.cloud.data.api.externaldatabase.DeleteExternalDatabaseConnectionRequest,t.com.wixpress.cloud.data.api.externaldatabase.DeleteExternalDatabaseConnectionResponse]},ExternalDatabaseConnectionService.prototype.getExternalDatabaseConnection.__proto=e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.GetExternalDatabaseConnection"),ExternalDatabaseConnectionService.prototype.listExternalDatabaseConnections.__proto=e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.ListExternalDatabaseConnections"),ExternalDatabaseConnectionService.prototype.createExternalDatabaseConnection.__proto=e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.CreateExternalDatabaseConnection"),ExternalDatabaseConnectionService.prototype.updateExternalDatabaseConnection.__proto=e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.UpdateExternalDatabaseConnection"),ExternalDatabaseConnectionService.prototype.deleteExternalDatabaseConnection.__proto=e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.DeleteExternalDatabaseConnection"),e.Object.defineProperty(ExternalDatabaseConnectionService.prototype,"__isRpcService__",{value:!0,enumerable:!1,configurable:!1}),e.Object.defineProperty(ExternalDatabaseConnectionService.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService",enumerable:!1,configurable:!1}),e.Object.defineProperty(ExternalDatabaseConnectionService.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ExternalDatabaseConnectionService.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ExternalDatabaseConnectionService.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),e.Object.defineProperty(ExternalDatabaseConnectionService.prototype,"__filename",{value:(()=>{try{return decodeURIComponent(new URL(import.meta.url).pathname)}catch(e){return}})(),enumerable:!1,configurable:!1}),ExternalDatabaseConnectionService}(),n.ExternalDatabaseConnection=function(){class ExternalDatabaseConnection{constructor(e){this.name=e&&e.name,this.endpoint=e&&e.endpoint,this.configuration=e&&e.configuration,this.connectionStatus=e&&e.connectionStatus,this.protocolVersion=e&&e.protocolVersion,this.publicKey=e&&e.publicKey,this.capabilities=e&&e.capabilities,this.applicationId=e&&e.applicationId}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.name?i.name=e.name:o&&(i.name=""),null!=e.endpoint?i.endpoint=t.google.protobuf.StringValue.toJSON(e.endpoint,n,o):o&&delete i.endpoint,null!=e.configuration?i.configuration=t.google.protobuf.Struct.toJSON(e.configuration,n,o):o&&delete i.configuration,null!=e.connectionStatus?i.connectionStatus=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus.toJSON(e.connectionStatus,n,o):o&&delete i.connectionStatus,null!=e.protocolVersion?i.protocolVersion=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ProtocolVersion[e.protocolVersion]:o&&(i.protocolVersion="UNKNOWN_PROTOCOL_VERSION"),null!=e.publicKey?i.publicKey=t.google.protobuf.StringValue.toJSON(e.publicKey,n,o):o&&delete i.publicKey,null!=e.capabilities?i.capabilities=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.Capabilities.toJSON(e.capabilities,n,o):o&&delete i.capabilities,null!=e.applicationId?i.applicationId=t.google.protobuf.StringValue.toJSON(e.applicationId,n,o):o&&delete i.applicationId,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection;return null!=e.name?i.name=e.name:!1!==o?i.name="":delete i.name,null!=e.endpoint?i.endpoint=t.google.protobuf.StringValue.fromJSON(e.endpoint,n):delete i.endpoint,null!=e.configuration?i.configuration=t.google.protobuf.Struct.fromJSON(e.configuration,n):delete i.configuration,null!=e.connectionStatus?i.connectionStatus=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus.fromJSON(e.connectionStatus,n):delete i.connectionStatus,null!=e.protocolVersion?i.protocolVersion="string"==typeof e.protocolVersion?e.protocolVersion:t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ProtocolVersion[e.protocolVersion]:!1!==o?i.protocolVersion="UNKNOWN_PROTOCOL_VERSION":delete i.protocolVersion,null!=e.publicKey?i.publicKey=t.google.protobuf.StringValue.fromJSON(e.publicKey,n):delete i.publicKey,null!=e.capabilities?i.capabilities=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.Capabilities.fromJSON(e.capabilities,n):delete i.capabilities,null!=e.applicationId?i.applicationId=t.google.protobuf.StringValue.fromJSON(e.applicationId,n):delete i.applicationId,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.endpoint&&(o.endpoint=t.google.protobuf.StringValue.toGRPC(e.endpoint,n)),null!=e.configuration&&(o.configuration=t.google.protobuf.Struct.toGRPC(e.configuration,n)),null!=e.connectionStatus&&(o.connectionStatus=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus.toGRPC(e.connectionStatus,n)),null!=e.protocolVersion&&(o.protocolVersion=e.protocolVersion),null!=e.publicKey&&(o.publicKey=t.google.protobuf.StringValue.toGRPC(e.publicKey,n)),null!=e.capabilities&&(o.capabilities=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.Capabilities.toGRPC(e.capabilities,n)),null!=e.applicationId&&(o.applicationId=t.google.protobuf.StringValue.toGRPC(e.applicationId,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection;return null!=e.name?o.name=e.name:o.name="",null!=e.endpoint?o.endpoint=t.google.protobuf.StringValue.fromGRPC(e.endpoint,n):delete o.endpoint,null!=e.configuration?o.configuration=t.google.protobuf.Struct.fromGRPC(e.configuration,n):delete o.configuration,null!=e.connectionStatus?o.connectionStatus=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus.fromGRPC(e.connectionStatus,n):delete o.connectionStatus,null!=e.protocolVersion?o.protocolVersion=e.protocolVersion:o.protocolVersion="UNKNOWN_PROTOCOL_VERSION",null!=e.publicKey?o.publicKey=t.google.protobuf.StringValue.fromGRPC(e.publicKey,n):delete o.publicKey,null!=e.capabilities?o.capabilities=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.Capabilities.fromGRPC(e.capabilities,n):delete o.capabilities,null!=e.applicationId?o.applicationId=t.google.protobuf.StringValue.fromGRPC(e.applicationId,n):delete o.applicationId,o}}}return ExternalDatabaseConnection.ConnectionStatus=function(){class ConnectionStatus{constructor(e){this.successful=e&&e.successful,this.causeOfFailure=e&&e.causeOfFailure,this.hasCollections=e&&e.hasCollections}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.successful?n.successful=e.successful:o&&(n.successful=!1),null!=e.causeOfFailure?n.causeOfFailure=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus.CauseOfFailure[e.causeOfFailure]:o&&(n.causeOfFailure="NONE"),null!=e.hasCollections?n.hasCollections=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus.CollectionsFound[e.hasCollections]:o&&(n.hasCollections="UNKNOWN"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus;return null!=e.successful?n.successful=e.successful:!1!==o?n.successful=!1:delete n.successful,null!=e.causeOfFailure?n.causeOfFailure="string"==typeof e.causeOfFailure?e.causeOfFailure:t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus.CauseOfFailure[e.causeOfFailure]:!1!==o?n.causeOfFailure="NONE":delete n.causeOfFailure,null!=e.hasCollections?n.hasCollections="string"==typeof e.hasCollections?e.hasCollections:t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus.CollectionsFound[e.hasCollections]:!1!==o?n.hasCollections="UNKNOWN":delete n.hasCollections,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.successful&&(t.successful=e.successful),null!=e.causeOfFailure&&(t.causeOfFailure=e.causeOfFailure),null!=e.hasCollections&&(t.hasCollections=e.hasCollections),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus;return null!=e.successful?n.successful=e.successful:n.successful=!1,null!=e.causeOfFailure?n.causeOfFailure=e.causeOfFailure:n.causeOfFailure="NONE",null!=e.hasCollections?n.hasCollections=e.hasCollections:n.hasCollections="UNKNOWN",n}}}return ConnectionStatus.CauseOfFailure={NONE:"NONE",0:"NONE",COMMUNICATION_FAILURE:"COMMUNICATION_FAILURE",1:"COMMUNICATION_FAILURE",DESTINATION_HOST_UNREACHABLE:"DESTINATION_HOST_UNREACHABLE",2:"DESTINATION_HOST_UNREACHABLE",UNAUTHORIZED:"UNAUTHORIZED",3:"UNAUTHORIZED",DESTINATION_ENDPOINT_NOT_DEFINED:"DESTINATION_ENDPOINT_NOT_DEFINED",4:"DESTINATION_ENDPOINT_NOT_DEFINED"},ConnectionStatus.CollectionsFound={UNKNOWN:"UNKNOWN",0:"UNKNOWN",YES:"YES",1:"YES",NO:"NO",2:"NO"},ConnectionStatus.CauseOfFailure={NONE:"NONE",0:"NONE",COMMUNICATION_FAILURE:"COMMUNICATION_FAILURE",1:"COMMUNICATION_FAILURE",DESTINATION_HOST_UNREACHABLE:"DESTINATION_HOST_UNREACHABLE",2:"DESTINATION_HOST_UNREACHABLE",UNAUTHORIZED:"UNAUTHORIZED",3:"UNAUTHORIZED",DESTINATION_ENDPOINT_NOT_DEFINED:"DESTINATION_ENDPOINT_NOT_DEFINED",4:"DESTINATION_ENDPOINT_NOT_DEFINED"},ConnectionStatus.CollectionsFound={UNKNOWN:"UNKNOWN",0:"UNKNOWN",YES:"YES",1:"YES",NO:"NO",2:"NO"},e.Object.defineProperty(ConnectionStatus.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ConnectionStatus.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus",enumerable:!1,configurable:!1}),e.Object.defineProperty(ConnectionStatus.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ConnectionStatus.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ConnectionStatus}(),ExternalDatabaseConnection.Capabilities=function(){class Capabilities{constructor(e){this.collectionModificationsSupported=e&&e.collectionModificationsSupported,this.fieldTypes=e&&e.fieldTypes}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.collectionModificationsSupported?n.collectionModificationsSupported=e.collectionModificationsSupported:o&&(n.collectionModificationsSupported=!1),null!=e.fieldTypes?n.fieldTypes=e.fieldTypes.map(e=>t.com.wixpress.cloud.data.api.FieldType[e]):o&&(n.fieldTypes=[]),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.Capabilities;return null!=e.collectionModificationsSupported?n.collectionModificationsSupported=e.collectionModificationsSupported:!1!==o?n.collectionModificationsSupported=!1:delete n.collectionModificationsSupported,null!=e.fieldTypes?n.fieldTypes=Array.isArray(e.fieldTypes)?e.fieldTypes.map(e=>"string"==typeof e?e:t.com.wixpress.cloud.data.api.FieldType[e]):e.fieldTypes:!1!==o?n.fieldTypes=[]:delete n.fieldTypes,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.collectionModificationsSupported&&(t.collectionModificationsSupported=e.collectionModificationsSupported),null!=e.fieldTypes&&(t.fieldTypes=e.fieldTypes.map(e=>e)),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.Capabilities;return null!=e.collectionModificationsSupported?n.collectionModificationsSupported=e.collectionModificationsSupported:n.collectionModificationsSupported=!1,null!=e.fieldTypes?n.fieldTypes=e.fieldTypes.map(e=>e):n.fieldTypes=[],n}}}return e.Object.defineProperty(Capabilities.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.Capabilities"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Capabilities.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.Capabilities",enumerable:!1,configurable:!1}),e.Object.defineProperty(Capabilities.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Capabilities.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Capabilities}(),ExternalDatabaseConnection.ProtocolVersion={UNKNOWN_PROTOCOL_VERSION:"UNKNOWN_PROTOCOL_VERSION",0:"UNKNOWN_PROTOCOL_VERSION",V1:"V1",1:"V1",V2:"V2",2:"V2",V3:"V3",3:"V3"},ExternalDatabaseConnection.ConnectionStatus=function(){class ConnectionStatus{constructor(e){this.successful=e&&e.successful,this.causeOfFailure=e&&e.causeOfFailure,this.hasCollections=e&&e.hasCollections}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.successful?n.successful=e.successful:o&&(n.successful=!1),null!=e.causeOfFailure?n.causeOfFailure=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus.CauseOfFailure[e.causeOfFailure]:o&&(n.causeOfFailure="NONE"),null!=e.hasCollections?n.hasCollections=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus.CollectionsFound[e.hasCollections]:o&&(n.hasCollections="UNKNOWN"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus;return null!=e.successful?n.successful=e.successful:!1!==o?n.successful=!1:delete n.successful,null!=e.causeOfFailure?n.causeOfFailure="string"==typeof e.causeOfFailure?e.causeOfFailure:t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus.CauseOfFailure[e.causeOfFailure]:!1!==o?n.causeOfFailure="NONE":delete n.causeOfFailure,null!=e.hasCollections?n.hasCollections="string"==typeof e.hasCollections?e.hasCollections:t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus.CollectionsFound[e.hasCollections]:!1!==o?n.hasCollections="UNKNOWN":delete n.hasCollections,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.successful&&(t.successful=e.successful),null!=e.causeOfFailure&&(t.causeOfFailure=e.causeOfFailure),null!=e.hasCollections&&(t.hasCollections=e.hasCollections),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus;return null!=e.successful?n.successful=e.successful:n.successful=!1,null!=e.causeOfFailure?n.causeOfFailure=e.causeOfFailure:n.causeOfFailure="NONE",null!=e.hasCollections?n.hasCollections=e.hasCollections:n.hasCollections="UNKNOWN",n}}}return ConnectionStatus.CauseOfFailure={NONE:"NONE",0:"NONE",COMMUNICATION_FAILURE:"COMMUNICATION_FAILURE",1:"COMMUNICATION_FAILURE",DESTINATION_HOST_UNREACHABLE:"DESTINATION_HOST_UNREACHABLE",2:"DESTINATION_HOST_UNREACHABLE",UNAUTHORIZED:"UNAUTHORIZED",3:"UNAUTHORIZED",DESTINATION_ENDPOINT_NOT_DEFINED:"DESTINATION_ENDPOINT_NOT_DEFINED",4:"DESTINATION_ENDPOINT_NOT_DEFINED"},ConnectionStatus.CollectionsFound={UNKNOWN:"UNKNOWN",0:"UNKNOWN",YES:"YES",1:"YES",NO:"NO",2:"NO"},ConnectionStatus.CauseOfFailure={NONE:"NONE",0:"NONE",COMMUNICATION_FAILURE:"COMMUNICATION_FAILURE",1:"COMMUNICATION_FAILURE",DESTINATION_HOST_UNREACHABLE:"DESTINATION_HOST_UNREACHABLE",2:"DESTINATION_HOST_UNREACHABLE",UNAUTHORIZED:"UNAUTHORIZED",3:"UNAUTHORIZED",DESTINATION_ENDPOINT_NOT_DEFINED:"DESTINATION_ENDPOINT_NOT_DEFINED",4:"DESTINATION_ENDPOINT_NOT_DEFINED"},ConnectionStatus.CollectionsFound={UNKNOWN:"UNKNOWN",0:"UNKNOWN",YES:"YES",1:"YES",NO:"NO",2:"NO"},e.Object.defineProperty(ConnectionStatus.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ConnectionStatus.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.ConnectionStatus",enumerable:!1,configurable:!1}),e.Object.defineProperty(ConnectionStatus.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ConnectionStatus.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ConnectionStatus}(),ExternalDatabaseConnection.Capabilities=function(){class Capabilities{constructor(e){this.collectionModificationsSupported=e&&e.collectionModificationsSupported,this.fieldTypes=e&&e.fieldTypes}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.collectionModificationsSupported?n.collectionModificationsSupported=e.collectionModificationsSupported:o&&(n.collectionModificationsSupported=!1),null!=e.fieldTypes?n.fieldTypes=e.fieldTypes.map(e=>t.com.wixpress.cloud.data.api.FieldType[e]):o&&(n.fieldTypes=[]),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.Capabilities;return null!=e.collectionModificationsSupported?n.collectionModificationsSupported=e.collectionModificationsSupported:!1!==o?n.collectionModificationsSupported=!1:delete n.collectionModificationsSupported,null!=e.fieldTypes?n.fieldTypes=Array.isArray(e.fieldTypes)?e.fieldTypes.map(e=>"string"==typeof e?e:t.com.wixpress.cloud.data.api.FieldType[e]):e.fieldTypes:!1!==o?n.fieldTypes=[]:delete n.fieldTypes,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.collectionModificationsSupported&&(t.collectionModificationsSupported=e.collectionModificationsSupported),null!=e.fieldTypes&&(t.fieldTypes=e.fieldTypes.map(e=>e)),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.Capabilities;return null!=e.collectionModificationsSupported?n.collectionModificationsSupported=e.collectionModificationsSupported:n.collectionModificationsSupported=!1,null!=e.fieldTypes?n.fieldTypes=e.fieldTypes.map(e=>e):n.fieldTypes=[],n}}}return e.Object.defineProperty(Capabilities.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.Capabilities"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Capabilities.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.Capabilities",enumerable:!1,configurable:!1}),e.Object.defineProperty(Capabilities.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Capabilities.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Capabilities}(),ExternalDatabaseConnection.ProtocolVersion={UNKNOWN_PROTOCOL_VERSION:"UNKNOWN_PROTOCOL_VERSION",0:"UNKNOWN_PROTOCOL_VERSION",V1:"V1",1:"V1",V2:"V2",2:"V2",V3:"V3",3:"V3"},e.Object.defineProperty(ExternalDatabaseConnection.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ExternalDatabaseConnection.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection",enumerable:!1,configurable:!1}),e.Object.defineProperty(ExternalDatabaseConnection.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ExternalDatabaseConnection.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ExternalDatabaseConnection}(),n.GetExternalDatabaseConnectionRequest=function(){class GetExternalDatabaseConnectionRequest{constructor(e){this.name=e&&e.name}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.name?t.name=e.name:n&&(t.name=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.cloud.data.api.externaldatabase.GetExternalDatabaseConnectionRequest;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.name&&(t.name=e.name),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.cloud.data.api.externaldatabase.GetExternalDatabaseConnectionRequest;return null!=e.name?n.name=e.name:n.name="",n}}}return e.Object.defineProperty(GetExternalDatabaseConnectionRequest.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.GetExternalDatabaseConnectionRequest"),enumerable:!1,configurable:!1}),e.Object.defineProperty(GetExternalDatabaseConnectionRequest.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.GetExternalDatabaseConnectionRequest",enumerable:!1,configurable:!1}),e.Object.defineProperty(GetExternalDatabaseConnectionRequest.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(GetExternalDatabaseConnectionRequest.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),GetExternalDatabaseConnectionRequest}(),n.GetExternalDatabaseConnectionResponse=function(){class GetExternalDatabaseConnectionResponse{constructor(e){this.externalDatabaseConnection=e&&e.externalDatabaseConnection}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.externalDatabaseConnection?i.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.toJSON(e.externalDatabaseConnection,n,o):o&&delete i.externalDatabaseConnection,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.com.wixpress.cloud.data.api.externaldatabase.GetExternalDatabaseConnectionResponse;return null!=e.externalDatabaseConnection?o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.fromJSON(e.externalDatabaseConnection,n):delete o.externalDatabaseConnection,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.externalDatabaseConnection&&(o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.toGRPC(e.externalDatabaseConnection,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.com.wixpress.cloud.data.api.externaldatabase.GetExternalDatabaseConnectionResponse;return null!=e.externalDatabaseConnection?o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.fromGRPC(e.externalDatabaseConnection,n):delete o.externalDatabaseConnection,o}}}return e.Object.defineProperty(GetExternalDatabaseConnectionResponse.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.GetExternalDatabaseConnectionResponse"),enumerable:!1,configurable:!1}),e.Object.defineProperty(GetExternalDatabaseConnectionResponse.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.GetExternalDatabaseConnectionResponse",enumerable:!1,configurable:!1}),e.Object.defineProperty(GetExternalDatabaseConnectionResponse.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(GetExternalDatabaseConnectionResponse.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),GetExternalDatabaseConnectionResponse}(),n.ListExternalDatabaseConnectionsRequest=function(){class ListExternalDatabaseConnectionsRequest{constructor(e){this.paging=e&&e.paging}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.paging?i.paging=t.upstream.externaldatabase.wix.common.Paging.toJSON(e.paging,n,o):o&&delete i.paging,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.com.wixpress.cloud.data.api.externaldatabase.ListExternalDatabaseConnectionsRequest;return null!=e.paging?o.paging=t.upstream.externaldatabase.wix.common.Paging.fromJSON(e.paging,n):delete o.paging,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.paging&&(o.paging=t.upstream.externaldatabase.wix.common.Paging.toGRPC(e.paging,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.com.wixpress.cloud.data.api.externaldatabase.ListExternalDatabaseConnectionsRequest;return null!=e.paging?o.paging=t.upstream.externaldatabase.wix.common.Paging.fromGRPC(e.paging,n):delete o.paging,o}}}return e.Object.defineProperty(ListExternalDatabaseConnectionsRequest.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.ListExternalDatabaseConnectionsRequest"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ListExternalDatabaseConnectionsRequest.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.ListExternalDatabaseConnectionsRequest",enumerable:!1,configurable:!1}),e.Object.defineProperty(ListExternalDatabaseConnectionsRequest.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ListExternalDatabaseConnectionsRequest.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ListExternalDatabaseConnectionsRequest}(),n.ListExternalDatabaseConnectionsResponse=function(){class ListExternalDatabaseConnectionsResponse{constructor(e){this.externalDatabaseConnections=e&&e.externalDatabaseConnections,this.pagingMetadata=e&&e.pagingMetadata}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.externalDatabaseConnections?i.externalDatabaseConnections=e.externalDatabaseConnections.map(e=>t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.toJSON(e,n,o)):o&&(i.externalDatabaseConnections=[]),null!=e.pagingMetadata?i.pagingMetadata=t.upstream.externaldatabase.wix.common.PagingMetadata.toJSON(e.pagingMetadata,n,o):o&&delete i.pagingMetadata,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.com.wixpress.cloud.data.api.externaldatabase.ListExternalDatabaseConnectionsResponse;return null!=e.externalDatabaseConnections?i.externalDatabaseConnections=Array.isArray(e.externalDatabaseConnections)?e.externalDatabaseConnections.map(e=>t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.fromJSON(e,n)):e.externalDatabaseConnections:!1!==o?i.externalDatabaseConnections=[]:delete i.externalDatabaseConnections,null!=e.pagingMetadata?i.pagingMetadata=t.upstream.externaldatabase.wix.common.PagingMetadata.fromJSON(e.pagingMetadata,n):delete i.pagingMetadata,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.externalDatabaseConnections&&(o.externalDatabaseConnections=e.externalDatabaseConnections.map(e=>t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.toGRPC(e,n))),null!=e.pagingMetadata&&(o.pagingMetadata=t.upstream.externaldatabase.wix.common.PagingMetadata.toGRPC(e.pagingMetadata,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.com.wixpress.cloud.data.api.externaldatabase.ListExternalDatabaseConnectionsResponse;return null!=e.externalDatabaseConnections?o.externalDatabaseConnections=e.externalDatabaseConnections.map(e=>t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.fromGRPC(e,n)):o.externalDatabaseConnections=[],null!=e.pagingMetadata?o.pagingMetadata=t.upstream.externaldatabase.wix.common.PagingMetadata.fromGRPC(e.pagingMetadata,n):delete o.pagingMetadata,o}}}return e.Object.defineProperty(ListExternalDatabaseConnectionsResponse.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.ListExternalDatabaseConnectionsResponse"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ListExternalDatabaseConnectionsResponse.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.ListExternalDatabaseConnectionsResponse",enumerable:!1,configurable:!1}),e.Object.defineProperty(ListExternalDatabaseConnectionsResponse.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ListExternalDatabaseConnectionsResponse.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ListExternalDatabaseConnectionsResponse}(),n.CreateExternalDatabaseConnectionRequest=function(){class CreateExternalDatabaseConnectionRequest{constructor(e){this.externalDatabaseConnection=e&&e.externalDatabaseConnection,this.connectionType=e&&e.connectionType,this.databaseManagedByWix=e&&e.databaseManagedByWix}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.externalDatabaseConnection?i.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.toJSON(e.externalDatabaseConnection,n,o):o&&delete i.externalDatabaseConnection,null!=e.connectionType?i.connectionType=t.com.wixpress.cloud.data.api.externaldatabase.ConnectionType[e.connectionType]:o&&(i.connectionType="UNKNOWN_CONNECTION_TYPE"),null!=e.databaseManagedByWix?i.databaseManagedByWix=e.databaseManagedByWix:o&&(i.databaseManagedByWix=!1),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.com.wixpress.cloud.data.api.externaldatabase.CreateExternalDatabaseConnectionRequest;return null!=e.externalDatabaseConnection?i.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.fromJSON(e.externalDatabaseConnection,n):delete i.externalDatabaseConnection,null!=e.connectionType?i.connectionType="string"==typeof e.connectionType?e.connectionType:t.com.wixpress.cloud.data.api.externaldatabase.ConnectionType[e.connectionType]:!1!==o?i.connectionType="UNKNOWN_CONNECTION_TYPE":delete i.connectionType,null!=e.databaseManagedByWix?i.databaseManagedByWix=e.databaseManagedByWix:!1!==o?i.databaseManagedByWix=!1:delete i.databaseManagedByWix,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.externalDatabaseConnection&&(o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.toGRPC(e.externalDatabaseConnection,n)),null!=e.connectionType&&(o.connectionType=e.connectionType),null!=e.databaseManagedByWix&&(o.databaseManagedByWix=e.databaseManagedByWix),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.com.wixpress.cloud.data.api.externaldatabase.CreateExternalDatabaseConnectionRequest;return null!=e.externalDatabaseConnection?o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.fromGRPC(e.externalDatabaseConnection,n):delete o.externalDatabaseConnection,null!=e.connectionType?o.connectionType=e.connectionType:o.connectionType="UNKNOWN_CONNECTION_TYPE",null!=e.databaseManagedByWix?o.databaseManagedByWix=e.databaseManagedByWix:o.databaseManagedByWix=!1,o}}}return e.Object.defineProperty(CreateExternalDatabaseConnectionRequest.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.CreateExternalDatabaseConnectionRequest"),enumerable:!1,configurable:!1}),e.Object.defineProperty(CreateExternalDatabaseConnectionRequest.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.CreateExternalDatabaseConnectionRequest",enumerable:!1,configurable:!1}),e.Object.defineProperty(CreateExternalDatabaseConnectionRequest.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(CreateExternalDatabaseConnectionRequest.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),CreateExternalDatabaseConnectionRequest}(),n.ConnectionType={UNKNOWN_CONNECTION_TYPE:"UNKNOWN_CONNECTION_TYPE",0:"UNKNOWN_CONNECTION_TYPE",STANDALONE:"STANDALONE",1:"STANDALONE",WIX_SERVICE_PLUGIN:"WIX_SERVICE_PLUGIN",2:"WIX_SERVICE_PLUGIN"},n.CreateExternalDatabaseConnectionResponse=function(){class CreateExternalDatabaseConnectionResponse{constructor(e){this.externalDatabaseConnection=e&&e.externalDatabaseConnection}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.externalDatabaseConnection?i.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.toJSON(e.externalDatabaseConnection,n,o):o&&delete i.externalDatabaseConnection,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.com.wixpress.cloud.data.api.externaldatabase.CreateExternalDatabaseConnectionResponse;return null!=e.externalDatabaseConnection?o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.fromJSON(e.externalDatabaseConnection,n):delete o.externalDatabaseConnection,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.externalDatabaseConnection&&(o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.toGRPC(e.externalDatabaseConnection,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.com.wixpress.cloud.data.api.externaldatabase.CreateExternalDatabaseConnectionResponse;return null!=e.externalDatabaseConnection?o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.fromGRPC(e.externalDatabaseConnection,n):delete o.externalDatabaseConnection,o}}}return e.Object.defineProperty(CreateExternalDatabaseConnectionResponse.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.CreateExternalDatabaseConnectionResponse"),enumerable:!1,configurable:!1}),e.Object.defineProperty(CreateExternalDatabaseConnectionResponse.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.CreateExternalDatabaseConnectionResponse",enumerable:!1,configurable:!1}),e.Object.defineProperty(CreateExternalDatabaseConnectionResponse.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(CreateExternalDatabaseConnectionResponse.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),CreateExternalDatabaseConnectionResponse}(),n.UpdateExternalDatabaseConnectionRequest=function(){class UpdateExternalDatabaseConnectionRequest{constructor(e){this.externalDatabaseConnection=e&&e.externalDatabaseConnection}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.externalDatabaseConnection?i.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.toJSON(e.externalDatabaseConnection,n,o):o&&delete i.externalDatabaseConnection,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.com.wixpress.cloud.data.api.externaldatabase.UpdateExternalDatabaseConnectionRequest;return null!=e.externalDatabaseConnection?o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.fromJSON(e.externalDatabaseConnection,n):delete o.externalDatabaseConnection,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.externalDatabaseConnection&&(o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.toGRPC(e.externalDatabaseConnection,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.com.wixpress.cloud.data.api.externaldatabase.UpdateExternalDatabaseConnectionRequest;return null!=e.externalDatabaseConnection?o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.fromGRPC(e.externalDatabaseConnection,n):delete o.externalDatabaseConnection,o}}}return e.Object.defineProperty(UpdateExternalDatabaseConnectionRequest.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.UpdateExternalDatabaseConnectionRequest"),enumerable:!1,configurable:!1}),e.Object.defineProperty(UpdateExternalDatabaseConnectionRequest.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.UpdateExternalDatabaseConnectionRequest",enumerable:!1,configurable:!1}),e.Object.defineProperty(UpdateExternalDatabaseConnectionRequest.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(UpdateExternalDatabaseConnectionRequest.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),UpdateExternalDatabaseConnectionRequest}(),n.UpdateExternalDatabaseConnectionResponse=function(){class UpdateExternalDatabaseConnectionResponse{constructor(e){this.externalDatabaseConnection=e&&e.externalDatabaseConnection}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.externalDatabaseConnection?i.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.toJSON(e.externalDatabaseConnection,n,o):o&&delete i.externalDatabaseConnection,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.com.wixpress.cloud.data.api.externaldatabase.UpdateExternalDatabaseConnectionResponse;return null!=e.externalDatabaseConnection?o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.fromJSON(e.externalDatabaseConnection,n):delete o.externalDatabaseConnection,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.externalDatabaseConnection&&(o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.toGRPC(e.externalDatabaseConnection,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.com.wixpress.cloud.data.api.externaldatabase.UpdateExternalDatabaseConnectionResponse;return null!=e.externalDatabaseConnection?o.externalDatabaseConnection=t.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection.fromGRPC(e.externalDatabaseConnection,n):delete o.externalDatabaseConnection,o}}}return e.Object.defineProperty(UpdateExternalDatabaseConnectionResponse.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.UpdateExternalDatabaseConnectionResponse"),enumerable:!1,configurable:!1}),e.Object.defineProperty(UpdateExternalDatabaseConnectionResponse.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.UpdateExternalDatabaseConnectionResponse",enumerable:!1,configurable:!1}),e.Object.defineProperty(UpdateExternalDatabaseConnectionResponse.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(UpdateExternalDatabaseConnectionResponse.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),UpdateExternalDatabaseConnectionResponse}(),n.DeleteExternalDatabaseConnectionRequest=function(){class DeleteExternalDatabaseConnectionRequest{constructor(e){this.name=e&&e.name}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.name?t.name=e.name:n&&(t.name=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.cloud.data.api.externaldatabase.DeleteExternalDatabaseConnectionRequest;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.name&&(t.name=e.name),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.cloud.data.api.externaldatabase.DeleteExternalDatabaseConnectionRequest;return null!=e.name?n.name=e.name:n.name="",n}}}return e.Object.defineProperty(DeleteExternalDatabaseConnectionRequest.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.DeleteExternalDatabaseConnectionRequest"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DeleteExternalDatabaseConnectionRequest.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.DeleteExternalDatabaseConnectionRequest",enumerable:!1,configurable:!1}),e.Object.defineProperty(DeleteExternalDatabaseConnectionRequest.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DeleteExternalDatabaseConnectionRequest.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DeleteExternalDatabaseConnectionRequest}(),n.DeleteExternalDatabaseConnectionResponse=function(){class DeleteExternalDatabaseConnectionResponse{constructor(e){}static toJSON(e,t,n){if(null==e)return null;return{}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;return new t.com.wixpress.cloud.data.api.externaldatabase.DeleteExternalDatabaseConnectionResponse}static toGRPC(e,t){if(null==e)return null;return{}}static fromGRPC(e,n){if(null==e)return null;return new t.com.wixpress.cloud.data.api.externaldatabase.DeleteExternalDatabaseConnectionResponse}}return e.Object.defineProperty(DeleteExternalDatabaseConnectionResponse.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.cloud.data.api.externaldatabase.DeleteExternalDatabaseConnectionResponse"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DeleteExternalDatabaseConnectionResponse.prototype,"__fqn__",{value:"com.wixpress.cloud.data.api.externaldatabase.DeleteExternalDatabaseConnectionResponse",enumerable:!1,configurable:!1}),e.Object.defineProperty(DeleteExternalDatabaseConnectionResponse.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DeleteExternalDatabaseConnectionResponse.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DeleteExternalDatabaseConnectionResponse}(),n}(),n}(),n}(),n}(),n.iptf=function(){const n={};return n.webhooks=function(){const n={};return n.Debug=function(){class Debug{queryMessageId(e,t){throw new TypeError("method queryMessageId is abstract")}queryOffset(e,t){throw new TypeError("method queryOffset is abstract")}}return Debug.prototype.queryMessageId._messageTypes=function(){return[t.com.wixpress.iptf.webhooks.QueryMessageIdRequest,t.com.wixpress.iptf.webhooks.QueryResponse]},Debug.prototype.queryOffset._messageTypes=function(){return[t.com.wixpress.iptf.webhooks.QueryOffsetRequest,t.com.wixpress.iptf.webhooks.QueryResponse]},Debug.prototype.queryMessageId.__proto=e=>t.__lookup(e)("com.wixpress.iptf.webhooks.Debug.queryMessageId"),Debug.prototype.queryOffset.__proto=e=>t.__lookup(e)("com.wixpress.iptf.webhooks.Debug.queryOffset"),e.Object.defineProperty(Debug.prototype,"__isRpcService__",{value:!0,enumerable:!1,configurable:!1}),e.Object.defineProperty(Debug.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.Debug",enumerable:!1,configurable:!1}),e.Object.defineProperty(Debug.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.Debug"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Debug.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Debug.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),e.Object.defineProperty(Debug.prototype,"__filename",{value:(()=>{try{return decodeURIComponent(new URL(import.meta.url).pathname)}catch(e){return}})(),enumerable:!1,configurable:!1}),Debug}(),n.QueryOffsetRequest=function(){class QueryOffsetRequest{constructor(e){this.topic=e&&e.topic,this.partition=e&&e.partition,this.offset=e&&e.offset}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.topic?t.topic=e.topic:n&&(t.topic=""),null!=e.partition?t.partition=e.partition:n&&(t.partition=0),null!=e.offset?t.offset=e.offset.toString():n&&(t.offset="0"),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.iptf.webhooks.QueryOffsetRequest;return null!=e.topic?n.topic=e.topic:!1!==o?n.topic="":delete n.topic,null!=e.partition?n.partition=e.partition:!1!==o?n.partition=0:delete n.partition,null!=e.offset?n.offset="number"==typeof e.offset||"string"==typeof e.offset&&/^[-+]?\d+$/.test(e.offset)?e.offset.toString():e.offset:!1!==o?n.offset="0":delete n.offset,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.topic&&(t.topic=e.topic),null!=e.partition&&(t.partition=e.partition),null!=e.offset&&(t.offset=e.offset.toString()),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.iptf.webhooks.QueryOffsetRequest;return null!=e.topic?n.topic=e.topic:n.topic="",null!=e.partition?n.partition=e.partition:n.partition=0,null!=e.offset?n.offset="number"==typeof e.offset||"string"==typeof e.offset&&/^[-+]?\d+$/.test(e.offset)?e.offset.toString():e.offset:n.offset="0",n}}}return e.Object.defineProperty(QueryOffsetRequest.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.QueryOffsetRequest"),enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryOffsetRequest.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.QueryOffsetRequest",enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryOffsetRequest.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryOffsetRequest.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),QueryOffsetRequest}(),n.QueryMessageIdRequest=function(){class QueryMessageIdRequest{constructor(e){this.messageId=e&&e.messageId}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.messageId?t.messageId=e.messageId:n&&(t.messageId=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.iptf.webhooks.QueryMessageIdRequest;return null!=e.messageId?n.messageId=e.messageId:!1!==o?n.messageId="":delete n.messageId,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.messageId&&(t.messageId=e.messageId),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.iptf.webhooks.QueryMessageIdRequest;return null!=e.messageId?n.messageId=e.messageId:n.messageId="",n}}}return e.Object.defineProperty(QueryMessageIdRequest.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.QueryMessageIdRequest"),enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryMessageIdRequest.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.QueryMessageIdRequest",enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryMessageIdRequest.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryMessageIdRequest.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),QueryMessageIdRequest}(),n.QueryResponse=function(){class QueryResponse{constructor(e){this.json=e&&e.json}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.json?t.json=e.json.map(e=>e):n&&(t.json=[]),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.iptf.webhooks.QueryResponse;return null!=e.json?n.json=Array.isArray(e.json)?e.json.map(e=>e):e.json:!1!==o?n.json=[]:delete n.json,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.json&&(t.json=e.json.map(e=>e)),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.iptf.webhooks.QueryResponse;return null!=e.json?n.json=e.json.map(e=>e):n.json=[],n}}}return e.Object.defineProperty(QueryResponse.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.QueryResponse"),enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryResponse.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.QueryResponse",enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryResponse.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryResponse.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),QueryResponse}(),n.WebhooksKV=function(){class WebhooksKV{queryApp(e,t){throw new TypeError("method queryApp is abstract")}queryAppSecretAndPrivateKey(e,t){throw new TypeError("method queryAppSecretAndPrivateKey is abstract")}}return WebhooksKV.prototype.queryApp._messageTypes=function(){return[t.com.wixpress.iptf.webhooks.QueryAppRequest,t.com.wixpress.iptf.webhooks.QueryAppResponse]},WebhooksKV.prototype.queryAppSecretAndPrivateKey._messageTypes=function(){return[t.com.wixpress.iptf.webhooks.QueryAppSecretAndPrivateKeyRequest,t.com.wixpress.iptf.webhooks.QueryAppSecretAndPrivateKeyResponse]},WebhooksKV.prototype.queryApp.__proto=e=>t.__lookup(e)("com.wixpress.iptf.webhooks.WebhooksKV.queryApp"),WebhooksKV.prototype.queryAppSecretAndPrivateKey.__proto=e=>t.__lookup(e)("com.wixpress.iptf.webhooks.WebhooksKV.queryAppSecretAndPrivateKey"),e.Object.defineProperty(WebhooksKV.prototype,"__isRpcService__",{value:!0,enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksKV.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.WebhooksKV",enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksKV.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.WebhooksKV"),enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksKV.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksKV.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksKV.prototype,"__filename",{value:(()=>{try{return decodeURIComponent(new URL(import.meta.url).pathname)}catch(e){return}})(),enumerable:!1,configurable:!1}),WebhooksKV}(),n.QueryAppRequest=function(){class QueryAppRequest{constructor(e){this.appDefId=e&&e.appDefId,this.version=e&&e.version}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.appDefId?t.appDefId=e.appDefId:n&&(t.appDefId=""),null!=e.version?t.version=e.version:n&&(t.version=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.iptf.webhooks.QueryAppRequest;return null!=e.appDefId?n.appDefId=e.appDefId:!1!==o?n.appDefId="":delete n.appDefId,null!=e.version?n.version=e.version:!1!==o?n.version="":delete n.version,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.appDefId&&(t.appDefId=e.appDefId),null!=e.version&&(t.version=e.version),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.iptf.webhooks.QueryAppRequest;return null!=e.appDefId?n.appDefId=e.appDefId:n.appDefId="",null!=e.version?n.version=e.version:n.version="",n}}}return e.Object.defineProperty(QueryAppRequest.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.QueryAppRequest"),enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryAppRequest.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.QueryAppRequest",enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryAppRequest.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryAppRequest.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),QueryAppRequest}(),n.QueryAppSecretAndPrivateKeyRequest=function(){class QueryAppSecretAndPrivateKeyRequest{constructor(e){this.appDefId=e&&e.appDefId}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.appDefId?t.appDefId=e.appDefId:n&&(t.appDefId=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.iptf.webhooks.QueryAppSecretAndPrivateKeyRequest;return null!=e.appDefId?n.appDefId=e.appDefId:!1!==o?n.appDefId="":delete n.appDefId,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.appDefId&&(t.appDefId=e.appDefId),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.iptf.webhooks.QueryAppSecretAndPrivateKeyRequest;return null!=e.appDefId?n.appDefId=e.appDefId:n.appDefId="",n}}}return e.Object.defineProperty(QueryAppSecretAndPrivateKeyRequest.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.QueryAppSecretAndPrivateKeyRequest"),enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryAppSecretAndPrivateKeyRequest.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.QueryAppSecretAndPrivateKeyRequest",enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryAppSecretAndPrivateKeyRequest.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryAppSecretAndPrivateKeyRequest.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),QueryAppSecretAndPrivateKeyRequest}(),n.QueryAppSecretAndPrivateKeyResponse=function(){class QueryAppSecretAndPrivateKeyResponse{constructor(e){this.privateKey=e&&e.privateKey,this.secret=e&&e.secret}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.privateKey?i.privateKey=t.google.protobuf.StringValue.toJSON(e.privateKey,n,o):o&&delete i.privateKey,null!=e.secret?i.secret=e.secret:o&&(i.secret=""),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.com.wixpress.iptf.webhooks.QueryAppSecretAndPrivateKeyResponse;return null!=e.privateKey?i.privateKey=t.google.protobuf.StringValue.fromJSON(e.privateKey,n):delete i.privateKey,null!=e.secret?i.secret=e.secret:!1!==o?i.secret="":delete i.secret,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.privateKey&&(o.privateKey=t.google.protobuf.StringValue.toGRPC(e.privateKey,n)),null!=e.secret&&(o.secret=e.secret),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.com.wixpress.iptf.webhooks.QueryAppSecretAndPrivateKeyResponse;return null!=e.privateKey?o.privateKey=t.google.protobuf.StringValue.fromGRPC(e.privateKey,n):delete o.privateKey,null!=e.secret?o.secret=e.secret:o.secret="",o}}}return e.Object.defineProperty(QueryAppSecretAndPrivateKeyResponse.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.QueryAppSecretAndPrivateKeyResponse"),enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryAppSecretAndPrivateKeyResponse.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.QueryAppSecretAndPrivateKeyResponse",enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryAppSecretAndPrivateKeyResponse.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryAppSecretAndPrivateKeyResponse.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),QueryAppSecretAndPrivateKeyResponse}(),n.QueryAppResponse=function(){class QueryAppResponse{constructor(e){this.permissions=e&&e.permissions,this.privateKey=e&&e.privateKey,this.secret=e&&e.secret,this.webhook=e&&e.webhook}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.permissions?i.permissions=e.permissions.map(e=>e):o&&(i.permissions=[]),null!=e.privateKey?i.privateKey=t.google.protobuf.StringValue.toJSON(e.privateKey,n,o):o&&delete i.privateKey,null!=e.secret?i.secret=e.secret:o&&(i.secret=""),null!=e.webhook?i.webhook=e.webhook.map(e=>t.com.wixpress.iptf.webhooks.DispatcherAppWebhook.toJSON(e,n,o)):o&&(i.webhook=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.com.wixpress.iptf.webhooks.QueryAppResponse;return null!=e.permissions?i.permissions=Array.isArray(e.permissions)?e.permissions.map(e=>e):e.permissions:!1!==o?i.permissions=[]:delete i.permissions,null!=e.privateKey?i.privateKey=t.google.protobuf.StringValue.fromJSON(e.privateKey,n):delete i.privateKey,null!=e.secret?i.secret=e.secret:!1!==o?i.secret="":delete i.secret,null!=e.webhook?i.webhook=Array.isArray(e.webhook)?e.webhook.map(e=>t.com.wixpress.iptf.webhooks.DispatcherAppWebhook.fromJSON(e,n)):e.webhook:!1!==o?i.webhook=[]:delete i.webhook,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.permissions&&(o.permissions=e.permissions.map(e=>e)),null!=e.privateKey&&(o.privateKey=t.google.protobuf.StringValue.toGRPC(e.privateKey,n)),null!=e.secret&&(o.secret=e.secret),null!=e.webhook&&(o.webhook=e.webhook.map(e=>t.com.wixpress.iptf.webhooks.DispatcherAppWebhook.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.com.wixpress.iptf.webhooks.QueryAppResponse;return null!=e.permissions?o.permissions=e.permissions.map(e=>e):o.permissions=[],null!=e.privateKey?o.privateKey=t.google.protobuf.StringValue.fromGRPC(e.privateKey,n):delete o.privateKey,null!=e.secret?o.secret=e.secret:o.secret="",null!=e.webhook?o.webhook=e.webhook.map(e=>t.com.wixpress.iptf.webhooks.DispatcherAppWebhook.fromGRPC(e,n)):o.webhook=[],o}}}return e.Object.defineProperty(QueryAppResponse.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.QueryAppResponse"),enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryAppResponse.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.QueryAppResponse",enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryAppResponse.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryAppResponse.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),QueryAppResponse}(),n.DispatcherAppWebhook=function(){class DispatcherAppWebhook{constructor(e){this.webhookSlug=e&&e.webhookSlug,this.callbackUrl=e&&e.callbackUrl}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.webhookSlug?t.webhookSlug=e.webhookSlug:n&&(t.webhookSlug=""),null!=e.callbackUrl?t.callbackUrl=e.callbackUrl:n&&(t.callbackUrl=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.iptf.webhooks.DispatcherAppWebhook;return null!=e.webhookSlug?n.webhookSlug=e.webhookSlug:!1!==o?n.webhookSlug="":delete n.webhookSlug,null!=e.callbackUrl?n.callbackUrl=e.callbackUrl:!1!==o?n.callbackUrl="":delete n.callbackUrl,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.webhookSlug&&(t.webhookSlug=e.webhookSlug),null!=e.callbackUrl&&(t.callbackUrl=e.callbackUrl),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.iptf.webhooks.DispatcherAppWebhook;return null!=e.webhookSlug?n.webhookSlug=e.webhookSlug:n.webhookSlug="",null!=e.callbackUrl?n.callbackUrl=e.callbackUrl:n.callbackUrl="",n}}}return e.Object.defineProperty(DispatcherAppWebhook.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.DispatcherAppWebhook"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DispatcherAppWebhook.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.DispatcherAppWebhook",enumerable:!1,configurable:!1}),e.Object.defineProperty(DispatcherAppWebhook.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DispatcherAppWebhook.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DispatcherAppWebhook}(),n.api=function(){const n={};return n.v1=function(){const n={};return n.WebhooksDebugService=function(){class WebhooksDebugService{submit(e,t){throw new TypeError("method submit is abstract")}}return WebhooksDebugService.prototype.submit._messageTypes=function(){return[t.com.wixpress.iptf.webhooks.api.v1.SubmitWebhookRequest,t.com.wixpress.iptf.webhooks.api.v1.SubmitWebhookResponse]},WebhooksDebugService.prototype.submit.__proto=e=>t.__lookup(e)("com.wixpress.iptf.webhooks.api.v1.WebhooksDebugService.submit"),e.Object.defineProperty(WebhooksDebugService.prototype,"__isRpcService__",{value:!0,enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksDebugService.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.api.v1.WebhooksDebugService",enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksDebugService.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.api.v1.WebhooksDebugService"),enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksDebugService.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksDebugService.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksDebugService.prototype,"__filename",{value:(()=>{try{return decodeURIComponent(new URL(import.meta.url).pathname)}catch(e){return}})(),enumerable:!1,configurable:!1}),WebhooksDebugService}(),n.SubmitWebhookRequest=function(){class SubmitWebhookRequest{constructor(e){this.url=e&&e.url,this.eventType=e&&e.eventType,this.topic=e&&e.topic,this.payload=e&&e.payload,this.httpMethod=e&&e.httpMethod,this.jwtSecret=e&&e.jwtSecret,this.expireInMs=e&&e.expireInMs,this.submitted=e&&e.submitted,this.shouldOverrideProxy=e&&e.shouldOverrideProxy,this.rsaPrivateKey=e&&e.rsaPrivateKey}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.url?t.url=e.url:n&&(t.url=""),null!=e.eventType?t.eventType=e.eventType:n&&(t.eventType=""),null!=e.topic?t.topic=e.topic:n&&(t.topic=""),null!=e.payload?t.payload=e.payload:n&&(t.payload=""),null!=e.httpMethod?t.httpMethod=e.httpMethod:n&&(t.httpMethod=""),null!=e.jwtSecret?t.jwtSecret=e.jwtSecret:n&&(t.jwtSecret=""),null!=e.expireInMs?t.expireInMs=e.expireInMs.toString():n&&(t.expireInMs="0"),null!=e.submitted?t.submitted=e.submitted.toString():n&&(t.submitted="0"),null!=e.shouldOverrideProxy?t.shouldOverrideProxy=e.shouldOverrideProxy:n&&(t.shouldOverrideProxy=!1),null!=e.rsaPrivateKey?t.rsaPrivateKey=e.rsaPrivateKey:n&&(t.rsaPrivateKey=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.iptf.webhooks.api.v1.SubmitWebhookRequest;return null!=e.url?n.url=e.url:!1!==o?n.url="":delete n.url,null!=e.eventType?n.eventType=e.eventType:!1!==o?n.eventType="":delete n.eventType,null!=e.topic?n.topic=e.topic:!1!==o?n.topic="":delete n.topic,null!=e.payload?n.payload=e.payload:!1!==o?n.payload="":delete n.payload,null!=e.httpMethod?n.httpMethod=e.httpMethod:!1!==o?n.httpMethod="":delete n.httpMethod,null!=e.jwtSecret?n.jwtSecret=e.jwtSecret:!1!==o?n.jwtSecret="":delete n.jwtSecret,null!=e.expireInMs?n.expireInMs="number"==typeof e.expireInMs||"string"==typeof e.expireInMs&&/^[-+]?\d+$/.test(e.expireInMs)?e.expireInMs.toString():e.expireInMs:!1!==o?n.expireInMs="0":delete n.expireInMs,null!=e.submitted?n.submitted="number"==typeof e.submitted||"string"==typeof e.submitted&&/^[-+]?\d+$/.test(e.submitted)?e.submitted.toString():e.submitted:!1!==o?n.submitted="0":delete n.submitted,null!=e.shouldOverrideProxy?n.shouldOverrideProxy=e.shouldOverrideProxy:!1!==o?n.shouldOverrideProxy=!1:delete n.shouldOverrideProxy,null!=e.rsaPrivateKey?n.rsaPrivateKey=e.rsaPrivateKey:!1!==o?n.rsaPrivateKey="":delete n.rsaPrivateKey,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.url&&(t.url=e.url),null!=e.eventType&&(t.eventType=e.eventType),null!=e.topic&&(t.topic=e.topic),null!=e.payload&&(t.payload=e.payload),null!=e.httpMethod&&(t.httpMethod=e.httpMethod),null!=e.jwtSecret&&(t.jwtSecret=e.jwtSecret),null!=e.expireInMs&&(t.expireInMs=e.expireInMs.toString()),null!=e.submitted&&(t.submitted=e.submitted.toString()),null!=e.shouldOverrideProxy&&(t.shouldOverrideProxy=e.shouldOverrideProxy),null!=e.rsaPrivateKey&&(t.rsaPrivateKey=e.rsaPrivateKey),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.iptf.webhooks.api.v1.SubmitWebhookRequest;return null!=e.url?n.url=e.url:n.url="",null!=e.eventType?n.eventType=e.eventType:n.eventType="",null!=e.topic?n.topic=e.topic:n.topic="",null!=e.payload?n.payload=e.payload:n.payload="",null!=e.httpMethod?n.httpMethod=e.httpMethod:n.httpMethod="",null!=e.jwtSecret?n.jwtSecret=e.jwtSecret:n.jwtSecret="",null!=e.expireInMs?n.expireInMs="number"==typeof e.expireInMs||"string"==typeof e.expireInMs&&/^[-+]?\d+$/.test(e.expireInMs)?e.expireInMs.toString():e.expireInMs:n.expireInMs="0",null!=e.submitted?n.submitted="number"==typeof e.submitted||"string"==typeof e.submitted&&/^[-+]?\d+$/.test(e.submitted)?e.submitted.toString():e.submitted:n.submitted="0",null!=e.shouldOverrideProxy?n.shouldOverrideProxy=e.shouldOverrideProxy:n.shouldOverrideProxy=!1,null!=e.rsaPrivateKey?n.rsaPrivateKey=e.rsaPrivateKey:n.rsaPrivateKey="",n}}}return e.Object.defineProperty(SubmitWebhookRequest.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.api.v1.SubmitWebhookRequest"),enumerable:!1,configurable:!1}),e.Object.defineProperty(SubmitWebhookRequest.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.api.v1.SubmitWebhookRequest",enumerable:!1,configurable:!1}),e.Object.defineProperty(SubmitWebhookRequest.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(SubmitWebhookRequest.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),SubmitWebhookRequest}(),n.SubmitWebhookResponse=function(){class SubmitWebhookResponse{constructor(e){this.statusCode=e&&e.statusCode,this.message=e&&e.message}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.statusCode?t.statusCode=e.statusCode:n&&(t.statusCode=0),null!=e.message?t.message=e.message:n&&(t.message=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.iptf.webhooks.api.v1.SubmitWebhookResponse;return null!=e.statusCode?n.statusCode=e.statusCode:!1!==o?n.statusCode=0:delete n.statusCode,null!=e.message?n.message=e.message:!1!==o?n.message="":delete n.message,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.statusCode&&(t.statusCode=e.statusCode),null!=e.message&&(t.message=e.message),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.iptf.webhooks.api.v1.SubmitWebhookResponse;return null!=e.statusCode?n.statusCode=e.statusCode:n.statusCode=0,null!=e.message?n.message=e.message:n.message="",n}}}return e.Object.defineProperty(SubmitWebhookResponse.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.api.v1.SubmitWebhookResponse"),enumerable:!1,configurable:!1}),e.Object.defineProperty(SubmitWebhookResponse.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.api.v1.SubmitWebhookResponse",enumerable:!1,configurable:!1}),e.Object.defineProperty(SubmitWebhookResponse.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(SubmitWebhookResponse.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),SubmitWebhookResponse}(),n.WebhooksSyncService=function(){class WebhooksSyncService{signHash(e,t){throw new TypeError("method signHash is abstract")}}return WebhooksSyncService.prototype.signHash._messageTypes=function(){return[t.com.wixpress.iptf.webhooks.api.v1.SignHashRequest,t.com.wixpress.iptf.webhooks.api.v1.SignResponse]},WebhooksSyncService.prototype.signHash.__proto=e=>t.__lookup(e)("com.wixpress.iptf.webhooks.api.v1.WebhooksSyncService.signHash"),e.Object.defineProperty(WebhooksSyncService.prototype,"__isRpcService__",{value:!0,enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksSyncService.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.api.v1.WebhooksSyncService",enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksSyncService.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.api.v1.WebhooksSyncService"),enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksSyncService.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksSyncService.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),e.Object.defineProperty(WebhooksSyncService.prototype,"__filename",{value:(()=>{try{return decodeURIComponent(new URL(import.meta.url).pathname)}catch(e){return}})(),enumerable:!1,configurable:!1}),WebhooksSyncService}(),n.SignHashRequest=function(){class SignHashRequest{constructor(e){this.hashedPayload=e&&e.hashedPayload,this.algorithm=e&&e.algorithm,this.appdefId=e&&e.appdefId,this.expirationInMillis=e&&e.expirationInMillis,this.artifactId=e&&e.artifactId}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.hashedPayload?i.hashedPayload=e.hashedPayload:o&&(i.hashedPayload=""),null!=e.algorithm?i.algorithm=t.com.wixpress.iptf.webhooks.api.v1.HashFunction[e.algorithm]:o&&(i.algorithm="SHA256"),null!=e.appdefId?i.appdefId=e.appdefId:o&&(i.appdefId=""),null!=e.expirationInMillis?i.expirationInMillis=e.expirationInMillis.toString():o&&(i.expirationInMillis="0"),null!=e.artifactId?i.artifactId=t.google.protobuf.StringValue.toJSON(e.artifactId,n,o):o&&delete i.artifactId,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.com.wixpress.iptf.webhooks.api.v1.SignHashRequest;return null!=e.hashedPayload?i.hashedPayload=e.hashedPayload:!1!==o?i.hashedPayload="":delete i.hashedPayload,null!=e.algorithm?i.algorithm="string"==typeof e.algorithm?e.algorithm:t.com.wixpress.iptf.webhooks.api.v1.HashFunction[e.algorithm]:!1!==o?i.algorithm="SHA256":delete i.algorithm,null!=e.appdefId?i.appdefId=e.appdefId:!1!==o?i.appdefId="":delete i.appdefId,null!=e.expirationInMillis?i.expirationInMillis="number"==typeof e.expirationInMillis||"string"==typeof e.expirationInMillis&&/^[-+]?\d+$/.test(e.expirationInMillis)?e.expirationInMillis.toString():e.expirationInMillis:!1!==o?i.expirationInMillis="0":delete i.expirationInMillis,null!=e.artifactId?i.artifactId=t.google.protobuf.StringValue.fromJSON(e.artifactId,n):delete i.artifactId,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.hashedPayload&&(o.hashedPayload=e.hashedPayload),null!=e.algorithm&&(o.algorithm=e.algorithm),null!=e.appdefId&&(o.appdefId=e.appdefId),null!=e.expirationInMillis&&(o.expirationInMillis=e.expirationInMillis.toString()),null!=e.artifactId&&(o.artifactId=t.google.protobuf.StringValue.toGRPC(e.artifactId,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.com.wixpress.iptf.webhooks.api.v1.SignHashRequest;return null!=e.hashedPayload?o.hashedPayload=e.hashedPayload:o.hashedPayload="",null!=e.algorithm?o.algorithm=e.algorithm:o.algorithm="SHA256",null!=e.appdefId?o.appdefId=e.appdefId:o.appdefId="",null!=e.expirationInMillis?o.expirationInMillis="number"==typeof e.expirationInMillis||"string"==typeof e.expirationInMillis&&/^[-+]?\d+$/.test(e.expirationInMillis)?e.expirationInMillis.toString():e.expirationInMillis:o.expirationInMillis="0",null!=e.artifactId?o.artifactId=t.google.protobuf.StringValue.fromGRPC(e.artifactId,n):delete o.artifactId,o}}}return e.Object.defineProperty(SignHashRequest.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.api.v1.SignHashRequest"),enumerable:!1,configurable:!1}),e.Object.defineProperty(SignHashRequest.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.api.v1.SignHashRequest",enumerable:!1,configurable:!1}),e.Object.defineProperty(SignHashRequest.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(SignHashRequest.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),SignHashRequest}(),n.SignResponse=function(){class SignResponse{constructor(e){this.token=e&&e.token}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.token?t.token=e.token:n&&(t.token=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.iptf.webhooks.api.v1.SignResponse;return null!=e.token?n.token=e.token:!1!==o?n.token="":delete n.token,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.token&&(t.token=e.token),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.com.wixpress.iptf.webhooks.api.v1.SignResponse;return null!=e.token?n.token=e.token:n.token="",n}}}return e.Object.defineProperty(SignResponse.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.webhooks.api.v1.SignResponse"),enumerable:!1,configurable:!1}),e.Object.defineProperty(SignResponse.prototype,"__fqn__",{value:"com.wixpress.iptf.webhooks.api.v1.SignResponse",enumerable:!1,configurable:!1}),e.Object.defineProperty(SignResponse.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(SignResponse.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),SignResponse}(),n.HashFunction={SHA256:"SHA256",0:"SHA256"},n}(),n}(),n}(),n.v1=function(){const n={};return n.webhooks=function(){const n={};return n.MessageEnvelope=function(){class MessageEnvelope{constructor(e){this.instanceId=e&&e.instanceId,this.eventType=e&&e.eventType,this.identity=e&&e.identity,this.data=e&&e.data,this.accountInfo=e&&e.accountInfo}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.instanceId?i.instanceId=t.google.protobuf.StringValue.toJSON(e.instanceId,n,o):o&&delete i.instanceId,null!=e.eventType?i.eventType=e.eventType:o&&(i.eventType=""),null!=e.identity?i.identity=t.com.wixpress.iptf.v1.webhooks.IdentificationData.toJSON(e.identity,n,o):o&&delete i.identity,null!=e.data?i.data=e.data:o&&(i.data=""),null!=e.accountInfo?i.accountInfo=t.com.wixpress.iptf.v1.webhooks.AccountInfo.toJSON(e.accountInfo,n,o):o&&delete i.accountInfo,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.com.wixpress.iptf.v1.webhooks.MessageEnvelope;return null!=e.instanceId?i.instanceId=t.google.protobuf.StringValue.fromJSON(e.instanceId,n):delete i.instanceId,null!=e.eventType?i.eventType=e.eventType:!1!==o?i.eventType="":delete i.eventType,null!=e.identity?i.identity=t.com.wixpress.iptf.v1.webhooks.IdentificationData.fromJSON(e.identity,n):delete i.identity,null!=e.data?i.data=e.data:!1!==o?i.data="":delete i.data,null!=e.accountInfo?i.accountInfo=t.com.wixpress.iptf.v1.webhooks.AccountInfo.fromJSON(e.accountInfo,n):delete i.accountInfo,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.instanceId&&(o.instanceId=t.google.protobuf.StringValue.toGRPC(e.instanceId,n)),null!=e.eventType&&(o.eventType=e.eventType),null!=e.identity&&(o.identity=t.com.wixpress.iptf.v1.webhooks.IdentificationData.toGRPC(e.identity,n)),null!=e.data&&(o.data=e.data),null!=e.accountInfo&&(o.accountInfo=t.com.wixpress.iptf.v1.webhooks.AccountInfo.toGRPC(e.accountInfo,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.com.wixpress.iptf.v1.webhooks.MessageEnvelope;return null!=e.instanceId?o.instanceId=t.google.protobuf.StringValue.fromGRPC(e.instanceId,n):delete o.instanceId,null!=e.eventType?o.eventType=e.eventType:o.eventType="",null!=e.identity?o.identity=t.com.wixpress.iptf.v1.webhooks.IdentificationData.fromGRPC(e.identity,n):delete o.identity,null!=e.data?o.data=e.data:o.data="",null!=e.accountInfo?o.accountInfo=t.com.wixpress.iptf.v1.webhooks.AccountInfo.fromGRPC(e.accountInfo,n):delete o.accountInfo,o}}}return e.Object.defineProperty(MessageEnvelope.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.v1.webhooks.MessageEnvelope"),enumerable:!1,configurable:!1}),e.Object.defineProperty(MessageEnvelope.prototype,"__fqn__",{value:"com.wixpress.iptf.v1.webhooks.MessageEnvelope",enumerable:!1,configurable:!1}),e.Object.defineProperty(MessageEnvelope.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(MessageEnvelope.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),MessageEnvelope}(),n.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,n,o){if(null==e)return null;{const n={};return null!=e.identityType?n.identityType=t.com.wixpress.iptf.v1.webhooks.IdentificationData.WebhookIdentityType[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,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.com.wixpress.iptf.v1.webhooks.IdentificationData;return null!=e.identityType?n.identityType="string"==typeof e.identityType?e.identityType:t.com.wixpress.iptf.v1.webhooks.IdentificationData.WebhookIdentityType[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 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,n){if(null==e)return null;{const n=new t.com.wixpress.iptf.v1.webhooks.IdentificationData;return null!=e.identityType?n.identityType=e.identityType:n.identityType="UNKNOWN",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}}}return IdentificationData.WebhookIdentityType={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.WebhookIdentityType={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"},e.Object.defineProperty(IdentificationData.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.v1.webhooks.IdentificationData"),enumerable:!1,configurable:!1}),e.Object.defineProperty(IdentificationData.prototype,"__fqn__",{value:"com.wixpress.iptf.v1.webhooks.IdentificationData",enumerable:!1,configurable:!1}),e.Object.defineProperty(IdentificationData.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(IdentificationData.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),IdentificationData}(),n.AccountInfo=function(){class AccountInfo{constructor(e){this.accountId=e&&e.accountId,this.parentAccountId=e&&e.parentAccountId,this.siteId=e&&e.siteId}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.accountId?i.accountId=t.google.protobuf.StringValue.toJSON(e.accountId,n,o):o&&delete i.accountId,null!=e.parentAccountId?i.parentAccountId=t.google.protobuf.StringValue.toJSON(e.parentAccountId,n,o):o&&delete i.parentAccountId,null!=e.siteId?i.siteId=t.google.protobuf.StringValue.toJSON(e.siteId,n,o):o&&delete i.siteId,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.com.wixpress.iptf.v1.webhooks.AccountInfo;return null!=e.accountId?o.accountId=t.google.protobuf.StringValue.fromJSON(e.accountId,n):delete o.accountId,null!=e.parentAccountId?o.parentAccountId=t.google.protobuf.StringValue.fromJSON(e.parentAccountId,n):delete o.parentAccountId,null!=e.siteId?o.siteId=t.google.protobuf.StringValue.fromJSON(e.siteId,n):delete o.siteId,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.accountId&&(o.accountId=t.google.protobuf.StringValue.toGRPC(e.accountId,n)),null!=e.parentAccountId&&(o.parentAccountId=t.google.protobuf.StringValue.toGRPC(e.parentAccountId,n)),null!=e.siteId&&(o.siteId=t.google.protobuf.StringValue.toGRPC(e.siteId,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.com.wixpress.iptf.v1.webhooks.AccountInfo;return null!=e.accountId?o.accountId=t.google.protobuf.StringValue.fromGRPC(e.accountId,n):delete o.accountId,null!=e.parentAccountId?o.parentAccountId=t.google.protobuf.StringValue.fromGRPC(e.parentAccountId,n):delete o.parentAccountId,null!=e.siteId?o.siteId=t.google.protobuf.StringValue.fromGRPC(e.siteId,n):delete o.siteId,o}}}return e.Object.defineProperty(AccountInfo.prototype,"__proto",{value:e=>t.__lookup(e)("com.wixpress.iptf.v1.webhooks.AccountInfo"),enumerable:!1,configurable:!1}),e.Object.defineProperty(AccountInfo.prototype,"__fqn__",{value:"com.wixpress.iptf.v1.webhooks.AccountInfo",enumerable:!1,configurable:!1}),e.Object.defineProperty(AccountInfo.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(AccountInfo.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),AccountInfo}(),n}(),n}(),n}(),n}(),n}(),t.wix=function(){const n={};return n.api=function(){const n={};return n.ReferenceEntityField=function(){class ReferenceEntityField{constructor(e){this.path=e&&e.path}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path:n&&(t.path=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.ReferenceEntityField;return null!=e.path?n.path=e.path:!1!==o?n.path="":delete n.path,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.path&&(t.path=e.path),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.ReferenceEntityField;return null!=e.path?n.path=e.path:n.path="",n}}}return e.Object.defineProperty(ReferenceEntityField.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.ReferenceEntityField"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ReferenceEntityField.prototype,"__fqn__",{value:"wix.api.ReferenceEntityField",enumerable:!1,configurable:!1}),e.Object.defineProperty(ReferenceEntityField.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ReferenceEntityField.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ReferenceEntityField}(),n.CacheSettings=function(){class CacheSettings{constructor(e){this.maxAgeSeconds=e&&e.maxAgeSeconds,this.manual=e&&e.manual}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.maxAgeSeconds?t.maxAgeSeconds=e.maxAgeSeconds:n&&(t.maxAgeSeconds=0),null!=e.manual?t.manual=e.manual:n&&(t.manual=!1),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.CacheSettings;return null!=e.maxAgeSeconds?n.maxAgeSeconds=e.maxAgeSeconds:!1!==o?n.maxAgeSeconds=0:delete n.maxAgeSeconds,null!=e.manual?n.manual=e.manual:!1!==o?n.manual=!1:delete n.manual,n}}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,n){if(null==e)return null;{const n=new t.wix.api.CacheSettings;return null!=e.maxAgeSeconds?n.maxAgeSeconds=e.maxAgeSeconds:n.maxAgeSeconds=0,null!=e.manual?n.manual=e.manual:n.manual=!1,n}}}return e.Object.defineProperty(CacheSettings.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.CacheSettings"),enumerable:!1,configurable:!1}),e.Object.defineProperty(CacheSettings.prototype,"__fqn__",{value:"wix.api.CacheSettings",enumerable:!1,configurable:!1}),e.Object.defineProperty(CacheSettings.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(CacheSettings.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),CacheSettings}(),n.FieldSet=function(){class FieldSet{constructor(e){this.field=e&&e.field}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.field?t.field=e.field.map(e=>e):n&&(t.field=[]),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.FieldSet;return null!=e.field?n.field=Array.isArray(e.field)?e.field.map(e=>e):e.field:!1!==o?n.field=[]:delete n.field,n}}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,n){if(null==e)return null;{const n=new t.wix.api.FieldSet;return null!=e.field?n.field=e.field.map(e=>e):n.field=[],n}}}return e.Object.defineProperty(FieldSet.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.FieldSet"),enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldSet.prototype,"__fqn__",{value:"wix.api.FieldSet",enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldSet.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldSet.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),FieldSet}(),n.Deprecated=function(){class Deprecated{constructor(e){this.replacedBy=e&&e.replacedBy,this.targetRemovalDate=e&&e.targetRemovalDate}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.replacedBy?t.replacedBy=e.replacedBy:n&&(t.replacedBy=""),null!=e.targetRemovalDate?t.targetRemovalDate=e.targetRemovalDate:n&&(t.targetRemovalDate=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Deprecated;return null!=e.replacedBy?n.replacedBy=e.replacedBy:!1!==o?n.replacedBy="":delete n.replacedBy,null!=e.targetRemovalDate?n.targetRemovalDate=e.targetRemovalDate:!1!==o?n.targetRemovalDate="":delete n.targetRemovalDate,n}}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,n){if(null==e)return null;{const n=new t.wix.api.Deprecated;return null!=e.replacedBy?n.replacedBy=e.replacedBy:n.replacedBy="",null!=e.targetRemovalDate?n.targetRemovalDate=e.targetRemovalDate:n.targetRemovalDate="",n}}}return e.Object.defineProperty(Deprecated.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Deprecated"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Deprecated.prototype,"__fqn__",{value:"wix.api.Deprecated",enumerable:!1,configurable:!1}),e.Object.defineProperty(Deprecated.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Deprecated.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Deprecated}(),n.Unique=function(){class Unique{constructor(e){this.field=e&&e.field}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.field?t.field=e.field.map(e=>e):n&&(t.field=[]),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Unique;return null!=e.field?n.field=Array.isArray(e.field)?e.field.map(e=>e):e.field:!1!==o?n.field=[]:delete n.field,n}}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,n){if(null==e)return null;{const n=new t.wix.api.Unique;return null!=e.field?n.field=e.field.map(e=>e):n.field=[],n}}}return e.Object.defineProperty(Unique.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Unique"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Unique.prototype,"__fqn__",{value:"wix.api.Unique",enumerable:!1,configurable:!1}),e.Object.defineProperty(Unique.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Unique.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Unique}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.method?i.method=t.wix.api.Crud.Method[e.method]:o&&(i.method="UNKNOWN_METHOD"),null!=e.createOptions?i.createOptions=t.wix.api.CreateMethodOptions.toJSON(e.createOptions,n,o):o&&delete i.createOptions,null!=e.getOptions?i.getOptions=t.wix.api.GetItemMethodOptions.toJSON(e.getOptions,n,o):o&&delete i.getOptions,null!=e.updateOptions?i.updateOptions=t.wix.api.UpdateMethodOptions.toJSON(e.updateOptions,n,o):o&&delete i.updateOptions,null!=e.deleteOptions?i.deleteOptions=t.wix.api.DeleteMethodOptions.toJSON(e.deleteOptions,n,o):o&&delete i.deleteOptions,null!=e.listOptions?i.listOptions=t.wix.api.ListMethodOptions.toJSON(e.listOptions,n,o):o&&delete i.listOptions,null!=e.queryOptions?i.queryOptions=t.wix.api.QueryMethodOptions.toJSON(e.queryOptions,n,o):o&&delete i.queryOptions,null!=e.searchOptions?i.searchOptions=t.wix.api.SearchMethodOptions.toJSON(e.searchOptions,n,o):o&&delete i.searchOptions,null!=e.bulkCreateOptions?i.bulkCreateOptions=t.wix.api.BulkCreateMethodOptions.toJSON(e.bulkCreateOptions,n,o):o&&delete i.bulkCreateOptions,null!=e.bulkUpdateOptions?i.bulkUpdateOptions=t.wix.api.BulkUpdateMethodOptions.toJSON(e.bulkUpdateOptions,n,o):o&&delete i.bulkUpdateOptions,null!=e.bulkUpdateByFilterOptions?i.bulkUpdateByFilterOptions=t.wix.api.BulkUpdateByFilterMethodOptions.toJSON(e.bulkUpdateByFilterOptions,n,o):o&&delete i.bulkUpdateByFilterOptions,null!=e.bulkDeleteOptions?i.bulkDeleteOptions=t.wix.api.BulkDeleteMethodOptions.toJSON(e.bulkDeleteOptions,n,o):o&&delete i.bulkDeleteOptions,null!=e.bulkDeleteByFilterOptions?i.bulkDeleteByFilterOptions=t.wix.api.BulkDeleteByFilterMethodOptions.toJSON(e.bulkDeleteByFilterOptions,n,o):o&&delete i.bulkDeleteByFilterOptions,null!=e.upsertOptions?i.upsertOptions=t.wix.api.UpsertMethodOptions.toJSON(e.upsertOptions,n,o):o&&delete i.upsertOptions,null!=e.bulkUpsertOptions?i.bulkUpsertOptions=t.wix.api.BulkUpsertMethodOptions.toJSON(e.bulkUpsertOptions,n,o):o&&delete i.bulkUpsertOptions,null!=e.listDeletedOptions?i.listDeletedOptions=t.wix.api.ListDeletedMethodOptions.toJSON(e.listDeletedOptions,n,o):o&&delete i.listDeletedOptions,null!=e.getDeletedOptions?i.getDeletedOptions=t.wix.api.GetDeletedMethodOptions.toJSON(e.getDeletedOptions,n,o):o&&delete i.getDeletedOptions,null!=e.restoreFromTrashbinOptions?i.restoreFromTrashbinOptions=t.wix.api.RestoreFromTrashbinMethodOptions.toJSON(e.restoreFromTrashbinOptions,n,o):o&&delete i.restoreFromTrashbinOptions,null!=e.removeFromTrashbinOptions?i.removeFromTrashbinOptions=t.wix.api.RemoveFromTrashbinMethodOptions.toJSON(e.removeFromTrashbinOptions,n,o):o&&delete i.removeFromTrashbinOptions,null!=e.countOptions?i.countOptions=t.wix.api.CountOptions.toJSON(e.countOptions,n,o):o&&delete i.countOptions,null!=e.searchRelatedOptions?i.searchRelatedOptions=t.wix.api.SearchRelatedOptions.toJSON(e.searchRelatedOptions,n,o):o&&delete i.searchRelatedOptions,null!=e.updateExtendedFieldsOptions?i.updateExtendedFieldsOptions=t.wix.api.UpdateExtendedFieldsOptions.toJSON(e.updateExtendedFieldsOptions,n,o):o&&delete i.updateExtendedFieldsOptions,null!=e.customActionOptions?i.customActionOptions=t.wix.api.CustomActionOptions.toJSON(e.customActionOptions,n,o):o&&delete i.customActionOptions,null!=e.bulkUpdateTagsOptions?i.bulkUpdateTagsOptions=t.wix.api.BulkUpdateTagsMethodOptions.toJSON(e.bulkUpdateTagsOptions,n,o):o&&delete i.bulkUpdateTagsOptions,null!=e.bulkUpdateTagsByFilterOptions?i.bulkUpdateTagsByFilterOptions=t.wix.api.BulkUpdateTagsByFilterMethodOptions.toJSON(e.bulkUpdateTagsByFilterOptions,n,o):o&&delete i.bulkUpdateTagsByFilterOptions,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.Crud;return null!=e.method?i.method="string"==typeof e.method?e.method:t.wix.api.Crud.Method[e.method]:!1!==o?i.method="UNKNOWN_METHOD":delete i.method,null!=e.createOptions?i.createOptions=t.wix.api.CreateMethodOptions.fromJSON(e.createOptions,n):delete i.createOptions,null!=e.getOptions?i.getOptions=t.wix.api.GetItemMethodOptions.fromJSON(e.getOptions,n):delete i.getOptions,null!=e.updateOptions?i.updateOptions=t.wix.api.UpdateMethodOptions.fromJSON(e.updateOptions,n):delete i.updateOptions,null!=e.deleteOptions?i.deleteOptions=t.wix.api.DeleteMethodOptions.fromJSON(e.deleteOptions,n):delete i.deleteOptions,null!=e.listOptions?i.listOptions=t.wix.api.ListMethodOptions.fromJSON(e.listOptions,n):delete i.listOptions,null!=e.queryOptions?i.queryOptions=t.wix.api.QueryMethodOptions.fromJSON(e.queryOptions,n):delete i.queryOptions,null!=e.searchOptions?i.searchOptions=t.wix.api.SearchMethodOptions.fromJSON(e.searchOptions,n):delete i.searchOptions,null!=e.bulkCreateOptions?i.bulkCreateOptions=t.wix.api.BulkCreateMethodOptions.fromJSON(e.bulkCreateOptions,n):delete i.bulkCreateOptions,null!=e.bulkUpdateOptions?i.bulkUpdateOptions=t.wix.api.BulkUpdateMethodOptions.fromJSON(e.bulkUpdateOptions,n):delete i.bulkUpdateOptions,null!=e.bulkUpdateByFilterOptions?i.bulkUpdateByFilterOptions=t.wix.api.BulkUpdateByFilterMethodOptions.fromJSON(e.bulkUpdateByFilterOptions,n):delete i.bulkUpdateByFilterOptions,null!=e.bulkDeleteOptions?i.bulkDeleteOptions=t.wix.api.BulkDeleteMethodOptions.fromJSON(e.bulkDeleteOptions,n):delete i.bulkDeleteOptions,null!=e.bulkDeleteByFilterOptions?i.bulkDeleteByFilterOptions=t.wix.api.BulkDeleteByFilterMethodOptions.fromJSON(e.bulkDeleteByFilterOptions,n):delete i.bulkDeleteByFilterOptions,null!=e.upsertOptions?i.upsertOptions=t.wix.api.UpsertMethodOptions.fromJSON(e.upsertOptions,n):delete i.upsertOptions,null!=e.bulkUpsertOptions?i.bulkUpsertOptions=t.wix.api.BulkUpsertMethodOptions.fromJSON(e.bulkUpsertOptions,n):delete i.bulkUpsertOptions,null!=e.listDeletedOptions?i.listDeletedOptions=t.wix.api.ListDeletedMethodOptions.fromJSON(e.listDeletedOptions,n):delete i.listDeletedOptions,null!=e.getDeletedOptions?i.getDeletedOptions=t.wix.api.GetDeletedMethodOptions.fromJSON(e.getDeletedOptions,n):delete i.getDeletedOptions,null!=e.restoreFromTrashbinOptions?i.restoreFromTrashbinOptions=t.wix.api.RestoreFromTrashbinMethodOptions.fromJSON(e.restoreFromTrashbinOptions,n):delete i.restoreFromTrashbinOptions,null!=e.removeFromTrashbinOptions?i.removeFromTrashbinOptions=t.wix.api.RemoveFromTrashbinMethodOptions.fromJSON(e.removeFromTrashbinOptions,n):delete i.removeFromTrashbinOptions,null!=e.countOptions?i.countOptions=t.wix.api.CountOptions.fromJSON(e.countOptions,n):delete i.countOptions,null!=e.searchRelatedOptions?i.searchRelatedOptions=t.wix.api.SearchRelatedOptions.fromJSON(e.searchRelatedOptions,n):delete i.searchRelatedOptions,null!=e.updateExtendedFieldsOptions?i.updateExtendedFieldsOptions=t.wix.api.UpdateExtendedFieldsOptions.fromJSON(e.updateExtendedFieldsOptions,n):delete i.updateExtendedFieldsOptions,null!=e.customActionOptions?i.customActionOptions=t.wix.api.CustomActionOptions.fromJSON(e.customActionOptions,n):delete i.customActionOptions,null!=e.bulkUpdateTagsOptions?i.bulkUpdateTagsOptions=t.wix.api.BulkUpdateTagsMethodOptions.fromJSON(e.bulkUpdateTagsOptions,n):delete i.bulkUpdateTagsOptions,null!=e.bulkUpdateTagsByFilterOptions?i.bulkUpdateTagsByFilterOptions=t.wix.api.BulkUpdateTagsByFilterMethodOptions.fromJSON(e.bulkUpdateTagsByFilterOptions,n):delete i.bulkUpdateTagsByFilterOptions,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.method&&(o.method=e.method),null!=e.createOptions&&(o.createOptions=t.wix.api.CreateMethodOptions.toGRPC(e.createOptions,n)),null!=e.getOptions&&(o.getOptions=t.wix.api.GetItemMethodOptions.toGRPC(e.getOptions,n)),null!=e.updateOptions&&(o.updateOptions=t.wix.api.UpdateMethodOptions.toGRPC(e.updateOptions,n)),null!=e.deleteOptions&&(o.deleteOptions=t.wix.api.DeleteMethodOptions.toGRPC(e.deleteOptions,n)),null!=e.listOptions&&(o.listOptions=t.wix.api.ListMethodOptions.toGRPC(e.listOptions,n)),null!=e.queryOptions&&(o.queryOptions=t.wix.api.QueryMethodOptions.toGRPC(e.queryOptions,n)),null!=e.searchOptions&&(o.searchOptions=t.wix.api.SearchMethodOptions.toGRPC(e.searchOptions,n)),null!=e.bulkCreateOptions&&(o.bulkCreateOptions=t.wix.api.BulkCreateMethodOptions.toGRPC(e.bulkCreateOptions,n)),null!=e.bulkUpdateOptions&&(o.bulkUpdateOptions=t.wix.api.BulkUpdateMethodOptions.toGRPC(e.bulkUpdateOptions,n)),null!=e.bulkUpdateByFilterOptions&&(o.bulkUpdateByFilterOptions=t.wix.api.BulkUpdateByFilterMethodOptions.toGRPC(e.bulkUpdateByFilterOptions,n)),null!=e.bulkDeleteOptions&&(o.bulkDeleteOptions=t.wix.api.BulkDeleteMethodOptions.toGRPC(e.bulkDeleteOptions,n)),null!=e.bulkDeleteByFilterOptions&&(o.bulkDeleteByFilterOptions=t.wix.api.BulkDeleteByFilterMethodOptions.toGRPC(e.bulkDeleteByFilterOptions,n)),null!=e.upsertOptions&&(o.upsertOptions=t.wix.api.UpsertMethodOptions.toGRPC(e.upsertOptions,n)),null!=e.bulkUpsertOptions&&(o.bulkUpsertOptions=t.wix.api.BulkUpsertMethodOptions.toGRPC(e.bulkUpsertOptions,n)),null!=e.listDeletedOptions&&(o.listDeletedOptions=t.wix.api.ListDeletedMethodOptions.toGRPC(e.listDeletedOptions,n)),null!=e.getDeletedOptions&&(o.getDeletedOptions=t.wix.api.GetDeletedMethodOptions.toGRPC(e.getDeletedOptions,n)),null!=e.restoreFromTrashbinOptions&&(o.restoreFromTrashbinOptions=t.wix.api.RestoreFromTrashbinMethodOptions.toGRPC(e.restoreFromTrashbinOptions,n)),null!=e.removeFromTrashbinOptions&&(o.removeFromTrashbinOptions=t.wix.api.RemoveFromTrashbinMethodOptions.toGRPC(e.removeFromTrashbinOptions,n)),null!=e.countOptions&&(o.countOptions=t.wix.api.CountOptions.toGRPC(e.countOptions,n)),null!=e.searchRelatedOptions&&(o.searchRelatedOptions=t.wix.api.SearchRelatedOptions.toGRPC(e.searchRelatedOptions,n)),null!=e.updateExtendedFieldsOptions&&(o.updateExtendedFieldsOptions=t.wix.api.UpdateExtendedFieldsOptions.toGRPC(e.updateExtendedFieldsOptions,n)),null!=e.customActionOptions&&(o.customActionOptions=t.wix.api.CustomActionOptions.toGRPC(e.customActionOptions,n)),null!=e.bulkUpdateTagsOptions&&(o.bulkUpdateTagsOptions=t.wix.api.BulkUpdateTagsMethodOptions.toGRPC(e.bulkUpdateTagsOptions,n)),null!=e.bulkUpdateTagsByFilterOptions&&(o.bulkUpdateTagsByFilterOptions=t.wix.api.BulkUpdateTagsByFilterMethodOptions.toGRPC(e.bulkUpdateTagsByFilterOptions,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.api.Crud;return null!=e.method?o.method=e.method:o.method="UNKNOWN_METHOD",null!=e.createOptions?o.createOptions=t.wix.api.CreateMethodOptions.fromGRPC(e.createOptions,n):delete o.createOptions,null!=e.getOptions?o.getOptions=t.wix.api.GetItemMethodOptions.fromGRPC(e.getOptions,n):delete o.getOptions,null!=e.updateOptions?o.updateOptions=t.wix.api.UpdateMethodOptions.fromGRPC(e.updateOptions,n):delete o.updateOptions,null!=e.deleteOptions?o.deleteOptions=t.wix.api.DeleteMethodOptions.fromGRPC(e.deleteOptions,n):delete o.deleteOptions,null!=e.listOptions?o.listOptions=t.wix.api.ListMethodOptions.fromGRPC(e.listOptions,n):delete o.listOptions,null!=e.queryOptions?o.queryOptions=t.wix.api.QueryMethodOptions.fromGRPC(e.queryOptions,n):delete o.queryOptions,null!=e.searchOptions?o.searchOptions=t.wix.api.SearchMethodOptions.fromGRPC(e.searchOptions,n):delete o.searchOptions,null!=e.bulkCreateOptions?o.bulkCreateOptions=t.wix.api.BulkCreateMethodOptions.fromGRPC(e.bulkCreateOptions,n):delete o.bulkCreateOptions,null!=e.bulkUpdateOptions?o.bulkUpdateOptions=t.wix.api.BulkUpdateMethodOptions.fromGRPC(e.bulkUpdateOptions,n):delete o.bulkUpdateOptions,null!=e.bulkUpdateByFilterOptions?o.bulkUpdateByFilterOptions=t.wix.api.BulkUpdateByFilterMethodOptions.fromGRPC(e.bulkUpdateByFilterOptions,n):delete o.bulkUpdateByFilterOptions,null!=e.bulkDeleteOptions?o.bulkDeleteOptions=t.wix.api.BulkDeleteMethodOptions.fromGRPC(e.bulkDeleteOptions,n):delete o.bulkDeleteOptions,null!=e.bulkDeleteByFilterOptions?o.bulkDeleteByFilterOptions=t.wix.api.BulkDeleteByFilterMethodOptions.fromGRPC(e.bulkDeleteByFilterOptions,n):delete o.bulkDeleteByFilterOptions,null!=e.upsertOptions?o.upsertOptions=t.wix.api.UpsertMethodOptions.fromGRPC(e.upsertOptions,n):delete o.upsertOptions,null!=e.bulkUpsertOptions?o.bulkUpsertOptions=t.wix.api.BulkUpsertMethodOptions.fromGRPC(e.bulkUpsertOptions,n):delete o.bulkUpsertOptions,null!=e.listDeletedOptions?o.listDeletedOptions=t.wix.api.ListDeletedMethodOptions.fromGRPC(e.listDeletedOptions,n):delete o.listDeletedOptions,null!=e.getDeletedOptions?o.getDeletedOptions=t.wix.api.GetDeletedMethodOptions.fromGRPC(e.getDeletedOptions,n):delete o.getDeletedOptions,null!=e.restoreFromTrashbinOptions?o.restoreFromTrashbinOptions=t.wix.api.RestoreFromTrashbinMethodOptions.fromGRPC(e.restoreFromTrashbinOptions,n):delete o.restoreFromTrashbinOptions,null!=e.removeFromTrashbinOptions?o.removeFromTrashbinOptions=t.wix.api.RemoveFromTrashbinMethodOptions.fromGRPC(e.removeFromTrashbinOptions,n):delete o.removeFromTrashbinOptions,null!=e.countOptions?o.countOptions=t.wix.api.CountOptions.fromGRPC(e.countOptions,n):delete o.countOptions,null!=e.searchRelatedOptions?o.searchRelatedOptions=t.wix.api.SearchRelatedOptions.fromGRPC(e.searchRelatedOptions,n):delete o.searchRelatedOptions,null!=e.updateExtendedFieldsOptions?o.updateExtendedFieldsOptions=t.wix.api.UpdateExtendedFieldsOptions.fromGRPC(e.updateExtendedFieldsOptions,n):delete o.updateExtendedFieldsOptions,null!=e.customActionOptions?o.customActionOptions=t.wix.api.CustomActionOptions.fromGRPC(e.customActionOptions,n):delete o.customActionOptions,null!=e.bulkUpdateTagsOptions?o.bulkUpdateTagsOptions=t.wix.api.BulkUpdateTagsMethodOptions.fromGRPC(e.bulkUpdateTagsOptions,n):delete o.bulkUpdateTagsOptions,null!=e.bulkUpdateTagsByFilterOptions?o.bulkUpdateTagsByFilterOptions=t.wix.api.BulkUpdateTagsByFilterMethodOptions.fromGRPC(e.bulkUpdateTagsByFilterOptions,n):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"},e.Object.defineProperty(Crud.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Crud"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Crud.prototype,"__fqn__",{value:"wix.api.Crud",enumerable:!1,configurable:!1}),e.Object.defineProperty(Crud.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Crud.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Crud}(),n.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,n,o){if(null==e)return null;{const n={};return null!=e.type?n.type=t.wix.api.Paging.Type[e.type]:o&&(n.type="UNKNOWN_TYPE"),null!=e.pagingMetadataField?n.pagingMetadataField=e.pagingMetadataField:o&&(n.pagingMetadataField=""),null!=e.cursorPagingMetadataField?n.cursorPagingMetadataField=e.cursorPagingMetadataField:o&&(n.cursorPagingMetadataField=""),null!=e.offsetPagingMetadataField?n.offsetPagingMetadataField=e.offsetPagingMetadataField:o&&(n.offsetPagingMetadataField=""),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Paging;return null!=e.type?n.type="string"==typeof e.type?e.type:t.wix.api.Paging.Type[e.type]:!1!==o?n.type="UNKNOWN_TYPE":delete n.type,null!=e.pagingMetadataField?n.pagingMetadataField=e.pagingMetadataField:!1!==o?n.pagingMetadataField="":delete n.pagingMetadataField,null!=e.cursorPagingMetadataField?n.cursorPagingMetadataField=e.cursorPagingMetadataField:!1!==o?n.cursorPagingMetadataField="":delete n.cursorPagingMetadataField,null!=e.offsetPagingMetadataField?n.offsetPagingMetadataField=e.offsetPagingMetadataField:!1!==o?n.offsetPagingMetadataField="":delete n.offsetPagingMetadataField,n}}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,n){if(null==e)return null;{const n=new t.wix.api.Paging;return null!=e.type?n.type=e.type:n.type="UNKNOWN_TYPE",null!=e.pagingMetadataField?n.pagingMetadataField=e.pagingMetadataField:n.pagingMetadataField="",null!=e.cursorPagingMetadataField?n.cursorPagingMetadataField=e.cursorPagingMetadataField:n.cursorPagingMetadataField="",null!=e.offsetPagingMetadataField?n.offsetPagingMetadataField=e.offsetPagingMetadataField:n.offsetPagingMetadataField="",n}}}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"},e.Object.defineProperty(Paging.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Paging"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Paging.prototype,"__fqn__",{value:"wix.api.Paging",enumerable:!1,configurable:!1}),e.Object.defineProperty(Paging.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Paging.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Paging}(),n.CustomActionOptions=function(){class CustomActionOptions{constructor(e){this.readOperation=e&&e.readOperation,this.wql=e&&e.wql}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.readOperation?i.readOperation=e.readOperation:o&&(i.readOperation=!1),null!=e.wql?i.wql=t.wix.api.WqlOptions.toJSON(e.wql,n,o):o&&delete i.wql,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.CustomActionOptions;return null!=e.readOperation?i.readOperation=e.readOperation:!1!==o?i.readOperation=!1:delete i.readOperation,null!=e.wql?i.wql=t.wix.api.WqlOptions.fromJSON(e.wql,n):delete i.wql,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.readOperation&&(o.readOperation=e.readOperation),null!=e.wql&&(o.wql=t.wix.api.WqlOptions.toGRPC(e.wql,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.api.CustomActionOptions;return null!=e.readOperation?o.readOperation=e.readOperation:o.readOperation=!1,null!=e.wql?o.wql=t.wix.api.WqlOptions.fromGRPC(e.wql,n):delete o.wql,o}}}return e.Object.defineProperty(CustomActionOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.CustomActionOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(CustomActionOptions.prototype,"__fqn__",{value:"wix.api.CustomActionOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(CustomActionOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(CustomActionOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),CustomActionOptions}(),n.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,n){if(null==e)return null;{const t={};return null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:n&&(t.queryOptionsName=""),null!=e.filterField?t.filterField=e.filterField:n&&delete t.filterField,null!=e.queryField?t.queryField=e.queryField:n&&delete t.queryField,null!=e.searchField?t.searchField=e.searchField:n&&delete t.searchField,t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.WqlOptions;return null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:!1!==o?n.queryOptionsName="":delete n.queryOptionsName,null!=e.filterField?n.filterField=e.filterField:delete n.filterField,null!=e.queryField?n.queryField=e.queryField:delete n.queryField,null!=e.searchField?n.searchField=e.searchField:delete n.searchField,n}}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,n){if(null==e)return null;{const n=new t.wix.api.WqlOptions;return null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:n.queryOptionsName="",null!=e.filterField?n.filterField=e.filterField:delete n.filterField,null!=e.queryField?n.queryField=e.queryField:delete n.queryField,null!=e.searchField?n.searchField=e.searchField:delete n.searchField,n}}}return e.Object.defineProperty(WqlOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.WqlOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(WqlOptions.prototype,"__fqn__",{value:"wix.api.WqlOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(WqlOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(WqlOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),WqlOptions}(),n.CreateMethodOptions=function(){class CreateMethodOptions{constructor(e){this.itemField=e&&e.itemField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:n&&(t.itemField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.CreateMethodOptions;return null!=e.itemField?n.itemField=e.itemField:!1!==o?n.itemField="":delete n.itemField,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemField&&(t.itemField=e.itemField),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.CreateMethodOptions;return null!=e.itemField?n.itemField=e.itemField:n.itemField="",n}}}return e.Object.defineProperty(CreateMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.CreateMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(CreateMethodOptions.prototype,"__fqn__",{value:"wix.api.CreateMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(CreateMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(CreateMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),CreateMethodOptions}(),n.GetItemMethodOptions=function(){class GetItemMethodOptions{constructor(e){this.itemField=e&&e.itemField,this.idField=e&&e.idField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:n&&(t.itemField=""),null!=e.idField?t.idField=e.idField:n&&(t.idField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.GetItemMethodOptions;return null!=e.itemField?n.itemField=e.itemField:!1!==o?n.itemField="":delete n.itemField,null!=e.idField?n.idField=e.idField:!1!==o?n.idField="":delete n.idField,n}}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,n){if(null==e)return null;{const n=new t.wix.api.GetItemMethodOptions;return null!=e.itemField?n.itemField=e.itemField:n.itemField="",null!=e.idField?n.idField=e.idField:n.idField="",n}}}return e.Object.defineProperty(GetItemMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.GetItemMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(GetItemMethodOptions.prototype,"__fqn__",{value:"wix.api.GetItemMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(GetItemMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(GetItemMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),GetItemMethodOptions}(),n.UpdateMethodOptions=function(){class UpdateMethodOptions{constructor(e){this.itemField=e&&e.itemField,this.fieldmaskField=e&&e.fieldmaskField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:n&&(t.itemField=""),null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:n&&(t.fieldmaskField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.UpdateMethodOptions;return null!=e.itemField?n.itemField=e.itemField:!1!==o?n.itemField="":delete n.itemField,null!=e.fieldmaskField?n.fieldmaskField=e.fieldmaskField:!1!==o?n.fieldmaskField="":delete n.fieldmaskField,n}}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,n){if(null==e)return null;{const n=new t.wix.api.UpdateMethodOptions;return null!=e.itemField?n.itemField=e.itemField:n.itemField="",null!=e.fieldmaskField?n.fieldmaskField=e.fieldmaskField:n.fieldmaskField="",n}}}return e.Object.defineProperty(UpdateMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.UpdateMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(UpdateMethodOptions.prototype,"__fqn__",{value:"wix.api.UpdateMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(UpdateMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(UpdateMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),UpdateMethodOptions}(),n.UpsertMethodOptions=function(){class UpsertMethodOptions{constructor(e){this.itemField=e&&e.itemField,this.fieldmaskField=e&&e.fieldmaskField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:n&&(t.itemField=""),null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:n&&(t.fieldmaskField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.UpsertMethodOptions;return null!=e.itemField?n.itemField=e.itemField:!1!==o?n.itemField="":delete n.itemField,null!=e.fieldmaskField?n.fieldmaskField=e.fieldmaskField:!1!==o?n.fieldmaskField="":delete n.fieldmaskField,n}}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,n){if(null==e)return null;{const n=new t.wix.api.UpsertMethodOptions;return null!=e.itemField?n.itemField=e.itemField:n.itemField="",null!=e.fieldmaskField?n.fieldmaskField=e.fieldmaskField:n.fieldmaskField="",n}}}return e.Object.defineProperty(UpsertMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.UpsertMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(UpsertMethodOptions.prototype,"__fqn__",{value:"wix.api.UpsertMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(UpsertMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(UpsertMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),UpsertMethodOptions}(),n.DeleteMethodOptions=function(){class DeleteMethodOptions{constructor(e){this.idField=e&&e.idField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.idField?t.idField=e.idField:n&&(t.idField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.DeleteMethodOptions;return null!=e.idField?n.idField=e.idField:!1!==o?n.idField="":delete n.idField,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.idField&&(t.idField=e.idField),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.DeleteMethodOptions;return null!=e.idField?n.idField=e.idField:n.idField="",n}}}return e.Object.defineProperty(DeleteMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.DeleteMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DeleteMethodOptions.prototype,"__fqn__",{value:"wix.api.DeleteMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(DeleteMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DeleteMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DeleteMethodOptions}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.idsField?i.idsField=e.idsField:o&&(i.idsField=""),null!=e.itemsField?i.itemsField=e.itemsField:o&&(i.itemsField=""),null!=e.paging?i.paging=t.wix.api.Paging.toJSON(e.paging,n,o):o&&delete i.paging,null!=e.meAliasableField?i.meAliasableField=e.meAliasableField.map(e=>e):o&&(i.meAliasableField=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.ListMethodOptions;return null!=e.idsField?i.idsField=e.idsField:!1!==o?i.idsField="":delete i.idsField,null!=e.itemsField?i.itemsField=e.itemsField:!1!==o?i.itemsField="":delete i.itemsField,null!=e.paging?i.paging=t.wix.api.Paging.fromJSON(e.paging,n):delete i.paging,null!=e.meAliasableField?i.meAliasableField=Array.isArray(e.meAliasableField)?e.meAliasableField.map(e=>e):e.meAliasableField:!1!==o?i.meAliasableField=[]:delete i.meAliasableField,i}}static toGRPC(e,n){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=t.wix.api.Paging.toGRPC(e.paging,n)),null!=e.meAliasableField&&(o.meAliasableField=e.meAliasableField.map(e=>e)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.wix.api.Paging.fromGRPC(e.paging,n):delete o.paging,null!=e.meAliasableField?o.meAliasableField=e.meAliasableField.map(e=>e):o.meAliasableField=[],o}}}return e.Object.defineProperty(ListMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.ListMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ListMethodOptions.prototype,"__fqn__",{value:"wix.api.ListMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(ListMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ListMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ListMethodOptions}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.queryField?i.queryField=e.queryField:o&&(i.queryField=""),null!=e.cursorQueryField?i.cursorQueryField=e.cursorQueryField:o&&(i.cursorQueryField=""),null!=e.offsetQueryField?i.offsetQueryField=e.offsetQueryField:o&&(i.offsetQueryField=""),null!=e.itemsField?i.itemsField=e.itemsField:o&&(i.itemsField=""),null!=e.paging?i.paging=t.wix.api.Paging.toJSON(e.paging,n,o):o&&delete i.paging,null!=e.wql?i.wql=t.wix.api.Wql.toJSON(e.wql,n,o):o&&delete i.wql,null!=e.queryOptionsName?i.queryOptionsName=e.queryOptionsName:o&&delete i.queryOptionsName,null!=e.meAliasableField?i.meAliasableField=e.meAliasableField.map(e=>e):o&&(i.meAliasableField=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.QueryMethodOptions;return null!=e.queryField?i.queryField=e.queryField:!1!==o?i.queryField="":delete i.queryField,null!=e.cursorQueryField?i.cursorQueryField=e.cursorQueryField:!1!==o?i.cursorQueryField="":delete i.cursorQueryField,null!=e.offsetQueryField?i.offsetQueryField=e.offsetQueryField:!1!==o?i.offsetQueryField="":delete i.offsetQueryField,null!=e.itemsField?i.itemsField=e.itemsField:!1!==o?i.itemsField="":delete i.itemsField,null!=e.paging?i.paging=t.wix.api.Paging.fromJSON(e.paging,n):delete i.paging,null!=e.wql?i.wql=t.wix.api.Wql.fromJSON(e.wql,n):delete i.wql,null!=e.queryOptionsName?i.queryOptionsName=e.queryOptionsName:delete i.queryOptionsName,null!=e.meAliasableField?i.meAliasableField=Array.isArray(e.meAliasableField)?e.meAliasableField.map(e=>e):e.meAliasableField:!1!==o?i.meAliasableField=[]:delete i.meAliasableField,i}}static toGRPC(e,n){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=t.wix.api.Paging.toGRPC(e.paging,n)),null!=e.wql&&(o.wql=t.wix.api.Wql.toGRPC(e.wql,n)),null!=e.queryOptionsName&&(o.queryOptionsName=e.queryOptionsName),null!=e.meAliasableField&&(o.meAliasableField=e.meAliasableField.map(e=>e)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.wix.api.Paging.fromGRPC(e.paging,n):delete o.paging,null!=e.wql?o.wql=t.wix.api.Wql.fromGRPC(e.wql,n):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 e.Object.defineProperty(QueryMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.QueryMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryMethodOptions.prototype,"__fqn__",{value:"wix.api.QueryMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),QueryMethodOptions}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.searchField?i.searchField=e.searchField:o&&(i.searchField=""),null!=e.cursorSearchField?i.cursorSearchField=e.cursorSearchField:o&&(i.cursorSearchField=""),null!=e.offsetSearchField?i.offsetSearchField=e.offsetSearchField:o&&(i.offsetSearchField=""),null!=e.itemsField?i.itemsField=e.itemsField:o&&(i.itemsField=""),null!=e.paging?i.paging=t.wix.api.Paging.toJSON(e.paging,n,o):o&&delete i.paging,null!=e.wql?i.wql=t.wix.api.Wql.toJSON(e.wql,n,o):o&&delete i.wql,null!=e.queryOptionsName?i.queryOptionsName=e.queryOptionsName:o&&delete i.queryOptionsName,null!=e.meAliasableField?i.meAliasableField=e.meAliasableField.map(e=>e):o&&(i.meAliasableField=[]),null!=e.search?i.search=e.search.map(e=>t.wix.api.Search.toJSON(e,n,o)):o&&(i.search=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.SearchMethodOptions;return null!=e.searchField?i.searchField=e.searchField:!1!==o?i.searchField="":delete i.searchField,null!=e.cursorSearchField?i.cursorSearchField=e.cursorSearchField:!1!==o?i.cursorSearchField="":delete i.cursorSearchField,null!=e.offsetSearchField?i.offsetSearchField=e.offsetSearchField:!1!==o?i.offsetSearchField="":delete i.offsetSearchField,null!=e.itemsField?i.itemsField=e.itemsField:!1!==o?i.itemsField="":delete i.itemsField,null!=e.paging?i.paging=t.wix.api.Paging.fromJSON(e.paging,n):delete i.paging,null!=e.wql?i.wql=t.wix.api.Wql.fromJSON(e.wql,n):delete i.wql,null!=e.queryOptionsName?i.queryOptionsName=e.queryOptionsName:delete i.queryOptionsName,null!=e.meAliasableField?i.meAliasableField=Array.isArray(e.meAliasableField)?e.meAliasableField.map(e=>e):e.meAliasableField:!1!==o?i.meAliasableField=[]:delete i.meAliasableField,null!=e.search?i.search=Array.isArray(e.search)?e.search.map(e=>t.wix.api.Search.fromJSON(e,n)):e.search:!1!==o?i.search=[]:delete i.search,i}}static toGRPC(e,n){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=t.wix.api.Paging.toGRPC(e.paging,n)),null!=e.wql&&(o.wql=t.wix.api.Wql.toGRPC(e.wql,n)),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=>t.wix.api.Search.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.wix.api.Paging.fromGRPC(e.paging,n):delete o.paging,null!=e.wql?o.wql=t.wix.api.Wql.fromGRPC(e.wql,n):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=>t.wix.api.Search.fromGRPC(e,n)):o.search=[],o}}}return e.Object.defineProperty(SearchMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.SearchMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(SearchMethodOptions.prototype,"__fqn__",{value:"wix.api.SearchMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(SearchMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(SearchMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),SearchMethodOptions}(),n.BulkCreateMethodOptions=function(){class BulkCreateMethodOptions{constructor(e){this.itemField=e&&e.itemField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:n&&(t.itemField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.BulkCreateMethodOptions;return null!=e.itemField?n.itemField=e.itemField:!1!==o?n.itemField="":delete n.itemField,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemField&&(t.itemField=e.itemField),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.BulkCreateMethodOptions;return null!=e.itemField?n.itemField=e.itemField:n.itemField="",n}}}return e.Object.defineProperty(BulkCreateMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.BulkCreateMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkCreateMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkCreateMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkCreateMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkCreateMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),BulkCreateMethodOptions}(),n.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,n){if(null==e)return null;{const t={};return null!=e.itemsField?t.itemsField=e.itemsField:n&&(t.itemsField=""),null!=e.itemField?t.itemField=e.itemField:n&&(t.itemField=""),null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:n&&(t.fieldmaskField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.BulkUpdateMethodOptions;return null!=e.itemsField?n.itemsField=e.itemsField:!1!==o?n.itemsField="":delete n.itemsField,null!=e.itemField?n.itemField=e.itemField:!1!==o?n.itemField="":delete n.itemField,null!=e.fieldmaskField?n.fieldmaskField=e.fieldmaskField:!1!==o?n.fieldmaskField="":delete n.fieldmaskField,n}}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,n){if(null==e)return null;{const n=new t.wix.api.BulkUpdateMethodOptions;return null!=e.itemsField?n.itemsField=e.itemsField:n.itemsField="",null!=e.itemField?n.itemField=e.itemField:n.itemField="",null!=e.fieldmaskField?n.fieldmaskField=e.fieldmaskField:n.fieldmaskField="",n}}}return e.Object.defineProperty(BulkUpdateMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.BulkUpdateMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpdateMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkUpdateMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpdateMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpdateMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),BulkUpdateMethodOptions}(),n.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,n){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:n&&(t.itemField=""),null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:n&&(t.fieldmaskField=""),null!=e.filterField?t.filterField=e.filterField:n&&(t.filterField=""),null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:n&&(t.queryOptionsName=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.BulkUpdateByFilterMethodOptions;return null!=e.itemField?n.itemField=e.itemField:!1!==o?n.itemField="":delete n.itemField,null!=e.fieldmaskField?n.fieldmaskField=e.fieldmaskField:!1!==o?n.fieldmaskField="":delete n.fieldmaskField,null!=e.filterField?n.filterField=e.filterField:!1!==o?n.filterField="":delete n.filterField,null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:!1!==o?n.queryOptionsName="":delete n.queryOptionsName,n}}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,n){if(null==e)return null;{const n=new t.wix.api.BulkUpdateByFilterMethodOptions;return null!=e.itemField?n.itemField=e.itemField:n.itemField="",null!=e.fieldmaskField?n.fieldmaskField=e.fieldmaskField:n.fieldmaskField="",null!=e.filterField?n.filterField=e.filterField:n.filterField="",null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:n.queryOptionsName="",n}}}return e.Object.defineProperty(BulkUpdateByFilterMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.BulkUpdateByFilterMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpdateByFilterMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkUpdateByFilterMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpdateByFilterMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpdateByFilterMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),BulkUpdateByFilterMethodOptions}(),n.BulkUpdateTagsMethodOptions=function(){class BulkUpdateTagsMethodOptions{constructor(e){this.idsField=e&&e.idsField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.idsField?t.idsField=e.idsField:n&&(t.idsField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.BulkUpdateTagsMethodOptions;return null!=e.idsField?n.idsField=e.idsField:!1!==o?n.idsField="":delete n.idsField,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.idsField&&(t.idsField=e.idsField),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.BulkUpdateTagsMethodOptions;return null!=e.idsField?n.idsField=e.idsField:n.idsField="",n}}}return e.Object.defineProperty(BulkUpdateTagsMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.BulkUpdateTagsMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpdateTagsMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkUpdateTagsMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpdateTagsMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpdateTagsMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),BulkUpdateTagsMethodOptions}(),n.BulkUpdateTagsByFilterMethodOptions=function(){class BulkUpdateTagsByFilterMethodOptions{constructor(e){this.filterField=e&&e.filterField,this.queryOptionsName=e&&e.queryOptionsName}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.filterField?t.filterField=e.filterField:n&&(t.filterField=""),null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:n&&(t.queryOptionsName=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.BulkUpdateTagsByFilterMethodOptions;return null!=e.filterField?n.filterField=e.filterField:!1!==o?n.filterField="":delete n.filterField,null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:!1!==o?n.queryOptionsName="":delete n.queryOptionsName,n}}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,n){if(null==e)return null;{const n=new t.wix.api.BulkUpdateTagsByFilterMethodOptions;return null!=e.filterField?n.filterField=e.filterField:n.filterField="",null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:n.queryOptionsName="",n}}}return e.Object.defineProperty(BulkUpdateTagsByFilterMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.BulkUpdateTagsByFilterMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpdateTagsByFilterMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkUpdateTagsByFilterMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpdateTagsByFilterMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpdateTagsByFilterMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),BulkUpdateTagsByFilterMethodOptions}(),n.BulkUpsertMethodOptions=function(){class BulkUpsertMethodOptions{constructor(e){this.itemField=e&&e.itemField,this.fieldmaskField=e&&e.fieldmaskField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:n&&(t.itemField=""),null!=e.fieldmaskField?t.fieldmaskField=e.fieldmaskField:n&&(t.fieldmaskField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.BulkUpsertMethodOptions;return null!=e.itemField?n.itemField=e.itemField:!1!==o?n.itemField="":delete n.itemField,null!=e.fieldmaskField?n.fieldmaskField=e.fieldmaskField:!1!==o?n.fieldmaskField="":delete n.fieldmaskField,n}}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,n){if(null==e)return null;{const n=new t.wix.api.BulkUpsertMethodOptions;return null!=e.itemField?n.itemField=e.itemField:n.itemField="",null!=e.fieldmaskField?n.fieldmaskField=e.fieldmaskField:n.fieldmaskField="",n}}}return e.Object.defineProperty(BulkUpsertMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.BulkUpsertMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpsertMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkUpsertMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpsertMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkUpsertMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),BulkUpsertMethodOptions}(),n.BulkDeleteMethodOptions=function(){class BulkDeleteMethodOptions{constructor(e){this.idsField=e&&e.idsField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.idsField?t.idsField=e.idsField:n&&(t.idsField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.BulkDeleteMethodOptions;return null!=e.idsField?n.idsField=e.idsField:!1!==o?n.idsField="":delete n.idsField,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.idsField&&(t.idsField=e.idsField),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.BulkDeleteMethodOptions;return null!=e.idsField?n.idsField=e.idsField:n.idsField="",n}}}return e.Object.defineProperty(BulkDeleteMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.BulkDeleteMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkDeleteMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkDeleteMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkDeleteMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkDeleteMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),BulkDeleteMethodOptions}(),n.BulkDeleteByFilterMethodOptions=function(){class BulkDeleteByFilterMethodOptions{constructor(e){this.filterField=e&&e.filterField,this.queryOptionsName=e&&e.queryOptionsName}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.filterField?t.filterField=e.filterField:n&&(t.filterField=""),null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:n&&(t.queryOptionsName=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.BulkDeleteByFilterMethodOptions;return null!=e.filterField?n.filterField=e.filterField:!1!==o?n.filterField="":delete n.filterField,null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:!1!==o?n.queryOptionsName="":delete n.queryOptionsName,n}}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,n){if(null==e)return null;{const n=new t.wix.api.BulkDeleteByFilterMethodOptions;return null!=e.filterField?n.filterField=e.filterField:n.filterField="",null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:n.queryOptionsName="",n}}}return e.Object.defineProperty(BulkDeleteByFilterMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.BulkDeleteByFilterMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkDeleteByFilterMethodOptions.prototype,"__fqn__",{value:"wix.api.BulkDeleteByFilterMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkDeleteByFilterMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkDeleteByFilterMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),BulkDeleteByFilterMethodOptions}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.idsField?i.idsField=e.idsField:o&&(i.idsField=""),null!=e.itemsField?i.itemsField=e.itemsField:o&&(i.itemsField=""),null!=e.paging?i.paging=t.wix.api.Paging.toJSON(e.paging,n,o):o&&delete i.paging,null!=e.meAliasableField?i.meAliasableField=e.meAliasableField.map(e=>e):o&&(i.meAliasableField=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.ListDeletedMethodOptions;return null!=e.idsField?i.idsField=e.idsField:!1!==o?i.idsField="":delete i.idsField,null!=e.itemsField?i.itemsField=e.itemsField:!1!==o?i.itemsField="":delete i.itemsField,null!=e.paging?i.paging=t.wix.api.Paging.fromJSON(e.paging,n):delete i.paging,null!=e.meAliasableField?i.meAliasableField=Array.isArray(e.meAliasableField)?e.meAliasableField.map(e=>e):e.meAliasableField:!1!==o?i.meAliasableField=[]:delete i.meAliasableField,i}}static toGRPC(e,n){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=t.wix.api.Paging.toGRPC(e.paging,n)),null!=e.meAliasableField&&(o.meAliasableField=e.meAliasableField.map(e=>e)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.wix.api.Paging.fromGRPC(e.paging,n):delete o.paging,null!=e.meAliasableField?o.meAliasableField=e.meAliasableField.map(e=>e):o.meAliasableField=[],o}}}return e.Object.defineProperty(ListDeletedMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.ListDeletedMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ListDeletedMethodOptions.prototype,"__fqn__",{value:"wix.api.ListDeletedMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(ListDeletedMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ListDeletedMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ListDeletedMethodOptions}(),n.GetDeletedMethodOptions=function(){class GetDeletedMethodOptions{constructor(e){this.itemField=e&&e.itemField,this.idField=e&&e.idField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:n&&(t.itemField=""),null!=e.idField?t.idField=e.idField:n&&(t.idField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.GetDeletedMethodOptions;return null!=e.itemField?n.itemField=e.itemField:!1!==o?n.itemField="":delete n.itemField,null!=e.idField?n.idField=e.idField:!1!==o?n.idField="":delete n.idField,n}}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,n){if(null==e)return null;{const n=new t.wix.api.GetDeletedMethodOptions;return null!=e.itemField?n.itemField=e.itemField:n.itemField="",null!=e.idField?n.idField=e.idField:n.idField="",n}}}return e.Object.defineProperty(GetDeletedMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.GetDeletedMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(GetDeletedMethodOptions.prototype,"__fqn__",{value:"wix.api.GetDeletedMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(GetDeletedMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(GetDeletedMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),GetDeletedMethodOptions}(),n.RestoreFromTrashbinMethodOptions=function(){class RestoreFromTrashbinMethodOptions{constructor(e){this.itemField=e&&e.itemField,this.idField=e&&e.idField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:n&&(t.itemField=""),null!=e.idField?t.idField=e.idField:n&&(t.idField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.RestoreFromTrashbinMethodOptions;return null!=e.itemField?n.itemField=e.itemField:!1!==o?n.itemField="":delete n.itemField,null!=e.idField?n.idField=e.idField:!1!==o?n.idField="":delete n.idField,n}}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,n){if(null==e)return null;{const n=new t.wix.api.RestoreFromTrashbinMethodOptions;return null!=e.itemField?n.itemField=e.itemField:n.itemField="",null!=e.idField?n.idField=e.idField:n.idField="",n}}}return e.Object.defineProperty(RestoreFromTrashbinMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.RestoreFromTrashbinMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(RestoreFromTrashbinMethodOptions.prototype,"__fqn__",{value:"wix.api.RestoreFromTrashbinMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(RestoreFromTrashbinMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(RestoreFromTrashbinMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),RestoreFromTrashbinMethodOptions}(),n.RemoveFromTrashbinMethodOptions=function(){class RemoveFromTrashbinMethodOptions{constructor(e){this.idField=e&&e.idField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.idField?t.idField=e.idField:n&&(t.idField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.RemoveFromTrashbinMethodOptions;return null!=e.idField?n.idField=e.idField:!1!==o?n.idField="":delete n.idField,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.idField&&(t.idField=e.idField),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.RemoveFromTrashbinMethodOptions;return null!=e.idField?n.idField=e.idField:n.idField="",n}}}return e.Object.defineProperty(RemoveFromTrashbinMethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.RemoveFromTrashbinMethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(RemoveFromTrashbinMethodOptions.prototype,"__fqn__",{value:"wix.api.RemoveFromTrashbinMethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(RemoveFromTrashbinMethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(RemoveFromTrashbinMethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),RemoveFromTrashbinMethodOptions}(),n.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,n){if(null==e)return null;{const t={};return null!=e.inheritWqlFrom?t.inheritWqlFrom=e.inheritWqlFrom:n&&delete t.inheritWqlFrom,null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:n&&delete t.queryOptionsName,null!=e.filterField?t.filterField=e.filterField:n&&(t.filterField=""),null!=e.countField?t.countField=e.countField:n&&(t.countField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.CountOptions;return null!=e.inheritWqlFrom?n.inheritWqlFrom=e.inheritWqlFrom:delete n.inheritWqlFrom,null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:delete n.queryOptionsName,null!=e.filterField?n.filterField=e.filterField:!1!==o?n.filterField="":delete n.filterField,null!=e.countField?n.countField=e.countField:!1!==o?n.countField="":delete n.countField,n}}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,n){if(null==e)return null;{const n=new t.wix.api.CountOptions;return null!=e.inheritWqlFrom?n.inheritWqlFrom=e.inheritWqlFrom:delete n.inheritWqlFrom,null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:delete n.queryOptionsName,null!=e.filterField?n.filterField=e.filterField:n.filterField="",null!=e.countField?n.countField=e.countField:n.countField="",n}}}return e.Object.defineProperty(CountOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.CountOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(CountOptions.prototype,"__fqn__",{value:"wix.api.CountOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(CountOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(CountOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),CountOptions}(),n.SearchRelatedOptions=function(){class SearchRelatedOptions{constructor(e){this.inheritWqlFrom=e&&e.inheritWqlFrom,this.queryOptionsName=e&&e.queryOptionsName}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.inheritWqlFrom?t.inheritWqlFrom=e.inheritWqlFrom:n&&delete t.inheritWqlFrom,null!=e.queryOptionsName?t.queryOptionsName=e.queryOptionsName:n&&delete t.queryOptionsName,t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.SearchRelatedOptions;return null!=e.inheritWqlFrom?n.inheritWqlFrom=e.inheritWqlFrom:delete n.inheritWqlFrom,null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:delete n.queryOptionsName,n}}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,n){if(null==e)return null;{const n=new t.wix.api.SearchRelatedOptions;return null!=e.inheritWqlFrom?n.inheritWqlFrom=e.inheritWqlFrom:delete n.inheritWqlFrom,null!=e.queryOptionsName?n.queryOptionsName=e.queryOptionsName:delete n.queryOptionsName,n}}}return e.Object.defineProperty(SearchRelatedOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.SearchRelatedOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(SearchRelatedOptions.prototype,"__fqn__",{value:"wix.api.SearchRelatedOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(SearchRelatedOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(SearchRelatedOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),SearchRelatedOptions}(),n.UpdateExtendedFieldsOptions=function(){class UpdateExtendedFieldsOptions{constructor(e){this.itemField=e&&e.itemField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.itemField?t.itemField=e.itemField:n&&(t.itemField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.UpdateExtendedFieldsOptions;return null!=e.itemField?n.itemField=e.itemField:!1!==o?n.itemField="":delete n.itemField,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.itemField&&(t.itemField=e.itemField),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.UpdateExtendedFieldsOptions;return null!=e.itemField?n.itemField=e.itemField:n.itemField="",n}}}return e.Object.defineProperty(UpdateExtendedFieldsOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.UpdateExtendedFieldsOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(UpdateExtendedFieldsOptions.prototype,"__fqn__",{value:"wix.api.UpdateExtendedFieldsOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(UpdateExtendedFieldsOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(UpdateExtendedFieldsOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),UpdateExtendedFieldsOptions}(),n.Wql=function(){class Wql{constructor(e){this.operatorFieldSupport=e&&e.operatorFieldSupport,this.pattern=e&&e.pattern,this.validateQuery=e&&e.validateQuery}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.operatorFieldSupport?i.operatorFieldSupport=e.operatorFieldSupport.map(e=>t.wix.api.Wql.OperatorFieldSupport.toJSON(e,n,o)):o&&(i.operatorFieldSupport=[]),null!=e.pattern?i.pattern=e.pattern.map(e=>t.wix.api.Wql.OperatorFieldSupport.toJSON(e,n,o)):o&&(i.pattern=[]),null!=e.validateQuery?i.validateQuery=e.validateQuery:o&&(i.validateQuery=!1),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.Wql;return null!=e.operatorFieldSupport?i.operatorFieldSupport=Array.isArray(e.operatorFieldSupport)?e.operatorFieldSupport.map(e=>t.wix.api.Wql.OperatorFieldSupport.fromJSON(e,n)):e.operatorFieldSupport:!1!==o?i.operatorFieldSupport=[]:delete i.operatorFieldSupport,null!=e.pattern?i.pattern=Array.isArray(e.pattern)?e.pattern.map(e=>t.wix.api.Wql.OperatorFieldSupport.fromJSON(e,n)):e.pattern:!1!==o?i.pattern=[]:delete i.pattern,null!=e.validateQuery?i.validateQuery=e.validateQuery:!1!==o?i.validateQuery=!1:delete i.validateQuery,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.operatorFieldSupport&&(o.operatorFieldSupport=e.operatorFieldSupport.map(e=>t.wix.api.Wql.OperatorFieldSupport.toGRPC(e,n))),null!=e.pattern&&(o.pattern=e.pattern.map(e=>t.wix.api.Wql.OperatorFieldSupport.toGRPC(e,n))),null!=e.validateQuery&&(o.validateQuery=e.validateQuery),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.api.Wql;return null!=e.operatorFieldSupport?o.operatorFieldSupport=e.operatorFieldSupport.map(e=>t.wix.api.Wql.OperatorFieldSupport.fromGRPC(e,n)):o.operatorFieldSupport=[],null!=e.pattern?o.pattern=e.pattern.map(e=>t.wix.api.Wql.OperatorFieldSupport.fromGRPC(e,n)):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,n,o){if(null==e)return null;{const i={};return null!=e.field?i.field=e.field.map(e=>e):o&&(i.field=[]),null!=e.requiredField?i.requiredField=e.requiredField.map(e=>t.wix.api.Wql.RequiredFields.RequiredField.toJSON(e,n,o)):o&&(i.requiredField=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.Wql.RequiredFields;return null!=e.field?i.field=Array.isArray(e.field)?e.field.map(e=>e):e.field:!1!==o?i.field=[]:delete i.field,null!=e.requiredField?i.requiredField=Array.isArray(e.requiredField)?e.requiredField.map(e=>t.wix.api.Wql.RequiredFields.RequiredField.fromJSON(e,n)):e.requiredField:!1!==o?i.requiredField=[]:delete i.requiredField,i}}static toGRPC(e,n){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=>t.wix.api.Wql.RequiredFields.RequiredField.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.wix.api.Wql.RequiredFields.RequiredField.fromGRPC(e,n)):o.requiredField=[],o}}}return RequiredFields.RequiredField=function(){class RequiredField{constructor(e){this.path=e&&e.path,this.sort=e&&e.sort}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.path?n.path=e.path:o&&(n.path=""),null!=e.sort?n.sort=t.wix.api.Wql.Sort[e.sort]:o&&(n.sort="NONE"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?n.path=e.path:!1!==o?n.path="":delete n.path,null!=e.sort?n.sort="string"==typeof e.sort?e.sort:t.wix.api.Wql.Sort[e.sort]:!1!==o?n.sort="NONE":delete n.sort,n}}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,n){if(null==e)return null;{const n=new t.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?n.path=e.path:n.path="",null!=e.sort?n.sort=e.sort:n.sort="NONE",n}}}return e.Object.defineProperty(RequiredField.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Wql.RequiredFields.RequiredField"),enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredField.prototype,"__fqn__",{value:"wix.api.Wql.RequiredFields.RequiredField",enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredField.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredField.prototype,"__root__",{value:t,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,n,o){if(null==e)return null;{const n={};return null!=e.path?n.path=e.path:o&&(n.path=""),null!=e.sort?n.sort=t.wix.api.Wql.Sort[e.sort]:o&&(n.sort="NONE"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?n.path=e.path:!1!==o?n.path="":delete n.path,null!=e.sort?n.sort="string"==typeof e.sort?e.sort:t.wix.api.Wql.Sort[e.sort]:!1!==o?n.sort="NONE":delete n.sort,n}}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,n){if(null==e)return null;{const n=new t.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?n.path=e.path:n.path="",null!=e.sort?n.sort=e.sort:n.sort="NONE",n}}}return e.Object.defineProperty(RequiredField.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Wql.RequiredFields.RequiredField"),enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredField.prototype,"__fqn__",{value:"wix.api.Wql.RequiredFields.RequiredField",enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredField.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredField.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),RequiredField}(),e.Object.defineProperty(RequiredFields.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Wql.RequiredFields"),enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredFields.prototype,"__fqn__",{value:"wix.api.Wql.RequiredFields",enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredFields.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredFields.prototype,"__root__",{value:t,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",DATE_TIME:"DATE_TIME",3:"DATE_TIME"},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,n,o){if(null==e)return null;{const i={};return null!=e.operator?i.operator=e.operator.map(e=>t.wix.api.Wql.Operator[e]):o&&(i.operator=[]),null!=e.glob?i.glob=e.glob:o&&(i.glob=""),null!=e.field?i.field=e.field.map(e=>e):o&&(i.field=[]),null!=e.sort?i.sort=t.wix.api.Wql.Sort[e.sort]:o&&(i.sort="NONE"),null!=e.requiredFields?i.requiredFields=e.requiredFields.map(e=>t.wix.api.Wql.RequiredFields.toJSON(e,n,o)):o&&(i.requiredFields=[]),null!=e.maturity?i.maturity=t.wix.api.Maturity[e.maturity]:o&&(i.maturity="ALPHA"),null!=e.virtualSubfields?i.virtualSubfields=t.wix.api.Wql.VirtualSubfields[e.virtualSubfields]:o&&(i.virtualSubfields="NO_VIRTUAL_SUBFIELDS"),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.Wql.OperatorFieldSupport;return null!=e.operator?i.operator=Array.isArray(e.operator)?e.operator.map(e=>"string"==typeof e?e:t.wix.api.Wql.Operator[e]):e.operator:!1!==o?i.operator=[]:delete i.operator,null!=e.glob?i.glob=e.glob:!1!==o?i.glob="":delete i.glob,null!=e.field?i.field=Array.isArray(e.field)?e.field.map(e=>e):e.field:!1!==o?i.field=[]:delete i.field,null!=e.sort?i.sort="string"==typeof e.sort?e.sort:t.wix.api.Wql.Sort[e.sort]:!1!==o?i.sort="NONE":delete i.sort,null!=e.requiredFields?i.requiredFields=Array.isArray(e.requiredFields)?e.requiredFields.map(e=>t.wix.api.Wql.RequiredFields.fromJSON(e,n)):e.requiredFields:!1!==o?i.requiredFields=[]:delete i.requiredFields,null!=e.maturity?i.maturity="string"==typeof e.maturity?e.maturity:t.wix.api.Maturity[e.maturity]:!1!==o?i.maturity="ALPHA":delete i.maturity,null!=e.virtualSubfields?i.virtualSubfields="string"==typeof e.virtualSubfields?e.virtualSubfields:t.wix.api.Wql.VirtualSubfields[e.virtualSubfields]:!1!==o?i.virtualSubfields="NO_VIRTUAL_SUBFIELDS":delete i.virtualSubfields,i}}static toGRPC(e,n){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=>t.wix.api.Wql.RequiredFields.toGRPC(e,n))),null!=e.maturity&&(o.maturity=e.maturity),null!=e.virtualSubfields&&(o.virtualSubfields=e.virtualSubfields),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.wix.api.Wql.RequiredFields.fromGRPC(e,n)):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 e.Object.defineProperty(OperatorFieldSupport.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Wql.OperatorFieldSupport"),enumerable:!1,configurable:!1}),e.Object.defineProperty(OperatorFieldSupport.prototype,"__fqn__",{value:"wix.api.Wql.OperatorFieldSupport",enumerable:!1,configurable:!1}),e.Object.defineProperty(OperatorFieldSupport.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(OperatorFieldSupport.prototype,"__root__",{value:t,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,n,o){if(null==e)return null;{const i={};return null!=e.field?i.field=e.field.map(e=>e):o&&(i.field=[]),null!=e.requiredField?i.requiredField=e.requiredField.map(e=>t.wix.api.Wql.RequiredFields.RequiredField.toJSON(e,n,o)):o&&(i.requiredField=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.Wql.RequiredFields;return null!=e.field?i.field=Array.isArray(e.field)?e.field.map(e=>e):e.field:!1!==o?i.field=[]:delete i.field,null!=e.requiredField?i.requiredField=Array.isArray(e.requiredField)?e.requiredField.map(e=>t.wix.api.Wql.RequiredFields.RequiredField.fromJSON(e,n)):e.requiredField:!1!==o?i.requiredField=[]:delete i.requiredField,i}}static toGRPC(e,n){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=>t.wix.api.Wql.RequiredFields.RequiredField.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.wix.api.Wql.RequiredFields.RequiredField.fromGRPC(e,n)):o.requiredField=[],o}}}return RequiredFields.RequiredField=function(){class RequiredField{constructor(e){this.path=e&&e.path,this.sort=e&&e.sort}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.path?n.path=e.path:o&&(n.path=""),null!=e.sort?n.sort=t.wix.api.Wql.Sort[e.sort]:o&&(n.sort="NONE"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?n.path=e.path:!1!==o?n.path="":delete n.path,null!=e.sort?n.sort="string"==typeof e.sort?e.sort:t.wix.api.Wql.Sort[e.sort]:!1!==o?n.sort="NONE":delete n.sort,n}}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,n){if(null==e)return null;{const n=new t.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?n.path=e.path:n.path="",null!=e.sort?n.sort=e.sort:n.sort="NONE",n}}}return e.Object.defineProperty(RequiredField.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Wql.RequiredFields.RequiredField"),enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredField.prototype,"__fqn__",{value:"wix.api.Wql.RequiredFields.RequiredField",enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredField.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredField.prototype,"__root__",{value:t,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,n,o){if(null==e)return null;{const n={};return null!=e.path?n.path=e.path:o&&(n.path=""),null!=e.sort?n.sort=t.wix.api.Wql.Sort[e.sort]:o&&(n.sort="NONE"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?n.path=e.path:!1!==o?n.path="":delete n.path,null!=e.sort?n.sort="string"==typeof e.sort?e.sort:t.wix.api.Wql.Sort[e.sort]:!1!==o?n.sort="NONE":delete n.sort,n}}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,n){if(null==e)return null;{const n=new t.wix.api.Wql.RequiredFields.RequiredField;return null!=e.path?n.path=e.path:n.path="",null!=e.sort?n.sort=e.sort:n.sort="NONE",n}}}return e.Object.defineProperty(RequiredField.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Wql.RequiredFields.RequiredField"),enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredField.prototype,"__fqn__",{value:"wix.api.Wql.RequiredFields.RequiredField",enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredField.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredField.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),RequiredField}(),e.Object.defineProperty(RequiredFields.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Wql.RequiredFields"),enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredFields.prototype,"__fqn__",{value:"wix.api.Wql.RequiredFields",enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredFields.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredFields.prototype,"__root__",{value:t,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",DATE_TIME:"DATE_TIME",3:"DATE_TIME"},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,n,o){if(null==e)return null;{const i={};return null!=e.operator?i.operator=e.operator.map(e=>t.wix.api.Wql.Operator[e]):o&&(i.operator=[]),null!=e.glob?i.glob=e.glob:o&&(i.glob=""),null!=e.field?i.field=e.field.map(e=>e):o&&(i.field=[]),null!=e.sort?i.sort=t.wix.api.Wql.Sort[e.sort]:o&&(i.sort="NONE"),null!=e.requiredFields?i.requiredFields=e.requiredFields.map(e=>t.wix.api.Wql.RequiredFields.toJSON(e,n,o)):o&&(i.requiredFields=[]),null!=e.maturity?i.maturity=t.wix.api.Maturity[e.maturity]:o&&(i.maturity="ALPHA"),null!=e.virtualSubfields?i.virtualSubfields=t.wix.api.Wql.VirtualSubfields[e.virtualSubfields]:o&&(i.virtualSubfields="NO_VIRTUAL_SUBFIELDS"),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.Wql.OperatorFieldSupport;return null!=e.operator?i.operator=Array.isArray(e.operator)?e.operator.map(e=>"string"==typeof e?e:t.wix.api.Wql.Operator[e]):e.operator:!1!==o?i.operator=[]:delete i.operator,null!=e.glob?i.glob=e.glob:!1!==o?i.glob="":delete i.glob,null!=e.field?i.field=Array.isArray(e.field)?e.field.map(e=>e):e.field:!1!==o?i.field=[]:delete i.field,null!=e.sort?i.sort="string"==typeof e.sort?e.sort:t.wix.api.Wql.Sort[e.sort]:!1!==o?i.sort="NONE":delete i.sort,null!=e.requiredFields?i.requiredFields=Array.isArray(e.requiredFields)?e.requiredFields.map(e=>t.wix.api.Wql.RequiredFields.fromJSON(e,n)):e.requiredFields:!1!==o?i.requiredFields=[]:delete i.requiredFields,null!=e.maturity?i.maturity="string"==typeof e.maturity?e.maturity:t.wix.api.Maturity[e.maturity]:!1!==o?i.maturity="ALPHA":delete i.maturity,null!=e.virtualSubfields?i.virtualSubfields="string"==typeof e.virtualSubfields?e.virtualSubfields:t.wix.api.Wql.VirtualSubfields[e.virtualSubfields]:!1!==o?i.virtualSubfields="NO_VIRTUAL_SUBFIELDS":delete i.virtualSubfields,i}}static toGRPC(e,n){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=>t.wix.api.Wql.RequiredFields.toGRPC(e,n))),null!=e.maturity&&(o.maturity=e.maturity),null!=e.virtualSubfields&&(o.virtualSubfields=e.virtualSubfields),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.wix.api.Wql.RequiredFields.fromGRPC(e,n)):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 e.Object.defineProperty(OperatorFieldSupport.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Wql.OperatorFieldSupport"),enumerable:!1,configurable:!1}),e.Object.defineProperty(OperatorFieldSupport.prototype,"__fqn__",{value:"wix.api.Wql.OperatorFieldSupport",enumerable:!1,configurable:!1}),e.Object.defineProperty(OperatorFieldSupport.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(OperatorFieldSupport.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),OperatorFieldSupport}(),e.Object.defineProperty(Wql.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Wql"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Wql.prototype,"__fqn__",{value:"wix.api.Wql",enumerable:!1,configurable:!1}),e.Object.defineProperty(Wql.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Wql.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Wql}(),n.Search=function(){class Search{constructor(e){this.field=e&&e.field,this.maturity=e&&e.maturity}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.field?n.field=e.field.map(e=>e):o&&(n.field=[]),null!=e.maturity?n.maturity=t.wix.api.Maturity[e.maturity]:o&&(n.maturity="ALPHA"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Search;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.maturity?n.maturity="string"==typeof e.maturity?e.maturity:t.wix.api.Maturity[e.maturity]:!1!==o?n.maturity="ALPHA":delete n.maturity,n}}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,n){if(null==e)return null;{const n=new t.wix.api.Search;return null!=e.field?n.field=e.field.map(e=>e):n.field=[],null!=e.maturity?n.maturity=e.maturity:n.maturity="ALPHA",n}}}return e.Object.defineProperty(Search.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Search"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Search.prototype,"__fqn__",{value:"wix.api.Search",enumerable:!1,configurable:!1}),e.Object.defineProperty(Search.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Search.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Search}(),n.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,n,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.hidden?n.hidden=e.hidden:o&&(n.hidden=!1),null!=e.grouping?n.grouping=e.grouping:o&&(n.grouping=""),null!=e.type?n.type=t.wix.api.Translatable.Type[e.type]:o&&(n.type="UNDEFINED_TYPE"),null!=e.displayOnly?n.displayOnly=e.displayOnly:o&&(n.displayOnly=!1),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Translatable;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.hidden?n.hidden=e.hidden:!1!==o?n.hidden=!1:delete n.hidden,null!=e.grouping?n.grouping=e.grouping:!1!==o?n.grouping="":delete n.grouping,null!=e.type?n.type="string"==typeof e.type?e.type:t.wix.api.Translatable.Type[e.type]:!1!==o?n.type="UNDEFINED_TYPE":delete n.type,null!=e.displayOnly?n.displayOnly=e.displayOnly:!1!==o?n.displayOnly=!1:delete n.displayOnly,n}}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,n){if(null==e)return null;{const n=new t.wix.api.Translatable;return null!=e.name?n.name=e.name:n.name="",null!=e.hidden?n.hidden=e.hidden:n.hidden=!1,null!=e.grouping?n.grouping=e.grouping:n.grouping="",null!=e.type?n.type=e.type:n.type="UNDEFINED_TYPE",null!=e.displayOnly?n.displayOnly=e.displayOnly:n.displayOnly=!1,n}}}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"},e.Object.defineProperty(Translatable.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Translatable"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Translatable.prototype,"__fqn__",{value:"wix.api.Translatable",enumerable:!1,configurable:!1}),e.Object.defineProperty(Translatable.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Translatable.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Translatable}(),n.Conditional=function(){class Conditional{constructor(e){this.permission=e&&e.permission,this.requestedField=e&&e.requestedField}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.permission?t.permission=e.permission:n&&(t.permission=""),null!=e.requestedField?t.requestedField=e.requestedField:n&&(t.requestedField=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Conditional;return null!=e.permission?n.permission=e.permission:!1!==o?n.permission="":delete n.permission,null!=e.requestedField?n.requestedField=e.requestedField:!1!==o?n.requestedField="":delete n.requestedField,n}}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,n){if(null==e)return null;{const n=new t.wix.api.Conditional;return null!=e.permission?n.permission=e.permission:n.permission="",null!=e.requestedField?n.requestedField=e.requestedField:n.requestedField="",n}}}return e.Object.defineProperty(Conditional.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Conditional"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Conditional.prototype,"__fqn__",{value:"wix.api.Conditional",enumerable:!1,configurable:!1}),e.Object.defineProperty(Conditional.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Conditional.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Conditional}(),n.ServiceAppendix=function(){class ServiceAppendix{constructor(e){this.type=e&&e.type,this.path=e&&e.path}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.type?n.type=t.wix.api.ServiceAppendix.Type[e.type]:o&&(n.type="UNKNOWN_APPENDIX_TYPE"),null!=e.path?n.path=e.path:o&&(n.path=""),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.ServiceAppendix;return null!=e.type?n.type="string"==typeof e.type?e.type:t.wix.api.ServiceAppendix.Type[e.type]:!1!==o?n.type="UNKNOWN_APPENDIX_TYPE":delete n.type,null!=e.path?n.path=e.path:!1!==o?n.path="":delete n.path,n}}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,n){if(null==e)return null;{const n=new t.wix.api.ServiceAppendix;return null!=e.type?n.type=e.type:n.type="UNKNOWN_APPENDIX_TYPE",null!=e.path?n.path=e.path:n.path="",n}}}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"},e.Object.defineProperty(ServiceAppendix.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.ServiceAppendix"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceAppendix.prototype,"__fqn__",{value:"wix.api.ServiceAppendix",enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceAppendix.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceAppendix.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ServiceAppendix}(),n.Exposure={PRIVATE:"PRIVATE",0:"PRIVATE",INTERNAL:"INTERNAL",1:"INTERNAL",PUBLIC:"PUBLIC",2:"PUBLIC"},n.Maturity={ALPHA:"ALPHA",0:"ALPHA",BETA:"BETA",1:"BETA",IA:"IA",2:"IA",GA:"GA",3:"GA",NOT_IMPLEMENTED:"NOT_IMPLEMENTED",4:"NOT_IMPLEMENTED"},n.Audience=function(){class Audience{constructor(e){this.uou=e&&e.uou,this.apps=e&&e.apps,this.users=e&&e.users,this.boUsers=e&&e.boUsers,this.anonymous=e&&e.anonymous}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.uou?i.uou=t.wix.api.Audience.Uou.toJSON(e.uou,n,o):o&&delete i.uou,null!=e.apps?i.apps=t.wix.api.Audience.Apps.toJSON(e.apps,n,o):o&&delete i.apps,null!=e.users?i.users=t.wix.api.Audience.Users.toJSON(e.users,n,o):o&&delete i.users,null!=e.boUsers?i.boUsers=t.wix.api.Audience.BoUsers.toJSON(e.boUsers,n,o):o&&delete i.boUsers,null!=e.anonymous?i.anonymous=t.wix.api.Audience.Anonymous.toJSON(e.anonymous,n,o):o&&delete i.anonymous,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.api.Audience;return null!=e.uou?o.uou=t.wix.api.Audience.Uou.fromJSON(e.uou,n):delete o.uou,null!=e.apps?o.apps=t.wix.api.Audience.Apps.fromJSON(e.apps,n):delete o.apps,null!=e.users?o.users=t.wix.api.Audience.Users.fromJSON(e.users,n):delete o.users,null!=e.boUsers?o.boUsers=t.wix.api.Audience.BoUsers.fromJSON(e.boUsers,n):delete o.boUsers,null!=e.anonymous?o.anonymous=t.wix.api.Audience.Anonymous.fromJSON(e.anonymous,n):delete o.anonymous,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.uou&&(o.uou=t.wix.api.Audience.Uou.toGRPC(e.uou,n)),null!=e.apps&&(o.apps=t.wix.api.Audience.Apps.toGRPC(e.apps,n)),null!=e.users&&(o.users=t.wix.api.Audience.Users.toGRPC(e.users,n)),null!=e.boUsers&&(o.boUsers=t.wix.api.Audience.BoUsers.toGRPC(e.boUsers,n)),null!=e.anonymous&&(o.anonymous=t.wix.api.Audience.Anonymous.toGRPC(e.anonymous,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.api.Audience;return null!=e.uou?o.uou=t.wix.api.Audience.Uou.fromGRPC(e.uou,n):delete o.uou,null!=e.apps?o.apps=t.wix.api.Audience.Apps.fromGRPC(e.apps,n):delete o.apps,null!=e.users?o.users=t.wix.api.Audience.Users.fromGRPC(e.users,n):delete o.users,null!=e.boUsers?o.boUsers=t.wix.api.Audience.BoUsers.fromGRPC(e.boUsers,n):delete o.boUsers,null!=e.anonymous?o.anonymous=t.wix.api.Audience.Anonymous.fromGRPC(e.anonymous,n):delete o.anonymous,o}}}return Audience.Uou=function(){class Uou{constructor(e){this.access=e&&e.access}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.access?n.access=t.wix.api.Audience.Uou.Access[e.access]:o&&(n.access="NOT_ALLOWED"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Audience.Uou;return null!=e.access?n.access="string"==typeof e.access?e.access:t.wix.api.Audience.Uou.Access[e.access]:!1!==o?n.access="NOT_ALLOWED":delete n.access,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.access&&(t.access=e.access),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Audience.Uou;return null!=e.access?n.access=e.access:n.access="NOT_ALLOWED",n}}}return Uou.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",MEMBER_ONLY:"MEMBER_ONLY",1:"MEMBER_ONLY",MEMBERS_AND_VISITORS:"MEMBERS_AND_VISITORS",2:"MEMBERS_AND_VISITORS"},Uou.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",MEMBER_ONLY:"MEMBER_ONLY",1:"MEMBER_ONLY",MEMBERS_AND_VISITORS:"MEMBERS_AND_VISITORS",2:"MEMBERS_AND_VISITORS"},e.Object.defineProperty(Uou.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Audience.Uou"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Uou.prototype,"__fqn__",{value:"wix.api.Audience.Uou",enumerable:!1,configurable:!1}),e.Object.defineProperty(Uou.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Uou.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Uou}(),Audience.Apps=function(){class Apps{constructor(e){this.access=e&&e.access}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.access?n.access=t.wix.api.Audience.Apps.Access[e.access]:o&&(n.access="NOT_ALLOWED"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Audience.Apps;return null!=e.access?n.access="string"==typeof e.access?e.access:t.wix.api.Audience.Apps.Access[e.access]:!1!==o?n.access="NOT_ALLOWED":delete n.access,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.access&&(t.access=e.access),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Audience.Apps;return null!=e.access?n.access=e.access:n.access="NOT_ALLOWED",n}}}return Apps.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",WIX_APPS_ONLY:"WIX_APPS_ONLY",1:"WIX_APPS_ONLY",WIX_AND_PUBLIC_APPS:"WIX_AND_PUBLIC_APPS",2:"WIX_AND_PUBLIC_APPS"},Apps.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",WIX_APPS_ONLY:"WIX_APPS_ONLY",1:"WIX_APPS_ONLY",WIX_AND_PUBLIC_APPS:"WIX_AND_PUBLIC_APPS",2:"WIX_AND_PUBLIC_APPS"},e.Object.defineProperty(Apps.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Audience.Apps"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Apps.prototype,"__fqn__",{value:"wix.api.Audience.Apps",enumerable:!1,configurable:!1}),e.Object.defineProperty(Apps.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Apps.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Apps}(),Audience.Users=function(){class Users{constructor(e){this.access=e&&e.access}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.access?n.access=t.wix.api.Audience.Users.Access[e.access]:o&&(n.access="NOT_ALLOWED"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Audience.Users;return null!=e.access?n.access="string"==typeof e.access?e.access:t.wix.api.Audience.Users.Access[e.access]:!1!==o?n.access="NOT_ALLOWED":delete n.access,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.access&&(t.access=e.access),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Audience.Users;return null!=e.access?n.access=e.access:n.access="NOT_ALLOWED",n}}}return Users.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",ALLOWED:"ALLOWED",2:"ALLOWED"},Users.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",ALLOWED:"ALLOWED",2:"ALLOWED"},e.Object.defineProperty(Users.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Audience.Users"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Users.prototype,"__fqn__",{value:"wix.api.Audience.Users",enumerable:!1,configurable:!1}),e.Object.defineProperty(Users.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Users.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Users}(),Audience.BoUsers=function(){class BoUsers{constructor(e){this.access=e&&e.access}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.access?n.access=t.wix.api.Audience.BoUsers.Access[e.access]:o&&(n.access="NOT_ALLOWED"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Audience.BoUsers;return null!=e.access?n.access="string"==typeof e.access?e.access:t.wix.api.Audience.BoUsers.Access[e.access]:!1!==o?n.access="NOT_ALLOWED":delete n.access,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.access&&(t.access=e.access),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Audience.BoUsers;return null!=e.access?n.access=e.access:n.access="NOT_ALLOWED",n}}}return BoUsers.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",ALLOWED:"ALLOWED",1:"ALLOWED"},BoUsers.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",ALLOWED:"ALLOWED",1:"ALLOWED"},e.Object.defineProperty(BoUsers.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Audience.BoUsers"),enumerable:!1,configurable:!1}),e.Object.defineProperty(BoUsers.prototype,"__fqn__",{value:"wix.api.Audience.BoUsers",enumerable:!1,configurable:!1}),e.Object.defineProperty(BoUsers.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(BoUsers.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),BoUsers}(),Audience.Anonymous=function(){class Anonymous{constructor(e){this.access=e&&e.access}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.access?n.access=t.wix.api.Audience.Anonymous.Access[e.access]:o&&(n.access="NOT_ALLOWED"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Audience.Anonymous;return null!=e.access?n.access="string"==typeof e.access?e.access:t.wix.api.Audience.Anonymous.Access[e.access]:!1!==o?n.access="NOT_ALLOWED":delete n.access,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.access&&(t.access=e.access),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Audience.Anonymous;return null!=e.access?n.access=e.access:n.access="NOT_ALLOWED",n}}}return Anonymous.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",ALLOWED:"ALLOWED",1:"ALLOWED"},Anonymous.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",ALLOWED:"ALLOWED",1:"ALLOWED"},e.Object.defineProperty(Anonymous.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Audience.Anonymous"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Anonymous.prototype,"__fqn__",{value:"wix.api.Audience.Anonymous",enumerable:!1,configurable:!1}),e.Object.defineProperty(Anonymous.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Anonymous.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Anonymous}(),Audience.Uou=function(){class Uou{constructor(e){this.access=e&&e.access}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.access?n.access=t.wix.api.Audience.Uou.Access[e.access]:o&&(n.access="NOT_ALLOWED"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Audience.Uou;return null!=e.access?n.access="string"==typeof e.access?e.access:t.wix.api.Audience.Uou.Access[e.access]:!1!==o?n.access="NOT_ALLOWED":delete n.access,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.access&&(t.access=e.access),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Audience.Uou;return null!=e.access?n.access=e.access:n.access="NOT_ALLOWED",n}}}return Uou.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",MEMBER_ONLY:"MEMBER_ONLY",1:"MEMBER_ONLY",MEMBERS_AND_VISITORS:"MEMBERS_AND_VISITORS",2:"MEMBERS_AND_VISITORS"},Uou.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",MEMBER_ONLY:"MEMBER_ONLY",1:"MEMBER_ONLY",MEMBERS_AND_VISITORS:"MEMBERS_AND_VISITORS",2:"MEMBERS_AND_VISITORS"},e.Object.defineProperty(Uou.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Audience.Uou"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Uou.prototype,"__fqn__",{value:"wix.api.Audience.Uou",enumerable:!1,configurable:!1}),e.Object.defineProperty(Uou.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Uou.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Uou}(),Audience.Apps=function(){class Apps{constructor(e){this.access=e&&e.access}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.access?n.access=t.wix.api.Audience.Apps.Access[e.access]:o&&(n.access="NOT_ALLOWED"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Audience.Apps;return null!=e.access?n.access="string"==typeof e.access?e.access:t.wix.api.Audience.Apps.Access[e.access]:!1!==o?n.access="NOT_ALLOWED":delete n.access,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.access&&(t.access=e.access),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Audience.Apps;return null!=e.access?n.access=e.access:n.access="NOT_ALLOWED",n}}}return Apps.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",WIX_APPS_ONLY:"WIX_APPS_ONLY",1:"WIX_APPS_ONLY",WIX_AND_PUBLIC_APPS:"WIX_AND_PUBLIC_APPS",2:"WIX_AND_PUBLIC_APPS"},Apps.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",WIX_APPS_ONLY:"WIX_APPS_ONLY",1:"WIX_APPS_ONLY",WIX_AND_PUBLIC_APPS:"WIX_AND_PUBLIC_APPS",2:"WIX_AND_PUBLIC_APPS"},e.Object.defineProperty(Apps.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Audience.Apps"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Apps.prototype,"__fqn__",{value:"wix.api.Audience.Apps",enumerable:!1,configurable:!1}),e.Object.defineProperty(Apps.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Apps.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Apps}(),Audience.Users=function(){class Users{constructor(e){this.access=e&&e.access}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.access?n.access=t.wix.api.Audience.Users.Access[e.access]:o&&(n.access="NOT_ALLOWED"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Audience.Users;return null!=e.access?n.access="string"==typeof e.access?e.access:t.wix.api.Audience.Users.Access[e.access]:!1!==o?n.access="NOT_ALLOWED":delete n.access,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.access&&(t.access=e.access),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Audience.Users;return null!=e.access?n.access=e.access:n.access="NOT_ALLOWED",n}}}return Users.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",ALLOWED:"ALLOWED",2:"ALLOWED"},Users.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",ALLOWED:"ALLOWED",2:"ALLOWED"},e.Object.defineProperty(Users.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Audience.Users"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Users.prototype,"__fqn__",{value:"wix.api.Audience.Users",enumerable:!1,configurable:!1}),e.Object.defineProperty(Users.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Users.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Users}(),Audience.BoUsers=function(){class BoUsers{constructor(e){this.access=e&&e.access}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.access?n.access=t.wix.api.Audience.BoUsers.Access[e.access]:o&&(n.access="NOT_ALLOWED"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Audience.BoUsers;return null!=e.access?n.access="string"==typeof e.access?e.access:t.wix.api.Audience.BoUsers.Access[e.access]:!1!==o?n.access="NOT_ALLOWED":delete n.access,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.access&&(t.access=e.access),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Audience.BoUsers;return null!=e.access?n.access=e.access:n.access="NOT_ALLOWED",n}}}return BoUsers.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",ALLOWED:"ALLOWED",1:"ALLOWED"},BoUsers.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",ALLOWED:"ALLOWED",1:"ALLOWED"},e.Object.defineProperty(BoUsers.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Audience.BoUsers"),enumerable:!1,configurable:!1}),e.Object.defineProperty(BoUsers.prototype,"__fqn__",{value:"wix.api.Audience.BoUsers",enumerable:!1,configurable:!1}),e.Object.defineProperty(BoUsers.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(BoUsers.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),BoUsers}(),Audience.Anonymous=function(){class Anonymous{constructor(e){this.access=e&&e.access}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.access?n.access=t.wix.api.Audience.Anonymous.Access[e.access]:o&&(n.access="NOT_ALLOWED"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Audience.Anonymous;return null!=e.access?n.access="string"==typeof e.access?e.access:t.wix.api.Audience.Anonymous.Access[e.access]:!1!==o?n.access="NOT_ALLOWED":delete n.access,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.access&&(t.access=e.access),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Audience.Anonymous;return null!=e.access?n.access=e.access:n.access="NOT_ALLOWED",n}}}return Anonymous.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",ALLOWED:"ALLOWED",1:"ALLOWED"},Anonymous.Access={NOT_ALLOWED:"NOT_ALLOWED",0:"NOT_ALLOWED",ALLOWED:"ALLOWED",1:"ALLOWED"},e.Object.defineProperty(Anonymous.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Audience.Anonymous"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Anonymous.prototype,"__fqn__",{value:"wix.api.Audience.Anonymous",enumerable:!1,configurable:!1}),e.Object.defineProperty(Anonymous.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Anonymous.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Anonymous}(),e.Object.defineProperty(Audience.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Audience"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Audience.prototype,"__fqn__",{value:"wix.api.Audience",enumerable:!1,configurable:!1}),e.Object.defineProperty(Audience.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Audience.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Audience}(),n.TenancyOptions=function(){class TenancyOptions{constructor(e){this.type=e&&e.type}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.type?n.type=t.wix.api.TenancyOptions.Type[e.type]:o&&(n.type="SITE"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.TenancyOptions;return null!=e.type?n.type="string"==typeof e.type?e.type:t.wix.api.TenancyOptions.Type[e.type]:!1!==o?n.type="SITE":delete n.type,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.TenancyOptions;return null!=e.type?n.type=e.type:n.type="SITE",n}}}return TenancyOptions.Type={SITE:"SITE",0:"SITE",ACCOUNT:"ACCOUNT",1:"ACCOUNT",ORGANIZATION:"ORGANIZATION",2:"ORGANIZATION",CUSTOM:"CUSTOM",3:"CUSTOM",INSTANCE:"INSTANCE",4:"INSTANCE"},TenancyOptions.Type={SITE:"SITE",0:"SITE",ACCOUNT:"ACCOUNT",1:"ACCOUNT",ORGANIZATION:"ORGANIZATION",2:"ORGANIZATION",CUSTOM:"CUSTOM",3:"CUSTOM",INSTANCE:"INSTANCE",4:"INSTANCE"},e.Object.defineProperty(TenancyOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.TenancyOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(TenancyOptions.prototype,"__fqn__",{value:"wix.api.TenancyOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(TenancyOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(TenancyOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),TenancyOptions}(),n.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,this.tenancy=e&&e.tenancy}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.topic?n.topic=e.topic:o&&(n.topic=""),null!=e.segment?n.segment=t.wix.api.Segment.SegmentName[e.segment]:o&&(n.segment="UNSPECIFIED"),null!=e.payload?n.payload=e.payload:o&&(n.payload=""),null!=e.permission?n.permission=e.permission:o&&(n.permission=""),null!=e.eventType?n.eventType=t.wix.api.Callback.EventType[e.eventType]:o&&(n.eventType="UNKNOWN"),null!=e.exposure?n.exposure=t.wix.api.Exposure[e.exposure]:o&&(n.exposure="PRIVATE"),null!=e.maturity?n.maturity=t.wix.api.Maturity[e.maturity]:o&&(n.maturity="ALPHA"),null!=e.tenancy?n.tenancy=t.wix.api.Tenancy[e.tenancy]:o&&(n.tenancy="SITE"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Callback;return null!=e.topic?n.topic=e.topic:!1!==o?n.topic="":delete n.topic,null!=e.segment?n.segment="string"==typeof e.segment?e.segment:t.wix.api.Segment.SegmentName[e.segment]:!1!==o?n.segment="UNSPECIFIED":delete n.segment,null!=e.payload?n.payload=e.payload:!1!==o?n.payload="":delete n.payload,null!=e.permission?n.permission=e.permission:!1!==o?n.permission="":delete n.permission,null!=e.eventType?n.eventType="string"==typeof e.eventType?e.eventType:t.wix.api.Callback.EventType[e.eventType]:!1!==o?n.eventType="UNKNOWN":delete n.eventType,null!=e.exposure?n.exposure="string"==typeof e.exposure?e.exposure:t.wix.api.Exposure[e.exposure]:!1!==o?n.exposure="PRIVATE":delete n.exposure,null!=e.maturity?n.maturity="string"==typeof e.maturity?e.maturity:t.wix.api.Maturity[e.maturity]:!1!==o?n.maturity="ALPHA":delete n.maturity,null!=e.tenancy?n.tenancy="string"==typeof e.tenancy?e.tenancy:t.wix.api.Tenancy[e.tenancy]:!1!==o?n.tenancy="SITE":delete n.tenancy,n}}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),null!=e.tenancy&&(t.tenancy=e.tenancy),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Callback;return null!=e.topic?n.topic=e.topic:n.topic="",null!=e.segment?n.segment=e.segment:n.segment="UNSPECIFIED",null!=e.payload?n.payload=e.payload:n.payload="",null!=e.permission?n.permission=e.permission:n.permission="",null!=e.eventType?n.eventType=e.eventType:n.eventType="UNKNOWN",null!=e.exposure?n.exposure=e.exposure:n.exposure="PRIVATE",null!=e.maturity?n.maturity=e.maturity:n.maturity="ALPHA",null!=e.tenancy?n.tenancy=e.tenancy:n.tenancy="SITE",n}}}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"},e.Object.defineProperty(Callback.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Callback"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Callback.prototype,"__fqn__",{value:"wix.api.Callback",enumerable:!1,configurable:!1}),e.Object.defineProperty(Callback.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Callback.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Callback}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.actionMessageFqn?i.actionMessageFqn=e.actionMessageFqn:o&&(i.actionMessageFqn=""),null!=e.webhookPermissionOverride?i.webhookPermissionOverride=e.webhookPermissionOverride:o&&(i.webhookPermissionOverride=""),null!=e.eventType?i.eventType=t.wix.api.DomainEvent.EventType[e.eventType]:o&&(i.eventType="UNKNOWN"),null!=e.exposure?i.exposure=t.wix.api.Exposure[e.exposure]:o&&(i.exposure="PRIVATE"),null!=e.maturity?i.maturity=t.wix.api.Maturity[e.maturity]:o&&(i.maturity="ALPHA"),null!=e.additionalMetadataFqn?i.additionalMetadataFqn=e.additionalMetadataFqn:o&&(i.additionalMetadataFqn=""),null!=e.deprecated?i.deprecated=t.wix.api.DomainEventDeprecation.toJSON(e.deprecated,n,o):o&&delete i.deprecated,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.DomainEvent;return null!=e.actionMessageFqn?i.actionMessageFqn=e.actionMessageFqn:!1!==o?i.actionMessageFqn="":delete i.actionMessageFqn,null!=e.webhookPermissionOverride?i.webhookPermissionOverride=e.webhookPermissionOverride:!1!==o?i.webhookPermissionOverride="":delete i.webhookPermissionOverride,null!=e.eventType?i.eventType="string"==typeof e.eventType?e.eventType:t.wix.api.DomainEvent.EventType[e.eventType]:!1!==o?i.eventType="UNKNOWN":delete i.eventType,null!=e.exposure?i.exposure="string"==typeof e.exposure?e.exposure:t.wix.api.Exposure[e.exposure]:!1!==o?i.exposure="PRIVATE":delete i.exposure,null!=e.maturity?i.maturity="string"==typeof e.maturity?e.maturity:t.wix.api.Maturity[e.maturity]:!1!==o?i.maturity="ALPHA":delete i.maturity,null!=e.additionalMetadataFqn?i.additionalMetadataFqn=e.additionalMetadataFqn:!1!==o?i.additionalMetadataFqn="":delete i.additionalMetadataFqn,null!=e.deprecated?i.deprecated=t.wix.api.DomainEventDeprecation.fromJSON(e.deprecated,n):delete i.deprecated,i}}static toGRPC(e,n){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=t.wix.api.DomainEventDeprecation.toGRPC(e.deprecated,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.wix.api.DomainEventDeprecation.fromGRPC(e.deprecated,n):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"},e.Object.defineProperty(DomainEvent.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.DomainEvent"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEvent.prototype,"__fqn__",{value:"wix.api.DomainEvent",enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEvent.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEvent.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DomainEvent}(),n.Emits=function(){class Emits{constructor(e){this.eventType=e&&e.eventType,this.actionMessageFqn=e&&e.actionMessageFqn}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.eventType?n.eventType=t.wix.api.DomainEvent.EventType[e.eventType]:o&&(n.eventType="UNKNOWN"),null!=e.actionMessageFqn?n.actionMessageFqn=e.actionMessageFqn:o&&(n.actionMessageFqn=""),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Emits;return null!=e.eventType?n.eventType="string"==typeof e.eventType?e.eventType:t.wix.api.DomainEvent.EventType[e.eventType]:!1!==o?n.eventType="UNKNOWN":delete n.eventType,null!=e.actionMessageFqn?n.actionMessageFqn=e.actionMessageFqn:!1!==o?n.actionMessageFqn="":delete n.actionMessageFqn,n}}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,n){if(null==e)return null;{const n=new t.wix.api.Emits;return null!=e.eventType?n.eventType=e.eventType:n.eventType="UNKNOWN",null!=e.actionMessageFqn?n.actionMessageFqn=e.actionMessageFqn:n.actionMessageFqn="",n}}}return e.Object.defineProperty(Emits.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Emits"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Emits.prototype,"__fqn__",{value:"wix.api.Emits",enumerable:!1,configurable:!1}),e.Object.defineProperty(Emits.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Emits.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Emits}(),n.DomainEventDeprecation=function(){class DomainEventDeprecation{constructor(e){this.replacedBy=e&&e.replacedBy,this.targetRemovalDate=e&&e.targetRemovalDate}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.replacedBy?t.replacedBy=e.replacedBy:n&&(t.replacedBy=""),null!=e.targetRemovalDate?t.targetRemovalDate=e.targetRemovalDate:n&&(t.targetRemovalDate=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.DomainEventDeprecation;return null!=e.replacedBy?n.replacedBy=e.replacedBy:!1!==o?n.replacedBy="":delete n.replacedBy,null!=e.targetRemovalDate?n.targetRemovalDate=e.targetRemovalDate:!1!==o?n.targetRemovalDate="":delete n.targetRemovalDate,n}}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,n){if(null==e)return null;{const n=new t.wix.api.DomainEventDeprecation;return null!=e.replacedBy?n.replacedBy=e.replacedBy:n.replacedBy="",null!=e.targetRemovalDate?n.targetRemovalDate=e.targetRemovalDate:n.targetRemovalDate="",n}}}return e.Object.defineProperty(DomainEventDeprecation.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.DomainEventDeprecation"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEventDeprecation.prototype,"__fqn__",{value:"wix.api.DomainEventDeprecation",enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEventDeprecation.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEventDeprecation.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DomainEventDeprecation}(),n.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,n,o){if(null==e)return null;{const n={};return null!=e.replacedBy?n.replacedBy=e.replacedBy:o&&(n.replacedBy=""),null!=e.targetRemovalDate?n.targetRemovalDate=e.targetRemovalDate:o&&(n.targetRemovalDate=""),null!=e.eventType?n.eventType=t.wix.api.Callback.EventType[e.eventType]:o&&(n.eventType="UNKNOWN"),null!=e.customSlug?n.customSlug=e.customSlug:o&&(n.customSlug=""),null!=e.payload?n.payload=e.payload:o&&(n.payload=""),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.CallbackDeprecation;return null!=e.replacedBy?n.replacedBy=e.replacedBy:!1!==o?n.replacedBy="":delete n.replacedBy,null!=e.targetRemovalDate?n.targetRemovalDate=e.targetRemovalDate:!1!==o?n.targetRemovalDate="":delete n.targetRemovalDate,null!=e.eventType?n.eventType="string"==typeof e.eventType?e.eventType:t.wix.api.Callback.EventType[e.eventType]:!1!==o?n.eventType="UNKNOWN":delete n.eventType,null!=e.customSlug?n.customSlug=e.customSlug:!1!==o?n.customSlug="":delete n.customSlug,null!=e.payload?n.payload=e.payload:!1!==o?n.payload="":delete n.payload,n}}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,n){if(null==e)return null;{const n=new t.wix.api.CallbackDeprecation;return null!=e.replacedBy?n.replacedBy=e.replacedBy:n.replacedBy="",null!=e.targetRemovalDate?n.targetRemovalDate=e.targetRemovalDate:n.targetRemovalDate="",null!=e.eventType?n.eventType=e.eventType:n.eventType="UNKNOWN",null!=e.customSlug?n.customSlug=e.customSlug:n.customSlug="",null!=e.payload?n.payload=e.payload:n.payload="",n}}}return e.Object.defineProperty(CallbackDeprecation.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.CallbackDeprecation"),enumerable:!1,configurable:!1}),e.Object.defineProperty(CallbackDeprecation.prototype,"__fqn__",{value:"wix.api.CallbackDeprecation",enumerable:!1,configurable:!1}),e.Object.defineProperty(CallbackDeprecation.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(CallbackDeprecation.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),CallbackDeprecation}(),n.Tenancy={SITE:"SITE",0:"SITE",ACCOUNT:"ACCOUNT",1:"ACCOUNT",GLOBAL:"GLOBAL",2:"GLOBAL"},n.Segment=function(){class Segment{constructor(e){}static toJSON(e,t,n){if(null==e)return null;return{}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;return new t.wix.api.Segment}static toGRPC(e,t){if(null==e)return null;return{}}static fromGRPC(e,n){if(null==e)return null;return new t.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"},e.Object.defineProperty(Segment.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Segment"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Segment.prototype,"__fqn__",{value:"wix.api.Segment",enumerable:!1,configurable:!1}),e.Object.defineProperty(Segment.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Segment.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Segment}(),n.ServiceEntity=function(){class ServiceEntity{constructor(e){this.message=e&&e.message,this.namespace=e&&e.namespace}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.message?t.message=e.message:n&&(t.message=""),null!=e.namespace?t.namespace=e.namespace:n&&(t.namespace=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.ServiceEntity;return null!=e.message?n.message=e.message:!1!==o?n.message="":delete n.message,null!=e.namespace?n.namespace=e.namespace:!1!==o?n.namespace="":delete n.namespace,n}}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,n){if(null==e)return null;{const n=new t.wix.api.ServiceEntity;return null!=e.message?n.message=e.message:n.message="",null!=e.namespace?n.namespace=e.namespace:n.namespace="",n}}}return e.Object.defineProperty(ServiceEntity.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.ServiceEntity"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceEntity.prototype,"__fqn__",{value:"wix.api.ServiceEntity",enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceEntity.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceEntity.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ServiceEntity}(),n.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,this.tenancy=e&&e.tenancy}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.fqdn?i.fqdn=e.fqdn:o&&(i.fqdn=""),null!=e.exposure?i.exposure=t.wix.api.Exposure[e.exposure]:o&&(i.exposure="PRIVATE"),null!=e.appendixFiles?i.appendixFiles=e.appendixFiles.map(e=>t.wix.api.MessageAppendix.toJSON(e,n,o)):o&&(i.appendixFiles=[]),null!=e.oldFqdnForBackwardsCompatibility?i.oldFqdnForBackwardsCompatibility=e.oldFqdnForBackwardsCompatibility:o&&(i.oldFqdnForBackwardsCompatibility=""),null!=e.segment?i.segment=t.wix.api.Segment.SegmentName[e.segment]:o&&(i.segment="UNSPECIFIED"),null!=e.implements?i.implements=e.implements.map(e=>e):o&&(i.implements=[]),null!=e.extensible?i.extensible=t.wix.api.Extensible.toJSON(e.extensible,n,o):o&&delete i.extensible,null!=e.trashbin?i.trashbin=e.trashbin:o&&(i.trashbin=!1),null!=e.plural?i.plural=e.plural:o&&(i.plural=""),null!=e.domainEventsReadPermission?i.domainEventsReadPermission=e.domainEventsReadPermission:o&&(i.domainEventsReadPermission=""),null!=e.appDefId?i.appDefId=e.appDefId:o&&(i.appDefId=""),null!=e.domainEvents?i.domainEvents=t.wix.api.DomainEventOptions.toJSON(e.domainEvents,n,o):o&&delete i.domainEvents,null!=e.taggable?i.taggable=t.wix.api.Taggable.toJSON(e.taggable,n,o):o&&delete i.taggable,null!=e.queryOptions?i.queryOptions=t.wix.api.QueryOptions.toJSON(e.queryOptions,n,o):o&&delete i.queryOptions,null!=e.eventsExposure?i.eventsExposure=t.wix.api.Exposure[e.eventsExposure]:o&&(i.eventsExposure="PRIVATE"),null!=e.eventsMaturity?i.eventsMaturity=t.wix.api.Maturity[e.eventsMaturity]:o&&(i.eventsMaturity="ALPHA"),null!=e.persistence?i.persistence=t.wix.api.Persistence.toJSON(e.persistence,n,o):o&&delete i.persistence,null!=e.permissionOptions?i.permissionOptions=t.wix.api.PermissionCatalogOptions.toJSON(e.permissionOptions,n,o):o&&delete i.permissionOptions,null!=e.tenancy?i.tenancy=t.wix.api.TenancyOptions.toJSON(e.tenancy,n,o):o&&delete i.tenancy,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.Entity;return null!=e.fqdn?i.fqdn=e.fqdn:!1!==o?i.fqdn="":delete i.fqdn,null!=e.exposure?i.exposure="string"==typeof e.exposure?e.exposure:t.wix.api.Exposure[e.exposure]:!1!==o?i.exposure="PRIVATE":delete i.exposure,null!=e.appendixFiles?i.appendixFiles=Array.isArray(e.appendixFiles)?e.appendixFiles.map(e=>t.wix.api.MessageAppendix.fromJSON(e,n)):e.appendixFiles:!1!==o?i.appendixFiles=[]:delete i.appendixFiles,null!=e.oldFqdnForBackwardsCompatibility?i.oldFqdnForBackwardsCompatibility=e.oldFqdnForBackwardsCompatibility:!1!==o?i.oldFqdnForBackwardsCompatibility="":delete i.oldFqdnForBackwardsCompatibility,null!=e.segment?i.segment="string"==typeof e.segment?e.segment:t.wix.api.Segment.SegmentName[e.segment]:!1!==o?i.segment="UNSPECIFIED":delete i.segment,null!=e.implements?i.implements=Array.isArray(e.implements)?e.implements.map(e=>e):e.implements:!1!==o?i.implements=[]:delete i.implements,null!=e.extensible?i.extensible=t.wix.api.Extensible.fromJSON(e.extensible,n):delete i.extensible,null!=e.trashbin?i.trashbin=e.trashbin:!1!==o?i.trashbin=!1:delete i.trashbin,null!=e.plural?i.plural=e.plural:!1!==o?i.plural="":delete i.plural,null!=e.domainEventsReadPermission?i.domainEventsReadPermission=e.domainEventsReadPermission:!1!==o?i.domainEventsReadPermission="":delete i.domainEventsReadPermission,null!=e.appDefId?i.appDefId=e.appDefId:!1!==o?i.appDefId="":delete i.appDefId,null!=e.domainEvents?i.domainEvents=t.wix.api.DomainEventOptions.fromJSON(e.domainEvents,n):delete i.domainEvents,null!=e.taggable?i.taggable=t.wix.api.Taggable.fromJSON(e.taggable,n):delete i.taggable,null!=e.queryOptions?i.queryOptions=t.wix.api.QueryOptions.fromJSON(e.queryOptions,n):delete i.queryOptions,null!=e.eventsExposure?i.eventsExposure="string"==typeof e.eventsExposure?e.eventsExposure:t.wix.api.Exposure[e.eventsExposure]:!1!==o?i.eventsExposure="PRIVATE":delete i.eventsExposure,null!=e.eventsMaturity?i.eventsMaturity="string"==typeof e.eventsMaturity?e.eventsMaturity:t.wix.api.Maturity[e.eventsMaturity]:!1!==o?i.eventsMaturity="ALPHA":delete i.eventsMaturity,null!=e.persistence?i.persistence=t.wix.api.Persistence.fromJSON(e.persistence,n):delete i.persistence,null!=e.permissionOptions?i.permissionOptions=t.wix.api.PermissionCatalogOptions.fromJSON(e.permissionOptions,n):delete i.permissionOptions,null!=e.tenancy?i.tenancy=t.wix.api.TenancyOptions.fromJSON(e.tenancy,n):delete i.tenancy,i}}static toGRPC(e,n){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=>t.wix.api.MessageAppendix.toGRPC(e,n))),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=t.wix.api.Extensible.toGRPC(e.extensible,n)),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=t.wix.api.DomainEventOptions.toGRPC(e.domainEvents,n)),null!=e.taggable&&(o.taggable=t.wix.api.Taggable.toGRPC(e.taggable,n)),null!=e.queryOptions&&(o.queryOptions=t.wix.api.QueryOptions.toGRPC(e.queryOptions,n)),null!=e.eventsExposure&&(o.eventsExposure=e.eventsExposure),null!=e.eventsMaturity&&(o.eventsMaturity=e.eventsMaturity),null!=e.persistence&&(o.persistence=t.wix.api.Persistence.toGRPC(e.persistence,n)),null!=e.permissionOptions&&(o.permissionOptions=t.wix.api.PermissionCatalogOptions.toGRPC(e.permissionOptions,n)),null!=e.tenancy&&(o.tenancy=t.wix.api.TenancyOptions.toGRPC(e.tenancy,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.wix.api.MessageAppendix.fromGRPC(e,n)):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=t.wix.api.Extensible.fromGRPC(e.extensible,n):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=t.wix.api.DomainEventOptions.fromGRPC(e.domainEvents,n):delete o.domainEvents,null!=e.taggable?o.taggable=t.wix.api.Taggable.fromGRPC(e.taggable,n):delete o.taggable,null!=e.queryOptions?o.queryOptions=t.wix.api.QueryOptions.fromGRPC(e.queryOptions,n):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=t.wix.api.Persistence.fromGRPC(e.persistence,n):delete o.persistence,null!=e.permissionOptions?o.permissionOptions=t.wix.api.PermissionCatalogOptions.fromGRPC(e.permissionOptions,n):delete o.permissionOptions,null!=e.tenancy?o.tenancy=t.wix.api.TenancyOptions.fromGRPC(e.tenancy,n):delete o.tenancy,o}}}return e.Object.defineProperty(Entity.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Entity"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Entity.prototype,"__fqn__",{value:"wix.api.Entity",enumerable:!1,configurable:!1}),e.Object.defineProperty(Entity.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Entity.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Entity}(),n.PermissionCatalogOptions=function(){class PermissionCatalogOptions{constructor(e){this.autoGeneratePermissions=e&&e.autoGeneratePermissions,this.autoGenerateScopes=e&&e.autoGenerateScopes}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.autoGeneratePermissions?t.autoGeneratePermissions=e.autoGeneratePermissions:n&&(t.autoGeneratePermissions=!1),null!=e.autoGenerateScopes?t.autoGenerateScopes=e.autoGenerateScopes:n&&(t.autoGenerateScopes=!1),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.PermissionCatalogOptions;return null!=e.autoGeneratePermissions?n.autoGeneratePermissions=e.autoGeneratePermissions:!1!==o?n.autoGeneratePermissions=!1:delete n.autoGeneratePermissions,null!=e.autoGenerateScopes?n.autoGenerateScopes=e.autoGenerateScopes:!1!==o?n.autoGenerateScopes=!1:delete n.autoGenerateScopes,n}}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,n){if(null==e)return null;{const n=new t.wix.api.PermissionCatalogOptions;return null!=e.autoGeneratePermissions?n.autoGeneratePermissions=e.autoGeneratePermissions:n.autoGeneratePermissions=!1,null!=e.autoGenerateScopes?n.autoGenerateScopes=e.autoGenerateScopes:n.autoGenerateScopes=!1,n}}}return e.Object.defineProperty(PermissionCatalogOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.PermissionCatalogOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(PermissionCatalogOptions.prototype,"__fqn__",{value:"wix.api.PermissionCatalogOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(PermissionCatalogOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(PermissionCatalogOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),PermissionCatalogOptions}(),n.Persistence=function(){class Persistence{constructor(e){this.type=e&&e.type}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.type?n.type=t.wix.api.Persistence.Type[e.type]:o&&(n.type="STANDARD"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Persistence;return null!=e.type?n.type="string"==typeof e.type?e.type:t.wix.api.Persistence.Type[e.type]:!1!==o?n.type="STANDARD":delete n.type,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Persistence;return null!=e.type?n.type=e.type:n.type="STANDARD",n}}}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"},e.Object.defineProperty(Persistence.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Persistence"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Persistence.prototype,"__fqn__",{value:"wix.api.Persistence",enumerable:!1,configurable:!1}),e.Object.defineProperty(Persistence.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Persistence.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Persistence}(),n.Extensible=function(){class Extensible{constructor(e){this.nestedExtensionFieldPath=e&&e.nestedExtensionFieldPath,this.filterable=e&&e.filterable,this.nestedExtensionPointMappings=e&&e.nestedExtensionPointMappings}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.nestedExtensionFieldPath?i.nestedExtensionFieldPath=e.nestedExtensionFieldPath:o&&(i.nestedExtensionFieldPath=""),null!=e.filterable?i.filterable=e.filterable:o&&(i.filterable=!1),null!=e.nestedExtensionPointMappings?i.nestedExtensionPointMappings=e.nestedExtensionPointMappings.map(e=>t.wix.api.NestedExtensionPointMapping.toJSON(e,n,o)):o&&(i.nestedExtensionPointMappings=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.Extensible;return null!=e.nestedExtensionFieldPath?i.nestedExtensionFieldPath=e.nestedExtensionFieldPath:!1!==o?i.nestedExtensionFieldPath="":delete i.nestedExtensionFieldPath,null!=e.filterable?i.filterable=e.filterable:!1!==o?i.filterable=!1:delete i.filterable,null!=e.nestedExtensionPointMappings?i.nestedExtensionPointMappings=Array.isArray(e.nestedExtensionPointMappings)?e.nestedExtensionPointMappings.map(e=>t.wix.api.NestedExtensionPointMapping.fromJSON(e,n)):e.nestedExtensionPointMappings:!1!==o?i.nestedExtensionPointMappings=[]:delete i.nestedExtensionPointMappings,i}}static toGRPC(e,n){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=>t.wix.api.NestedExtensionPointMapping.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.wix.api.NestedExtensionPointMapping.fromGRPC(e,n)):o.nestedExtensionPointMappings=[],o}}}return e.Object.defineProperty(Extensible.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Extensible"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Extensible.prototype,"__fqn__",{value:"wix.api.Extensible",enumerable:!1,configurable:!1}),e.Object.defineProperty(Extensible.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Extensible.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Extensible}(),n.NestedExtensionPointMapping=function(){class NestedExtensionPointMapping{constructor(e){this.extensionPoint=e&&e.extensionPoint,this.path=e&&e.path}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.extensionPoint?t.extensionPoint=e.extensionPoint:n&&(t.extensionPoint=""),null!=e.path?t.path=e.path:n&&(t.path=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.NestedExtensionPointMapping;return null!=e.extensionPoint?n.extensionPoint=e.extensionPoint:!1!==o?n.extensionPoint="":delete n.extensionPoint,null!=e.path?n.path=e.path:!1!==o?n.path="":delete n.path,n}}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,n){if(null==e)return null;{const n=new t.wix.api.NestedExtensionPointMapping;return null!=e.extensionPoint?n.extensionPoint=e.extensionPoint:n.extensionPoint="",null!=e.path?n.path=e.path:n.path="",n}}}return e.Object.defineProperty(NestedExtensionPointMapping.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.NestedExtensionPointMapping"),enumerable:!1,configurable:!1}),e.Object.defineProperty(NestedExtensionPointMapping.prototype,"__fqn__",{value:"wix.api.NestedExtensionPointMapping",enumerable:!1,configurable:!1}),e.Object.defineProperty(NestedExtensionPointMapping.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(NestedExtensionPointMapping.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),NestedExtensionPointMapping}(),n.MessageAppendix=function(){class MessageAppendix{constructor(e){this.type=e&&e.type,this.path=e&&e.path}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.type?n.type=t.wix.api.MessageAppendix.Type[e.type]:o&&(n.type="UNKNOWN_APPENDIX_TYPE"),null!=e.path?n.path=e.path:o&&(n.path=""),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.MessageAppendix;return null!=e.type?n.type="string"==typeof e.type?e.type:t.wix.api.MessageAppendix.Type[e.type]:!1!==o?n.type="UNKNOWN_APPENDIX_TYPE":delete n.type,null!=e.path?n.path=e.path:!1!==o?n.path="":delete n.path,n}}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,n){if(null==e)return null;{const n=new t.wix.api.MessageAppendix;return null!=e.type?n.type=e.type:n.type="UNKNOWN_APPENDIX_TYPE",null!=e.path?n.path=e.path:n.path="",n}}}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"},e.Object.defineProperty(MessageAppendix.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.MessageAppendix"),enumerable:!1,configurable:!1}),e.Object.defineProperty(MessageAppendix.prototype,"__fqn__",{value:"wix.api.MessageAppendix",enumerable:!1,configurable:!1}),e.Object.defineProperty(MessageAppendix.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(MessageAppendix.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),MessageAppendix}(),n.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,n){if(null==e)return null;{const t={};return null!=e.eventSequenceNumber?t.eventSequenceNumber=e.eventSequenceNumber:n&&(t.eventSequenceNumber=!1),null!=e.deletedIncludeEntity?t.deletedIncludeEntity=e.deletedIncludeEntity:n&&(t.deletedIncludeEntity=!1),null!=e.updatedIncludeModifiedFields?t.updatedIncludeModifiedFields=e.updatedIncludeModifiedFields:n&&(t.updatedIncludeModifiedFields=!1),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.DomainEventOptions;return null!=e.eventSequenceNumber?n.eventSequenceNumber=e.eventSequenceNumber:!1!==o?n.eventSequenceNumber=!1:delete n.eventSequenceNumber,null!=e.deletedIncludeEntity?n.deletedIncludeEntity=e.deletedIncludeEntity:!1!==o?n.deletedIncludeEntity=!1:delete n.deletedIncludeEntity,null!=e.updatedIncludeModifiedFields?n.updatedIncludeModifiedFields=e.updatedIncludeModifiedFields:!1!==o?n.updatedIncludeModifiedFields=!1:delete n.updatedIncludeModifiedFields,n}}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,n){if(null==e)return null;{const n=new t.wix.api.DomainEventOptions;return null!=e.eventSequenceNumber?n.eventSequenceNumber=e.eventSequenceNumber:n.eventSequenceNumber=!1,null!=e.deletedIncludeEntity?n.deletedIncludeEntity=e.deletedIncludeEntity:n.deletedIncludeEntity=!1,null!=e.updatedIncludeModifiedFields?n.updatedIncludeModifiedFields=e.updatedIncludeModifiedFields:n.updatedIncludeModifiedFields=!1,n}}}return e.Object.defineProperty(DomainEventOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.DomainEventOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEventOptions.prototype,"__fqn__",{value:"wix.api.DomainEventOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEventOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEventOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DomainEventOptions}(),n.Taggable=function(){class Taggable{constructor(e){}static toJSON(e,t,n){if(null==e)return null;return{}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;return new t.wix.api.Taggable}static toGRPC(e,t){if(null==e)return null;return{}}static fromGRPC(e,n){if(null==e)return null;return new t.wix.api.Taggable}}return e.Object.defineProperty(Taggable.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Taggable"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Taggable.prototype,"__fqn__",{value:"wix.api.Taggable",enumerable:!1,configurable:!1}),e.Object.defineProperty(Taggable.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Taggable.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Taggable}(),n.QueryOptions=function(){class QueryOptions{constructor(e){this.wql=e&&e.wql,this.search=e&&e.search,this.additionalQueryOptions=e&&e.additionalQueryOptions}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.wql?i.wql=t.wix.api.Wql.toJSON(e.wql,n,o):o&&delete i.wql,null!=e.search?i.search=e.search.map(e=>t.wix.api.Search.toJSON(e,n,o)):o&&(i.search=[]),null!=e.additionalQueryOptions?i.additionalQueryOptions=e.additionalQueryOptions.map(e=>t.wix.api.NamedQueryOptions.toJSON(e,n,o)):o&&(i.additionalQueryOptions=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.QueryOptions;return null!=e.wql?i.wql=t.wix.api.Wql.fromJSON(e.wql,n):delete i.wql,null!=e.search?i.search=Array.isArray(e.search)?e.search.map(e=>t.wix.api.Search.fromJSON(e,n)):e.search:!1!==o?i.search=[]:delete i.search,null!=e.additionalQueryOptions?i.additionalQueryOptions=Array.isArray(e.additionalQueryOptions)?e.additionalQueryOptions.map(e=>t.wix.api.NamedQueryOptions.fromJSON(e,n)):e.additionalQueryOptions:!1!==o?i.additionalQueryOptions=[]:delete i.additionalQueryOptions,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.wql&&(o.wql=t.wix.api.Wql.toGRPC(e.wql,n)),null!=e.search&&(o.search=e.search.map(e=>t.wix.api.Search.toGRPC(e,n))),null!=e.additionalQueryOptions&&(o.additionalQueryOptions=e.additionalQueryOptions.map(e=>t.wix.api.NamedQueryOptions.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.api.QueryOptions;return null!=e.wql?o.wql=t.wix.api.Wql.fromGRPC(e.wql,n):delete o.wql,null!=e.search?o.search=e.search.map(e=>t.wix.api.Search.fromGRPC(e,n)):o.search=[],null!=e.additionalQueryOptions?o.additionalQueryOptions=e.additionalQueryOptions.map(e=>t.wix.api.NamedQueryOptions.fromGRPC(e,n)):o.additionalQueryOptions=[],o}}}return e.Object.defineProperty(QueryOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.QueryOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryOptions.prototype,"__fqn__",{value:"wix.api.QueryOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(QueryOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),QueryOptions}(),n.NamedQueryOptions=function(){class NamedQueryOptions{constructor(e){this.name=e&&e.name,this.wql=e&&e.wql,this.search=e&&e.search}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.name?i.name=e.name:o&&(i.name=""),null!=e.wql?i.wql=t.wix.api.Wql.toJSON(e.wql,n,o):o&&delete i.wql,null!=e.search?i.search=e.search.map(e=>t.wix.api.Search.toJSON(e,n,o)):o&&(i.search=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.NamedQueryOptions;return null!=e.name?i.name=e.name:!1!==o?i.name="":delete i.name,null!=e.wql?i.wql=t.wix.api.Wql.fromJSON(e.wql,n):delete i.wql,null!=e.search?i.search=Array.isArray(e.search)?e.search.map(e=>t.wix.api.Search.fromJSON(e,n)):e.search:!1!==o?i.search=[]:delete i.search,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.wql&&(o.wql=t.wix.api.Wql.toGRPC(e.wql,n)),null!=e.search&&(o.search=e.search.map(e=>t.wix.api.Search.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.api.NamedQueryOptions;return null!=e.name?o.name=e.name:o.name="",null!=e.wql?o.wql=t.wix.api.Wql.fromGRPC(e.wql,n):delete o.wql,null!=e.search?o.search=e.search.map(e=>t.wix.api.Search.fromGRPC(e,n)):o.search=[],o}}}return e.Object.defineProperty(NamedQueryOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.NamedQueryOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(NamedQueryOptions.prototype,"__fqn__",{value:"wix.api.NamedQueryOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(NamedQueryOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(NamedQueryOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),NamedQueryOptions}(),n.PermissionRule=function(){class PermissionRule{constructor(e){this.name=e&&e.name,this.type=e&&e.type,this.abacRequestValidation=e&&e.abacRequestValidation}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.type?n.type=t.wix.api.PermissionType[e.type]:o&&(n.type="AUTO"),null!=e.abacRequestValidation?n.abacRequestValidation=t.wix.api.AbacRequestValidationMode[e.abacRequestValidation]:o&&(n.abacRequestValidation="ON"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.PermissionRule;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:t.wix.api.PermissionType[e.type]:!1!==o?n.type="AUTO":delete n.type,null!=e.abacRequestValidation?n.abacRequestValidation="string"==typeof e.abacRequestValidation?e.abacRequestValidation:t.wix.api.AbacRequestValidationMode[e.abacRequestValidation]:!1!==o?n.abacRequestValidation="ON":delete n.abacRequestValidation,n}}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,n){if(null==e)return null;{const n=new t.wix.api.PermissionRule;return null!=e.name?n.name=e.name:n.name="",null!=e.type?n.type=e.type:n.type="AUTO",null!=e.abacRequestValidation?n.abacRequestValidation=e.abacRequestValidation:n.abacRequestValidation="ON",n}}}return e.Object.defineProperty(PermissionRule.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.PermissionRule"),enumerable:!1,configurable:!1}),e.Object.defineProperty(PermissionRule.prototype,"__fqn__",{value:"wix.api.PermissionRule",enumerable:!1,configurable:!1}),e.Object.defineProperty(PermissionRule.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(PermissionRule.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),PermissionRule}(),n.PermissionType={AUTO:"AUTO",0:"AUTO",MANUAL:"MANUAL",1:"MANUAL"},n.AbacRequestValidationMode={ON:"ON",0:"ON",OFF:"OFF",1:"OFF"},n.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,n){if(null==e)return null;{const t={};return null!=e.lte?t.lte=e.lte:n&&(t.lte=""),null!=e.gte?t.gte=e.gte:n&&(t.gte=""),null!=e.lt?t.lt=e.lt:n&&(t.lt=""),null!=e.gt?t.gt=e.gt:n&&(t.gt=""),null!=e.maxScale?t.maxScale=e.maxScale:n&&(t.maxScale=0),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.DecimalValueOptions;return null!=e.lte?n.lte=e.lte:!1!==o?n.lte="":delete n.lte,null!=e.gte?n.gte=e.gte:!1!==o?n.gte="":delete n.gte,null!=e.lt?n.lt=e.lt:!1!==o?n.lt="":delete n.lt,null!=e.gt?n.gt=e.gt:!1!==o?n.gt="":delete n.gt,null!=e.maxScale?n.maxScale=e.maxScale:!1!==o?n.maxScale=0:delete n.maxScale,n}}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,n){if(null==e)return null;{const n=new t.wix.api.DecimalValueOptions;return null!=e.lte?n.lte=e.lte:n.lte="",null!=e.gte?n.gte=e.gte:n.gte="",null!=e.lt?n.lt=e.lt:n.lt="",null!=e.gt?n.gt=e.gt:n.gt="",null!=e.maxScale?n.maxScale=e.maxScale:n.maxScale=0,n}}}return e.Object.defineProperty(DecimalValueOptions.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.DecimalValueOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DecimalValueOptions.prototype,"__fqn__",{value:"wix.api.DecimalValueOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(DecimalValueOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DecimalValueOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DecimalValueOptions}(),n.AlignedWithEnum=function(){class AlignedWithEnum{constructor(e){this.field=e&&e.field,this.suffix=e&&e.suffix,this.skipEmptyOptionsHandling=e&&e.skipEmptyOptionsHandling}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.field?t.field=e.field:n&&(t.field=""),null!=e.suffix?t.suffix=e.suffix:n&&(t.suffix=""),null!=e.skipEmptyOptionsHandling?t.skipEmptyOptionsHandling=e.skipEmptyOptionsHandling:n&&(t.skipEmptyOptionsHandling=!1),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.AlignedWithEnum;return null!=e.field?n.field=e.field:!1!==o?n.field="":delete n.field,null!=e.suffix?n.suffix=e.suffix:!1!==o?n.suffix="":delete n.suffix,null!=e.skipEmptyOptionsHandling?n.skipEmptyOptionsHandling=e.skipEmptyOptionsHandling:!1!==o?n.skipEmptyOptionsHandling=!1:delete n.skipEmptyOptionsHandling,n}}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),null!=e.skipEmptyOptionsHandling&&(t.skipEmptyOptionsHandling=e.skipEmptyOptionsHandling),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.AlignedWithEnum;return null!=e.field?n.field=e.field:n.field="",null!=e.suffix?n.suffix=e.suffix:n.suffix="",null!=e.skipEmptyOptionsHandling?n.skipEmptyOptionsHandling=e.skipEmptyOptionsHandling:n.skipEmptyOptionsHandling=!1,n}}}return e.Object.defineProperty(AlignedWithEnum.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.AlignedWithEnum"),enumerable:!1,configurable:!1}),e.Object.defineProperty(AlignedWithEnum.prototype,"__fqn__",{value:"wix.api.AlignedWithEnum",enumerable:!1,configurable:!1}),e.Object.defineProperty(AlignedWithEnum.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(AlignedWithEnum.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),AlignedWithEnum}(),n.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"},n.Error=function(){class Error{constructor(e){this.httpCode=e&&e.httpCode,this.applicationCode=e&&e.applicationCode,this.data=e&&e.data}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.httpCode?n.httpCode=t.wix.api.StatusCodes.HttpStatusCode[e.httpCode]:o&&(n.httpCode="OK"),null!=e.applicationCode?n.applicationCode=e.applicationCode:o&&(n.applicationCode=""),null!=e.data?n.data=e.data:o&&(n.data=""),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Error;return null!=e.httpCode?n.httpCode="string"==typeof e.httpCode?e.httpCode:t.wix.api.StatusCodes.HttpStatusCode[e.httpCode]:!1!==o?n.httpCode="OK":delete n.httpCode,null!=e.applicationCode?n.applicationCode=e.applicationCode:!1!==o?n.applicationCode="":delete n.applicationCode,null!=e.data?n.data=e.data:!1!==o?n.data="":delete n.data,n}}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,n){if(null==e)return null;{const n=new t.wix.api.Error;return null!=e.httpCode?n.httpCode=e.httpCode:n.httpCode="OK",null!=e.applicationCode?n.applicationCode=e.applicationCode:n.applicationCode="",null!=e.data?n.data=e.data:n.data="",n}}}return e.Object.defineProperty(Error.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Error"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Error.prototype,"__fqn__",{value:"wix.api.Error",enumerable:!1,configurable:!1}),e.Object.defineProperty(Error.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Error.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Error}(),n.ErrorRef=function(){class ErrorRef{constructor(e){this.applicationCode=e&&e.applicationCode}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.applicationCode?t.applicationCode=e.applicationCode:n&&(t.applicationCode=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.ErrorRef;return null!=e.applicationCode?n.applicationCode=e.applicationCode:!1!==o?n.applicationCode="":delete n.applicationCode,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.applicationCode&&(t.applicationCode=e.applicationCode),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.ErrorRef;return null!=e.applicationCode?n.applicationCode=e.applicationCode:n.applicationCode="",n}}}return e.Object.defineProperty(ErrorRef.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.ErrorRef"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ErrorRef.prototype,"__fqn__",{value:"wix.api.ErrorRef",enumerable:!1,configurable:!1}),e.Object.defineProperty(ErrorRef.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ErrorRef.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ErrorRef}(),n.CustomValidationError=function(){class CustomValidationError{constructor(e){this.ruleName=e&&e.ruleName,this.data=e&&e.data}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.ruleName?t.ruleName=e.ruleName:n&&(t.ruleName=""),null!=e.data?t.data=e.data:n&&(t.data=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.CustomValidationError;return null!=e.ruleName?n.ruleName=e.ruleName:!1!==o?n.ruleName="":delete n.ruleName,null!=e.data?n.data=e.data:!1!==o?n.data="":delete n.data,n}}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,n){if(null==e)return null;{const n=new t.wix.api.CustomValidationError;return null!=e.ruleName?n.ruleName=e.ruleName:n.ruleName="",null!=e.data?n.data=e.data:n.data="",n}}}return e.Object.defineProperty(CustomValidationError.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.CustomValidationError"),enumerable:!1,configurable:!1}),e.Object.defineProperty(CustomValidationError.prototype,"__fqn__",{value:"wix.api.CustomValidationError",enumerable:!1,configurable:!1}),e.Object.defineProperty(CustomValidationError.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(CustomValidationError.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),CustomValidationError}(),n.InheritCrudErrors=function(){class InheritCrudErrors{constructor(e){this.method=e&&e.method}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.method?n.method=t.wix.api.Crud.Method[e.method]:o&&(n.method="UNKNOWN_METHOD"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.InheritCrudErrors;return null!=e.method?n.method="string"==typeof e.method?e.method:t.wix.api.Crud.Method[e.method]:!1!==o?n.method="UNKNOWN_METHOD":delete n.method,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.method&&(t.method=e.method),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.InheritCrudErrors;return null!=e.method?n.method=e.method:n.method="UNKNOWN_METHOD",n}}}return e.Object.defineProperty(InheritCrudErrors.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.InheritCrudErrors"),enumerable:!1,configurable:!1}),e.Object.defineProperty(InheritCrudErrors.prototype,"__fqn__",{value:"wix.api.InheritCrudErrors",enumerable:!1,configurable:!1}),e.Object.defineProperty(InheritCrudErrors.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(InheritCrudErrors.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),InheritCrudErrors}(),n.StatusCodes=function(){class StatusCodes{constructor(e){}static toJSON(e,t,n){if(null==e)return null;return{}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;return new t.wix.api.StatusCodes}static toGRPC(e,t){if(null==e)return null;return{}}static fromGRPC(e,n){if(null==e)return null;return new t.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"},e.Object.defineProperty(StatusCodes.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.StatusCodes"),enumerable:!1,configurable:!1}),e.Object.defineProperty(StatusCodes.prototype,"__fqn__",{value:"wix.api.StatusCodes",enumerable:!1,configurable:!1}),e.Object.defineProperty(StatusCodes.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(StatusCodes.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),StatusCodes}(),n.ActionPayload=function(){class ActionPayload{constructor(e){this.customSlug=e&&e.customSlug}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.customSlug?t.customSlug=e.customSlug:n&&(t.customSlug=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.ActionPayload;return null!=e.customSlug?n.customSlug=e.customSlug:!1!==o?n.customSlug="":delete n.customSlug,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.customSlug&&(t.customSlug=e.customSlug),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.ActionPayload;return null!=e.customSlug?n.customSlug=e.customSlug:n.customSlug="",n}}}return e.Object.defineProperty(ActionPayload.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.ActionPayload"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ActionPayload.prototype,"__fqn__",{value:"wix.api.ActionPayload",enumerable:!1,configurable:!1}),e.Object.defineProperty(ActionPayload.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ActionPayload.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ActionPayload}(),n.RequestContext=function(){class RequestContext{constructor(e){this.aspects=e&&e.aspects}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.aspects?t.aspects=Object.entries(e.aspects).reduce((e,[t,n])=>(e[t]=n,e),{}):n&&delete t.aspects,t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.RequestContext;return null!=e.aspects?n.aspects=Object.entries(e.aspects).reduce((e,[t,n])=>(e[t]=n,e),{}):delete n.aspects,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.aspects&&(t.aspects=Object.entries(e.aspects).reduce((e,[t,n])=>(e[t]=n,e),{})),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.RequestContext;return null!=e.aspects?n.aspects=Object.entries(e.aspects).reduce((e,[t,n])=>(e[t]=n,e),{}):delete n.aspects,n}}}return e.Object.defineProperty(RequestContext.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.RequestContext"),enumerable:!1,configurable:!1}),e.Object.defineProperty(RequestContext.prototype,"__fqn__",{value:"wix.api.RequestContext",enumerable:!1,configurable:!1}),e.Object.defineProperty(RequestContext.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(RequestContext.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),RequestContext}(),n.ResponseContext=function(){class ResponseContext{constructor(e){this.aspects=e&&e.aspects}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.aspects?i.aspects=e.aspects.map(e=>t.wix.api.ResponseContextEntry.toJSON(e,n,o)):o&&(i.aspects=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.ResponseContext;return null!=e.aspects?i.aspects=Array.isArray(e.aspects)?e.aspects.map(e=>t.wix.api.ResponseContextEntry.fromJSON(e,n)):e.aspects:!1!==o?i.aspects=[]:delete i.aspects,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.aspects&&(o.aspects=e.aspects.map(e=>t.wix.api.ResponseContextEntry.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.api.ResponseContext;return null!=e.aspects?o.aspects=e.aspects.map(e=>t.wix.api.ResponseContextEntry.fromGRPC(e,n)):o.aspects=[],o}}}return e.Object.defineProperty(ResponseContext.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.ResponseContext"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ResponseContext.prototype,"__fqn__",{value:"wix.api.ResponseContext",enumerable:!1,configurable:!1}),e.Object.defineProperty(ResponseContext.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ResponseContext.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ResponseContext}(),n.ResponseContextEntry=function(){class ResponseContextEntry{constructor(e){this.aspectEntry=e&&e.aspectEntry}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.aspectEntry?t.aspectEntry=Object.entries(e.aspectEntry).reduce((e,[t,n])=>(e[t]=n,e),{}):n&&delete t.aspectEntry,t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.ResponseContextEntry;return null!=e.aspectEntry?n.aspectEntry=Object.entries(e.aspectEntry).reduce((e,[t,n])=>(e[t]=n,e),{}):delete n.aspectEntry,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.aspectEntry&&(t.aspectEntry=Object.entries(e.aspectEntry).reduce((e,[t,n])=>(e[t]=n,e),{})),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.ResponseContextEntry;return null!=e.aspectEntry?n.aspectEntry=Object.entries(e.aspectEntry).reduce((e,[t,n])=>(e[t]=n,e),{}):delete n.aspectEntry,n}}}return e.Object.defineProperty(ResponseContextEntry.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.ResponseContextEntry"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ResponseContextEntry.prototype,"__fqn__",{value:"wix.api.ResponseContextEntry",enumerable:!1,configurable:!1}),e.Object.defineProperty(ResponseContextEntry.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ResponseContextEntry.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ResponseContextEntry}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.applicationError?i.applicationError=t.wix.api.ApplicationError.toJSON(e.applicationError,n,o):o&&delete i.applicationError,null!=e.validationError?i.validationError=t.wix.api.ValidationError.toJSON(e.validationError,n,o):o&&delete i.validationError,null!=e.systemError?i.systemError=t.wix.api.SystemError.toJSON(e.systemError,n,o):o&&delete i.systemError,null!=e.tracing?i.tracing=Object.entries(e.tracing).reduce((e,[t,n])=>(e[t]=n,e),{}):o&&delete i.tracing,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.api.Details;return null!=e.applicationError?o.applicationError=t.wix.api.ApplicationError.fromJSON(e.applicationError,n):delete o.applicationError,null!=e.validationError?o.validationError=t.wix.api.ValidationError.fromJSON(e.validationError,n):delete o.validationError,null!=e.systemError?o.systemError=t.wix.api.SystemError.fromJSON(e.systemError,n):delete o.systemError,null!=e.tracing?o.tracing=Object.entries(e.tracing).reduce((e,[t,n])=>(e[t]=n,e),{}):delete o.tracing,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.applicationError&&(o.applicationError=t.wix.api.ApplicationError.toGRPC(e.applicationError,n)),null!=e.validationError&&(o.validationError=t.wix.api.ValidationError.toGRPC(e.validationError,n)),null!=e.systemError&&(o.systemError=t.wix.api.SystemError.toGRPC(e.systemError,n)),null!=e.tracing&&(o.tracing=Object.entries(e.tracing).reduce((e,[t,n])=>(e[t]=n,e),{})),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.api.Details;return null!=e.applicationError?o.applicationError=t.wix.api.ApplicationError.fromGRPC(e.applicationError,n):delete o.applicationError,null!=e.validationError?o.validationError=t.wix.api.ValidationError.fromGRPC(e.validationError,n):delete o.validationError,null!=e.systemError?o.systemError=t.wix.api.SystemError.fromGRPC(e.systemError,n):delete o.systemError,null!=e.tracing?o.tracing=Object.entries(e.tracing).reduce((e,[t,n])=>(e[t]=n,e),{}):delete o.tracing,o}}}return e.Object.defineProperty(Details.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Details"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Details.prototype,"__fqn__",{value:"wix.api.Details",enumerable:!1,configurable:!1}),e.Object.defineProperty(Details.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Details.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Details}(),n.ApplicationError=function(){class ApplicationError{constructor(e){this.code=e&&e.code,this.description=e&&e.description,this.data=e&&e.data}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.code?i.code=e.code:o&&(i.code=""),null!=e.description?i.description=e.description:o&&(i.description=""),null!=e.data?i.data=t.google.protobuf.Struct.toJSON(e.data,n,o):o&&delete i.data,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.ApplicationError;return null!=e.code?i.code=e.code:!1!==o?i.code="":delete i.code,null!=e.description?i.description=e.description:!1!==o?i.description="":delete i.description,null!=e.data?i.data=t.google.protobuf.Struct.fromJSON(e.data,n):delete i.data,i}}static toGRPC(e,n){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=t.google.protobuf.Struct.toGRPC(e.data,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.Struct.fromGRPC(e.data,n):delete o.data,o}}}return e.Object.defineProperty(ApplicationError.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.ApplicationError"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ApplicationError.prototype,"__fqn__",{value:"wix.api.ApplicationError",enumerable:!1,configurable:!1}),e.Object.defineProperty(ApplicationError.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ApplicationError.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ApplicationError}(),n.SystemError=function(){class SystemError{constructor(e){this.errorCode=e&&e.errorCode}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.errorCode?i.errorCode=t.google.protobuf.StringValue.toJSON(e.errorCode,n,o):o&&delete i.errorCode,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.api.SystemError;return null!=e.errorCode?o.errorCode=t.google.protobuf.StringValue.fromJSON(e.errorCode,n):delete o.errorCode,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.errorCode&&(o.errorCode=t.google.protobuf.StringValue.toGRPC(e.errorCode,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.api.SystemError;return null!=e.errorCode?o.errorCode=t.google.protobuf.StringValue.fromGRPC(e.errorCode,n):delete o.errorCode,o}}}return e.Object.defineProperty(SystemError.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.SystemError"),enumerable:!1,configurable:!1}),e.Object.defineProperty(SystemError.prototype,"__fqn__",{value:"wix.api.SystemError",enumerable:!1,configurable:!1}),e.Object.defineProperty(SystemError.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(SystemError.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),SystemError}(),n.ValidationError=function(){class ValidationError{constructor(e){this.fieldViolations=e&&e.fieldViolations}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.fieldViolations?i.fieldViolations=e.fieldViolations.map(e=>t.wix.api.ValidationError.FieldViolation.toJSON(e,n,o)):o&&(i.fieldViolations=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.ValidationError;return null!=e.fieldViolations?i.fieldViolations=Array.isArray(e.fieldViolations)?e.fieldViolations.map(e=>t.wix.api.ValidationError.FieldViolation.fromJSON(e,n)):e.fieldViolations:!1!==o?i.fieldViolations=[]:delete i.fieldViolations,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.fieldViolations&&(o.fieldViolations=e.fieldViolations.map(e=>t.wix.api.ValidationError.FieldViolation.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.api.ValidationError;return null!=e.fieldViolations?o.fieldViolations=e.fieldViolations.map(e=>t.wix.api.ValidationError.FieldViolation.fromGRPC(e,n)):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,n,o){if(null==e)return null;{const i={};return null!=e.field?i.field=e.field:o&&(i.field=""),null!=e.description?i.description=e.description:o&&(i.description=""),null!=e.violatedRule?i.violatedRule=t.wix.api.ValidationError.RuleType[e.violatedRule]:o&&(i.violatedRule="VALIDATION"),null!=e.ruleName?i.ruleName=t.google.protobuf.StringValue.toJSON(e.ruleName,n,o):o&&delete i.ruleName,null!=e.data?i.data=t.google.protobuf.Struct.toJSON(e.data,n,o):o&&delete i.data,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.ValidationError.FieldViolation;return null!=e.field?i.field=e.field:!1!==o?i.field="":delete i.field,null!=e.description?i.description=e.description:!1!==o?i.description="":delete i.description,null!=e.violatedRule?i.violatedRule="string"==typeof e.violatedRule?e.violatedRule:t.wix.api.ValidationError.RuleType[e.violatedRule]:!1!==o?i.violatedRule="VALIDATION":delete i.violatedRule,null!=e.ruleName?i.ruleName=t.google.protobuf.StringValue.fromJSON(e.ruleName,n):delete i.ruleName,null!=e.data?i.data=t.google.protobuf.Struct.fromJSON(e.data,n):delete i.data,i}}static toGRPC(e,n){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=t.google.protobuf.StringValue.toGRPC(e.ruleName,n)),null!=e.data&&(o.data=t.google.protobuf.Struct.toGRPC(e.data,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.StringValue.fromGRPC(e.ruleName,n):delete o.ruleName,null!=e.data?o.data=t.google.protobuf.Struct.fromGRPC(e.data,n):delete o.data,o}}}return e.Object.defineProperty(FieldViolation.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.ValidationError.FieldViolation"),enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldViolation.prototype,"__fqn__",{value:"wix.api.ValidationError.FieldViolation",enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldViolation.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldViolation.prototype,"__root__",{value:t,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,n,o){if(null==e)return null;{const i={};return null!=e.field?i.field=e.field:o&&(i.field=""),null!=e.description?i.description=e.description:o&&(i.description=""),null!=e.violatedRule?i.violatedRule=t.wix.api.ValidationError.RuleType[e.violatedRule]:o&&(i.violatedRule="VALIDATION"),null!=e.ruleName?i.ruleName=t.google.protobuf.StringValue.toJSON(e.ruleName,n,o):o&&delete i.ruleName,null!=e.data?i.data=t.google.protobuf.Struct.toJSON(e.data,n,o):o&&delete i.data,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.api.ValidationError.FieldViolation;return null!=e.field?i.field=e.field:!1!==o?i.field="":delete i.field,null!=e.description?i.description=e.description:!1!==o?i.description="":delete i.description,null!=e.violatedRule?i.violatedRule="string"==typeof e.violatedRule?e.violatedRule:t.wix.api.ValidationError.RuleType[e.violatedRule]:!1!==o?i.violatedRule="VALIDATION":delete i.violatedRule,null!=e.ruleName?i.ruleName=t.google.protobuf.StringValue.fromJSON(e.ruleName,n):delete i.ruleName,null!=e.data?i.data=t.google.protobuf.Struct.fromJSON(e.data,n):delete i.data,i}}static toGRPC(e,n){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=t.google.protobuf.StringValue.toGRPC(e.ruleName,n)),null!=e.data&&(o.data=t.google.protobuf.Struct.toGRPC(e.data,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.StringValue.fromGRPC(e.ruleName,n):delete o.ruleName,null!=e.data?o.data=t.google.protobuf.Struct.fromGRPC(e.data,n):delete o.data,o}}}return e.Object.defineProperty(FieldViolation.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.ValidationError.FieldViolation"),enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldViolation.prototype,"__fqn__",{value:"wix.api.ValidationError.FieldViolation",enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldViolation.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldViolation.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),FieldViolation}(),e.Object.defineProperty(ValidationError.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.ValidationError"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ValidationError.prototype,"__fqn__",{value:"wix.api.ValidationError",enumerable:!1,configurable:!1}),e.Object.defineProperty(ValidationError.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ValidationError.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ValidationError}(),n.LimitRuleInt32DataPayload=function(){class LimitRuleInt32DataPayload{constructor(e){this.threshold=e&&e.threshold}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.threshold?t.threshold=e.threshold:n&&(t.threshold=0),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.LimitRuleInt32DataPayload;return null!=e.threshold?n.threshold=e.threshold:!1!==o?n.threshold=0:delete n.threshold,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.threshold&&(t.threshold=e.threshold),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.LimitRuleInt32DataPayload;return null!=e.threshold?n.threshold=e.threshold:n.threshold=0,n}}}return e.Object.defineProperty(LimitRuleInt32DataPayload.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.LimitRuleInt32DataPayload"),enumerable:!1,configurable:!1}),e.Object.defineProperty(LimitRuleInt32DataPayload.prototype,"__fqn__",{value:"wix.api.LimitRuleInt32DataPayload",enumerable:!1,configurable:!1}),e.Object.defineProperty(LimitRuleInt32DataPayload.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(LimitRuleInt32DataPayload.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),LimitRuleInt32DataPayload}(),n.LimitRuleDoubleDataPayload=function(){class LimitRuleDoubleDataPayload{constructor(e){this.threshold=e&&e.threshold}static toJSON(e,t,n){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():n&&(t.threshold=0),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.LimitRuleDoubleDataPayload;return null!=e.threshold?n.threshold="NaN"===e.threshold?NaN:"Infinity"===e.threshold?1/0:"-Infinity"===e.threshold?-1/0:e.threshold:!1!==o?n.threshold=0:delete n.threshold,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.threshold&&(t.threshold=e.threshold),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.LimitRuleDoubleDataPayload;return null!=e.threshold?n.threshold=e.threshold:n.threshold=0,n}}}return e.Object.defineProperty(LimitRuleDoubleDataPayload.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.LimitRuleDoubleDataPayload"),enumerable:!1,configurable:!1}),e.Object.defineProperty(LimitRuleDoubleDataPayload.prototype,"__fqn__",{value:"wix.api.LimitRuleDoubleDataPayload",enumerable:!1,configurable:!1}),e.Object.defineProperty(LimitRuleDoubleDataPayload.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(LimitRuleDoubleDataPayload.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),LimitRuleDoubleDataPayload}(),n.LimitRuleStringDataPayload=function(){class LimitRuleStringDataPayload{constructor(e){this.threshold=e&&e.threshold}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.threshold?t.threshold=e.threshold:n&&(t.threshold=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.LimitRuleStringDataPayload;return null!=e.threshold?n.threshold=e.threshold:!1!==o?n.threshold="":delete n.threshold,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.threshold&&(t.threshold=e.threshold),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.LimitRuleStringDataPayload;return null!=e.threshold?n.threshold=e.threshold:n.threshold="",n}}}return e.Object.defineProperty(LimitRuleStringDataPayload.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.LimitRuleStringDataPayload"),enumerable:!1,configurable:!1}),e.Object.defineProperty(LimitRuleStringDataPayload.prototype,"__fqn__",{value:"wix.api.LimitRuleStringDataPayload",enumerable:!1,configurable:!1}),e.Object.defineProperty(LimitRuleStringDataPayload.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(LimitRuleStringDataPayload.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),LimitRuleStringDataPayload}(),n.FormatRuleDataPayload=function(){class FormatRuleDataPayload{constructor(e){this.type=e&&e.type}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.type?t.type=e.type:n&&(t.type=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.FormatRuleDataPayload;return null!=e.type?n.type=e.type:!1!==o?n.type="":delete n.type,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.type&&(t.type=e.type),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.FormatRuleDataPayload;return null!=e.type?n.type=e.type:n.type="",n}}}return e.Object.defineProperty(FormatRuleDataPayload.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.FormatRuleDataPayload"),enumerable:!1,configurable:!1}),e.Object.defineProperty(FormatRuleDataPayload.prototype,"__fqn__",{value:"wix.api.FormatRuleDataPayload",enumerable:!1,configurable:!1}),e.Object.defineProperty(FormatRuleDataPayload.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(FormatRuleDataPayload.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),FormatRuleDataPayload}(),n.EnumRuleDataPayload=function(){class EnumRuleDataPayload{constructor(e){this.supported=e&&e.supported}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.supported?t.supported=e.supported.map(e=>e):n&&(t.supported=[]),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.EnumRuleDataPayload;return null!=e.supported?n.supported=Array.isArray(e.supported)?e.supported.map(e=>e):e.supported:!1!==o?n.supported=[]:delete n.supported,n}}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,n){if(null==e)return null;{const n=new t.wix.api.EnumRuleDataPayload;return null!=e.supported?n.supported=e.supported.map(e=>e):n.supported=[],n}}}return e.Object.defineProperty(EnumRuleDataPayload.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.EnumRuleDataPayload"),enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumRuleDataPayload.prototype,"__fqn__",{value:"wix.api.EnumRuleDataPayload",enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumRuleDataPayload.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumRuleDataPayload.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),EnumRuleDataPayload}(),n.RequiredOneOfRuleDataPayload=function(){class RequiredOneOfRuleDataPayload{constructor(e){this.supported=e&&e.supported}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.supported?t.supported=e.supported.map(e=>e):n&&(t.supported=[]),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.RequiredOneOfRuleDataPayload;return null!=e.supported?n.supported=Array.isArray(e.supported)?e.supported.map(e=>e):e.supported:!1!==o?n.supported=[]:delete n.supported,n}}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,n){if(null==e)return null;{const n=new t.wix.api.RequiredOneOfRuleDataPayload;return null!=e.supported?n.supported=e.supported.map(e=>e):n.supported=[],n}}}return e.Object.defineProperty(RequiredOneOfRuleDataPayload.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.RequiredOneOfRuleDataPayload"),enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredOneOfRuleDataPayload.prototype,"__fqn__",{value:"wix.api.RequiredOneOfRuleDataPayload",enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredOneOfRuleDataPayload.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(RequiredOneOfRuleDataPayload.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),RequiredOneOfRuleDataPayload}(),n.Idempotency=function(){class Idempotency{constructor(e){this.key=e&&e.key}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.key?t.key=e.key:n&&(t.key=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Idempotency;return null!=e.key?n.key=e.key:!1!==o?n.key="":delete n.key,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.key&&(t.key=e.key),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Idempotency;return null!=e.key?n.key=e.key:n.key="",n}}}return e.Object.defineProperty(Idempotency.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Idempotency"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Idempotency.prototype,"__fqn__",{value:"wix.api.Idempotency",enumerable:!1,configurable:!1}),e.Object.defineProperty(Idempotency.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Idempotency.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Idempotency}(),n.Sla=function(){class Sla{constructor(e){this.responseTimeMs=e&&e.responseTimeMs}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.responseTimeMs?t.responseTimeMs=e.responseTimeMs:n&&(t.responseTimeMs=0),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Sla;return null!=e.responseTimeMs?n.responseTimeMs=e.responseTimeMs:!1!==o?n.responseTimeMs=0:delete n.responseTimeMs,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.responseTimeMs&&(t.responseTimeMs=e.responseTimeMs),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.api.Sla;return null!=e.responseTimeMs?n.responseTimeMs=e.responseTimeMs:n.responseTimeMs=0,n}}}return e.Object.defineProperty(Sla.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Sla"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Sla.prototype,"__fqn__",{value:"wix.api.Sla",enumerable:!1,configurable:!1}),e.Object.defineProperty(Sla.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Sla.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Sla}(),n.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,n,o){if(null==e)return null;{const n={};return null!=e.topic?n.topic=e.topic:o&&(n.topic=""),null!=e.segment?n.segment=t.wix.api.Segment.SegmentName[e.segment]:o&&(n.segment="UNSPECIFIED"),null!=e.batch?n.batch=e.batch:o&&(n.batch=!1),null!=e.entity?n.entity=e.entity:o&&(n.entity=""),null!=e.dynamic?n.dynamic=e.dynamic:o&&(n.dynamic=!1),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.api.Subscription;return null!=e.topic?n.topic=e.topic:!1!==o?n.topic="":delete n.topic,null!=e.segment?n.segment="string"==typeof e.segment?e.segment:t.wix.api.Segment.SegmentName[e.segment]:!1!==o?n.segment="UNSPECIFIED":delete n.segment,null!=e.batch?n.batch=e.batch:!1!==o?n.batch=!1:delete n.batch,null!=e.entity?n.entity=e.entity:!1!==o?n.entity="":delete n.entity,null!=e.dynamic?n.dynamic=e.dynamic:!1!==o?n.dynamic=!1:delete n.dynamic,n}}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,n){if(null==e)return null;{const n=new t.wix.api.Subscription;return null!=e.topic?n.topic=e.topic:n.topic="",null!=e.segment?n.segment=e.segment:n.segment="UNSPECIFIED",null!=e.batch?n.batch=e.batch:n.batch=!1,null!=e.entity?n.entity=e.entity:n.entity="",null!=e.dynamic?n.dynamic=e.dynamic:n.dynamic=!1,n}}}return e.Object.defineProperty(Subscription.prototype,"__proto",{value:e=>t.__lookup(e)("wix.api.Subscription"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Subscription.prototype,"__fqn__",{value:"wix.api.Subscription",enumerable:!1,configurable:!1}),e.Object.defineProperty(Subscription.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Subscription.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Subscription}(),n}(),n.sdk=function(){const n={};return n.Signature=function(){class Signature{constructor(e){this.params=e&&e.params}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.params?t.params=e.params.map(e=>e):n&&(t.params=[]),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.sdk.Signature;return null!=e.params?n.params=Array.isArray(e.params)?e.params.map(e=>e):e.params:!1!==o?n.params=[]:delete n.params,n}}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,n){if(null==e)return null;{const n=new t.wix.sdk.Signature;return null!=e.params?n.params=e.params.map(e=>e):n.params=[],n}}}return e.Object.defineProperty(Signature.prototype,"__proto",{value:e=>t.__lookup(e)("wix.sdk.Signature"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Signature.prototype,"__fqn__",{value:"wix.sdk.Signature",enumerable:!1,configurable:!1}),e.Object.defineProperty(Signature.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Signature.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Signature}(),n}(),n.common=function(){const n={};return n.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,n,o){if(null==e)return null;{const i={};return null!=e.country?i.country=t.google.protobuf.StringValue.toJSON(e.country,n,o):o&&delete i.country,null!=e.subdivision?i.subdivision=t.google.protobuf.StringValue.toJSON(e.subdivision,n,o):o&&delete i.subdivision,null!=e.subdivisionIso31662?i.subdivisionIso31662=t.google.protobuf.StringValue.toJSON(e.subdivisionIso31662,n,o):o&&delete i.subdivisionIso31662,null!=e.city?i.city=t.google.protobuf.StringValue.toJSON(e.city,n,o):o&&delete i.city,null!=e.postalCode?i.postalCode=t.google.protobuf.StringValue.toJSON(e.postalCode,n,o):o&&delete i.postalCode,null!=e.streetAddress?i.streetAddress=t.wix.common.StreetAddress.toJSON(e.streetAddress,n,o):o&&delete i.streetAddress,null!=e.addressLine?i.addressLine=t.google.protobuf.StringValue.toJSON(e.addressLine,n,o):o&&delete i.addressLine,null!=e.addressLine2?i.addressLine2=t.google.protobuf.StringValue.toJSON(e.addressLine2,n,o):o&&delete i.addressLine2,null!=e.formattedAddress?i.formattedAddress=t.google.protobuf.StringValue.toJSON(e.formattedAddress,n,o):o&&delete i.formattedAddress,null!=e.hint?i.hint=t.google.protobuf.StringValue.toJSON(e.hint,n,o):o&&delete i.hint,null!=e.geocode?i.geocode=t.wix.common.AddressLocation.toJSON(e.geocode,n,o):o&&delete i.geocode,null!=e.countryFullname?i.countryFullname=t.google.protobuf.StringValue.toJSON(e.countryFullname,n,o):o&&delete i.countryFullname,null!=e.subdivisionFullname?i.subdivisionFullname=t.google.protobuf.StringValue.toJSON(e.subdivisionFullname,n,o):o&&delete i.subdivisionFullname,null!=e.subdivisions?i.subdivisions=e.subdivisions.map(e=>t.wix.common.Subdivision.toJSON(e,n,o)):o&&(i.subdivisions=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.Address;return null!=e.country?i.country=t.google.protobuf.StringValue.fromJSON(e.country,n):delete i.country,null!=e.subdivision?i.subdivision=t.google.protobuf.StringValue.fromJSON(e.subdivision,n):delete i.subdivision,null!=e.subdivisionIso31662?i.subdivisionIso31662=t.google.protobuf.StringValue.fromJSON(e.subdivisionIso31662,n):delete i.subdivisionIso31662,null!=e.city?i.city=t.google.protobuf.StringValue.fromJSON(e.city,n):delete i.city,null!=e.postalCode?i.postalCode=t.google.protobuf.StringValue.fromJSON(e.postalCode,n):delete i.postalCode,null!=e.streetAddress?i.streetAddress=t.wix.common.StreetAddress.fromJSON(e.streetAddress,n):delete i.streetAddress,null!=e.addressLine?i.addressLine=t.google.protobuf.StringValue.fromJSON(e.addressLine,n):delete i.addressLine,null!=e.addressLine2?i.addressLine2=t.google.protobuf.StringValue.fromJSON(e.addressLine2,n):delete i.addressLine2,null!=e.formattedAddress?i.formattedAddress=t.google.protobuf.StringValue.fromJSON(e.formattedAddress,n):delete i.formattedAddress,null!=e.hint?i.hint=t.google.protobuf.StringValue.fromJSON(e.hint,n):delete i.hint,null!=e.geocode?i.geocode=t.wix.common.AddressLocation.fromJSON(e.geocode,n):delete i.geocode,null!=e.countryFullname?i.countryFullname=t.google.protobuf.StringValue.fromJSON(e.countryFullname,n):delete i.countryFullname,null!=e.subdivisionFullname?i.subdivisionFullname=t.google.protobuf.StringValue.fromJSON(e.subdivisionFullname,n):delete i.subdivisionFullname,null!=e.subdivisions?i.subdivisions=Array.isArray(e.subdivisions)?e.subdivisions.map(e=>t.wix.common.Subdivision.fromJSON(e,n)):e.subdivisions:!1!==o?i.subdivisions=[]:delete i.subdivisions,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.country&&(o.country=t.google.protobuf.StringValue.toGRPC(e.country,n)),null!=e.subdivision&&(o.subdivision=t.google.protobuf.StringValue.toGRPC(e.subdivision,n)),null!=e.subdivisionIso31662&&(o.subdivisionIso31662=t.google.protobuf.StringValue.toGRPC(e.subdivisionIso31662,n)),null!=e.city&&(o.city=t.google.protobuf.StringValue.toGRPC(e.city,n)),null!=e.postalCode&&(o.postalCode=t.google.protobuf.StringValue.toGRPC(e.postalCode,n)),null!=e.streetAddress&&(o.streetAddress=t.wix.common.StreetAddress.toGRPC(e.streetAddress,n)),null!=e.addressLine&&(o.addressLine=t.google.protobuf.StringValue.toGRPC(e.addressLine,n)),null!=e.addressLine2&&(o.addressLine2=t.google.protobuf.StringValue.toGRPC(e.addressLine2,n)),null!=e.formattedAddress&&(o.formattedAddress=t.google.protobuf.StringValue.toGRPC(e.formattedAddress,n)),null!=e.hint&&(o.hint=t.google.protobuf.StringValue.toGRPC(e.hint,n)),null!=e.geocode&&(o.geocode=t.wix.common.AddressLocation.toGRPC(e.geocode,n)),null!=e.countryFullname&&(o.countryFullname=t.google.protobuf.StringValue.toGRPC(e.countryFullname,n)),null!=e.subdivisionFullname&&(o.subdivisionFullname=t.google.protobuf.StringValue.toGRPC(e.subdivisionFullname,n)),null!=e.subdivisions&&(o.subdivisions=e.subdivisions.map(e=>t.wix.common.Subdivision.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.Address;return null!=e.country?o.country=t.google.protobuf.StringValue.fromGRPC(e.country,n):delete o.country,null!=e.subdivision?o.subdivision=t.google.protobuf.StringValue.fromGRPC(e.subdivision,n):delete o.subdivision,null!=e.subdivisionIso31662?o.subdivisionIso31662=t.google.protobuf.StringValue.fromGRPC(e.subdivisionIso31662,n):delete o.subdivisionIso31662,null!=e.city?o.city=t.google.protobuf.StringValue.fromGRPC(e.city,n):delete o.city,null!=e.postalCode?o.postalCode=t.google.protobuf.StringValue.fromGRPC(e.postalCode,n):delete o.postalCode,null!=e.streetAddress?o.streetAddress=t.wix.common.StreetAddress.fromGRPC(e.streetAddress,n):delete o.streetAddress,null!=e.addressLine?o.addressLine=t.google.protobuf.StringValue.fromGRPC(e.addressLine,n):delete o.addressLine,null!=e.addressLine2?o.addressLine2=t.google.protobuf.StringValue.fromGRPC(e.addressLine2,n):delete o.addressLine2,null!=e.formattedAddress?o.formattedAddress=t.google.protobuf.StringValue.fromGRPC(e.formattedAddress,n):delete o.formattedAddress,null!=e.hint?o.hint=t.google.protobuf.StringValue.fromGRPC(e.hint,n):delete o.hint,null!=e.geocode?o.geocode=t.wix.common.AddressLocation.fromGRPC(e.geocode,n):delete o.geocode,null!=e.countryFullname?o.countryFullname=t.google.protobuf.StringValue.fromGRPC(e.countryFullname,n):delete o.countryFullname,null!=e.subdivisionFullname?o.subdivisionFullname=t.google.protobuf.StringValue.fromGRPC(e.subdivisionFullname,n):delete o.subdivisionFullname,null!=e.subdivisions?o.subdivisions=e.subdivisions.map(e=>t.wix.common.Subdivision.fromGRPC(e,n)):o.subdivisions=[],o}}}return e.Object.defineProperty(Address.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Address"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Address.prototype,"__fqn__",{value:"wix.common.Address",enumerable:!1,configurable:!1}),e.Object.defineProperty(Address.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Address.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Address}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.code?i.code=e.code:o&&(i.code=""),null!=e.name?i.name=e.name:o&&(i.name=""),null!=e.type?i.type=t.wix.common.Subdivision.SubdivisionType[e.type]:o&&(i.type="UNKNOWN_SUBDIVISION_TYPE"),null!=e.typeInfo?i.typeInfo=t.google.protobuf.StringValue.toJSON(e.typeInfo,n,o):o&&delete i.typeInfo,null!=e.standardDetails?i.standardDetails=t.wix.common.Subdivision.StandardDetails.toJSON(e.standardDetails,n,o):o&&delete i.standardDetails,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.Subdivision;return null!=e.code?i.code=e.code:!1!==o?i.code="":delete i.code,null!=e.name?i.name=e.name:!1!==o?i.name="":delete i.name,null!=e.type?i.type="string"==typeof e.type?e.type:t.wix.common.Subdivision.SubdivisionType[e.type]:!1!==o?i.type="UNKNOWN_SUBDIVISION_TYPE":delete i.type,null!=e.typeInfo?i.typeInfo=t.google.protobuf.StringValue.fromJSON(e.typeInfo,n):delete i.typeInfo,null!=e.standardDetails?i.standardDetails=t.wix.common.Subdivision.StandardDetails.fromJSON(e.standardDetails,n):delete i.standardDetails,i}}static toGRPC(e,n){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=t.google.protobuf.StringValue.toGRPC(e.typeInfo,n)),null!=e.standardDetails&&(o.standardDetails=t.wix.common.Subdivision.StandardDetails.toGRPC(e.standardDetails,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.StringValue.fromGRPC(e.typeInfo,n):delete o.typeInfo,null!=e.standardDetails?o.standardDetails=t.wix.common.Subdivision.StandardDetails.fromGRPC(e.standardDetails,n):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,n,o){if(null==e)return null;{const i={};return null!=e.iso31662?i.iso31662=t.google.protobuf.StringValue.toJSON(e.iso31662,n,o):o&&delete i.iso31662,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.Subdivision.StandardDetails;return null!=e.iso31662?o.iso31662=t.google.protobuf.StringValue.fromJSON(e.iso31662,n):delete o.iso31662,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.iso31662&&(o.iso31662=t.google.protobuf.StringValue.toGRPC(e.iso31662,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.Subdivision.StandardDetails;return null!=e.iso31662?o.iso31662=t.google.protobuf.StringValue.fromGRPC(e.iso31662,n):delete o.iso31662,o}}}return e.Object.defineProperty(StandardDetails.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Subdivision.StandardDetails"),enumerable:!1,configurable:!1}),e.Object.defineProperty(StandardDetails.prototype,"__fqn__",{value:"wix.common.Subdivision.StandardDetails",enumerable:!1,configurable:!1}),e.Object.defineProperty(StandardDetails.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(StandardDetails.prototype,"__root__",{value:t,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,n,o){if(null==e)return null;{const i={};return null!=e.iso31662?i.iso31662=t.google.protobuf.StringValue.toJSON(e.iso31662,n,o):o&&delete i.iso31662,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.Subdivision.StandardDetails;return null!=e.iso31662?o.iso31662=t.google.protobuf.StringValue.fromJSON(e.iso31662,n):delete o.iso31662,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.iso31662&&(o.iso31662=t.google.protobuf.StringValue.toGRPC(e.iso31662,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.Subdivision.StandardDetails;return null!=e.iso31662?o.iso31662=t.google.protobuf.StringValue.fromGRPC(e.iso31662,n):delete o.iso31662,o}}}return e.Object.defineProperty(StandardDetails.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Subdivision.StandardDetails"),enumerable:!1,configurable:!1}),e.Object.defineProperty(StandardDetails.prototype,"__fqn__",{value:"wix.common.Subdivision.StandardDetails",enumerable:!1,configurable:!1}),e.Object.defineProperty(StandardDetails.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(StandardDetails.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),StandardDetails}(),e.Object.defineProperty(Subdivision.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Subdivision"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Subdivision.prototype,"__fqn__",{value:"wix.common.Subdivision",enumerable:!1,configurable:!1}),e.Object.defineProperty(Subdivision.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Subdivision.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Subdivision}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.number?i.number=e.number:o&&(i.number=""),null!=e.name?i.name=e.name:o&&(i.name=""),null!=e.apt?i.apt=e.apt:o&&(i.apt=""),null!=e.formattedAddressLine?i.formattedAddressLine=t.google.protobuf.StringValue.toJSON(e.formattedAddressLine,n,o):o&&delete i.formattedAddressLine,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.StreetAddress;return null!=e.number?i.number=e.number:!1!==o?i.number="":delete i.number,null!=e.name?i.name=e.name:!1!==o?i.name="":delete i.name,null!=e.apt?i.apt=e.apt:!1!==o?i.apt="":delete i.apt,null!=e.formattedAddressLine?i.formattedAddressLine=t.google.protobuf.StringValue.fromJSON(e.formattedAddressLine,n):delete i.formattedAddressLine,i}}static toGRPC(e,n){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=t.google.protobuf.StringValue.toGRPC(e.formattedAddressLine,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.StringValue.fromGRPC(e.formattedAddressLine,n):delete o.formattedAddressLine,o}}}return e.Object.defineProperty(StreetAddress.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.StreetAddress"),enumerable:!1,configurable:!1}),e.Object.defineProperty(StreetAddress.prototype,"__fqn__",{value:"wix.common.StreetAddress",enumerable:!1,configurable:!1}),e.Object.defineProperty(StreetAddress.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(StreetAddress.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),StreetAddress}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.fullName?i.fullName=t.google.protobuf.StringValue.toJSON(e.fullName,n,o):o&&delete i.fullName,null!=e.phone?i.phone=t.google.protobuf.StringValue.toJSON(e.phone,n,o):o&&delete i.phone,null!=e.company?i.company=t.google.protobuf.StringValue.toJSON(e.company,n,o):o&&delete i.company,null!=e.email?i.email=t.google.protobuf.StringValue.toJSON(e.email,n,o):o&&delete i.email,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.AddressContactDetails;return null!=e.fullName?o.fullName=t.google.protobuf.StringValue.fromJSON(e.fullName,n):delete o.fullName,null!=e.phone?o.phone=t.google.protobuf.StringValue.fromJSON(e.phone,n):delete o.phone,null!=e.company?o.company=t.google.protobuf.StringValue.fromJSON(e.company,n):delete o.company,null!=e.email?o.email=t.google.protobuf.StringValue.fromJSON(e.email,n):delete o.email,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.fullName&&(o.fullName=t.google.protobuf.StringValue.toGRPC(e.fullName,n)),null!=e.phone&&(o.phone=t.google.protobuf.StringValue.toGRPC(e.phone,n)),null!=e.company&&(o.company=t.google.protobuf.StringValue.toGRPC(e.company,n)),null!=e.email&&(o.email=t.google.protobuf.StringValue.toGRPC(e.email,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.AddressContactDetails;return null!=e.fullName?o.fullName=t.google.protobuf.StringValue.fromGRPC(e.fullName,n):delete o.fullName,null!=e.phone?o.phone=t.google.protobuf.StringValue.fromGRPC(e.phone,n):delete o.phone,null!=e.company?o.company=t.google.protobuf.StringValue.fromGRPC(e.company,n):delete o.company,null!=e.email?o.email=t.google.protobuf.StringValue.fromGRPC(e.email,n):delete o.email,o}}}return e.Object.defineProperty(AddressContactDetails.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.AddressContactDetails"),enumerable:!1,configurable:!1}),e.Object.defineProperty(AddressContactDetails.prototype,"__fqn__",{value:"wix.common.AddressContactDetails",enumerable:!1,configurable:!1}),e.Object.defineProperty(AddressContactDetails.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(AddressContactDetails.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),AddressContactDetails}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.firstName?i.firstName=t.google.protobuf.StringValue.toJSON(e.firstName,n,o):o&&delete i.firstName,null!=e.lastName?i.lastName=t.google.protobuf.StringValue.toJSON(e.lastName,n,o):o&&delete i.lastName,null!=e.fullName?i.fullName=t.google.protobuf.StringValue.toJSON(e.fullName,n,o):o&&delete i.fullName,null!=e.phone?i.phone=t.google.protobuf.StringValue.toJSON(e.phone,n,o):o&&delete i.phone,null!=e.company?i.company=t.google.protobuf.StringValue.toJSON(e.company,n,o):o&&delete i.company,null!=e.email?i.email=t.google.protobuf.StringValue.toJSON(e.email,n,o):o&&delete i.email,null!=e.vatId?i.vatId=t.wix.common.VatId.toJSON(e.vatId,n,o):o&&delete i.vatId,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.FullAddressContactDetails;return null!=e.firstName?o.firstName=t.google.protobuf.StringValue.fromJSON(e.firstName,n):delete o.firstName,null!=e.lastName?o.lastName=t.google.protobuf.StringValue.fromJSON(e.lastName,n):delete o.lastName,null!=e.fullName?o.fullName=t.google.protobuf.StringValue.fromJSON(e.fullName,n):delete o.fullName,null!=e.phone?o.phone=t.google.protobuf.StringValue.fromJSON(e.phone,n):delete o.phone,null!=e.company?o.company=t.google.protobuf.StringValue.fromJSON(e.company,n):delete o.company,null!=e.email?o.email=t.google.protobuf.StringValue.fromJSON(e.email,n):delete o.email,null!=e.vatId?o.vatId=t.wix.common.VatId.fromJSON(e.vatId,n):delete o.vatId,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.firstName&&(o.firstName=t.google.protobuf.StringValue.toGRPC(e.firstName,n)),null!=e.lastName&&(o.lastName=t.google.protobuf.StringValue.toGRPC(e.lastName,n)),null!=e.fullName&&(o.fullName=t.google.protobuf.StringValue.toGRPC(e.fullName,n)),null!=e.phone&&(o.phone=t.google.protobuf.StringValue.toGRPC(e.phone,n)),null!=e.company&&(o.company=t.google.protobuf.StringValue.toGRPC(e.company,n)),null!=e.email&&(o.email=t.google.protobuf.StringValue.toGRPC(e.email,n)),null!=e.vatId&&(o.vatId=t.wix.common.VatId.toGRPC(e.vatId,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.FullAddressContactDetails;return null!=e.firstName?o.firstName=t.google.protobuf.StringValue.fromGRPC(e.firstName,n):delete o.firstName,null!=e.lastName?o.lastName=t.google.protobuf.StringValue.fromGRPC(e.lastName,n):delete o.lastName,null!=e.fullName?o.fullName=t.google.protobuf.StringValue.fromGRPC(e.fullName,n):delete o.fullName,null!=e.phone?o.phone=t.google.protobuf.StringValue.fromGRPC(e.phone,n):delete o.phone,null!=e.company?o.company=t.google.protobuf.StringValue.fromGRPC(e.company,n):delete o.company,null!=e.email?o.email=t.google.protobuf.StringValue.fromGRPC(e.email,n):delete o.email,null!=e.vatId?o.vatId=t.wix.common.VatId.fromGRPC(e.vatId,n):delete o.vatId,o}}}return e.Object.defineProperty(FullAddressContactDetails.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.FullAddressContactDetails"),enumerable:!1,configurable:!1}),e.Object.defineProperty(FullAddressContactDetails.prototype,"__fqn__",{value:"wix.common.FullAddressContactDetails",enumerable:!1,configurable:!1}),e.Object.defineProperty(FullAddressContactDetails.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(FullAddressContactDetails.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),FullAddressContactDetails}(),n.VatId=function(){class VatId{constructor(e){this.id=e&&e.id,this.type=e&&e.type}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.id?n.id=e.id:o&&(n.id=""),null!=e.type?n.type=t.wix.common.VatType[e.type]:o&&(n.type="UNSPECIFIED"),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.VatId;return null!=e.id?n.id=e.id:!1!==o?n.id="":delete n.id,null!=e.type?n.type="string"==typeof e.type?e.type:t.wix.common.VatType[e.type]:!1!==o?n.type="UNSPECIFIED":delete n.type,n}}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,n){if(null==e)return null;{const n=new t.wix.common.VatId;return null!=e.id?n.id=e.id:n.id="",null!=e.type?n.type=e.type:n.type="UNSPECIFIED",n}}}return e.Object.defineProperty(VatId.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.VatId"),enumerable:!1,configurable:!1}),e.Object.defineProperty(VatId.prototype,"__fqn__",{value:"wix.common.VatId",enumerable:!1,configurable:!1}),e.Object.defineProperty(VatId.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(VatId.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),VatId}(),n.VatType={UNSPECIFIED:"UNSPECIFIED",0:"UNSPECIFIED",CPF:"CPF",1:"CPF",CNPJ:"CNPJ",2:"CNPJ"},n.AddressLocation=function(){class AddressLocation{constructor(e){this.latitude=e&&e.latitude,this.longitude=e&&e.longitude}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.latitude?i.latitude=t.google.protobuf.DoubleValue.toJSON(e.latitude,n,o):o&&delete i.latitude,null!=e.longitude?i.longitude=t.google.protobuf.DoubleValue.toJSON(e.longitude,n,o):o&&delete i.longitude,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.AddressLocation;return null!=e.latitude?o.latitude=t.google.protobuf.DoubleValue.fromJSON(e.latitude,n):delete o.latitude,null!=e.longitude?o.longitude=t.google.protobuf.DoubleValue.fromJSON(e.longitude,n):delete o.longitude,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.latitude&&(o.latitude=t.google.protobuf.DoubleValue.toGRPC(e.latitude,n)),null!=e.longitude&&(o.longitude=t.google.protobuf.DoubleValue.toGRPC(e.longitude,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.AddressLocation;return null!=e.latitude?o.latitude=t.google.protobuf.DoubleValue.fromGRPC(e.latitude,n):delete o.latitude,null!=e.longitude?o.longitude=t.google.protobuf.DoubleValue.fromGRPC(e.longitude,n):delete o.longitude,o}}}return e.Object.defineProperty(AddressLocation.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.AddressLocation"),enumerable:!1,configurable:!1}),e.Object.defineProperty(AddressLocation.prototype,"__fqn__",{value:"wix.common.AddressLocation",enumerable:!1,configurable:!1}),e.Object.defineProperty(AddressLocation.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(AddressLocation.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),AddressLocation}(),n.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,n){if(null==e)return null;{const t={};return null!=e.totalSuccesses?t.totalSuccesses=e.totalSuccesses:n&&(t.totalSuccesses=0),null!=e.totalFailures?t.totalFailures=e.totalFailures:n&&(t.totalFailures=0),null!=e.undetailedFailures?t.undetailedFailures=e.undetailedFailures:n&&(t.undetailedFailures=0),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.BulkActionMetadata;return null!=e.totalSuccesses?n.totalSuccesses=e.totalSuccesses:!1!==o?n.totalSuccesses=0:delete n.totalSuccesses,null!=e.totalFailures?n.totalFailures=e.totalFailures:!1!==o?n.totalFailures=0:delete n.totalFailures,null!=e.undetailedFailures?n.undetailedFailures=e.undetailedFailures:!1!==o?n.undetailedFailures=0:delete n.undetailedFailures,n}}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,n){if(null==e)return null;{const n=new t.wix.common.BulkActionMetadata;return null!=e.totalSuccesses?n.totalSuccesses=e.totalSuccesses:n.totalSuccesses=0,null!=e.totalFailures?n.totalFailures=e.totalFailures:n.totalFailures=0,null!=e.undetailedFailures?n.undetailedFailures=e.undetailedFailures:n.undetailedFailures=0,n}}}return e.Object.defineProperty(BulkActionMetadata.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.BulkActionMetadata"),enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkActionMetadata.prototype,"__fqn__",{value:"wix.common.BulkActionMetadata",enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkActionMetadata.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(BulkActionMetadata.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),BulkActionMetadata}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.id?i.id=t.google.protobuf.StringValue.toJSON(e.id,n,o):o&&delete i.id,null!=e.originalIndex?i.originalIndex=e.originalIndex:o&&(i.originalIndex=0),null!=e.success?i.success=e.success:o&&(i.success=!1),null!=e.error?i.error=t.wix.api.ApplicationError.toJSON(e.error,n,o):o&&delete i.error,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.ItemMetadata;return null!=e.id?i.id=t.google.protobuf.StringValue.fromJSON(e.id,n):delete i.id,null!=e.originalIndex?i.originalIndex=e.originalIndex:!1!==o?i.originalIndex=0:delete i.originalIndex,null!=e.success?i.success=e.success:!1!==o?i.success=!1:delete i.success,null!=e.error?i.error=t.wix.api.ApplicationError.fromJSON(e.error,n):delete i.error,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.id&&(o.id=t.google.protobuf.StringValue.toGRPC(e.id,n)),null!=e.originalIndex&&(o.originalIndex=e.originalIndex),null!=e.success&&(o.success=e.success),null!=e.error&&(o.error=t.wix.api.ApplicationError.toGRPC(e.error,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.ItemMetadata;return null!=e.id?o.id=t.google.protobuf.StringValue.fromGRPC(e.id,n):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=t.wix.api.ApplicationError.fromGRPC(e.error,n):delete o.error,o}}}return e.Object.defineProperty(ItemMetadata.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.ItemMetadata"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ItemMetadata.prototype,"__fqn__",{value:"wix.common.ItemMetadata",enumerable:!1,configurable:!1}),e.Object.defineProperty(ItemMetadata.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ItemMetadata.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ItemMetadata}(),n.BulkActionType={UNKNOWN_ACTION_TYPE:"UNKNOWN_ACTION_TYPE",0:"UNKNOWN_ACTION_TYPE",INSERT:"INSERT",1:"INSERT",UPDATE:"UPDATE",2:"UPDATE",DELETE:"DELETE",3:"DELETE"},n.domainevents=function(){const n={};return n.AttributeUpdated=function(){class AttributeUpdated{constructor(e){this.previousValue=e&&e.previousValue,this.value=e&&e.value}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.previousValue?i.previousValue=t.google.protobuf.Value.toJSON(e.previousValue,n,o):o&&delete i.previousValue,null!=e.value?i.value=t.google.protobuf.Value.toJSON(e.value,n,o):o&&delete i.value,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.domainevents.AttributeUpdated;return null!=e.previousValue?o.previousValue=t.google.protobuf.Value.fromJSON(e.previousValue,n):delete o.previousValue,null!=e.value?o.value=t.google.protobuf.Value.fromJSON(e.value,n):delete o.value,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return o.previousValue=t.google.protobuf.Value.toGRPC(e.previousValue,n),o.value=t.google.protobuf.Value.toGRPC(e.value,n),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.domainevents.AttributeUpdated;return null!=e.previousValue?o.previousValue=t.google.protobuf.Value.fromGRPC(e.previousValue,n):delete o.previousValue,null!=e.value?o.value=t.google.protobuf.Value.fromGRPC(e.value,n):delete o.value,o}}}return e.Object.defineProperty(AttributeUpdated.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.domainevents.AttributeUpdated"),enumerable:!1,configurable:!1}),e.Object.defineProperty(AttributeUpdated.prototype,"__fqn__",{value:"wix.common.domainevents.AttributeUpdated",enumerable:!1,configurable:!1}),e.Object.defineProperty(AttributeUpdated.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(AttributeUpdated.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),AttributeUpdated}(),n.EntityCreatedEvent=function(){class EntityCreatedEvent{constructor(e){this.entityAsJson=e&&e.entityAsJson,this.triggeredByUndelete=e&&e.triggeredByUndelete,this.restoreInfo=e&&e.restoreInfo,this.additionalMetadataAsJson=e&&e.additionalMetadataAsJson}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.entityAsJson?i.entityAsJson=e.entityAsJson:o&&(i.entityAsJson=""),null!=e.triggeredByUndelete?i.triggeredByUndelete=t.google.protobuf.BoolValue.toJSON(e.triggeredByUndelete,n,o):o&&delete i.triggeredByUndelete,null!=e.restoreInfo?i.restoreInfo=t.wix.common.domainevents.RestoreInfo.toJSON(e.restoreInfo,n,o):o&&delete i.restoreInfo,null!=e.additionalMetadataAsJson?i.additionalMetadataAsJson=t.google.protobuf.StringValue.toJSON(e.additionalMetadataAsJson,n,o):o&&delete i.additionalMetadataAsJson,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.domainevents.EntityCreatedEvent;return null!=e.entityAsJson?i.entityAsJson=e.entityAsJson:!1!==o?i.entityAsJson="":delete i.entityAsJson,null!=e.triggeredByUndelete?i.triggeredByUndelete=t.google.protobuf.BoolValue.fromJSON(e.triggeredByUndelete,n):delete i.triggeredByUndelete,null!=e.restoreInfo?i.restoreInfo=t.wix.common.domainevents.RestoreInfo.fromJSON(e.restoreInfo,n):delete i.restoreInfo,null!=e.additionalMetadataAsJson?i.additionalMetadataAsJson=t.google.protobuf.StringValue.fromJSON(e.additionalMetadataAsJson,n):delete i.additionalMetadataAsJson,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.entityAsJson&&(o.entityAsJson=e.entityAsJson),null!=e.triggeredByUndelete&&(o.triggeredByUndelete=t.google.protobuf.BoolValue.toGRPC(e.triggeredByUndelete,n)),null!=e.restoreInfo&&(o.restoreInfo=t.wix.common.domainevents.RestoreInfo.toGRPC(e.restoreInfo,n)),null!=e.additionalMetadataAsJson&&(o.additionalMetadataAsJson=t.google.protobuf.StringValue.toGRPC(e.additionalMetadataAsJson,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.domainevents.EntityCreatedEvent;return null!=e.entityAsJson?o.entityAsJson=e.entityAsJson:o.entityAsJson="",null!=e.triggeredByUndelete?o.triggeredByUndelete=t.google.protobuf.BoolValue.fromGRPC(e.triggeredByUndelete,n):delete o.triggeredByUndelete,null!=e.restoreInfo?o.restoreInfo=t.wix.common.domainevents.RestoreInfo.fromGRPC(e.restoreInfo,n):delete o.restoreInfo,null!=e.additionalMetadataAsJson?o.additionalMetadataAsJson=t.google.protobuf.StringValue.fromGRPC(e.additionalMetadataAsJson,n):delete o.additionalMetadataAsJson,o}}}return e.Object.defineProperty(EntityCreatedEvent.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.domainevents.EntityCreatedEvent"),enumerable:!1,configurable:!1}),e.Object.defineProperty(EntityCreatedEvent.prototype,"__fqn__",{value:"wix.common.domainevents.EntityCreatedEvent",enumerable:!1,configurable:!1}),e.Object.defineProperty(EntityCreatedEvent.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(EntityCreatedEvent.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),EntityCreatedEvent}(),n.EntityUpdatedEvent=function(){class EntityUpdatedEvent{constructor(e){this.currentEntityAsJson=e&&e.currentEntityAsJson,this.previousEntityAsJson=e&&e.previousEntityAsJson,this.modifiedFields=e&&e.modifiedFields,this.additionalMetadataAsJson=e&&e.additionalMetadataAsJson}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.currentEntityAsJson?i.currentEntityAsJson=e.currentEntityAsJson:o&&(i.currentEntityAsJson=""),null!=e.previousEntityAsJson?i.previousEntityAsJson=t.google.protobuf.StringValue.toJSON(e.previousEntityAsJson,n,o):o&&delete i.previousEntityAsJson,null!=e.modifiedFields?i.modifiedFields=Object.entries(e.modifiedFields).reduce((e,[i,l])=>(e[i]=t.google.protobuf.Value.toJSON(l,n,o),e),{}):o&&delete i.modifiedFields,null!=e.additionalMetadataAsJson?i.additionalMetadataAsJson=t.google.protobuf.StringValue.toJSON(e.additionalMetadataAsJson,n,o):o&&delete i.additionalMetadataAsJson,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.domainevents.EntityUpdatedEvent;return null!=e.currentEntityAsJson?i.currentEntityAsJson=e.currentEntityAsJson:!1!==o?i.currentEntityAsJson="":delete i.currentEntityAsJson,null!=e.previousEntityAsJson?i.previousEntityAsJson=t.google.protobuf.StringValue.fromJSON(e.previousEntityAsJson,n):delete i.previousEntityAsJson,null!=e.modifiedFields?i.modifiedFields=Object.entries(e.modifiedFields).reduce((e,[o,i])=>(e[o]=t.google.protobuf.Value.fromJSON(i,n),e),{}):delete i.modifiedFields,null!=e.additionalMetadataAsJson?i.additionalMetadataAsJson=t.google.protobuf.StringValue.fromJSON(e.additionalMetadataAsJson,n):delete i.additionalMetadataAsJson,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.currentEntityAsJson&&(o.currentEntityAsJson=e.currentEntityAsJson),null!=e.previousEntityAsJson&&(o.previousEntityAsJson=t.google.protobuf.StringValue.toGRPC(e.previousEntityAsJson,n)),o.modifiedFields=Object.entries(e.modifiedFields).reduce((e,[o,i])=>(e[o]=t.google.protobuf.Value.toGRPC(i,n),e),{}),null!=e.additionalMetadataAsJson&&(o.additionalMetadataAsJson=t.google.protobuf.StringValue.toGRPC(e.additionalMetadataAsJson,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.domainevents.EntityUpdatedEvent;return null!=e.currentEntityAsJson?o.currentEntityAsJson=e.currentEntityAsJson:o.currentEntityAsJson="",null!=e.previousEntityAsJson?o.previousEntityAsJson=t.google.protobuf.StringValue.fromGRPC(e.previousEntityAsJson,n):delete o.previousEntityAsJson,null!=e.modifiedFields?o.modifiedFields=Object.entries(e.modifiedFields).reduce((e,[o,i])=>(e[o]=t.google.protobuf.Value.fromGRPC(i,n),e),{}):delete o.modifiedFields,null!=e.additionalMetadataAsJson?o.additionalMetadataAsJson=t.google.protobuf.StringValue.fromGRPC(e.additionalMetadataAsJson,n):delete o.additionalMetadataAsJson,o}}}return e.Object.defineProperty(EntityUpdatedEvent.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.domainevents.EntityUpdatedEvent"),enumerable:!1,configurable:!1}),e.Object.defineProperty(EntityUpdatedEvent.prototype,"__fqn__",{value:"wix.common.domainevents.EntityUpdatedEvent",enumerable:!1,configurable:!1}),e.Object.defineProperty(EntityUpdatedEvent.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(EntityUpdatedEvent.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),EntityUpdatedEvent}(),n.EntityDeletedEvent=function(){class EntityDeletedEvent{constructor(e){this.movedToTrash=e&&e.movedToTrash,this.deletedEntityAsJson=e&&e.deletedEntityAsJson,this.additionalMetadataAsJson=e&&e.additionalMetadataAsJson}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.movedToTrash?i.movedToTrash=t.google.protobuf.BoolValue.toJSON(e.movedToTrash,n,o):o&&delete i.movedToTrash,null!=e.deletedEntityAsJson?i.deletedEntityAsJson=t.google.protobuf.StringValue.toJSON(e.deletedEntityAsJson,n,o):o&&delete i.deletedEntityAsJson,null!=e.additionalMetadataAsJson?i.additionalMetadataAsJson=t.google.protobuf.StringValue.toJSON(e.additionalMetadataAsJson,n,o):o&&delete i.additionalMetadataAsJson,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.domainevents.EntityDeletedEvent;return null!=e.movedToTrash?o.movedToTrash=t.google.protobuf.BoolValue.fromJSON(e.movedToTrash,n):delete o.movedToTrash,null!=e.deletedEntityAsJson?o.deletedEntityAsJson=t.google.protobuf.StringValue.fromJSON(e.deletedEntityAsJson,n):delete o.deletedEntityAsJson,null!=e.additionalMetadataAsJson?o.additionalMetadataAsJson=t.google.protobuf.StringValue.fromJSON(e.additionalMetadataAsJson,n):delete o.additionalMetadataAsJson,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.movedToTrash&&(o.movedToTrash=t.google.protobuf.BoolValue.toGRPC(e.movedToTrash,n)),null!=e.deletedEntityAsJson&&(o.deletedEntityAsJson=t.google.protobuf.StringValue.toGRPC(e.deletedEntityAsJson,n)),null!=e.additionalMetadataAsJson&&(o.additionalMetadataAsJson=t.google.protobuf.StringValue.toGRPC(e.additionalMetadataAsJson,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.domainevents.EntityDeletedEvent;return null!=e.movedToTrash?o.movedToTrash=t.google.protobuf.BoolValue.fromGRPC(e.movedToTrash,n):delete o.movedToTrash,null!=e.deletedEntityAsJson?o.deletedEntityAsJson=t.google.protobuf.StringValue.fromGRPC(e.deletedEntityAsJson,n):delete o.deletedEntityAsJson,null!=e.additionalMetadataAsJson?o.additionalMetadataAsJson=t.google.protobuf.StringValue.fromGRPC(e.additionalMetadataAsJson,n):delete o.additionalMetadataAsJson,o}}}return e.Object.defineProperty(EntityDeletedEvent.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.domainevents.EntityDeletedEvent"),enumerable:!1,configurable:!1}),e.Object.defineProperty(EntityDeletedEvent.prototype,"__fqn__",{value:"wix.common.domainevents.EntityDeletedEvent",enumerable:!1,configurable:!1}),e.Object.defineProperty(EntityDeletedEvent.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(EntityDeletedEvent.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),EntityDeletedEvent}(),n.ActionEvent=function(){class ActionEvent{constructor(e){this.bodyAsJson=e&&e.bodyAsJson}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.bodyAsJson?t.bodyAsJson=e.bodyAsJson:n&&(t.bodyAsJson=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.domainevents.ActionEvent;return null!=e.bodyAsJson?n.bodyAsJson=e.bodyAsJson:!1!==o?n.bodyAsJson="":delete n.bodyAsJson,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.bodyAsJson&&(t.bodyAsJson=e.bodyAsJson),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.common.domainevents.ActionEvent;return null!=e.bodyAsJson?n.bodyAsJson=e.bodyAsJson:n.bodyAsJson="",n}}}return e.Object.defineProperty(ActionEvent.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.domainevents.ActionEvent"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ActionEvent.prototype,"__fqn__",{value:"wix.common.domainevents.ActionEvent",enumerable:!1,configurable:!1}),e.Object.defineProperty(ActionEvent.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ActionEvent.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ActionEvent}(),n.DomainEvent=function(){class DomainEvent{constructor(e){this.id=e&&e.id,this.entityFqdn=e&&e.entityFqdn,this.slug=e&&e.slug,this.entityId=e&&e.entityId,this.createdEvent=e&&e.createdEvent,this.updatedEvent=e&&e.updatedEvent,this.deletedEvent=e&&e.deletedEvent,this.actionEvent=e&&e.actionEvent,this.eventTime=e&&e.eventTime,this.triggeredByAnonymizeRequest=e&&e.triggeredByAnonymizeRequest,this.originatedFrom=e&&e.originatedFrom,this.entityEventSequence=e&&e.entityEventSequence}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.id?i.id=e.id:o&&(i.id=""),null!=e.entityFqdn?i.entityFqdn=e.entityFqdn:o&&(i.entityFqdn=""),null!=e.slug?i.slug=e.slug:o&&(i.slug=""),null!=e.entityId?i.entityId=e.entityId:o&&(i.entityId=""),null!=e.createdEvent?i.createdEvent=t.wix.common.domainevents.EntityCreatedEvent.toJSON(e.createdEvent,n,o):o&&delete i.createdEvent,null!=e.updatedEvent?i.updatedEvent=t.wix.common.domainevents.EntityUpdatedEvent.toJSON(e.updatedEvent,n,o):o&&delete i.updatedEvent,null!=e.deletedEvent?i.deletedEvent=t.wix.common.domainevents.EntityDeletedEvent.toJSON(e.deletedEvent,n,o):o&&delete i.deletedEvent,null!=e.actionEvent?i.actionEvent=t.wix.common.domainevents.ActionEvent.toJSON(e.actionEvent,n,o):o&&delete i.actionEvent,null!=e.eventTime?i.eventTime=t.google.protobuf.Timestamp.toJSON(e.eventTime,n,o):o&&delete i.eventTime,null!=e.triggeredByAnonymizeRequest?i.triggeredByAnonymizeRequest=t.google.protobuf.BoolValue.toJSON(e.triggeredByAnonymizeRequest,n,o):o&&delete i.triggeredByAnonymizeRequest,null!=e.originatedFrom?i.originatedFrom=t.google.protobuf.StringValue.toJSON(e.originatedFrom,n,o):o&&delete i.originatedFrom,null!=e.entityEventSequence?i.entityEventSequence=t.google.protobuf.Int64Value.toJSON(e.entityEventSequence,n,o):o&&delete i.entityEventSequence,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.domainevents.DomainEvent;return null!=e.id?i.id=e.id:!1!==o?i.id="":delete i.id,null!=e.entityFqdn?i.entityFqdn=e.entityFqdn:!1!==o?i.entityFqdn="":delete i.entityFqdn,null!=e.slug?i.slug=e.slug:!1!==o?i.slug="":delete i.slug,null!=e.entityId?i.entityId=e.entityId:!1!==o?i.entityId="":delete i.entityId,null!=e.createdEvent?i.createdEvent=t.wix.common.domainevents.EntityCreatedEvent.fromJSON(e.createdEvent,n):delete i.createdEvent,null!=e.updatedEvent?i.updatedEvent=t.wix.common.domainevents.EntityUpdatedEvent.fromJSON(e.updatedEvent,n):delete i.updatedEvent,null!=e.deletedEvent?i.deletedEvent=t.wix.common.domainevents.EntityDeletedEvent.fromJSON(e.deletedEvent,n):delete i.deletedEvent,null!=e.actionEvent?i.actionEvent=t.wix.common.domainevents.ActionEvent.fromJSON(e.actionEvent,n):delete i.actionEvent,null!=e.eventTime?i.eventTime=t.google.protobuf.Timestamp.fromJSON(e.eventTime,n):delete i.eventTime,null!=e.triggeredByAnonymizeRequest?i.triggeredByAnonymizeRequest=t.google.protobuf.BoolValue.fromJSON(e.triggeredByAnonymizeRequest,n):delete i.triggeredByAnonymizeRequest,null!=e.originatedFrom?i.originatedFrom=t.google.protobuf.StringValue.fromJSON(e.originatedFrom,n):delete i.originatedFrom,null!=e.entityEventSequence?i.entityEventSequence=t.google.protobuf.Int64Value.fromJSON(e.entityEventSequence,n):delete i.entityEventSequence,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.id&&(o.id=e.id),null!=e.entityFqdn&&(o.entityFqdn=e.entityFqdn),null!=e.slug&&(o.slug=e.slug),null!=e.entityId&&(o.entityId=e.entityId),null!=e.createdEvent&&(o.createdEvent=t.wix.common.domainevents.EntityCreatedEvent.toGRPC(e.createdEvent,n)),null!=e.updatedEvent&&(o.updatedEvent=t.wix.common.domainevents.EntityUpdatedEvent.toGRPC(e.updatedEvent,n)),null!=e.deletedEvent&&(o.deletedEvent=t.wix.common.domainevents.EntityDeletedEvent.toGRPC(e.deletedEvent,n)),null!=e.actionEvent&&(o.actionEvent=t.wix.common.domainevents.ActionEvent.toGRPC(e.actionEvent,n)),null!=e.eventTime&&(o.eventTime=t.google.protobuf.Timestamp.toGRPC(e.eventTime,n)),null!=e.triggeredByAnonymizeRequest&&(o.triggeredByAnonymizeRequest=t.google.protobuf.BoolValue.toGRPC(e.triggeredByAnonymizeRequest,n)),null!=e.originatedFrom&&(o.originatedFrom=t.google.protobuf.StringValue.toGRPC(e.originatedFrom,n)),null!=e.entityEventSequence&&(o.entityEventSequence=t.google.protobuf.Int64Value.toGRPC(e.entityEventSequence,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.domainevents.DomainEvent;return null!=e.id?o.id=e.id:o.id="",null!=e.entityFqdn?o.entityFqdn=e.entityFqdn:o.entityFqdn="",null!=e.slug?o.slug=e.slug:o.slug="",null!=e.entityId?o.entityId=e.entityId:o.entityId="",null!=e.createdEvent?o.createdEvent=t.wix.common.domainevents.EntityCreatedEvent.fromGRPC(e.createdEvent,n):delete o.createdEvent,null!=e.updatedEvent?o.updatedEvent=t.wix.common.domainevents.EntityUpdatedEvent.fromGRPC(e.updatedEvent,n):delete o.updatedEvent,null!=e.deletedEvent?o.deletedEvent=t.wix.common.domainevents.EntityDeletedEvent.fromGRPC(e.deletedEvent,n):delete o.deletedEvent,null!=e.actionEvent?o.actionEvent=t.wix.common.domainevents.ActionEvent.fromGRPC(e.actionEvent,n):delete o.actionEvent,null!=e.eventTime?o.eventTime=t.google.protobuf.Timestamp.fromGRPC(e.eventTime,n):delete o.eventTime,null!=e.triggeredByAnonymizeRequest?o.triggeredByAnonymizeRequest=t.google.protobuf.BoolValue.fromGRPC(e.triggeredByAnonymizeRequest,n):delete o.triggeredByAnonymizeRequest,null!=e.originatedFrom?o.originatedFrom=t.google.protobuf.StringValue.fromGRPC(e.originatedFrom,n):delete o.originatedFrom,null!=e.entityEventSequence?o.entityEventSequence=t.google.protobuf.Int64Value.fromGRPC(e.entityEventSequence,n):delete o.entityEventSequence,o}}}return e.Object.defineProperty(DomainEvent.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.domainevents.DomainEvent"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEvent.prototype,"__fqn__",{value:"wix.common.domainevents.DomainEvent",enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEvent.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEvent.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DomainEvent}(),n.DomainEvents=function(){class DomainEvents{constructor(e){this.domainEvents=e&&e.domainEvents}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.domainEvents?i.domainEvents=e.domainEvents.map(e=>t.wix.common.domainevents.DomainEvent.toJSON(e,n,o)):o&&(i.domainEvents=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.domainevents.DomainEvents;return null!=e.domainEvents?i.domainEvents=Array.isArray(e.domainEvents)?e.domainEvents.map(e=>t.wix.common.domainevents.DomainEvent.fromJSON(e,n)):e.domainEvents:!1!==o?i.domainEvents=[]:delete i.domainEvents,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.domainEvents&&(o.domainEvents=e.domainEvents.map(e=>t.wix.common.domainevents.DomainEvent.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.domainevents.DomainEvents;return null!=e.domainEvents?o.domainEvents=e.domainEvents.map(e=>t.wix.common.domainevents.DomainEvent.fromGRPC(e,n)):o.domainEvents=[],o}}}return e.Object.defineProperty(DomainEvents.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.domainevents.DomainEvents"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEvents.prototype,"__fqn__",{value:"wix.common.domainevents.DomainEvents",enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEvents.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DomainEvents.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DomainEvents}(),n.RestoreInfo=function(){class RestoreInfo{constructor(e){this.deletedDate=e&&e.deletedDate}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.deletedDate?i.deletedDate=t.google.protobuf.Timestamp.toJSON(e.deletedDate,n,o):o&&delete i.deletedDate,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.domainevents.RestoreInfo;return null!=e.deletedDate?o.deletedDate=t.google.protobuf.Timestamp.fromJSON(e.deletedDate,n):delete o.deletedDate,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.deletedDate&&(o.deletedDate=t.google.protobuf.Timestamp.toGRPC(e.deletedDate,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.domainevents.RestoreInfo;return null!=e.deletedDate?o.deletedDate=t.google.protobuf.Timestamp.fromGRPC(e.deletedDate,n):delete o.deletedDate,o}}}return e.Object.defineProperty(RestoreInfo.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.domainevents.RestoreInfo"),enumerable:!1,configurable:!1}),e.Object.defineProperty(RestoreInfo.prototype,"__fqn__",{value:"wix.common.domainevents.RestoreInfo",enumerable:!1,configurable:!1}),e.Object.defineProperty(RestoreInfo.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(RestoreInfo.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),RestoreInfo}(),n}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.contactId?i.contactId=t.google.protobuf.StringValue.toJSON(e.contactId,n,o):o&&delete i.contactId,null!=e.identityType?i.identityType=t.wix.common.IdentificationData.IdentityType[e.identityType]:o&&(i.identityType="UNKNOWN"),null!=e.anonymousVisitorId?i.anonymousVisitorId=e.anonymousVisitorId:o&&delete i.anonymousVisitorId,null!=e.memberId?i.memberId=e.memberId:o&&delete i.memberId,null!=e.wixUserId?i.wixUserId=e.wixUserId:o&&delete i.wixUserId,null!=e.appId?i.appId=e.appId:o&&delete i.appId,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.IdentificationData;return null!=e.contactId?i.contactId=t.google.protobuf.StringValue.fromJSON(e.contactId,n):delete i.contactId,null!=e.identityType?i.identityType="string"==typeof e.identityType?e.identityType:t.wix.common.IdentificationData.IdentityType[e.identityType]:!1!==o?i.identityType="UNKNOWN":delete i.identityType,null!=e.anonymousVisitorId?i.anonymousVisitorId=e.anonymousVisitorId:delete i.anonymousVisitorId,null!=e.memberId?i.memberId=e.memberId:delete i.memberId,null!=e.wixUserId?i.wixUserId=e.wixUserId:delete i.wixUserId,null!=e.appId?i.appId=e.appId:delete i.appId,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.contactId&&(o.contactId=t.google.protobuf.StringValue.toGRPC(e.contactId,n)),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,n){if(null==e)return null;{const o=new t.wix.common.IdentificationData;return null!=e.contactId?o.contactId=t.google.protobuf.StringValue.fromGRPC(e.contactId,n):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"},e.Object.defineProperty(IdentificationData.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.IdentificationData"),enumerable:!1,configurable:!1}),e.Object.defineProperty(IdentificationData.prototype,"__fqn__",{value:"wix.common.IdentificationData",enumerable:!1,configurable:!1}),e.Object.defineProperty(IdentificationData.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(IdentificationData.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),IdentificationData}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.id?i.id=e.id:o&&(i.id=""),null!=e.url?i.url=e.url:o&&(i.url=""),null!=e.height?i.height=e.height:o&&(i.height=0),null!=e.width?i.width=e.width:o&&(i.width=0),null!=e.altText?i.altText=t.google.protobuf.StringValue.toJSON(e.altText,n,o):o&&delete i.altText,null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,n,o):o&&delete i.urlExpirationDate,null!=e.filename?i.filename=t.google.protobuf.StringValue.toJSON(e.filename,n,o):o&&delete i.filename,null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.toJSON(e.sizeInBytes,n,o):o&&delete i.sizeInBytes,null!=e.focalPoint?i.focalPoint=t.wix.common.FocalPoint.toJSON(e.focalPoint,n,o):o&&delete i.focalPoint,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.Image;return null!=e.id?i.id=e.id:!1!==o?i.id="":delete i.id,null!=e.url?i.url=e.url:!1!==o?i.url="":delete i.url,null!=e.height?i.height=e.height:!1!==o?i.height=0:delete i.height,null!=e.width?i.width=e.width:!1!==o?i.width=0:delete i.width,null!=e.altText?i.altText=t.google.protobuf.StringValue.fromJSON(e.altText,n):delete i.altText,null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,n):delete i.urlExpirationDate,null!=e.filename?i.filename=t.google.protobuf.StringValue.fromJSON(e.filename,n):delete i.filename,null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.fromJSON(e.sizeInBytes,n):delete i.sizeInBytes,null!=e.focalPoint?i.focalPoint=t.wix.common.FocalPoint.fromJSON(e.focalPoint,n):delete i.focalPoint,i}}static toGRPC(e,n){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=t.google.protobuf.StringValue.toGRPC(e.altText,n)),null!=e.urlExpirationDate&&(o.urlExpirationDate=t.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,n)),null!=e.filename&&(o.filename=t.google.protobuf.StringValue.toGRPC(e.filename,n)),null!=e.sizeInBytes&&(o.sizeInBytes=t.google.protobuf.StringValue.toGRPC(e.sizeInBytes,n)),null!=e.focalPoint&&(o.focalPoint=t.wix.common.FocalPoint.toGRPC(e.focalPoint,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.StringValue.fromGRPC(e.altText,n):delete o.altText,null!=e.urlExpirationDate?o.urlExpirationDate=t.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,n):delete o.urlExpirationDate,null!=e.filename?o.filename=t.google.protobuf.StringValue.fromGRPC(e.filename,n):delete o.filename,null!=e.sizeInBytes?o.sizeInBytes=t.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,n):delete o.sizeInBytes,null!=e.focalPoint?o.focalPoint=t.wix.common.FocalPoint.fromGRPC(e.focalPoint,n):delete o.focalPoint,o}}}return e.Object.defineProperty(Image.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Image"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Image.prototype,"__fqn__",{value:"wix.common.Image",enumerable:!1,configurable:!1}),e.Object.defineProperty(Image.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Image.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Image}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.id?i.id=e.id:o&&(i.id=""),null!=e.url?i.url=e.url:o&&(i.url=""),null!=e.height?i.height=e.height:o&&(i.height=0),null!=e.width?i.width=e.width:o&&(i.width=0),null!=e.thumbnail?i.thumbnail=t.wix.common.Image.toJSON(e.thumbnail,n,o):o&&delete i.thumbnail,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.Video;return null!=e.id?i.id=e.id:!1!==o?i.id="":delete i.id,null!=e.url?i.url=e.url:!1!==o?i.url="":delete i.url,null!=e.height?i.height=e.height:!1!==o?i.height=0:delete i.height,null!=e.width?i.width=e.width:!1!==o?i.width=0:delete i.width,null!=e.thumbnail?i.thumbnail=t.wix.common.Image.fromJSON(e.thumbnail,n):delete i.thumbnail,i}}static toGRPC(e,n){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=t.wix.common.Image.toGRPC(e.thumbnail,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.wix.common.Image.fromGRPC(e.thumbnail,n):delete o.thumbnail,o}}}return e.Object.defineProperty(Video.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Video"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Video.prototype,"__fqn__",{value:"wix.common.Video",enumerable:!1,configurable:!1}),e.Object.defineProperty(Video.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Video.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Video}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.id?i.id=e.id:o&&(i.id=""),null!=e.url?i.url=e.url:o&&(i.url=""),null!=e.resolutions?i.resolutions=e.resolutions.map(e=>t.wix.common.VideoResolution.toJSON(e,n,o)):o&&(i.resolutions=[]),null!=e.filename?i.filename=t.google.protobuf.StringValue.toJSON(e.filename,n,o):o&&delete i.filename,null!=e.posters?i.posters=e.posters.map(e=>t.wix.common.Image.toJSON(e,n,o)):o&&(i.posters=[]),null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.toJSON(e.sizeInBytes,n,o):o&&delete i.sizeInBytes,null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,n,o):o&&delete i.urlExpirationDate,null!=e.durationInMilliseconds?i.durationInMilliseconds=t.google.protobuf.Int32Value.toJSON(e.durationInMilliseconds,n,o):o&&delete i.durationInMilliseconds,null!=e.title?i.title=t.google.protobuf.StringValue.toJSON(e.title,n,o):o&&delete i.title,null!=e.description?i.description=t.google.protobuf.StringValue.toJSON(e.description,n,o):o&&delete i.description,null!=e.height?i.height=t.google.protobuf.Int32Value.toJSON(e.height,n,o):o&&delete i.height,null!=e.width?i.width=t.google.protobuf.Int32Value.toJSON(e.width,n,o):o&&delete i.width,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.VideoV2;return null!=e.id?i.id=e.id:!1!==o?i.id="":delete i.id,null!=e.url?i.url=e.url:!1!==o?i.url="":delete i.url,null!=e.resolutions?i.resolutions=Array.isArray(e.resolutions)?e.resolutions.map(e=>t.wix.common.VideoResolution.fromJSON(e,n)):e.resolutions:!1!==o?i.resolutions=[]:delete i.resolutions,null!=e.filename?i.filename=t.google.protobuf.StringValue.fromJSON(e.filename,n):delete i.filename,null!=e.posters?i.posters=Array.isArray(e.posters)?e.posters.map(e=>t.wix.common.Image.fromJSON(e,n)):e.posters:!1!==o?i.posters=[]:delete i.posters,null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.fromJSON(e.sizeInBytes,n):delete i.sizeInBytes,null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,n):delete i.urlExpirationDate,null!=e.durationInMilliseconds?i.durationInMilliseconds=t.google.protobuf.Int32Value.fromJSON(e.durationInMilliseconds,n):delete i.durationInMilliseconds,null!=e.title?i.title=t.google.protobuf.StringValue.fromJSON(e.title,n):delete i.title,null!=e.description?i.description=t.google.protobuf.StringValue.fromJSON(e.description,n):delete i.description,null!=e.height?i.height=t.google.protobuf.Int32Value.fromJSON(e.height,n):delete i.height,null!=e.width?i.width=t.google.protobuf.Int32Value.fromJSON(e.width,n):delete i.width,i}}static toGRPC(e,n){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=>t.wix.common.VideoResolution.toGRPC(e,n))),null!=e.filename&&(o.filename=t.google.protobuf.StringValue.toGRPC(e.filename,n)),null!=e.posters&&(o.posters=e.posters.map(e=>t.wix.common.Image.toGRPC(e,n))),null!=e.sizeInBytes&&(o.sizeInBytes=t.google.protobuf.StringValue.toGRPC(e.sizeInBytes,n)),null!=e.urlExpirationDate&&(o.urlExpirationDate=t.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,n)),null!=e.durationInMilliseconds&&(o.durationInMilliseconds=t.google.protobuf.Int32Value.toGRPC(e.durationInMilliseconds,n)),null!=e.title&&(o.title=t.google.protobuf.StringValue.toGRPC(e.title,n)),null!=e.description&&(o.description=t.google.protobuf.StringValue.toGRPC(e.description,n)),null!=e.height&&(o.height=t.google.protobuf.Int32Value.toGRPC(e.height,n)),null!=e.width&&(o.width=t.google.protobuf.Int32Value.toGRPC(e.width,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.wix.common.VideoResolution.fromGRPC(e,n)):o.resolutions=[],null!=e.filename?o.filename=t.google.protobuf.StringValue.fromGRPC(e.filename,n):delete o.filename,null!=e.posters?o.posters=e.posters.map(e=>t.wix.common.Image.fromGRPC(e,n)):o.posters=[],null!=e.sizeInBytes?o.sizeInBytes=t.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,n):delete o.sizeInBytes,null!=e.urlExpirationDate?o.urlExpirationDate=t.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,n):delete o.urlExpirationDate,null!=e.durationInMilliseconds?o.durationInMilliseconds=t.google.protobuf.Int32Value.fromGRPC(e.durationInMilliseconds,n):delete o.durationInMilliseconds,null!=e.title?o.title=t.google.protobuf.StringValue.fromGRPC(e.title,n):delete o.title,null!=e.description?o.description=t.google.protobuf.StringValue.fromGRPC(e.description,n):delete o.description,null!=e.height?o.height=t.google.protobuf.Int32Value.fromGRPC(e.height,n):delete o.height,null!=e.width?o.width=t.google.protobuf.Int32Value.fromGRPC(e.width,n):delete o.width,o}}}return e.Object.defineProperty(VideoV2.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.VideoV2"),enumerable:!1,configurable:!1}),e.Object.defineProperty(VideoV2.prototype,"__fqn__",{value:"wix.common.VideoV2",enumerable:!1,configurable:!1}),e.Object.defineProperty(VideoV2.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(VideoV2.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),VideoV2}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.url?i.url=e.url:o&&(i.url=""),null!=e.height?i.height=e.height:o&&(i.height=0),null!=e.width?i.width=e.width:o&&(i.width=0),null!=e.poster?i.poster=t.wix.common.Image.toJSON(e.poster,n,o):o&&delete i.poster,null!=e.format?i.format=e.format:o&&(i.format=""),null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,n,o):o&&delete i.urlExpirationDate,null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.toJSON(e.sizeInBytes,n,o):o&&delete i.sizeInBytes,null!=e.quality?i.quality=t.google.protobuf.StringValue.toJSON(e.quality,n,o):o&&delete i.quality,null!=e.filename?i.filename=t.google.protobuf.StringValue.toJSON(e.filename,n,o):o&&delete i.filename,null!=e.durationInSeconds?i.durationInSeconds=t.google.protobuf.Int32Value.toJSON(e.durationInSeconds,n,o):o&&delete i.durationInSeconds,null!=e.durationInMilliseconds?i.durationInMilliseconds=t.google.protobuf.Int32Value.toJSON(e.durationInMilliseconds,n,o):o&&delete i.durationInMilliseconds,null!=e.private?i.private=t.google.protobuf.BoolValue.toJSON(e.private,n,o):o&&delete i.private,null!=e.assetKey?i.assetKey=t.google.protobuf.StringValue.toJSON(e.assetKey,n,o):o&&delete i.assetKey,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.VideoResolution;return null!=e.url?i.url=e.url:!1!==o?i.url="":delete i.url,null!=e.height?i.height=e.height:!1!==o?i.height=0:delete i.height,null!=e.width?i.width=e.width:!1!==o?i.width=0:delete i.width,null!=e.poster?i.poster=t.wix.common.Image.fromJSON(e.poster,n):delete i.poster,null!=e.format?i.format=e.format:!1!==o?i.format="":delete i.format,null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,n):delete i.urlExpirationDate,null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.fromJSON(e.sizeInBytes,n):delete i.sizeInBytes,null!=e.quality?i.quality=t.google.protobuf.StringValue.fromJSON(e.quality,n):delete i.quality,null!=e.filename?i.filename=t.google.protobuf.StringValue.fromJSON(e.filename,n):delete i.filename,null!=e.durationInSeconds?i.durationInSeconds=t.google.protobuf.Int32Value.fromJSON(e.durationInSeconds,n):delete i.durationInSeconds,null!=e.durationInMilliseconds?i.durationInMilliseconds=t.google.protobuf.Int32Value.fromJSON(e.durationInMilliseconds,n):delete i.durationInMilliseconds,null!=e.private?i.private=t.google.protobuf.BoolValue.fromJSON(e.private,n):delete i.private,null!=e.assetKey?i.assetKey=t.google.protobuf.StringValue.fromJSON(e.assetKey,n):delete i.assetKey,i}}static toGRPC(e,n){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=t.wix.common.Image.toGRPC(e.poster,n)),null!=e.format&&(o.format=e.format),null!=e.urlExpirationDate&&(o.urlExpirationDate=t.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,n)),null!=e.sizeInBytes&&(o.sizeInBytes=t.google.protobuf.StringValue.toGRPC(e.sizeInBytes,n)),null!=e.quality&&(o.quality=t.google.protobuf.StringValue.toGRPC(e.quality,n)),null!=e.filename&&(o.filename=t.google.protobuf.StringValue.toGRPC(e.filename,n)),null!=e.durationInSeconds&&(o.durationInSeconds=t.google.protobuf.Int32Value.toGRPC(e.durationInSeconds,n)),null!=e.durationInMilliseconds&&(o.durationInMilliseconds=t.google.protobuf.Int32Value.toGRPC(e.durationInMilliseconds,n)),null!=e.private&&(o.private=t.google.protobuf.BoolValue.toGRPC(e.private,n)),null!=e.assetKey&&(o.assetKey=t.google.protobuf.StringValue.toGRPC(e.assetKey,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.wix.common.Image.fromGRPC(e.poster,n):delete o.poster,null!=e.format?o.format=e.format:o.format="",null!=e.urlExpirationDate?o.urlExpirationDate=t.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,n):delete o.urlExpirationDate,null!=e.sizeInBytes?o.sizeInBytes=t.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,n):delete o.sizeInBytes,null!=e.quality?o.quality=t.google.protobuf.StringValue.fromGRPC(e.quality,n):delete o.quality,null!=e.filename?o.filename=t.google.protobuf.StringValue.fromGRPC(e.filename,n):delete o.filename,null!=e.durationInSeconds?o.durationInSeconds=t.google.protobuf.Int32Value.fromGRPC(e.durationInSeconds,n):delete o.durationInSeconds,null!=e.durationInMilliseconds?o.durationInMilliseconds=t.google.protobuf.Int32Value.fromGRPC(e.durationInMilliseconds,n):delete o.durationInMilliseconds,null!=e.private?o.private=t.google.protobuf.BoolValue.fromGRPC(e.private,n):delete o.private,null!=e.assetKey?o.assetKey=t.google.protobuf.StringValue.fromGRPC(e.assetKey,n):delete o.assetKey,o}}}return e.Object.defineProperty(VideoResolution.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.VideoResolution"),enumerable:!1,configurable:!1}),e.Object.defineProperty(VideoResolution.prototype,"__fqn__",{value:"wix.common.VideoResolution",enumerable:!1,configurable:!1}),e.Object.defineProperty(VideoResolution.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(VideoResolution.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),VideoResolution}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.id?i.id=e.id:o&&(i.id=""),null!=e.url?i.url=e.url:o&&(i.url=""),null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,n,o):o&&delete i.urlExpirationDate,null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.toJSON(e.sizeInBytes,n,o):o&&delete i.sizeInBytes,null!=e.filename?i.filename=t.google.protobuf.StringValue.toJSON(e.filename,n,o):o&&delete i.filename,null!=e.duration?i.duration=t.google.protobuf.Int32Value.toJSON(e.duration,n,o):o&&delete i.duration,null!=e.private?i.private=t.google.protobuf.BoolValue.toJSON(e.private,n,o):o&&delete i.private,null!=e.assetKey?i.assetKey=t.google.protobuf.StringValue.toJSON(e.assetKey,n,o):o&&delete i.assetKey,null!=e.format?i.format=t.google.protobuf.StringValue.toJSON(e.format,n,o):o&&delete i.format,null!=e.quality?i.quality=t.google.protobuf.StringValue.toJSON(e.quality,n,o):o&&delete i.quality,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.Audio;return null!=e.id?i.id=e.id:!1!==o?i.id="":delete i.id,null!=e.url?i.url=e.url:!1!==o?i.url="":delete i.url,null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,n):delete i.urlExpirationDate,null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.fromJSON(e.sizeInBytes,n):delete i.sizeInBytes,null!=e.filename?i.filename=t.google.protobuf.StringValue.fromJSON(e.filename,n):delete i.filename,null!=e.duration?i.duration=t.google.protobuf.Int32Value.fromJSON(e.duration,n):delete i.duration,null!=e.private?i.private=t.google.protobuf.BoolValue.fromJSON(e.private,n):delete i.private,null!=e.assetKey?i.assetKey=t.google.protobuf.StringValue.fromJSON(e.assetKey,n):delete i.assetKey,null!=e.format?i.format=t.google.protobuf.StringValue.fromJSON(e.format,n):delete i.format,null!=e.quality?i.quality=t.google.protobuf.StringValue.fromJSON(e.quality,n):delete i.quality,i}}static toGRPC(e,n){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=t.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,n)),null!=e.sizeInBytes&&(o.sizeInBytes=t.google.protobuf.StringValue.toGRPC(e.sizeInBytes,n)),null!=e.filename&&(o.filename=t.google.protobuf.StringValue.toGRPC(e.filename,n)),null!=e.duration&&(o.duration=t.google.protobuf.Int32Value.toGRPC(e.duration,n)),null!=e.private&&(o.private=t.google.protobuf.BoolValue.toGRPC(e.private,n)),null!=e.assetKey&&(o.assetKey=t.google.protobuf.StringValue.toGRPC(e.assetKey,n)),null!=e.format&&(o.format=t.google.protobuf.StringValue.toGRPC(e.format,n)),null!=e.quality&&(o.quality=t.google.protobuf.StringValue.toGRPC(e.quality,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,n):delete o.urlExpirationDate,null!=e.sizeInBytes?o.sizeInBytes=t.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,n):delete o.sizeInBytes,null!=e.filename?o.filename=t.google.protobuf.StringValue.fromGRPC(e.filename,n):delete o.filename,null!=e.duration?o.duration=t.google.protobuf.Int32Value.fromGRPC(e.duration,n):delete o.duration,null!=e.private?o.private=t.google.protobuf.BoolValue.fromGRPC(e.private,n):delete o.private,null!=e.assetKey?o.assetKey=t.google.protobuf.StringValue.fromGRPC(e.assetKey,n):delete o.assetKey,null!=e.format?o.format=t.google.protobuf.StringValue.fromGRPC(e.format,n):delete o.format,null!=e.quality?o.quality=t.google.protobuf.StringValue.fromGRPC(e.quality,n):delete o.quality,o}}}return e.Object.defineProperty(Audio.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Audio"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Audio.prototype,"__fqn__",{value:"wix.common.Audio",enumerable:!1,configurable:!1}),e.Object.defineProperty(Audio.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Audio.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Audio}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.id?i.id=e.id:o&&(i.id=""),null!=e.url?i.url=e.url:o&&(i.url=""),null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,n,o):o&&delete i.urlExpirationDate,null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.toJSON(e.sizeInBytes,n,o):o&&delete i.sizeInBytes,null!=e.filename?i.filename=t.google.protobuf.StringValue.toJSON(e.filename,n,o):o&&delete i.filename,null!=e.thumbnail?i.thumbnail=t.wix.common.Image.toJSON(e.thumbnail,n,o):o&&delete i.thumbnail,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.Document;return null!=e.id?i.id=e.id:!1!==o?i.id="":delete i.id,null!=e.url?i.url=e.url:!1!==o?i.url="":delete i.url,null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,n):delete i.urlExpirationDate,null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.fromJSON(e.sizeInBytes,n):delete i.sizeInBytes,null!=e.filename?i.filename=t.google.protobuf.StringValue.fromJSON(e.filename,n):delete i.filename,null!=e.thumbnail?i.thumbnail=t.wix.common.Image.fromJSON(e.thumbnail,n):delete i.thumbnail,i}}static toGRPC(e,n){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=t.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,n)),null!=e.sizeInBytes&&(o.sizeInBytes=t.google.protobuf.StringValue.toGRPC(e.sizeInBytes,n)),null!=e.filename&&(o.filename=t.google.protobuf.StringValue.toGRPC(e.filename,n)),null!=e.thumbnail&&(o.thumbnail=t.wix.common.Image.toGRPC(e.thumbnail,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,n):delete o.urlExpirationDate,null!=e.sizeInBytes?o.sizeInBytes=t.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,n):delete o.sizeInBytes,null!=e.filename?o.filename=t.google.protobuf.StringValue.fromGRPC(e.filename,n):delete o.filename,null!=e.thumbnail?o.thumbnail=t.wix.common.Image.fromGRPC(e.thumbnail,n):delete o.thumbnail,o}}}return e.Object.defineProperty(Document.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Document"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Document.prototype,"__fqn__",{value:"wix.common.Document",enumerable:!1,configurable:!1}),e.Object.defineProperty(Document.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Document.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Document}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.id?i.id=e.id:o&&(i.id=""),null!=e.url?i.url=e.url:o&&(i.url=""),null!=e.thumbnail?i.thumbnail=t.wix.common.Image.toJSON(e.thumbnail,n,o):o&&delete i.thumbnail,null!=e.altText?i.altText=t.google.protobuf.StringValue.toJSON(e.altText,n,o):o&&delete i.altText,null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,n,o):o&&delete i.urlExpirationDate,null!=e.filename?i.filename=t.google.protobuf.StringValue.toJSON(e.filename,n,o):o&&delete i.filename,null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.toJSON(e.sizeInBytes,n,o):o&&delete i.sizeInBytes,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.Model3D;return null!=e.id?i.id=e.id:!1!==o?i.id="":delete i.id,null!=e.url?i.url=e.url:!1!==o?i.url="":delete i.url,null!=e.thumbnail?i.thumbnail=t.wix.common.Image.fromJSON(e.thumbnail,n):delete i.thumbnail,null!=e.altText?i.altText=t.google.protobuf.StringValue.fromJSON(e.altText,n):delete i.altText,null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,n):delete i.urlExpirationDate,null!=e.filename?i.filename=t.google.protobuf.StringValue.fromJSON(e.filename,n):delete i.filename,null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.fromJSON(e.sizeInBytes,n):delete i.sizeInBytes,i}}static toGRPC(e,n){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=t.wix.common.Image.toGRPC(e.thumbnail,n)),null!=e.altText&&(o.altText=t.google.protobuf.StringValue.toGRPC(e.altText,n)),null!=e.urlExpirationDate&&(o.urlExpirationDate=t.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,n)),null!=e.filename&&(o.filename=t.google.protobuf.StringValue.toGRPC(e.filename,n)),null!=e.sizeInBytes&&(o.sizeInBytes=t.google.protobuf.StringValue.toGRPC(e.sizeInBytes,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.wix.common.Image.fromGRPC(e.thumbnail,n):delete o.thumbnail,null!=e.altText?o.altText=t.google.protobuf.StringValue.fromGRPC(e.altText,n):delete o.altText,null!=e.urlExpirationDate?o.urlExpirationDate=t.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,n):delete o.urlExpirationDate,null!=e.filename?o.filename=t.google.protobuf.StringValue.fromGRPC(e.filename,n):delete o.filename,null!=e.sizeInBytes?o.sizeInBytes=t.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,n):delete o.sizeInBytes,o}}}return e.Object.defineProperty(Model3D.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Model3D"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Model3D.prototype,"__fqn__",{value:"wix.common.Model3D",enumerable:!1,configurable:!1}),e.Object.defineProperty(Model3D.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Model3D.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Model3D}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.id?i.id=e.id:o&&(i.id=""),null!=e.url?i.url=e.url:o&&(i.url=""),null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.toJSON(e.urlExpirationDate,n,o):o&&delete i.urlExpirationDate,null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.toJSON(e.sizeInBytes,n,o):o&&delete i.sizeInBytes,null!=e.filename?i.filename=t.google.protobuf.StringValue.toJSON(e.filename,n,o):o&&delete i.filename,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.Archive;return null!=e.id?i.id=e.id:!1!==o?i.id="":delete i.id,null!=e.url?i.url=e.url:!1!==o?i.url="":delete i.url,null!=e.urlExpirationDate?i.urlExpirationDate=t.google.protobuf.Timestamp.fromJSON(e.urlExpirationDate,n):delete i.urlExpirationDate,null!=e.sizeInBytes?i.sizeInBytes=t.google.protobuf.StringValue.fromJSON(e.sizeInBytes,n):delete i.sizeInBytes,null!=e.filename?i.filename=t.google.protobuf.StringValue.fromJSON(e.filename,n):delete i.filename,i}}static toGRPC(e,n){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=t.google.protobuf.Timestamp.toGRPC(e.urlExpirationDate,n)),null!=e.sizeInBytes&&(o.sizeInBytes=t.google.protobuf.StringValue.toGRPC(e.sizeInBytes,n)),null!=e.filename&&(o.filename=t.google.protobuf.StringValue.toGRPC(e.filename,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.Timestamp.fromGRPC(e.urlExpirationDate,n):delete o.urlExpirationDate,null!=e.sizeInBytes?o.sizeInBytes=t.google.protobuf.StringValue.fromGRPC(e.sizeInBytes,n):delete o.sizeInBytes,null!=e.filename?o.filename=t.google.protobuf.StringValue.fromGRPC(e.filename,n):delete o.filename,o}}}return e.Object.defineProperty(Archive.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Archive"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Archive.prototype,"__fqn__",{value:"wix.common.Archive",enumerable:!1,configurable:!1}),e.Object.defineProperty(Archive.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Archive.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Archive}(),n.MediaItem=function(){class MediaItem{constructor(e){this.image=e&&e.image,this.video=e&&e.video,this.document=e&&e.document}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.image?i.image=t.wix.common.Image.toJSON(e.image,n,o):o&&delete i.image,null!=e.video?i.video=t.wix.common.Video.toJSON(e.video,n,o):o&&delete i.video,null!=e.document?i.document=t.wix.common.Document.toJSON(e.document,n,o):o&&delete i.document,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.MediaItem;return null!=e.image?o.image=t.wix.common.Image.fromJSON(e.image,n):delete o.image,null!=e.video?o.video=t.wix.common.Video.fromJSON(e.video,n):delete o.video,null!=e.document?o.document=t.wix.common.Document.fromJSON(e.document,n):delete o.document,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.image&&(o.image=t.wix.common.Image.toGRPC(e.image,n)),null!=e.video&&(o.video=t.wix.common.Video.toGRPC(e.video,n)),null!=e.document&&(o.document=t.wix.common.Document.toGRPC(e.document,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.MediaItem;return null!=e.image?o.image=t.wix.common.Image.fromGRPC(e.image,n):delete o.image,null!=e.video?o.video=t.wix.common.Video.fromGRPC(e.video,n):delete o.video,null!=e.document?o.document=t.wix.common.Document.fromGRPC(e.document,n):delete o.document,o}}}return e.Object.defineProperty(MediaItem.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.MediaItem"),enumerable:!1,configurable:!1}),e.Object.defineProperty(MediaItem.prototype,"__fqn__",{value:"wix.common.MediaItem",enumerable:!1,configurable:!1}),e.Object.defineProperty(MediaItem.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(MediaItem.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),MediaItem}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.x?i.x=null==e.x?e.x:isNaN(e.x)?"NaN":isFinite(e.x)?e.x:e.x.toString():o&&(i.x=0),null!=e.y?i.y=null==e.y?e.y:isNaN(e.y)?"NaN":isFinite(e.y)?e.y:e.y.toString():o&&(i.y=0),null!=e.height?i.height=t.google.protobuf.Int32Value.toJSON(e.height,n,o):o&&delete i.height,null!=e.width?i.width=t.google.protobuf.Int32Value.toJSON(e.width,n,o):o&&delete i.width,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.FocalPoint;return null!=e.x?i.x="NaN"===e.x?NaN:"Infinity"===e.x?1/0:"-Infinity"===e.x?-1/0:e.x:!1!==o?i.x=0:delete i.x,null!=e.y?i.y="NaN"===e.y?NaN:"Infinity"===e.y?1/0:"-Infinity"===e.y?-1/0:e.y:!1!==o?i.y=0:delete i.y,null!=e.height?i.height=t.google.protobuf.Int32Value.fromJSON(e.height,n):delete i.height,null!=e.width?i.width=t.google.protobuf.Int32Value.fromJSON(e.width,n):delete i.width,i}}static toGRPC(e,n){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=t.google.protobuf.Int32Value.toGRPC(e.height,n)),null!=e.width&&(o.width=t.google.protobuf.Int32Value.toGRPC(e.width,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.Int32Value.fromGRPC(e.height,n):delete o.height,null!=e.width?o.width=t.google.protobuf.Int32Value.fromGRPC(e.width,n):delete o.width,o}}}return e.Object.defineProperty(FocalPoint.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.FocalPoint"),enumerable:!1,configurable:!1}),e.Object.defineProperty(FocalPoint.prototype,"__fqn__",{value:"wix.common.FocalPoint",enumerable:!1,configurable:!1}),e.Object.defineProperty(FocalPoint.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(FocalPoint.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),FocalPoint}(),n.Money=function(){class Money{constructor(e){this.value=e&&e.value,this.currency=e&&e.currency,this.formattedValue=e&&e.formattedValue}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.value?i.value=e.value:o&&(i.value=""),null!=e.currency?i.currency=e.currency:o&&(i.currency=""),null!=e.formattedValue?i.formattedValue=t.google.protobuf.StringValue.toJSON(e.formattedValue,n,o):o&&delete i.formattedValue,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.Money;return null!=e.value?i.value=e.value:!1!==o?i.value="":delete i.value,null!=e.currency?i.currency=e.currency:!1!==o?i.currency="":delete i.currency,null!=e.formattedValue?i.formattedValue=t.google.protobuf.StringValue.fromJSON(e.formattedValue,n):delete i.formattedValue,i}}static toGRPC(e,n){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=t.google.protobuf.StringValue.toGRPC(e.formattedValue,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.StringValue.fromGRPC(e.formattedValue,n):delete o.formattedValue,o}}}return e.Object.defineProperty(Money.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Money"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Money.prototype,"__fqn__",{value:"wix.common.Money",enumerable:!1,configurable:!1}),e.Object.defineProperty(Money.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Money.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Money}(),n.PageUrl=function(){class PageUrl{constructor(e){this.base=e&&e.base,this.path=e&&e.path}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.base?t.base=e.base:n&&(t.base=""),null!=e.path?t.path=e.path:n&&(t.path=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.PageUrl;return null!=e.base?n.base=e.base:!1!==o?n.base="":delete n.base,null!=e.path?n.path=e.path:!1!==o?n.path="":delete n.path,n}}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,n){if(null==e)return null;{const n=new t.wix.common.PageUrl;return null!=e.base?n.base=e.base:n.base="",null!=e.path?n.path=e.path:n.path="",n}}}return e.Object.defineProperty(PageUrl.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.PageUrl"),enumerable:!1,configurable:!1}),e.Object.defineProperty(PageUrl.prototype,"__fqn__",{value:"wix.common.PageUrl",enumerable:!1,configurable:!1}),e.Object.defineProperty(PageUrl.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(PageUrl.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),PageUrl}(),n.PageUrlV2=function(){class PageUrlV2{constructor(e){this.relativePath=e&&e.relativePath,this.url=e&&e.url}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.relativePath?i.relativePath=e.relativePath:o&&(i.relativePath=""),null!=e.url?i.url=t.google.protobuf.StringValue.toJSON(e.url,n,o):o&&delete i.url,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.PageUrlV2;return null!=e.relativePath?i.relativePath=e.relativePath:!1!==o?i.relativePath="":delete i.relativePath,null!=e.url?i.url=t.google.protobuf.StringValue.fromJSON(e.url,n):delete i.url,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.relativePath&&(o.relativePath=e.relativePath),null!=e.url&&(o.url=t.google.protobuf.StringValue.toGRPC(e.url,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.PageUrlV2;return null!=e.relativePath?o.relativePath=e.relativePath:o.relativePath="",null!=e.url?o.url=t.google.protobuf.StringValue.fromGRPC(e.url,n):delete o.url,o}}}return e.Object.defineProperty(PageUrlV2.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.PageUrlV2"),enumerable:!1,configurable:!1}),e.Object.defineProperty(PageUrlV2.prototype,"__fqn__",{value:"wix.common.PageUrlV2",enumerable:!1,configurable:!1}),e.Object.defineProperty(PageUrlV2.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(PageUrlV2.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),PageUrlV2}(),n.Paging=function(){class Paging{constructor(e){this.limit=e&&e.limit,this.offset=e&&e.offset}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.limit?i.limit=t.google.protobuf.Int32Value.toJSON(e.limit,n,o):o&&delete i.limit,null!=e.offset?i.offset=t.google.protobuf.Int32Value.toJSON(e.offset,n,o):o&&delete i.offset,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.Paging;return null!=e.limit?o.limit=t.google.protobuf.Int32Value.fromJSON(e.limit,n):delete o.limit,null!=e.offset?o.offset=t.google.protobuf.Int32Value.fromJSON(e.offset,n):delete o.offset,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.limit&&(o.limit=t.google.protobuf.Int32Value.toGRPC(e.limit,n)),null!=e.offset&&(o.offset=t.google.protobuf.Int32Value.toGRPC(e.offset,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.Paging;return null!=e.limit?o.limit=t.google.protobuf.Int32Value.fromGRPC(e.limit,n):delete o.limit,null!=e.offset?o.offset=t.google.protobuf.Int32Value.fromGRPC(e.offset,n):delete o.offset,o}}}return e.Object.defineProperty(Paging.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Paging"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Paging.prototype,"__fqn__",{value:"wix.common.Paging",enumerable:!1,configurable:!1}),e.Object.defineProperty(Paging.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Paging.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Paging}(),n.CursorPaging=function(){class CursorPaging{constructor(e){this.limit=e&&e.limit,this.cursor=e&&e.cursor}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.limit?i.limit=t.google.protobuf.Int32Value.toJSON(e.limit,n,o):o&&delete i.limit,null!=e.cursor?i.cursor=t.google.protobuf.StringValue.toJSON(e.cursor,n,o):o&&delete i.cursor,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.CursorPaging;return null!=e.limit?o.limit=t.google.protobuf.Int32Value.fromJSON(e.limit,n):delete o.limit,null!=e.cursor?o.cursor=t.google.protobuf.StringValue.fromJSON(e.cursor,n):delete o.cursor,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.limit&&(o.limit=t.google.protobuf.Int32Value.toGRPC(e.limit,n)),null!=e.cursor&&(o.cursor=t.google.protobuf.StringValue.toGRPC(e.cursor,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.CursorPaging;return null!=e.limit?o.limit=t.google.protobuf.Int32Value.fromGRPC(e.limit,n):delete o.limit,null!=e.cursor?o.cursor=t.google.protobuf.StringValue.fromGRPC(e.cursor,n):delete o.cursor,o}}}return e.Object.defineProperty(CursorPaging.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.CursorPaging"),enumerable:!1,configurable:!1}),e.Object.defineProperty(CursorPaging.prototype,"__fqn__",{value:"wix.common.CursorPaging",enumerable:!1,configurable:!1}),e.Object.defineProperty(CursorPaging.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(CursorPaging.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),CursorPaging}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.count?i.count=t.google.protobuf.Int32Value.toJSON(e.count,n,o):o&&delete i.count,null!=e.offset?i.offset=t.google.protobuf.Int32Value.toJSON(e.offset,n,o):o&&delete i.offset,null!=e.total?i.total=t.google.protobuf.Int32Value.toJSON(e.total,n,o):o&&delete i.total,null!=e.tooManyToCount?i.tooManyToCount=t.google.protobuf.BoolValue.toJSON(e.tooManyToCount,n,o):o&&delete i.tooManyToCount,null!=e.hasNext?i.hasNext=t.google.protobuf.BoolValue.toJSON(e.hasNext,n,o):o&&delete i.hasNext,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.PagingMetadata;return null!=e.count?o.count=t.google.protobuf.Int32Value.fromJSON(e.count,n):delete o.count,null!=e.offset?o.offset=t.google.protobuf.Int32Value.fromJSON(e.offset,n):delete o.offset,null!=e.total?o.total=t.google.protobuf.Int32Value.fromJSON(e.total,n):delete o.total,null!=e.tooManyToCount?o.tooManyToCount=t.google.protobuf.BoolValue.fromJSON(e.tooManyToCount,n):delete o.tooManyToCount,null!=e.hasNext?o.hasNext=t.google.protobuf.BoolValue.fromJSON(e.hasNext,n):delete o.hasNext,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.count&&(o.count=t.google.protobuf.Int32Value.toGRPC(e.count,n)),null!=e.offset&&(o.offset=t.google.protobuf.Int32Value.toGRPC(e.offset,n)),null!=e.total&&(o.total=t.google.protobuf.Int32Value.toGRPC(e.total,n)),null!=e.tooManyToCount&&(o.tooManyToCount=t.google.protobuf.BoolValue.toGRPC(e.tooManyToCount,n)),null!=e.hasNext&&(o.hasNext=t.google.protobuf.BoolValue.toGRPC(e.hasNext,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.PagingMetadata;return null!=e.count?o.count=t.google.protobuf.Int32Value.fromGRPC(e.count,n):delete o.count,null!=e.offset?o.offset=t.google.protobuf.Int32Value.fromGRPC(e.offset,n):delete o.offset,null!=e.total?o.total=t.google.protobuf.Int32Value.fromGRPC(e.total,n):delete o.total,null!=e.tooManyToCount?o.tooManyToCount=t.google.protobuf.BoolValue.fromGRPC(e.tooManyToCount,n):delete o.tooManyToCount,null!=e.hasNext?o.hasNext=t.google.protobuf.BoolValue.fromGRPC(e.hasNext,n):delete o.hasNext,o}}}return e.Object.defineProperty(PagingMetadata.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.PagingMetadata"),enumerable:!1,configurable:!1}),e.Object.defineProperty(PagingMetadata.prototype,"__fqn__",{value:"wix.common.PagingMetadata",enumerable:!1,configurable:!1}),e.Object.defineProperty(PagingMetadata.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(PagingMetadata.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),PagingMetadata}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.count?i.count=t.google.protobuf.Int32Value.toJSON(e.count,n,o):o&&delete i.count,null!=e.offset?i.offset=t.google.protobuf.Int32Value.toJSON(e.offset,n,o):o&&delete i.offset,null!=e.total?i.total=t.google.protobuf.Int32Value.toJSON(e.total,n,o):o&&delete i.total,null!=e.tooManyToCount?i.tooManyToCount=t.google.protobuf.BoolValue.toJSON(e.tooManyToCount,n,o):o&&delete i.tooManyToCount,null!=e.cursors?i.cursors=t.wix.common.Cursors.toJSON(e.cursors,n,o):o&&delete i.cursors,null!=e.hasNext?i.hasNext=t.google.protobuf.BoolValue.toJSON(e.hasNext,n,o):o&&delete i.hasNext,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.PagingMetadataV2;return null!=e.count?o.count=t.google.protobuf.Int32Value.fromJSON(e.count,n):delete o.count,null!=e.offset?o.offset=t.google.protobuf.Int32Value.fromJSON(e.offset,n):delete o.offset,null!=e.total?o.total=t.google.protobuf.Int32Value.fromJSON(e.total,n):delete o.total,null!=e.tooManyToCount?o.tooManyToCount=t.google.protobuf.BoolValue.fromJSON(e.tooManyToCount,n):delete o.tooManyToCount,null!=e.cursors?o.cursors=t.wix.common.Cursors.fromJSON(e.cursors,n):delete o.cursors,null!=e.hasNext?o.hasNext=t.google.protobuf.BoolValue.fromJSON(e.hasNext,n):delete o.hasNext,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.count&&(o.count=t.google.protobuf.Int32Value.toGRPC(e.count,n)),null!=e.offset&&(o.offset=t.google.protobuf.Int32Value.toGRPC(e.offset,n)),null!=e.total&&(o.total=t.google.protobuf.Int32Value.toGRPC(e.total,n)),null!=e.tooManyToCount&&(o.tooManyToCount=t.google.protobuf.BoolValue.toGRPC(e.tooManyToCount,n)),null!=e.cursors&&(o.cursors=t.wix.common.Cursors.toGRPC(e.cursors,n)),null!=e.hasNext&&(o.hasNext=t.google.protobuf.BoolValue.toGRPC(e.hasNext,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.PagingMetadataV2;return null!=e.count?o.count=t.google.protobuf.Int32Value.fromGRPC(e.count,n):delete o.count,null!=e.offset?o.offset=t.google.protobuf.Int32Value.fromGRPC(e.offset,n):delete o.offset,null!=e.total?o.total=t.google.protobuf.Int32Value.fromGRPC(e.total,n):delete o.total,null!=e.tooManyToCount?o.tooManyToCount=t.google.protobuf.BoolValue.fromGRPC(e.tooManyToCount,n):delete o.tooManyToCount,null!=e.cursors?o.cursors=t.wix.common.Cursors.fromGRPC(e.cursors,n):delete o.cursors,null!=e.hasNext?o.hasNext=t.google.protobuf.BoolValue.fromGRPC(e.hasNext,n):delete o.hasNext,o}}}return e.Object.defineProperty(PagingMetadataV2.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.PagingMetadataV2"),enumerable:!1,configurable:!1}),e.Object.defineProperty(PagingMetadataV2.prototype,"__fqn__",{value:"wix.common.PagingMetadataV2",enumerable:!1,configurable:!1}),e.Object.defineProperty(PagingMetadataV2.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(PagingMetadataV2.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),PagingMetadataV2}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.count?i.count=t.google.protobuf.Int32Value.toJSON(e.count,n,o):o&&delete i.count,null!=e.cursors?i.cursors=t.wix.common.Cursors.toJSON(e.cursors,n,o):o&&delete i.cursors,null!=e.hasNext?i.hasNext=t.google.protobuf.BoolValue.toJSON(e.hasNext,n,o):o&&delete i.hasNext,null!=e.total?i.total=t.google.protobuf.Int32Value.toJSON(e.total,n,o):o&&delete i.total,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.CursorPagingMetadata;return null!=e.count?o.count=t.google.protobuf.Int32Value.fromJSON(e.count,n):delete o.count,null!=e.cursors?o.cursors=t.wix.common.Cursors.fromJSON(e.cursors,n):delete o.cursors,null!=e.hasNext?o.hasNext=t.google.protobuf.BoolValue.fromJSON(e.hasNext,n):delete o.hasNext,null!=e.total?o.total=t.google.protobuf.Int32Value.fromJSON(e.total,n):delete o.total,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.count&&(o.count=t.google.protobuf.Int32Value.toGRPC(e.count,n)),null!=e.cursors&&(o.cursors=t.wix.common.Cursors.toGRPC(e.cursors,n)),null!=e.hasNext&&(o.hasNext=t.google.protobuf.BoolValue.toGRPC(e.hasNext,n)),null!=e.total&&(o.total=t.google.protobuf.Int32Value.toGRPC(e.total,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.CursorPagingMetadata;return null!=e.count?o.count=t.google.protobuf.Int32Value.fromGRPC(e.count,n):delete o.count,null!=e.cursors?o.cursors=t.wix.common.Cursors.fromGRPC(e.cursors,n):delete o.cursors,null!=e.hasNext?o.hasNext=t.google.protobuf.BoolValue.fromGRPC(e.hasNext,n):delete o.hasNext,null!=e.total?o.total=t.google.protobuf.Int32Value.fromGRPC(e.total,n):delete o.total,o}}}return e.Object.defineProperty(CursorPagingMetadata.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.CursorPagingMetadata"),enumerable:!1,configurable:!1}),e.Object.defineProperty(CursorPagingMetadata.prototype,"__fqn__",{value:"wix.common.CursorPagingMetadata",enumerable:!1,configurable:!1}),e.Object.defineProperty(CursorPagingMetadata.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(CursorPagingMetadata.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),CursorPagingMetadata}(),n.Cursors=function(){class Cursors{constructor(e){this.next=e&&e.next,this.prev=e&&e.prev}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.next?i.next=t.google.protobuf.StringValue.toJSON(e.next,n,o):o&&delete i.next,null!=e.prev?i.prev=t.google.protobuf.StringValue.toJSON(e.prev,n,o):o&&delete i.prev,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.Cursors;return null!=e.next?o.next=t.google.protobuf.StringValue.fromJSON(e.next,n):delete o.next,null!=e.prev?o.prev=t.google.protobuf.StringValue.fromJSON(e.prev,n):delete o.prev,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.next&&(o.next=t.google.protobuf.StringValue.toGRPC(e.next,n)),null!=e.prev&&(o.prev=t.google.protobuf.StringValue.toGRPC(e.prev,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.Cursors;return null!=e.next?o.next=t.google.protobuf.StringValue.fromGRPC(e.next,n):delete o.next,null!=e.prev?o.prev=t.google.protobuf.StringValue.fromGRPC(e.prev,n):delete o.prev,o}}}return e.Object.defineProperty(Cursors.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Cursors"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Cursors.prototype,"__fqn__",{value:"wix.common.Cursors",enumerable:!1,configurable:!1}),e.Object.defineProperty(Cursors.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Cursors.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Cursors}(),n.Sorting=function(){class Sorting{constructor(e){this.fieldName=e&&e.fieldName,this.order=e&&e.order,this.selectItemsBy=e&&e.selectItemsBy}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.fieldName?i.fieldName=e.fieldName:o&&(i.fieldName=""),null!=e.order?i.order=t.wix.common.SortOrder[e.order]:o&&(i.order="ASC"),null!=e.selectItemsBy?i.selectItemsBy=e.selectItemsBy.map(e=>t.google.protobuf.Struct.toJSON(e,n,o)):o&&(i.selectItemsBy=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.Sorting;return null!=e.fieldName?i.fieldName=e.fieldName:!1!==o?i.fieldName="":delete i.fieldName,null!=e.order?i.order="string"==typeof e.order?e.order:t.wix.common.SortOrder[e.order]:!1!==o?i.order="ASC":delete i.order,null!=e.selectItemsBy?i.selectItemsBy=Array.isArray(e.selectItemsBy)?e.selectItemsBy.map(e=>t.google.protobuf.Struct.fromJSON(e,n)):e.selectItemsBy:!1!==o?i.selectItemsBy=[]:delete i.selectItemsBy,i}}static toGRPC(e,n){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=>t.google.protobuf.Struct.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.google.protobuf.Struct.fromGRPC(e,n)):o.selectItemsBy=[],o}}}return e.Object.defineProperty(Sorting.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.Sorting"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Sorting.prototype,"__fqn__",{value:"wix.common.Sorting",enumerable:!1,configurable:!1}),e.Object.defineProperty(Sorting.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Sorting.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Sorting}(),n.SortOrder={ASC:"ASC",0:"ASC",DESC:"DESC",1:"DESC"},n.spi=function(){const n={};return n.SpiBaseUri=function(){class SpiBaseUri{constructor(e){this.baseUri=e&&e.baseUri,this.alternativeUris=e&&e.alternativeUris}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.baseUri?i.baseUri=e.baseUri:o&&(i.baseUri=""),null!=e.alternativeUris?i.alternativeUris=e.alternativeUris.map(e=>t.wix.common.spi.SpiBaseUri.AlternativeUri.toJSON(e,n,o)):o&&(i.alternativeUris=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.spi.SpiBaseUri;return null!=e.baseUri?i.baseUri=e.baseUri:!1!==o?i.baseUri="":delete i.baseUri,null!=e.alternativeUris?i.alternativeUris=Array.isArray(e.alternativeUris)?e.alternativeUris.map(e=>t.wix.common.spi.SpiBaseUri.AlternativeUri.fromJSON(e,n)):e.alternativeUris:!1!==o?i.alternativeUris=[]:delete i.alternativeUris,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.baseUri&&(o.baseUri=e.baseUri),null!=e.alternativeUris&&(o.alternativeUris=e.alternativeUris.map(e=>t.wix.common.spi.SpiBaseUri.AlternativeUri.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.spi.SpiBaseUri;return null!=e.baseUri?o.baseUri=e.baseUri:o.baseUri="",null!=e.alternativeUris?o.alternativeUris=e.alternativeUris.map(e=>t.wix.common.spi.SpiBaseUri.AlternativeUri.fromGRPC(e,n)):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,n){if(null==e)return null;{const t={};return null!=e.methodName?t.methodName=e.methodName:n&&(t.methodName=""),null!=e.absoluteUri?t.absoluteUri=e.absoluteUri:n&&(t.absoluteUri=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.spi.SpiBaseUri.AlternativeUri;return null!=e.methodName?n.methodName=e.methodName:!1!==o?n.methodName="":delete n.methodName,null!=e.absoluteUri?n.absoluteUri=e.absoluteUri:!1!==o?n.absoluteUri="":delete n.absoluteUri,n}}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,n){if(null==e)return null;{const n=new t.wix.common.spi.SpiBaseUri.AlternativeUri;return null!=e.methodName?n.methodName=e.methodName:n.methodName="",null!=e.absoluteUri?n.absoluteUri=e.absoluteUri:n.absoluteUri="",n}}}return e.Object.defineProperty(AlternativeUri.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.spi.SpiBaseUri.AlternativeUri"),enumerable:!1,configurable:!1}),e.Object.defineProperty(AlternativeUri.prototype,"__fqn__",{value:"wix.common.spi.SpiBaseUri.AlternativeUri",enumerable:!1,configurable:!1}),e.Object.defineProperty(AlternativeUri.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(AlternativeUri.prototype,"__root__",{value:t,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,n){if(null==e)return null;{const t={};return null!=e.methodName?t.methodName=e.methodName:n&&(t.methodName=""),null!=e.absoluteUri?t.absoluteUri=e.absoluteUri:n&&(t.absoluteUri=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.spi.SpiBaseUri.AlternativeUri;return null!=e.methodName?n.methodName=e.methodName:!1!==o?n.methodName="":delete n.methodName,null!=e.absoluteUri?n.absoluteUri=e.absoluteUri:!1!==o?n.absoluteUri="":delete n.absoluteUri,n}}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,n){if(null==e)return null;{const n=new t.wix.common.spi.SpiBaseUri.AlternativeUri;return null!=e.methodName?n.methodName=e.methodName:n.methodName="",null!=e.absoluteUri?n.absoluteUri=e.absoluteUri:n.absoluteUri="",n}}}return e.Object.defineProperty(AlternativeUri.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.spi.SpiBaseUri.AlternativeUri"),enumerable:!1,configurable:!1}),e.Object.defineProperty(AlternativeUri.prototype,"__fqn__",{value:"wix.common.spi.SpiBaseUri.AlternativeUri",enumerable:!1,configurable:!1}),e.Object.defineProperty(AlternativeUri.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(AlternativeUri.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),AlternativeUri}(),e.Object.defineProperty(SpiBaseUri.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.spi.SpiBaseUri"),enumerable:!1,configurable:!1}),e.Object.defineProperty(SpiBaseUri.prototype,"__fqn__",{value:"wix.common.spi.SpiBaseUri",enumerable:!1,configurable:!1}),e.Object.defineProperty(SpiBaseUri.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(SpiBaseUri.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),SpiBaseUri}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.requestId?i.requestId=t.google.protobuf.StringValue.toJSON(e.requestId,n,o):o&&delete i.requestId,null!=e.currency?i.currency=t.google.protobuf.StringValue.toJSON(e.currency,n,o):o&&delete i.currency,null!=e.identity?i.identity=t.wix.common.spi.Context.IdentificationData.toJSON(e.identity,n,o):o&&delete i.identity,null!=e.languages?i.languages=e.languages.map(e=>e):o&&(i.languages=[]),null!=e.instanceId?i.instanceId=t.google.protobuf.StringValue.toJSON(e.instanceId,n,o):o&&delete i.instanceId,null!=e.appExtensionId?i.appExtensionId=t.google.protobuf.StringValue.toJSON(e.appExtensionId,n,o):o&&delete i.appExtensionId,null!=e.appExtensionType?i.appExtensionType=t.google.protobuf.StringValue.toJSON(e.appExtensionType,n,o):o&&delete i.appExtensionType,null!=e.functionName?i.functionName=t.google.protobuf.StringValue.toJSON(e.functionName,n,o):o&&delete i.functionName,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.spi.Context;return null!=e.requestId?i.requestId=t.google.protobuf.StringValue.fromJSON(e.requestId,n):delete i.requestId,null!=e.currency?i.currency=t.google.protobuf.StringValue.fromJSON(e.currency,n):delete i.currency,null!=e.identity?i.identity=t.wix.common.spi.Context.IdentificationData.fromJSON(e.identity,n):delete i.identity,null!=e.languages?i.languages=Array.isArray(e.languages)?e.languages.map(e=>e):e.languages:!1!==o?i.languages=[]:delete i.languages,null!=e.instanceId?i.instanceId=t.google.protobuf.StringValue.fromJSON(e.instanceId,n):delete i.instanceId,null!=e.appExtensionId?i.appExtensionId=t.google.protobuf.StringValue.fromJSON(e.appExtensionId,n):delete i.appExtensionId,null!=e.appExtensionType?i.appExtensionType=t.google.protobuf.StringValue.fromJSON(e.appExtensionType,n):delete i.appExtensionType,null!=e.functionName?i.functionName=t.google.protobuf.StringValue.fromJSON(e.functionName,n):delete i.functionName,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.requestId&&(o.requestId=t.google.protobuf.StringValue.toGRPC(e.requestId,n)),null!=e.currency&&(o.currency=t.google.protobuf.StringValue.toGRPC(e.currency,n)),null!=e.identity&&(o.identity=t.wix.common.spi.Context.IdentificationData.toGRPC(e.identity,n)),null!=e.languages&&(o.languages=e.languages.map(e=>e)),null!=e.instanceId&&(o.instanceId=t.google.protobuf.StringValue.toGRPC(e.instanceId,n)),null!=e.appExtensionId&&(o.appExtensionId=t.google.protobuf.StringValue.toGRPC(e.appExtensionId,n)),null!=e.appExtensionType&&(o.appExtensionType=t.google.protobuf.StringValue.toGRPC(e.appExtensionType,n)),null!=e.functionName&&(o.functionName=t.google.protobuf.StringValue.toGRPC(e.functionName,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.spi.Context;return null!=e.requestId?o.requestId=t.google.protobuf.StringValue.fromGRPC(e.requestId,n):delete o.requestId,null!=e.currency?o.currency=t.google.protobuf.StringValue.fromGRPC(e.currency,n):delete o.currency,null!=e.identity?o.identity=t.wix.common.spi.Context.IdentificationData.fromGRPC(e.identity,n):delete o.identity,null!=e.languages?o.languages=e.languages.map(e=>e):o.languages=[],null!=e.instanceId?o.instanceId=t.google.protobuf.StringValue.fromGRPC(e.instanceId,n):delete o.instanceId,null!=e.appExtensionId?o.appExtensionId=t.google.protobuf.StringValue.fromGRPC(e.appExtensionId,n):delete o.appExtensionId,null!=e.appExtensionType?o.appExtensionType=t.google.protobuf.StringValue.fromGRPC(e.appExtensionType,n):delete o.appExtensionType,null!=e.functionName?o.functionName=t.google.protobuf.StringValue.fromGRPC(e.functionName,n):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,n,o){if(null==e)return null;{const n={};return null!=e.identityType?n.identityType=t.wix.common.spi.Context.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,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.spi.Context.IdentificationData;return null!=e.identityType?n.identityType="string"==typeof e.identityType?e.identityType:t.wix.common.spi.Context.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 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,n){if(null==e)return null;{const n=new t.wix.common.spi.Context.IdentificationData;return null!=e.identityType?n.identityType=e.identityType:n.identityType="UNKNOWN",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}}}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"},e.Object.defineProperty(IdentificationData.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.spi.Context.IdentificationData"),enumerable:!1,configurable:!1}),e.Object.defineProperty(IdentificationData.prototype,"__fqn__",{value:"wix.common.spi.Context.IdentificationData",enumerable:!1,configurable:!1}),e.Object.defineProperty(IdentificationData.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(IdentificationData.prototype,"__root__",{value:t,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,n,o){if(null==e)return null;{const n={};return null!=e.identityType?n.identityType=t.wix.common.spi.Context.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,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.spi.Context.IdentificationData;return null!=e.identityType?n.identityType="string"==typeof e.identityType?e.identityType:t.wix.common.spi.Context.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 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,n){if(null==e)return null;{const n=new t.wix.common.spi.Context.IdentificationData;return null!=e.identityType?n.identityType=e.identityType:n.identityType="UNKNOWN",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}}}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"},e.Object.defineProperty(IdentificationData.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.spi.Context.IdentificationData"),enumerable:!1,configurable:!1}),e.Object.defineProperty(IdentificationData.prototype,"__fqn__",{value:"wix.common.spi.Context.IdentificationData",enumerable:!1,configurable:!1}),e.Object.defineProperty(IdentificationData.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(IdentificationData.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),IdentificationData}(),e.Object.defineProperty(Context.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.spi.Context"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Context.prototype,"__fqn__",{value:"wix.common.spi.Context",enumerable:!1,configurable:!1}),e.Object.defineProperty(Context.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Context.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Context}(),n}(),n.tags=function(){const n={};return n.Tags=function(){class Tags{constructor(e){this.privateTags=e&&e.privateTags,this.tags=e&&e.tags}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.privateTags?i.privateTags=t.wix.common.tags.Tags.TagList.toJSON(e.privateTags,n,o):o&&delete i.privateTags,null!=e.tags?i.tags=t.wix.common.tags.Tags.TagList.toJSON(e.tags,n,o):o&&delete i.tags,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.tags.Tags;return null!=e.privateTags?o.privateTags=t.wix.common.tags.Tags.TagList.fromJSON(e.privateTags,n):delete o.privateTags,null!=e.tags?o.tags=t.wix.common.tags.Tags.TagList.fromJSON(e.tags,n):delete o.tags,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.privateTags&&(o.privateTags=t.wix.common.tags.Tags.TagList.toGRPC(e.privateTags,n)),null!=e.tags&&(o.tags=t.wix.common.tags.Tags.TagList.toGRPC(e.tags,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.tags.Tags;return null!=e.privateTags?o.privateTags=t.wix.common.tags.Tags.TagList.fromGRPC(e.privateTags,n):delete o.privateTags,null!=e.tags?o.tags=t.wix.common.tags.Tags.TagList.fromGRPC(e.tags,n):delete o.tags,o}}}return Tags.TagList=function(){class TagList{constructor(e){this.tagIds=e&&e.tagIds}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.tagIds?t.tagIds=e.tagIds.map(e=>e):n&&(t.tagIds=[]),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.tags.Tags.TagList;return null!=e.tagIds?n.tagIds=Array.isArray(e.tagIds)?e.tagIds.map(e=>e):e.tagIds:!1!==o?n.tagIds=[]:delete n.tagIds,n}}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,n){if(null==e)return null;{const n=new t.wix.common.tags.Tags.TagList;return null!=e.tagIds?n.tagIds=e.tagIds.map(e=>e):n.tagIds=[],n}}}return e.Object.defineProperty(TagList.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.tags.Tags.TagList"),enumerable:!1,configurable:!1}),e.Object.defineProperty(TagList.prototype,"__fqn__",{value:"wix.common.tags.Tags.TagList",enumerable:!1,configurable:!1}),e.Object.defineProperty(TagList.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(TagList.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),TagList}(),Tags.TagList=function(){class TagList{constructor(e){this.tagIds=e&&e.tagIds}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.tagIds?t.tagIds=e.tagIds.map(e=>e):n&&(t.tagIds=[]),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.tags.Tags.TagList;return null!=e.tagIds?n.tagIds=Array.isArray(e.tagIds)?e.tagIds.map(e=>e):e.tagIds:!1!==o?n.tagIds=[]:delete n.tagIds,n}}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,n){if(null==e)return null;{const n=new t.wix.common.tags.Tags.TagList;return null!=e.tagIds?n.tagIds=e.tagIds.map(e=>e):n.tagIds=[],n}}}return e.Object.defineProperty(TagList.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.tags.Tags.TagList"),enumerable:!1,configurable:!1}),e.Object.defineProperty(TagList.prototype,"__fqn__",{value:"wix.common.tags.Tags.TagList",enumerable:!1,configurable:!1}),e.Object.defineProperty(TagList.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(TagList.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),TagList}(),e.Object.defineProperty(Tags.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.tags.Tags"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Tags.prototype,"__fqn__",{value:"wix.common.tags.Tags",enumerable:!1,configurable:!1}),e.Object.defineProperty(Tags.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Tags.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Tags}(),n.PublicTags=function(){class PublicTags{constructor(e){this.tags=e&&e.tags}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.tags?i.tags=t.wix.common.tags.PublicTags.TagList.toJSON(e.tags,n,o):o&&delete i.tags,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.tags.PublicTags;return null!=e.tags?o.tags=t.wix.common.tags.PublicTags.TagList.fromJSON(e.tags,n):delete o.tags,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.tags&&(o.tags=t.wix.common.tags.PublicTags.TagList.toGRPC(e.tags,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.tags.PublicTags;return null!=e.tags?o.tags=t.wix.common.tags.PublicTags.TagList.fromGRPC(e.tags,n):delete o.tags,o}}}return PublicTags.TagList=function(){class TagList{constructor(e){this.tagIds=e&&e.tagIds}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.tagIds?t.tagIds=e.tagIds.map(e=>e):n&&(t.tagIds=[]),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.tags.PublicTags.TagList;return null!=e.tagIds?n.tagIds=Array.isArray(e.tagIds)?e.tagIds.map(e=>e):e.tagIds:!1!==o?n.tagIds=[]:delete n.tagIds,n}}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,n){if(null==e)return null;{const n=new t.wix.common.tags.PublicTags.TagList;return null!=e.tagIds?n.tagIds=e.tagIds.map(e=>e):n.tagIds=[],n}}}return e.Object.defineProperty(TagList.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.tags.PublicTags.TagList"),enumerable:!1,configurable:!1}),e.Object.defineProperty(TagList.prototype,"__fqn__",{value:"wix.common.tags.PublicTags.TagList",enumerable:!1,configurable:!1}),e.Object.defineProperty(TagList.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(TagList.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),TagList}(),PublicTags.TagList=function(){class TagList{constructor(e){this.tagIds=e&&e.tagIds}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.tagIds?t.tagIds=e.tagIds.map(e=>e):n&&(t.tagIds=[]),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.tags.PublicTags.TagList;return null!=e.tagIds?n.tagIds=Array.isArray(e.tagIds)?e.tagIds.map(e=>e):e.tagIds:!1!==o?n.tagIds=[]:delete n.tagIds,n}}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,n){if(null==e)return null;{const n=new t.wix.common.tags.PublicTags.TagList;return null!=e.tagIds?n.tagIds=e.tagIds.map(e=>e):n.tagIds=[],n}}}return e.Object.defineProperty(TagList.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.tags.PublicTags.TagList"),enumerable:!1,configurable:!1}),e.Object.defineProperty(TagList.prototype,"__fqn__",{value:"wix.common.tags.PublicTags.TagList",enumerable:!1,configurable:!1}),e.Object.defineProperty(TagList.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(TagList.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),TagList}(),e.Object.defineProperty(PublicTags.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.tags.PublicTags"),enumerable:!1,configurable:!1}),e.Object.defineProperty(PublicTags.prototype,"__fqn__",{value:"wix.common.tags.PublicTags",enumerable:!1,configurable:!1}),e.Object.defineProperty(PublicTags.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(PublicTags.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),PublicTags}(),n}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.external?i.external=t.wix.common.ExternalLink.toJSON(e.external,n,o):o&&delete i.external,null!=e.page?i.page=t.wix.common.PageLink.toJSON(e.page,n,o):o&&delete i.page,null!=e.anchor?i.anchor=t.wix.common.AnchorLink.toJSON(e.anchor,n,o):o&&delete i.anchor,null!=e.dynamicPage?i.dynamicPage=t.wix.common.DynamicPageLink.toJSON(e.dynamicPage,n,o):o&&delete i.dynamicPage,null!=e.document?i.document=t.wix.common.DocumentLink.toJSON(e.document,n,o):o&&delete i.document,null!=e.email?i.email=t.wix.common.EmailLink.toJSON(e.email,n,o):o&&delete i.email,null!=e.phone?i.phone=t.wix.common.PhoneLink.toJSON(e.phone,n,o):o&&delete i.phone,null!=e.address?i.address=t.wix.common.AddressLink.toJSON(e.address,n,o):o&&delete i.address,null!=e.whatsApp?i.whatsApp=t.wix.common.WhatsAppLink.toJSON(e.whatsApp,n,o):o&&delete i.whatsApp,null!=e.tpaPage?i.tpaPage=t.wix.common.TpaPageLink.toJSON(e.tpaPage,n,o):o&&delete i.tpaPage,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.wix.common.WixLink;return null!=e.external?o.external=t.wix.common.ExternalLink.fromJSON(e.external,n):delete o.external,null!=e.page?o.page=t.wix.common.PageLink.fromJSON(e.page,n):delete o.page,null!=e.anchor?o.anchor=t.wix.common.AnchorLink.fromJSON(e.anchor,n):delete o.anchor,null!=e.dynamicPage?o.dynamicPage=t.wix.common.DynamicPageLink.fromJSON(e.dynamicPage,n):delete o.dynamicPage,null!=e.document?o.document=t.wix.common.DocumentLink.fromJSON(e.document,n):delete o.document,null!=e.email?o.email=t.wix.common.EmailLink.fromJSON(e.email,n):delete o.email,null!=e.phone?o.phone=t.wix.common.PhoneLink.fromJSON(e.phone,n):delete o.phone,null!=e.address?o.address=t.wix.common.AddressLink.fromJSON(e.address,n):delete o.address,null!=e.whatsApp?o.whatsApp=t.wix.common.WhatsAppLink.fromJSON(e.whatsApp,n):delete o.whatsApp,null!=e.tpaPage?o.tpaPage=t.wix.common.TpaPageLink.fromJSON(e.tpaPage,n):delete o.tpaPage,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.external&&(o.external=t.wix.common.ExternalLink.toGRPC(e.external,n)),null!=e.page&&(o.page=t.wix.common.PageLink.toGRPC(e.page,n)),null!=e.anchor&&(o.anchor=t.wix.common.AnchorLink.toGRPC(e.anchor,n)),null!=e.dynamicPage&&(o.dynamicPage=t.wix.common.DynamicPageLink.toGRPC(e.dynamicPage,n)),null!=e.document&&(o.document=t.wix.common.DocumentLink.toGRPC(e.document,n)),null!=e.email&&(o.email=t.wix.common.EmailLink.toGRPC(e.email,n)),null!=e.phone&&(o.phone=t.wix.common.PhoneLink.toGRPC(e.phone,n)),null!=e.address&&(o.address=t.wix.common.AddressLink.toGRPC(e.address,n)),null!=e.whatsApp&&(o.whatsApp=t.wix.common.WhatsAppLink.toGRPC(e.whatsApp,n)),null!=e.tpaPage&&(o.tpaPage=t.wix.common.TpaPageLink.toGRPC(e.tpaPage,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.WixLink;return null!=e.external?o.external=t.wix.common.ExternalLink.fromGRPC(e.external,n):delete o.external,null!=e.page?o.page=t.wix.common.PageLink.fromGRPC(e.page,n):delete o.page,null!=e.anchor?o.anchor=t.wix.common.AnchorLink.fromGRPC(e.anchor,n):delete o.anchor,null!=e.dynamicPage?o.dynamicPage=t.wix.common.DynamicPageLink.fromGRPC(e.dynamicPage,n):delete o.dynamicPage,null!=e.document?o.document=t.wix.common.DocumentLink.fromGRPC(e.document,n):delete o.document,null!=e.email?o.email=t.wix.common.EmailLink.fromGRPC(e.email,n):delete o.email,null!=e.phone?o.phone=t.wix.common.PhoneLink.fromGRPC(e.phone,n):delete o.phone,null!=e.address?o.address=t.wix.common.AddressLink.fromGRPC(e.address,n):delete o.address,null!=e.whatsApp?o.whatsApp=t.wix.common.WhatsAppLink.fromGRPC(e.whatsApp,n):delete o.whatsApp,null!=e.tpaPage?o.tpaPage=t.wix.common.TpaPageLink.fromGRPC(e.tpaPage,n):delete o.tpaPage,o}}}return e.Object.defineProperty(WixLink.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.WixLink"),enumerable:!1,configurable:!1}),e.Object.defineProperty(WixLink.prototype,"__fqn__",{value:"wix.common.WixLink",enumerable:!1,configurable:!1}),e.Object.defineProperty(WixLink.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(WixLink.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),WixLink}(),n.ExternalLink=function(){class ExternalLink{constructor(e){this.url=e&&e.url,this.target=e&&e.target,this.rel=e&&e.rel}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.url?i.url=e.url:o&&(i.url=""),null!=e.target?i.target=t.google.protobuf.StringValue.toJSON(e.target,n,o):o&&delete i.target,null!=e.rel?i.rel=e.rel.map(e=>t.wix.common.LinkRel[e]):o&&(i.rel=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.ExternalLink;return null!=e.url?i.url=e.url:!1!==o?i.url="":delete i.url,null!=e.target?i.target=t.google.protobuf.StringValue.fromJSON(e.target,n):delete i.target,null!=e.rel?i.rel=Array.isArray(e.rel)?e.rel.map(e=>"string"==typeof e?e:t.wix.common.LinkRel[e]):e.rel:!1!==o?i.rel=[]:delete i.rel,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.url&&(o.url=e.url),null!=e.target&&(o.target=t.google.protobuf.StringValue.toGRPC(e.target,n)),null!=e.rel&&(o.rel=e.rel.map(e=>e)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.ExternalLink;return null!=e.url?o.url=e.url:o.url="",null!=e.target?o.target=t.google.protobuf.StringValue.fromGRPC(e.target,n):delete o.target,null!=e.rel?o.rel=e.rel.map(e=>e):o.rel=[],o}}}return e.Object.defineProperty(ExternalLink.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.ExternalLink"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ExternalLink.prototype,"__fqn__",{value:"wix.common.ExternalLink",enumerable:!1,configurable:!1}),e.Object.defineProperty(ExternalLink.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ExternalLink.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ExternalLink}(),n.PageLink=function(){class PageLink{constructor(e){this.pageId=e&&e.pageId,this.target=e&&e.target,this.rel=e&&e.rel}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.pageId?i.pageId=e.pageId:o&&(i.pageId=""),null!=e.target?i.target=t.google.protobuf.StringValue.toJSON(e.target,n,o):o&&delete i.target,null!=e.rel?i.rel=e.rel.map(e=>t.wix.common.LinkRel[e]):o&&(i.rel=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.PageLink;return null!=e.pageId?i.pageId=e.pageId:!1!==o?i.pageId="":delete i.pageId,null!=e.target?i.target=t.google.protobuf.StringValue.fromJSON(e.target,n):delete i.target,null!=e.rel?i.rel=Array.isArray(e.rel)?e.rel.map(e=>"string"==typeof e?e:t.wix.common.LinkRel[e]):e.rel:!1!==o?i.rel=[]:delete i.rel,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.pageId&&(o.pageId=e.pageId),null!=e.target&&(o.target=t.google.protobuf.StringValue.toGRPC(e.target,n)),null!=e.rel&&(o.rel=e.rel.map(e=>e)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.PageLink;return null!=e.pageId?o.pageId=e.pageId:o.pageId="",null!=e.target?o.target=t.google.protobuf.StringValue.fromGRPC(e.target,n):delete o.target,null!=e.rel?o.rel=e.rel.map(e=>e):o.rel=[],o}}}return e.Object.defineProperty(PageLink.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.PageLink"),enumerable:!1,configurable:!1}),e.Object.defineProperty(PageLink.prototype,"__fqn__",{value:"wix.common.PageLink",enumerable:!1,configurable:!1}),e.Object.defineProperty(PageLink.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(PageLink.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),PageLink}(),n.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,n,o){if(null==e)return null;{const n={};return null!=e.anchorName?n.anchorName=e.anchorName:o&&(n.anchorName=""),null!=e.anchorDataId?n.anchorDataId=e.anchorDataId:o&&(n.anchorDataId=""),null!=e.pageId?n.pageId=e.pageId:o&&(n.pageId=""),null!=e.rel?n.rel=e.rel.map(e=>t.wix.common.LinkRel[e]):o&&(n.rel=[]),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.AnchorLink;return null!=e.anchorName?n.anchorName=e.anchorName:!1!==o?n.anchorName="":delete n.anchorName,null!=e.anchorDataId?n.anchorDataId=e.anchorDataId:!1!==o?n.anchorDataId="":delete n.anchorDataId,null!=e.pageId?n.pageId=e.pageId:!1!==o?n.pageId="":delete n.pageId,null!=e.rel?n.rel=Array.isArray(e.rel)?e.rel.map(e=>"string"==typeof e?e:t.wix.common.LinkRel[e]):e.rel:!1!==o?n.rel=[]:delete n.rel,n}}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,n){if(null==e)return null;{const n=new t.wix.common.AnchorLink;return null!=e.anchorName?n.anchorName=e.anchorName:n.anchorName="",null!=e.anchorDataId?n.anchorDataId=e.anchorDataId:n.anchorDataId="",null!=e.pageId?n.pageId=e.pageId:n.pageId="",null!=e.rel?n.rel=e.rel.map(e=>e):n.rel=[],n}}}return e.Object.defineProperty(AnchorLink.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.AnchorLink"),enumerable:!1,configurable:!1}),e.Object.defineProperty(AnchorLink.prototype,"__fqn__",{value:"wix.common.AnchorLink",enumerable:!1,configurable:!1}),e.Object.defineProperty(AnchorLink.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(AnchorLink.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),AnchorLink}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.routerId?i.routerId=e.routerId:o&&(i.routerId=""),null!=e.innerRoute?i.innerRoute=e.innerRoute:o&&(i.innerRoute=""),null!=e.anchorDataId?i.anchorDataId=t.google.protobuf.StringValue.toJSON(e.anchorDataId,n,o):o&&delete i.anchorDataId,null!=e.rel?i.rel=e.rel.map(e=>t.wix.common.LinkRel[e]):o&&(i.rel=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.DynamicPageLink;return null!=e.routerId?i.routerId=e.routerId:!1!==o?i.routerId="":delete i.routerId,null!=e.innerRoute?i.innerRoute=e.innerRoute:!1!==o?i.innerRoute="":delete i.innerRoute,null!=e.anchorDataId?i.anchorDataId=t.google.protobuf.StringValue.fromJSON(e.anchorDataId,n):delete i.anchorDataId,null!=e.rel?i.rel=Array.isArray(e.rel)?e.rel.map(e=>"string"==typeof e?e:t.wix.common.LinkRel[e]):e.rel:!1!==o?i.rel=[]:delete i.rel,i}}static toGRPC(e,n){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=t.google.protobuf.StringValue.toGRPC(e.anchorDataId,n)),null!=e.rel&&(o.rel=e.rel.map(e=>e)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.StringValue.fromGRPC(e.anchorDataId,n):delete o.anchorDataId,null!=e.rel?o.rel=e.rel.map(e=>e):o.rel=[],o}}}return e.Object.defineProperty(DynamicPageLink.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.DynamicPageLink"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DynamicPageLink.prototype,"__fqn__",{value:"wix.common.DynamicPageLink",enumerable:!1,configurable:!1}),e.Object.defineProperty(DynamicPageLink.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DynamicPageLink.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DynamicPageLink}(),n.DocumentLink=function(){class DocumentLink{constructor(e){this.docId=e&&e.docId,this.name=e&&e.name,this.indexable=e&&e.indexable}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.docId?i.docId=e.docId:o&&(i.docId=""),null!=e.name?i.name=t.google.protobuf.StringValue.toJSON(e.name,n,o):o&&delete i.name,null!=e.indexable?i.indexable=e.indexable:o&&(i.indexable=!1),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.DocumentLink;return null!=e.docId?i.docId=e.docId:!1!==o?i.docId="":delete i.docId,null!=e.name?i.name=t.google.protobuf.StringValue.fromJSON(e.name,n):delete i.name,null!=e.indexable?i.indexable=e.indexable:!1!==o?i.indexable=!1:delete i.indexable,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.docId&&(o.docId=e.docId),null!=e.name&&(o.name=t.google.protobuf.StringValue.toGRPC(e.name,n)),null!=e.indexable&&(o.indexable=e.indexable),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.DocumentLink;return null!=e.docId?o.docId=e.docId:o.docId="",null!=e.name?o.name=t.google.protobuf.StringValue.fromGRPC(e.name,n):delete o.name,null!=e.indexable?o.indexable=e.indexable:o.indexable=!1,o}}}return e.Object.defineProperty(DocumentLink.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.DocumentLink"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DocumentLink.prototype,"__fqn__",{value:"wix.common.DocumentLink",enumerable:!1,configurable:!1}),e.Object.defineProperty(DocumentLink.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DocumentLink.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DocumentLink}(),n.EmailLink=function(){class EmailLink{constructor(e){this.recipient=e&&e.recipient,this.subject=e&&e.subject,this.body=e&&e.body}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.recipient?i.recipient=e.recipient:o&&(i.recipient=""),null!=e.subject?i.subject=t.google.protobuf.StringValue.toJSON(e.subject,n,o):o&&delete i.subject,null!=e.body?i.body=t.google.protobuf.StringValue.toJSON(e.body,n,o):o&&delete i.body,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.common.EmailLink;return null!=e.recipient?i.recipient=e.recipient:!1!==o?i.recipient="":delete i.recipient,null!=e.subject?i.subject=t.google.protobuf.StringValue.fromJSON(e.subject,n):delete i.subject,null!=e.body?i.body=t.google.protobuf.StringValue.fromJSON(e.body,n):delete i.body,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.recipient&&(o.recipient=e.recipient),null!=e.subject&&(o.subject=t.google.protobuf.StringValue.toGRPC(e.subject,n)),null!=e.body&&(o.body=t.google.protobuf.StringValue.toGRPC(e.body,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.wix.common.EmailLink;return null!=e.recipient?o.recipient=e.recipient:o.recipient="",null!=e.subject?o.subject=t.google.protobuf.StringValue.fromGRPC(e.subject,n):delete o.subject,null!=e.body?o.body=t.google.protobuf.StringValue.fromGRPC(e.body,n):delete o.body,o}}}return e.Object.defineProperty(EmailLink.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.EmailLink"),enumerable:!1,configurable:!1}),e.Object.defineProperty(EmailLink.prototype,"__fqn__",{value:"wix.common.EmailLink",enumerable:!1,configurable:!1}),e.Object.defineProperty(EmailLink.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(EmailLink.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),EmailLink}(),n.PhoneLink=function(){class PhoneLink{constructor(e){this.phoneNumber=e&&e.phoneNumber}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.phoneNumber?t.phoneNumber=e.phoneNumber:n&&(t.phoneNumber=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.PhoneLink;return null!=e.phoneNumber?n.phoneNumber=e.phoneNumber:!1!==o?n.phoneNumber="":delete n.phoneNumber,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.phoneNumber&&(t.phoneNumber=e.phoneNumber),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.common.PhoneLink;return null!=e.phoneNumber?n.phoneNumber=e.phoneNumber:n.phoneNumber="",n}}}return e.Object.defineProperty(PhoneLink.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.PhoneLink"),enumerable:!1,configurable:!1}),e.Object.defineProperty(PhoneLink.prototype,"__fqn__",{value:"wix.common.PhoneLink",enumerable:!1,configurable:!1}),e.Object.defineProperty(PhoneLink.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(PhoneLink.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),PhoneLink}(),n.AddressLink=function(){class AddressLink{constructor(e){this.address=e&&e.address}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.address?t.address=e.address:n&&(t.address=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.AddressLink;return null!=e.address?n.address=e.address:!1!==o?n.address="":delete n.address,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.address&&(t.address=e.address),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.common.AddressLink;return null!=e.address?n.address=e.address:n.address="",n}}}return e.Object.defineProperty(AddressLink.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.AddressLink"),enumerable:!1,configurable:!1}),e.Object.defineProperty(AddressLink.prototype,"__fqn__",{value:"wix.common.AddressLink",enumerable:!1,configurable:!1}),e.Object.defineProperty(AddressLink.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(AddressLink.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),AddressLink}(),n.WhatsAppLink=function(){class WhatsAppLink{constructor(e){this.phoneNumber=e&&e.phoneNumber}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.phoneNumber?t.phoneNumber=e.phoneNumber:n&&(t.phoneNumber=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.WhatsAppLink;return null!=e.phoneNumber?n.phoneNumber=e.phoneNumber:!1!==o?n.phoneNumber="":delete n.phoneNumber,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.phoneNumber&&(t.phoneNumber=e.phoneNumber),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.common.WhatsAppLink;return null!=e.phoneNumber?n.phoneNumber=e.phoneNumber:n.phoneNumber="",n}}}return e.Object.defineProperty(WhatsAppLink.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.WhatsAppLink"),enumerable:!1,configurable:!1}),e.Object.defineProperty(WhatsAppLink.prototype,"__fqn__",{value:"wix.common.WhatsAppLink",enumerable:!1,configurable:!1}),e.Object.defineProperty(WhatsAppLink.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(WhatsAppLink.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),WhatsAppLink}(),n.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,n,o){if(null==e)return null;{const n={};return null!=e.itemTypeIdentifier?n.itemTypeIdentifier=e.itemTypeIdentifier:o&&(n.itemTypeIdentifier=""),null!=e.itemId?n.itemId=e.itemId:o&&(n.itemId=""),null!=e.pageId?n.pageId=e.pageId:o&&(n.pageId=""),null!=e.appDefinitionId?n.appDefinitionId=e.appDefinitionId:o&&(n.appDefinitionId=""),null!=e.path?n.path=e.path:o&&(n.path=""),null!=e.rel?n.rel=e.rel.map(e=>t.wix.common.LinkRel[e]):o&&(n.rel=[]),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.common.TpaPageLink;return null!=e.itemTypeIdentifier?n.itemTypeIdentifier=e.itemTypeIdentifier:!1!==o?n.itemTypeIdentifier="":delete n.itemTypeIdentifier,null!=e.itemId?n.itemId=e.itemId:!1!==o?n.itemId="":delete n.itemId,null!=e.pageId?n.pageId=e.pageId:!1!==o?n.pageId="":delete n.pageId,null!=e.appDefinitionId?n.appDefinitionId=e.appDefinitionId:!1!==o?n.appDefinitionId="":delete n.appDefinitionId,null!=e.path?n.path=e.path:!1!==o?n.path="":delete n.path,null!=e.rel?n.rel=Array.isArray(e.rel)?e.rel.map(e=>"string"==typeof e?e:t.wix.common.LinkRel[e]):e.rel:!1!==o?n.rel=[]:delete n.rel,n}}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,n){if(null==e)return null;{const n=new t.wix.common.TpaPageLink;return null!=e.itemTypeIdentifier?n.itemTypeIdentifier=e.itemTypeIdentifier:n.itemTypeIdentifier="",null!=e.itemId?n.itemId=e.itemId:n.itemId="",null!=e.pageId?n.pageId=e.pageId:n.pageId="",null!=e.appDefinitionId?n.appDefinitionId=e.appDefinitionId:n.appDefinitionId="",null!=e.path?n.path=e.path:n.path="",null!=e.rel?n.rel=e.rel.map(e=>e):n.rel=[],n}}}return e.Object.defineProperty(TpaPageLink.prototype,"__proto",{value:e=>t.__lookup(e)("wix.common.TpaPageLink"),enumerable:!1,configurable:!1}),e.Object.defineProperty(TpaPageLink.prototype,"__fqn__",{value:"wix.common.TpaPageLink",enumerable:!1,configurable:!1}),e.Object.defineProperty(TpaPageLink.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(TpaPageLink.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),TpaPageLink}(),n.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"},n}(),n.graphql={},n.http=function(){const n={};return n.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,n){if(null==e)return null;{const t={};return null!=e.from?t.from=e.from:n&&(t.from=""),null!=e.fieldmask?t.fieldmask=e.fieldmask:n&&(t.fieldmask=""),null!=e.snakeCaseCommaSeparatedMask?t.snakeCaseCommaSeparatedMask=e.snakeCaseCommaSeparatedMask:n&&(t.snakeCaseCommaSeparatedMask=!1),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.http.InferFieldmask;return null!=e.from?n.from=e.from:!1!==o?n.from="":delete n.from,null!=e.fieldmask?n.fieldmask=e.fieldmask:!1!==o?n.fieldmask="":delete n.fieldmask,null!=e.snakeCaseCommaSeparatedMask?n.snakeCaseCommaSeparatedMask=e.snakeCaseCommaSeparatedMask:!1!==o?n.snakeCaseCommaSeparatedMask=!1:delete n.snakeCaseCommaSeparatedMask,n}}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,n){if(null==e)return null;{const n=new t.wix.http.InferFieldmask;return null!=e.from?n.from=e.from:n.from="",null!=e.fieldmask?n.fieldmask=e.fieldmask:n.fieldmask="",null!=e.snakeCaseCommaSeparatedMask?n.snakeCaseCommaSeparatedMask=e.snakeCaseCommaSeparatedMask:n.snakeCaseCommaSeparatedMask=!1,n}}}return e.Object.defineProperty(InferFieldmask.prototype,"__proto",{value:e=>t.__lookup(e)("wix.http.InferFieldmask"),enumerable:!1,configurable:!1}),e.Object.defineProperty(InferFieldmask.prototype,"__fqn__",{value:"wix.http.InferFieldmask",enumerable:!1,configurable:!1}),e.Object.defineProperty(InferFieldmask.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(InferFieldmask.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),InferFieldmask}(),n}(),n.spi=function(){const n={};return n.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,n,o){if(null==e)return null;{const i={};return null!=e.spiIdentifier?i.spiIdentifier=e.spiIdentifier:o&&(i.spiIdentifier=""),null!=e.configMessage?i.configMessage=e.configMessage:o&&(i.configMessage=""),null!=e.hostService?i.hostService=e.hostService:o&&(i.hostService=""),null!=e.businessManagerUrl?i.businessManagerUrl=e.businessManagerUrl:o&&(i.businessManagerUrl=""),null!=e.fqdn?i.fqdn=e.fqdn:o&&(i.fqdn=""),null!=e.appId?i.appId=e.appId:o&&(i.appId=""),null!=e.appendixFiles?i.appendixFiles=e.appendixFiles.map(e=>t.wix.spi.ServiceAppendix.toJSON(e,n,o)):o&&(i.appendixFiles=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.wix.spi.Service;return null!=e.spiIdentifier?i.spiIdentifier=e.spiIdentifier:!1!==o?i.spiIdentifier="":delete i.spiIdentifier,null!=e.configMessage?i.configMessage=e.configMessage:!1!==o?i.configMessage="":delete i.configMessage,null!=e.hostService?i.hostService=e.hostService:!1!==o?i.hostService="":delete i.hostService,null!=e.businessManagerUrl?i.businessManagerUrl=e.businessManagerUrl:!1!==o?i.businessManagerUrl="":delete i.businessManagerUrl,null!=e.fqdn?i.fqdn=e.fqdn:!1!==o?i.fqdn="":delete i.fqdn,null!=e.appId?i.appId=e.appId:!1!==o?i.appId="":delete i.appId,null!=e.appendixFiles?i.appendixFiles=Array.isArray(e.appendixFiles)?e.appendixFiles.map(e=>t.wix.spi.ServiceAppendix.fromJSON(e,n)):e.appendixFiles:!1!==o?i.appendixFiles=[]:delete i.appendixFiles,i}}static toGRPC(e,n){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=>t.wix.spi.ServiceAppendix.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.wix.spi.ServiceAppendix.fromGRPC(e,n)):o.appendixFiles=[],o}}}return e.Object.defineProperty(Service.prototype,"__proto",{value:e=>t.__lookup(e)("wix.spi.Service"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Service.prototype,"__fqn__",{value:"wix.spi.Service",enumerable:!1,configurable:!1}),e.Object.defineProperty(Service.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Service.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Service}(),n.ServiceAppendix=function(){class ServiceAppendix{constructor(e){this.type=e&&e.type,this.path=e&&e.path}static toJSON(e,n,o){if(null==e)return null;{const n={};return null!=e.type?n.type=t.wix.spi.ServiceAppendix.Type[e.type]:o&&(n.type="UNKNOWN_APPENDIX_TYPE"),null!=e.path?n.path=e.path:o&&(n.path=""),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.spi.ServiceAppendix;return null!=e.type?n.type="string"==typeof e.type?e.type:t.wix.spi.ServiceAppendix.Type[e.type]:!1!==o?n.type="UNKNOWN_APPENDIX_TYPE":delete n.type,null!=e.path?n.path=e.path:!1!==o?n.path="":delete n.path,n}}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,n){if(null==e)return null;{const n=new t.wix.spi.ServiceAppendix;return null!=e.type?n.type=e.type:n.type="UNKNOWN_APPENDIX_TYPE",null!=e.path?n.path=e.path:n.path="",n}}}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"},e.Object.defineProperty(ServiceAppendix.prototype,"__proto",{value:e=>t.__lookup(e)("wix.spi.ServiceAppendix"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceAppendix.prototype,"__fqn__",{value:"wix.spi.ServiceAppendix",enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceAppendix.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceAppendix.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ServiceAppendix}(),n.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,n,o){if(null==e)return null;{const n={};return null!=e.name?n.name=e.name:o&&(n.name=""),null!=e.httpCode?n.httpCode=t.wix.spi.HttpStatusCode[e.httpCode]:o&&(n.httpCode="UNKNOWN_ERROR"),null!=e.applicationCode?n.applicationCode=e.applicationCode:o&&(n.applicationCode=""),null!=e.data?n.data=e.data:o&&(n.data=""),n}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.spi.Error;return null!=e.name?n.name=e.name:!1!==o?n.name="":delete n.name,null!=e.httpCode?n.httpCode="string"==typeof e.httpCode?e.httpCode:t.wix.spi.HttpStatusCode[e.httpCode]:!1!==o?n.httpCode="UNKNOWN_ERROR":delete n.httpCode,null!=e.applicationCode?n.applicationCode=e.applicationCode:!1!==o?n.applicationCode="":delete n.applicationCode,null!=e.data?n.data=e.data:!1!==o?n.data="":delete n.data,n}}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,n){if(null==e)return null;{const n=new t.wix.spi.Error;return null!=e.name?n.name=e.name:n.name="",null!=e.httpCode?n.httpCode=e.httpCode:n.httpCode="UNKNOWN_ERROR",null!=e.applicationCode?n.applicationCode=e.applicationCode:n.applicationCode="",null!=e.data?n.data=e.data:n.data="",n}}}return e.Object.defineProperty(Error.prototype,"__proto",{value:e=>t.__lookup(e)("wix.spi.Error"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Error.prototype,"__fqn__",{value:"wix.spi.Error",enumerable:!1,configurable:!1}),e.Object.defineProperty(Error.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Error.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Error}(),n.Event=function(){class Event{constructor(e){this.methodName=e&&e.methodName,this.fqn=e&&e.fqn}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.methodName?t.methodName=e.methodName:n&&(t.methodName=""),null!=e.fqn?t.fqn=e.fqn:n&&(t.fqn=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.wix.spi.Event;return null!=e.methodName?n.methodName=e.methodName:!1!==o?n.methodName="":delete n.methodName,null!=e.fqn?n.fqn=e.fqn:!1!==o?n.fqn="":delete n.fqn,n}}static toGRPC(e,t){if(null==e)return null;{const t={};return null!=e.methodName&&(t.methodName=e.methodName),null!=e.fqn&&(t.fqn=e.fqn),t}}static fromGRPC(e,n){if(null==e)return null;{const n=new t.wix.spi.Event;return null!=e.methodName?n.methodName=e.methodName:n.methodName="",null!=e.fqn?n.fqn=e.fqn:n.fqn="",n}}}return e.Object.defineProperty(Event.prototype,"__proto",{value:e=>t.__lookup(e)("wix.spi.Event"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Event.prototype,"__fqn__",{value:"wix.spi.Event",enumerable:!1,configurable:!1}),e.Object.defineProperty(Event.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Event.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Event}(),n.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"},n}(),n}(),t.upstream=function(){const n={};return n.externaldatabase=function(){const n={};return n.wix=function(){const n={};return n.common=function(){const n={};return n.Paging=function(){class Paging{constructor(e){this.limit=e&&e.limit,this.offset=e&&e.offset}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.limit?i.limit=t.google.protobuf.Int32Value.toJSON(e.limit,n,o):o&&delete i.limit,null!=e.offset?i.offset=t.google.protobuf.Int32Value.toJSON(e.offset,n,o):o&&delete i.offset,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.upstream.externaldatabase.wix.common.Paging;return null!=e.limit?o.limit=t.google.protobuf.Int32Value.fromJSON(e.limit,n):delete o.limit,null!=e.offset?o.offset=t.google.protobuf.Int32Value.fromJSON(e.offset,n):delete o.offset,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.limit&&(o.limit=t.google.protobuf.Int32Value.toGRPC(e.limit,n)),null!=e.offset&&(o.offset=t.google.protobuf.Int32Value.toGRPC(e.offset,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.upstream.externaldatabase.wix.common.Paging;return null!=e.limit?o.limit=t.google.protobuf.Int32Value.fromGRPC(e.limit,n):delete o.limit,null!=e.offset?o.offset=t.google.protobuf.Int32Value.fromGRPC(e.offset,n):delete o.offset,o}}}return e.Object.defineProperty(Paging.prototype,"__proto",{value:e=>t.__lookup(e)("upstream.externaldatabase.wix.common.Paging"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Paging.prototype,"__fqn__",{value:"upstream.externaldatabase.wix.common.Paging",enumerable:!1,configurable:!1}),e.Object.defineProperty(Paging.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Paging.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Paging}(),n.CursorPaging=function(){class CursorPaging{constructor(e){this.limit=e&&e.limit,this.cursor=e&&e.cursor}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.limit?i.limit=t.google.protobuf.Int32Value.toJSON(e.limit,n,o):o&&delete i.limit,null!=e.cursor?i.cursor=t.google.protobuf.StringValue.toJSON(e.cursor,n,o):o&&delete i.cursor,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.upstream.externaldatabase.wix.common.CursorPaging;return null!=e.limit?o.limit=t.google.protobuf.Int32Value.fromJSON(e.limit,n):delete o.limit,null!=e.cursor?o.cursor=t.google.protobuf.StringValue.fromJSON(e.cursor,n):delete o.cursor,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.limit&&(o.limit=t.google.protobuf.Int32Value.toGRPC(e.limit,n)),null!=e.cursor&&(o.cursor=t.google.protobuf.StringValue.toGRPC(e.cursor,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.upstream.externaldatabase.wix.common.CursorPaging;return null!=e.limit?o.limit=t.google.protobuf.Int32Value.fromGRPC(e.limit,n):delete o.limit,null!=e.cursor?o.cursor=t.google.protobuf.StringValue.fromGRPC(e.cursor,n):delete o.cursor,o}}}return e.Object.defineProperty(CursorPaging.prototype,"__proto",{value:e=>t.__lookup(e)("upstream.externaldatabase.wix.common.CursorPaging"),enumerable:!1,configurable:!1}),e.Object.defineProperty(CursorPaging.prototype,"__fqn__",{value:"upstream.externaldatabase.wix.common.CursorPaging",enumerable:!1,configurable:!1}),e.Object.defineProperty(CursorPaging.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(CursorPaging.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),CursorPaging}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.count?i.count=t.google.protobuf.Int32Value.toJSON(e.count,n,o):o&&delete i.count,null!=e.offset?i.offset=t.google.protobuf.Int32Value.toJSON(e.offset,n,o):o&&delete i.offset,null!=e.total?i.total=t.google.protobuf.Int32Value.toJSON(e.total,n,o):o&&delete i.total,null!=e.tooManyToCount?i.tooManyToCount=t.google.protobuf.BoolValue.toJSON(e.tooManyToCount,n,o):o&&delete i.tooManyToCount,null!=e.hasNext?i.hasNext=t.google.protobuf.BoolValue.toJSON(e.hasNext,n,o):o&&delete i.hasNext,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.upstream.externaldatabase.wix.common.PagingMetadata;return null!=e.count?o.count=t.google.protobuf.Int32Value.fromJSON(e.count,n):delete o.count,null!=e.offset?o.offset=t.google.protobuf.Int32Value.fromJSON(e.offset,n):delete o.offset,null!=e.total?o.total=t.google.protobuf.Int32Value.fromJSON(e.total,n):delete o.total,null!=e.tooManyToCount?o.tooManyToCount=t.google.protobuf.BoolValue.fromJSON(e.tooManyToCount,n):delete o.tooManyToCount,null!=e.hasNext?o.hasNext=t.google.protobuf.BoolValue.fromJSON(e.hasNext,n):delete o.hasNext,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.count&&(o.count=t.google.protobuf.Int32Value.toGRPC(e.count,n)),null!=e.offset&&(o.offset=t.google.protobuf.Int32Value.toGRPC(e.offset,n)),null!=e.total&&(o.total=t.google.protobuf.Int32Value.toGRPC(e.total,n)),null!=e.tooManyToCount&&(o.tooManyToCount=t.google.protobuf.BoolValue.toGRPC(e.tooManyToCount,n)),null!=e.hasNext&&(o.hasNext=t.google.protobuf.BoolValue.toGRPC(e.hasNext,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.upstream.externaldatabase.wix.common.PagingMetadata;return null!=e.count?o.count=t.google.protobuf.Int32Value.fromGRPC(e.count,n):delete o.count,null!=e.offset?o.offset=t.google.protobuf.Int32Value.fromGRPC(e.offset,n):delete o.offset,null!=e.total?o.total=t.google.protobuf.Int32Value.fromGRPC(e.total,n):delete o.total,null!=e.tooManyToCount?o.tooManyToCount=t.google.protobuf.BoolValue.fromGRPC(e.tooManyToCount,n):delete o.tooManyToCount,null!=e.hasNext?o.hasNext=t.google.protobuf.BoolValue.fromGRPC(e.hasNext,n):delete o.hasNext,o}}}return e.Object.defineProperty(PagingMetadata.prototype,"__proto",{value:e=>t.__lookup(e)("upstream.externaldatabase.wix.common.PagingMetadata"),enumerable:!1,configurable:!1}),e.Object.defineProperty(PagingMetadata.prototype,"__fqn__",{value:"upstream.externaldatabase.wix.common.PagingMetadata",enumerable:!1,configurable:!1}),e.Object.defineProperty(PagingMetadata.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(PagingMetadata.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),PagingMetadata}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.count?i.count=t.google.protobuf.Int32Value.toJSON(e.count,n,o):o&&delete i.count,null!=e.offset?i.offset=t.google.protobuf.Int32Value.toJSON(e.offset,n,o):o&&delete i.offset,null!=e.total?i.total=t.google.protobuf.Int32Value.toJSON(e.total,n,o):o&&delete i.total,null!=e.tooManyToCount?i.tooManyToCount=t.google.protobuf.BoolValue.toJSON(e.tooManyToCount,n,o):o&&delete i.tooManyToCount,null!=e.cursors?i.cursors=t.upstream.externaldatabase.wix.common.Cursors.toJSON(e.cursors,n,o):o&&delete i.cursors,null!=e.hasNext?i.hasNext=t.google.protobuf.BoolValue.toJSON(e.hasNext,n,o):o&&delete i.hasNext,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.upstream.externaldatabase.wix.common.PagingMetadataV2;return null!=e.count?o.count=t.google.protobuf.Int32Value.fromJSON(e.count,n):delete o.count,null!=e.offset?o.offset=t.google.protobuf.Int32Value.fromJSON(e.offset,n):delete o.offset,null!=e.total?o.total=t.google.protobuf.Int32Value.fromJSON(e.total,n):delete o.total,null!=e.tooManyToCount?o.tooManyToCount=t.google.protobuf.BoolValue.fromJSON(e.tooManyToCount,n):delete o.tooManyToCount,null!=e.cursors?o.cursors=t.upstream.externaldatabase.wix.common.Cursors.fromJSON(e.cursors,n):delete o.cursors,null!=e.hasNext?o.hasNext=t.google.protobuf.BoolValue.fromJSON(e.hasNext,n):delete o.hasNext,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.count&&(o.count=t.google.protobuf.Int32Value.toGRPC(e.count,n)),null!=e.offset&&(o.offset=t.google.protobuf.Int32Value.toGRPC(e.offset,n)),null!=e.total&&(o.total=t.google.protobuf.Int32Value.toGRPC(e.total,n)),null!=e.tooManyToCount&&(o.tooManyToCount=t.google.protobuf.BoolValue.toGRPC(e.tooManyToCount,n)),null!=e.cursors&&(o.cursors=t.upstream.externaldatabase.wix.common.Cursors.toGRPC(e.cursors,n)),null!=e.hasNext&&(o.hasNext=t.google.protobuf.BoolValue.toGRPC(e.hasNext,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.upstream.externaldatabase.wix.common.PagingMetadataV2;return null!=e.count?o.count=t.google.protobuf.Int32Value.fromGRPC(e.count,n):delete o.count,null!=e.offset?o.offset=t.google.protobuf.Int32Value.fromGRPC(e.offset,n):delete o.offset,null!=e.total?o.total=t.google.protobuf.Int32Value.fromGRPC(e.total,n):delete o.total,null!=e.tooManyToCount?o.tooManyToCount=t.google.protobuf.BoolValue.fromGRPC(e.tooManyToCount,n):delete o.tooManyToCount,null!=e.cursors?o.cursors=t.upstream.externaldatabase.wix.common.Cursors.fromGRPC(e.cursors,n):delete o.cursors,null!=e.hasNext?o.hasNext=t.google.protobuf.BoolValue.fromGRPC(e.hasNext,n):delete o.hasNext,o}}}return e.Object.defineProperty(PagingMetadataV2.prototype,"__proto",{value:e=>t.__lookup(e)("upstream.externaldatabase.wix.common.PagingMetadataV2"),enumerable:!1,configurable:!1}),e.Object.defineProperty(PagingMetadataV2.prototype,"__fqn__",{value:"upstream.externaldatabase.wix.common.PagingMetadataV2",enumerable:!1,configurable:!1}),e.Object.defineProperty(PagingMetadataV2.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(PagingMetadataV2.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),PagingMetadataV2}(),n.CursorPagingMetadata=function(){class CursorPagingMetadata{constructor(e){this.count=e&&e.count,this.cursors=e&&e.cursors,this.hasNext=e&&e.hasNext}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.count?i.count=t.google.protobuf.Int32Value.toJSON(e.count,n,o):o&&delete i.count,null!=e.cursors?i.cursors=t.upstream.externaldatabase.wix.common.Cursors.toJSON(e.cursors,n,o):o&&delete i.cursors,null!=e.hasNext?i.hasNext=t.google.protobuf.BoolValue.toJSON(e.hasNext,n,o):o&&delete i.hasNext,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.upstream.externaldatabase.wix.common.CursorPagingMetadata;return null!=e.count?o.count=t.google.protobuf.Int32Value.fromJSON(e.count,n):delete o.count,null!=e.cursors?o.cursors=t.upstream.externaldatabase.wix.common.Cursors.fromJSON(e.cursors,n):delete o.cursors,null!=e.hasNext?o.hasNext=t.google.protobuf.BoolValue.fromJSON(e.hasNext,n):delete o.hasNext,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.count&&(o.count=t.google.protobuf.Int32Value.toGRPC(e.count,n)),null!=e.cursors&&(o.cursors=t.upstream.externaldatabase.wix.common.Cursors.toGRPC(e.cursors,n)),null!=e.hasNext&&(o.hasNext=t.google.protobuf.BoolValue.toGRPC(e.hasNext,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.upstream.externaldatabase.wix.common.CursorPagingMetadata;return null!=e.count?o.count=t.google.protobuf.Int32Value.fromGRPC(e.count,n):delete o.count,null!=e.cursors?o.cursors=t.upstream.externaldatabase.wix.common.Cursors.fromGRPC(e.cursors,n):delete o.cursors,null!=e.hasNext?o.hasNext=t.google.protobuf.BoolValue.fromGRPC(e.hasNext,n):delete o.hasNext,o}}}return e.Object.defineProperty(CursorPagingMetadata.prototype,"__proto",{value:e=>t.__lookup(e)("upstream.externaldatabase.wix.common.CursorPagingMetadata"),enumerable:!1,configurable:!1}),e.Object.defineProperty(CursorPagingMetadata.prototype,"__fqn__",{value:"upstream.externaldatabase.wix.common.CursorPagingMetadata",enumerable:!1,configurable:!1}),e.Object.defineProperty(CursorPagingMetadata.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(CursorPagingMetadata.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),CursorPagingMetadata}(),n.Cursors=function(){class Cursors{constructor(e){this.next=e&&e.next,this.prev=e&&e.prev}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.next?i.next=t.google.protobuf.StringValue.toJSON(e.next,n,o):o&&delete i.next,null!=e.prev?i.prev=t.google.protobuf.StringValue.toJSON(e.prev,n,o):o&&delete i.prev,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const o=new t.upstream.externaldatabase.wix.common.Cursors;return null!=e.next?o.next=t.google.protobuf.StringValue.fromJSON(e.next,n):delete o.next,null!=e.prev?o.prev=t.google.protobuf.StringValue.fromJSON(e.prev,n):delete o.prev,o}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.next&&(o.next=t.google.protobuf.StringValue.toGRPC(e.next,n)),null!=e.prev&&(o.prev=t.google.protobuf.StringValue.toGRPC(e.prev,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.upstream.externaldatabase.wix.common.Cursors;return null!=e.next?o.next=t.google.protobuf.StringValue.fromGRPC(e.next,n):delete o.next,null!=e.prev?o.prev=t.google.protobuf.StringValue.fromGRPC(e.prev,n):delete o.prev,o}}}return e.Object.defineProperty(Cursors.prototype,"__proto",{value:e=>t.__lookup(e)("upstream.externaldatabase.wix.common.Cursors"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Cursors.prototype,"__fqn__",{value:"upstream.externaldatabase.wix.common.Cursors",enumerable:!1,configurable:!1}),e.Object.defineProperty(Cursors.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Cursors.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Cursors}(),n}(),n}(),n}(),n}(),t.google=function(){const n={};return n.protobuf=function(){const n={};return n.FileDescriptorSet=function(){class FileDescriptorSet{constructor(e){this.file=e&&e.file}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.file?i.file=e.file.map(e=>t.google.protobuf.FileDescriptorProto.toJSON(e,n,o)):o&&(i.file=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.FileDescriptorSet;return null!=e.file?i.file=Array.isArray(e.file)?e.file.map(e=>t.google.protobuf.FileDescriptorProto.fromJSON(e,n)):e.file:!1!==o?i.file=[]:delete i.file,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.file&&(o.file=e.file.map(e=>t.google.protobuf.FileDescriptorProto.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.google.protobuf.FileDescriptorSet;return null!=e.file?o.file=e.file.map(e=>t.google.protobuf.FileDescriptorProto.fromGRPC(e,n)):o.file=[],o}}}return e.Object.defineProperty(FileDescriptorSet.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.FileDescriptorSet"),enumerable:!1,configurable:!1}),e.Object.defineProperty(FileDescriptorSet.prototype,"__fqn__",{value:"google.protobuf.FileDescriptorSet",enumerable:!1,configurable:!1}),e.Object.defineProperty(FileDescriptorSet.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(FileDescriptorSet.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),FileDescriptorSet}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.name?i.name=e.name:o&&(i.name=""),null!=e.package?i.package=e.package:o&&(i.package=""),null!=e.dependency?i.dependency=e.dependency.map(e=>e):o&&(i.dependency=[]),null!=e.publicDependency?i.publicDependency=e.publicDependency.map(e=>e):o&&(i.publicDependency=[]),null!=e.weakDependency?i.weakDependency=e.weakDependency.map(e=>e):o&&(i.weakDependency=[]),null!=e.messageType?i.messageType=e.messageType.map(e=>t.google.protobuf.DescriptorProto.toJSON(e,n,o)):o&&(i.messageType=[]),null!=e.enumType?i.enumType=e.enumType.map(e=>t.google.protobuf.EnumDescriptorProto.toJSON(e,n,o)):o&&(i.enumType=[]),null!=e.service?i.service=e.service.map(e=>t.google.protobuf.ServiceDescriptorProto.toJSON(e,n,o)):o&&(i.service=[]),null!=e.extension?i.extension=e.extension.map(e=>t.google.protobuf.FieldDescriptorProto.toJSON(e,n,o)):o&&(i.extension=[]),null!=e.options?i.options=t.google.protobuf.FileOptions.toJSON(e.options,n,o):o&&delete i.options,null!=e.sourceCodeInfo?i.sourceCodeInfo=t.google.protobuf.SourceCodeInfo.toJSON(e.sourceCodeInfo,n,o):o&&delete i.sourceCodeInfo,null!=e.syntax?i.syntax=e.syntax:o&&(i.syntax=""),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.FileDescriptorProto;return null!=e.name?i.name=e.name:!1!==o?i.name="":delete i.name,null!=e.package?i.package=e.package:!1!==o?i.package="":delete i.package,null!=e.dependency?i.dependency=Array.isArray(e.dependency)?e.dependency.map(e=>e):e.dependency:!1!==o?i.dependency=[]:delete i.dependency,null!=e.publicDependency?i.publicDependency=Array.isArray(e.publicDependency)?e.publicDependency.map(e=>e):e.publicDependency:!1!==o?i.publicDependency=[]:delete i.publicDependency,null!=e.weakDependency?i.weakDependency=Array.isArray(e.weakDependency)?e.weakDependency.map(e=>e):e.weakDependency:!1!==o?i.weakDependency=[]:delete i.weakDependency,null!=e.messageType?i.messageType=Array.isArray(e.messageType)?e.messageType.map(e=>t.google.protobuf.DescriptorProto.fromJSON(e,n)):e.messageType:!1!==o?i.messageType=[]:delete i.messageType,null!=e.enumType?i.enumType=Array.isArray(e.enumType)?e.enumType.map(e=>t.google.protobuf.EnumDescriptorProto.fromJSON(e,n)):e.enumType:!1!==o?i.enumType=[]:delete i.enumType,null!=e.service?i.service=Array.isArray(e.service)?e.service.map(e=>t.google.protobuf.ServiceDescriptorProto.fromJSON(e,n)):e.service:!1!==o?i.service=[]:delete i.service,null!=e.extension?i.extension=Array.isArray(e.extension)?e.extension.map(e=>t.google.protobuf.FieldDescriptorProto.fromJSON(e,n)):e.extension:!1!==o?i.extension=[]:delete i.extension,null!=e.options?i.options=t.google.protobuf.FileOptions.fromJSON(e.options,n):delete i.options,null!=e.sourceCodeInfo?i.sourceCodeInfo=t.google.protobuf.SourceCodeInfo.fromJSON(e.sourceCodeInfo,n):delete i.sourceCodeInfo,null!=e.syntax?i.syntax=e.syntax:!1!==o?i.syntax="":delete i.syntax,i}}static toGRPC(e,n){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=>t.google.protobuf.DescriptorProto.toGRPC(e,n))),null!=e.enumType&&(o.enumType=e.enumType.map(e=>t.google.protobuf.EnumDescriptorProto.toGRPC(e,n))),null!=e.service&&(o.service=e.service.map(e=>t.google.protobuf.ServiceDescriptorProto.toGRPC(e,n))),null!=e.extension&&(o.extension=e.extension.map(e=>t.google.protobuf.FieldDescriptorProto.toGRPC(e,n))),null!=e.options&&(o.options=t.google.protobuf.FileOptions.toGRPC(e.options,n)),null!=e.sourceCodeInfo&&(o.sourceCodeInfo=t.google.protobuf.SourceCodeInfo.toGRPC(e.sourceCodeInfo,n)),null!=e.syntax&&(o.syntax=e.syntax),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.google.protobuf.DescriptorProto.fromGRPC(e,n)):o.messageType=[],null!=e.enumType?o.enumType=e.enumType.map(e=>t.google.protobuf.EnumDescriptorProto.fromGRPC(e,n)):o.enumType=[],null!=e.service?o.service=e.service.map(e=>t.google.protobuf.ServiceDescriptorProto.fromGRPC(e,n)):o.service=[],null!=e.extension?o.extension=e.extension.map(e=>t.google.protobuf.FieldDescriptorProto.fromGRPC(e,n)):o.extension=[],null!=e.options?o.options=t.google.protobuf.FileOptions.fromGRPC(e.options,n):delete o.options,null!=e.sourceCodeInfo?o.sourceCodeInfo=t.google.protobuf.SourceCodeInfo.fromGRPC(e.sourceCodeInfo,n):delete o.sourceCodeInfo,null!=e.syntax?o.syntax=e.syntax:o.syntax="",o}}}return e.Object.defineProperty(FileDescriptorProto.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.FileDescriptorProto"),enumerable:!1,configurable:!1}),e.Object.defineProperty(FileDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.FileDescriptorProto",enumerable:!1,configurable:!1}),e.Object.defineProperty(FileDescriptorProto.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(FileDescriptorProto.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),FileDescriptorProto}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.name?i.name=e.name:o&&(i.name=""),null!=e.field?i.field=e.field.map(e=>t.google.protobuf.FieldDescriptorProto.toJSON(e,n,o)):o&&(i.field=[]),null!=e.extension?i.extension=e.extension.map(e=>t.google.protobuf.FieldDescriptorProto.toJSON(e,n,o)):o&&(i.extension=[]),null!=e.nestedType?i.nestedType=e.nestedType.map(e=>t.google.protobuf.DescriptorProto.toJSON(e,n,o)):o&&(i.nestedType=[]),null!=e.enumType?i.enumType=e.enumType.map(e=>t.google.protobuf.EnumDescriptorProto.toJSON(e,n,o)):o&&(i.enumType=[]),null!=e.extensionRange?i.extensionRange=e.extensionRange.map(e=>t.google.protobuf.DescriptorProto.ExtensionRange.toJSON(e,n,o)):o&&(i.extensionRange=[]),null!=e.oneofDecl?i.oneofDecl=e.oneofDecl.map(e=>t.google.protobuf.OneofDescriptorProto.toJSON(e,n,o)):o&&(i.oneofDecl=[]),null!=e.options?i.options=t.google.protobuf.MessageOptions.toJSON(e.options,n,o):o&&delete i.options,null!=e.reservedRange?i.reservedRange=e.reservedRange.map(e=>t.google.protobuf.DescriptorProto.ReservedRange.toJSON(e,n,o)):o&&(i.reservedRange=[]),null!=e.reservedName?i.reservedName=e.reservedName.map(e=>e):o&&(i.reservedName=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.DescriptorProto;return null!=e.name?i.name=e.name:!1!==o?i.name="":delete i.name,null!=e.field?i.field=Array.isArray(e.field)?e.field.map(e=>t.google.protobuf.FieldDescriptorProto.fromJSON(e,n)):e.field:!1!==o?i.field=[]:delete i.field,null!=e.extension?i.extension=Array.isArray(e.extension)?e.extension.map(e=>t.google.protobuf.FieldDescriptorProto.fromJSON(e,n)):e.extension:!1!==o?i.extension=[]:delete i.extension,null!=e.nestedType?i.nestedType=Array.isArray(e.nestedType)?e.nestedType.map(e=>t.google.protobuf.DescriptorProto.fromJSON(e,n)):e.nestedType:!1!==o?i.nestedType=[]:delete i.nestedType,null!=e.enumType?i.enumType=Array.isArray(e.enumType)?e.enumType.map(e=>t.google.protobuf.EnumDescriptorProto.fromJSON(e,n)):e.enumType:!1!==o?i.enumType=[]:delete i.enumType,null!=e.extensionRange?i.extensionRange=Array.isArray(e.extensionRange)?e.extensionRange.map(e=>t.google.protobuf.DescriptorProto.ExtensionRange.fromJSON(e,n)):e.extensionRange:!1!==o?i.extensionRange=[]:delete i.extensionRange,null!=e.oneofDecl?i.oneofDecl=Array.isArray(e.oneofDecl)?e.oneofDecl.map(e=>t.google.protobuf.OneofDescriptorProto.fromJSON(e,n)):e.oneofDecl:!1!==o?i.oneofDecl=[]:delete i.oneofDecl,null!=e.options?i.options=t.google.protobuf.MessageOptions.fromJSON(e.options,n):delete i.options,null!=e.reservedRange?i.reservedRange=Array.isArray(e.reservedRange)?e.reservedRange.map(e=>t.google.protobuf.DescriptorProto.ReservedRange.fromJSON(e,n)):e.reservedRange:!1!==o?i.reservedRange=[]:delete i.reservedRange,null!=e.reservedName?i.reservedName=Array.isArray(e.reservedName)?e.reservedName.map(e=>e):e.reservedName:!1!==o?i.reservedName=[]:delete i.reservedName,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.field&&(o.field=e.field.map(e=>t.google.protobuf.FieldDescriptorProto.toGRPC(e,n))),null!=e.extension&&(o.extension=e.extension.map(e=>t.google.protobuf.FieldDescriptorProto.toGRPC(e,n))),null!=e.nestedType&&(o.nestedType=e.nestedType.map(e=>t.google.protobuf.DescriptorProto.toGRPC(e,n))),null!=e.enumType&&(o.enumType=e.enumType.map(e=>t.google.protobuf.EnumDescriptorProto.toGRPC(e,n))),null!=e.extensionRange&&(o.extensionRange=e.extensionRange.map(e=>t.google.protobuf.DescriptorProto.ExtensionRange.toGRPC(e,n))),null!=e.oneofDecl&&(o.oneofDecl=e.oneofDecl.map(e=>t.google.protobuf.OneofDescriptorProto.toGRPC(e,n))),null!=e.options&&(o.options=t.google.protobuf.MessageOptions.toGRPC(e.options,n)),null!=e.reservedRange&&(o.reservedRange=e.reservedRange.map(e=>t.google.protobuf.DescriptorProto.ReservedRange.toGRPC(e,n))),null!=e.reservedName&&(o.reservedName=e.reservedName.map(e=>e)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.google.protobuf.DescriptorProto;return null!=e.name?o.name=e.name:o.name="",null!=e.field?o.field=e.field.map(e=>t.google.protobuf.FieldDescriptorProto.fromGRPC(e,n)):o.field=[],null!=e.extension?o.extension=e.extension.map(e=>t.google.protobuf.FieldDescriptorProto.fromGRPC(e,n)):o.extension=[],null!=e.nestedType?o.nestedType=e.nestedType.map(e=>t.google.protobuf.DescriptorProto.fromGRPC(e,n)):o.nestedType=[],null!=e.enumType?o.enumType=e.enumType.map(e=>t.google.protobuf.EnumDescriptorProto.fromGRPC(e,n)):o.enumType=[],null!=e.extensionRange?o.extensionRange=e.extensionRange.map(e=>t.google.protobuf.DescriptorProto.ExtensionRange.fromGRPC(e,n)):o.extensionRange=[],null!=e.oneofDecl?o.oneofDecl=e.oneofDecl.map(e=>t.google.protobuf.OneofDescriptorProto.fromGRPC(e,n)):o.oneofDecl=[],null!=e.options?o.options=t.google.protobuf.MessageOptions.fromGRPC(e.options,n):delete o.options,null!=e.reservedRange?o.reservedRange=e.reservedRange.map(e=>t.google.protobuf.DescriptorProto.ReservedRange.fromGRPC(e,n)):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,n,o){if(null==e)return null;{const i={};return null!=e.start?i.start=e.start:o&&(i.start=0),null!=e.end?i.end=e.end:o&&(i.end=0),null!=e.options?i.options=t.google.protobuf.ExtensionRangeOptions.toJSON(e.options,n,o):o&&delete i.options,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.DescriptorProto.ExtensionRange;return null!=e.start?i.start=e.start:!1!==o?i.start=0:delete i.start,null!=e.end?i.end=e.end:!1!==o?i.end=0:delete i.end,null!=e.options?i.options=t.google.protobuf.ExtensionRangeOptions.fromJSON(e.options,n):delete i.options,i}}static toGRPC(e,n){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=t.google.protobuf.ExtensionRangeOptions.toGRPC(e.options,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.ExtensionRangeOptions.fromGRPC(e.options,n):delete o.options,o}}}return e.Object.defineProperty(ExtensionRange.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.DescriptorProto.ExtensionRange"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ExtensionRange.prototype,"__fqn__",{value:"google.protobuf.DescriptorProto.ExtensionRange",enumerable:!1,configurable:!1}),e.Object.defineProperty(ExtensionRange.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ExtensionRange.prototype,"__root__",{value:t,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,n){if(null==e)return null;{const t={};return null!=e.start?t.start=e.start:n&&(t.start=0),null!=e.end?t.end=e.end:n&&(t.end=0),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.google.protobuf.DescriptorProto.ReservedRange;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,n}}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,n){if(null==e)return null;{const n=new t.google.protobuf.DescriptorProto.ReservedRange;return null!=e.start?n.start=e.start:n.start=0,null!=e.end?n.end=e.end:n.end=0,n}}}return e.Object.defineProperty(ReservedRange.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.DescriptorProto.ReservedRange"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ReservedRange.prototype,"__fqn__",{value:"google.protobuf.DescriptorProto.ReservedRange",enumerable:!1,configurable:!1}),e.Object.defineProperty(ReservedRange.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ReservedRange.prototype,"__root__",{value:t,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,n,o){if(null==e)return null;{const i={};return null!=e.start?i.start=e.start:o&&(i.start=0),null!=e.end?i.end=e.end:o&&(i.end=0),null!=e.options?i.options=t.google.protobuf.ExtensionRangeOptions.toJSON(e.options,n,o):o&&delete i.options,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.DescriptorProto.ExtensionRange;return null!=e.start?i.start=e.start:!1!==o?i.start=0:delete i.start,null!=e.end?i.end=e.end:!1!==o?i.end=0:delete i.end,null!=e.options?i.options=t.google.protobuf.ExtensionRangeOptions.fromJSON(e.options,n):delete i.options,i}}static toGRPC(e,n){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=t.google.protobuf.ExtensionRangeOptions.toGRPC(e.options,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.ExtensionRangeOptions.fromGRPC(e.options,n):delete o.options,o}}}return e.Object.defineProperty(ExtensionRange.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.DescriptorProto.ExtensionRange"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ExtensionRange.prototype,"__fqn__",{value:"google.protobuf.DescriptorProto.ExtensionRange",enumerable:!1,configurable:!1}),e.Object.defineProperty(ExtensionRange.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ExtensionRange.prototype,"__root__",{value:t,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,n){if(null==e)return null;{const t={};return null!=e.start?t.start=e.start:n&&(t.start=0),null!=e.end?t.end=e.end:n&&(t.end=0),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.google.protobuf.DescriptorProto.ReservedRange;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,n}}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,n){if(null==e)return null;{const n=new t.google.protobuf.DescriptorProto.ReservedRange;return null!=e.start?n.start=e.start:n.start=0,null!=e.end?n.end=e.end:n.end=0,n}}}return e.Object.defineProperty(ReservedRange.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.DescriptorProto.ReservedRange"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ReservedRange.prototype,"__fqn__",{value:"google.protobuf.DescriptorProto.ReservedRange",enumerable:!1,configurable:!1}),e.Object.defineProperty(ReservedRange.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ReservedRange.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ReservedRange}(),e.Object.defineProperty(DescriptorProto.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.DescriptorProto"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DescriptorProto.prototype,"__fqn__",{value:"google.protobuf.DescriptorProto",enumerable:!1,configurable:!1}),e.Object.defineProperty(DescriptorProto.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DescriptorProto.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DescriptorProto}(),n.ExtensionRangeOptions=function(){class ExtensionRangeOptions{constructor(e){this.uninterpretedOption=e&&e.uninterpretedOption}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.uninterpretedOption?i.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.toJSON(e,n,o)):o&&(i.uninterpretedOption=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.ExtensionRangeOptions;return null!=e.uninterpretedOption?i.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.fromJSON(e,n)):e.uninterpretedOption:!1!==o?i.uninterpretedOption=[]:delete i.uninterpretedOption,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.uninterpretedOption&&(o.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.google.protobuf.ExtensionRangeOptions;return null!=e.uninterpretedOption?o.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.fromGRPC(e,n)):o.uninterpretedOption=[],o}}}return e.Object.defineProperty(ExtensionRangeOptions.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.ExtensionRangeOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ExtensionRangeOptions.prototype,"__fqn__",{value:"google.protobuf.ExtensionRangeOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(ExtensionRangeOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ExtensionRangeOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ExtensionRangeOptions}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.name?i.name=e.name:o&&(i.name=""),null!=e.number?i.number=e.number:o&&(i.number=0),null!=e.label?i.label=t.google.protobuf.FieldDescriptorProto.Label[e.label]:o&&(i.label="LABEL_OPTIONAL"),null!=e.type?i.type=t.google.protobuf.FieldDescriptorProto.Type[e.type]:o&&(i.type="TYPE_DOUBLE"),null!=e.typeName?i.typeName=e.typeName:o&&(i.typeName=""),null!=e.extendee?i.extendee=e.extendee:o&&(i.extendee=""),null!=e.defaultValue?i.defaultValue=e.defaultValue:o&&(i.defaultValue=""),null!=e.oneofIndex?i.oneofIndex=e.oneofIndex:o&&(i.oneofIndex=0),null!=e.jsonName?i.jsonName=e.jsonName:o&&(i.jsonName=""),null!=e.options?i.options=t.google.protobuf.FieldOptions.toJSON(e.options,n,o):o&&delete i.options,null!=e.proto3Optional?i.proto3Optional=e.proto3Optional:o&&(i.proto3Optional=!1),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.FieldDescriptorProto;return null!=e.name?i.name=e.name:!1!==o?i.name="":delete i.name,null!=e.number?i.number=e.number:!1!==o?i.number=0:delete i.number,null!=e.label?i.label="string"==typeof e.label?e.label:t.google.protobuf.FieldDescriptorProto.Label[e.label]:!1!==o?i.label="LABEL_OPTIONAL":delete i.label,null!=e.type?i.type="string"==typeof e.type?e.type:t.google.protobuf.FieldDescriptorProto.Type[e.type]:!1!==o?i.type="TYPE_DOUBLE":delete i.type,null!=e.typeName?i.typeName=e.typeName:!1!==o?i.typeName="":delete i.typeName,null!=e.extendee?i.extendee=e.extendee:!1!==o?i.extendee="":delete i.extendee,null!=e.defaultValue?i.defaultValue=e.defaultValue:!1!==o?i.defaultValue="":delete i.defaultValue,null!=e.oneofIndex?i.oneofIndex=e.oneofIndex:!1!==o?i.oneofIndex=0:delete i.oneofIndex,null!=e.jsonName?i.jsonName=e.jsonName:!1!==o?i.jsonName="":delete i.jsonName,null!=e.options?i.options=t.google.protobuf.FieldOptions.fromJSON(e.options,n):delete i.options,null!=e.proto3Optional?i.proto3Optional=e.proto3Optional:!1!==o?i.proto3Optional=!1:delete i.proto3Optional,i}}static toGRPC(e,n){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=t.google.protobuf.FieldOptions.toGRPC(e.options,n)),null!=e.proto3Optional&&(o.proto3Optional=e.proto3Optional),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.FieldOptions.fromGRPC(e.options,n):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"},e.Object.defineProperty(FieldDescriptorProto.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.FieldDescriptorProto"),enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.FieldDescriptorProto",enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldDescriptorProto.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldDescriptorProto.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),FieldDescriptorProto}(),n.OneofDescriptorProto=function(){class OneofDescriptorProto{constructor(e){this.name=e&&e.name,this.options=e&&e.options}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.name?i.name=e.name:o&&(i.name=""),null!=e.options?i.options=t.google.protobuf.OneofOptions.toJSON(e.options,n,o):o&&delete i.options,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.OneofDescriptorProto;return null!=e.name?i.name=e.name:!1!==o?i.name="":delete i.name,null!=e.options?i.options=t.google.protobuf.OneofOptions.fromJSON(e.options,n):delete i.options,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.options&&(o.options=t.google.protobuf.OneofOptions.toGRPC(e.options,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.google.protobuf.OneofDescriptorProto;return null!=e.name?o.name=e.name:o.name="",null!=e.options?o.options=t.google.protobuf.OneofOptions.fromGRPC(e.options,n):delete o.options,o}}}return e.Object.defineProperty(OneofDescriptorProto.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.OneofDescriptorProto"),enumerable:!1,configurable:!1}),e.Object.defineProperty(OneofDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.OneofDescriptorProto",enumerable:!1,configurable:!1}),e.Object.defineProperty(OneofDescriptorProto.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(OneofDescriptorProto.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),OneofDescriptorProto}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.name?i.name=e.name:o&&(i.name=""),null!=e.value?i.value=e.value.map(e=>t.google.protobuf.EnumValueDescriptorProto.toJSON(e,n,o)):o&&(i.value=[]),null!=e.options?i.options=t.google.protobuf.EnumOptions.toJSON(e.options,n,o):o&&delete i.options,null!=e.reservedRange?i.reservedRange=e.reservedRange.map(e=>t.google.protobuf.EnumDescriptorProto.EnumReservedRange.toJSON(e,n,o)):o&&(i.reservedRange=[]),null!=e.reservedName?i.reservedName=e.reservedName.map(e=>e):o&&(i.reservedName=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.EnumDescriptorProto;return null!=e.name?i.name=e.name:!1!==o?i.name="":delete i.name,null!=e.value?i.value=Array.isArray(e.value)?e.value.map(e=>t.google.protobuf.EnumValueDescriptorProto.fromJSON(e,n)):e.value:!1!==o?i.value=[]:delete i.value,null!=e.options?i.options=t.google.protobuf.EnumOptions.fromJSON(e.options,n):delete i.options,null!=e.reservedRange?i.reservedRange=Array.isArray(e.reservedRange)?e.reservedRange.map(e=>t.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromJSON(e,n)):e.reservedRange:!1!==o?i.reservedRange=[]:delete i.reservedRange,null!=e.reservedName?i.reservedName=Array.isArray(e.reservedName)?e.reservedName.map(e=>e):e.reservedName:!1!==o?i.reservedName=[]:delete i.reservedName,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.value&&(o.value=e.value.map(e=>t.google.protobuf.EnumValueDescriptorProto.toGRPC(e,n))),null!=e.options&&(o.options=t.google.protobuf.EnumOptions.toGRPC(e.options,n)),null!=e.reservedRange&&(o.reservedRange=e.reservedRange.map(e=>t.google.protobuf.EnumDescriptorProto.EnumReservedRange.toGRPC(e,n))),null!=e.reservedName&&(o.reservedName=e.reservedName.map(e=>e)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.google.protobuf.EnumDescriptorProto;return null!=e.name?o.name=e.name:o.name="",null!=e.value?o.value=e.value.map(e=>t.google.protobuf.EnumValueDescriptorProto.fromGRPC(e,n)):o.value=[],null!=e.options?o.options=t.google.protobuf.EnumOptions.fromGRPC(e.options,n):delete o.options,null!=e.reservedRange?o.reservedRange=e.reservedRange.map(e=>t.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromGRPC(e,n)):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,n){if(null==e)return null;{const t={};return null!=e.start?t.start=e.start:n&&(t.start=0),null!=e.end?t.end=e.end:n&&(t.end=0),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.google.protobuf.EnumDescriptorProto.EnumReservedRange;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,n}}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,n){if(null==e)return null;{const n=new t.google.protobuf.EnumDescriptorProto.EnumReservedRange;return null!=e.start?n.start=e.start:n.start=0,null!=e.end?n.end=e.end:n.end=0,n}}}return e.Object.defineProperty(EnumReservedRange.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.EnumDescriptorProto.EnumReservedRange"),enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumReservedRange.prototype,"__fqn__",{value:"google.protobuf.EnumDescriptorProto.EnumReservedRange",enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumReservedRange.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumReservedRange.prototype,"__root__",{value:t,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,n){if(null==e)return null;{const t={};return null!=e.start?t.start=e.start:n&&(t.start=0),null!=e.end?t.end=e.end:n&&(t.end=0),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.google.protobuf.EnumDescriptorProto.EnumReservedRange;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,n}}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,n){if(null==e)return null;{const n=new t.google.protobuf.EnumDescriptorProto.EnumReservedRange;return null!=e.start?n.start=e.start:n.start=0,null!=e.end?n.end=e.end:n.end=0,n}}}return e.Object.defineProperty(EnumReservedRange.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.EnumDescriptorProto.EnumReservedRange"),enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumReservedRange.prototype,"__fqn__",{value:"google.protobuf.EnumDescriptorProto.EnumReservedRange",enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumReservedRange.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumReservedRange.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),EnumReservedRange}(),e.Object.defineProperty(EnumDescriptorProto.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.EnumDescriptorProto"),enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.EnumDescriptorProto",enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumDescriptorProto.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumDescriptorProto.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),EnumDescriptorProto}(),n.EnumValueDescriptorProto=function(){class EnumValueDescriptorProto{constructor(e){this.name=e&&e.name,this.number=e&&e.number,this.options=e&&e.options}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.name?i.name=e.name:o&&(i.name=""),null!=e.number?i.number=e.number:o&&(i.number=0),null!=e.options?i.options=t.google.protobuf.EnumValueOptions.toJSON(e.options,n,o):o&&delete i.options,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.EnumValueDescriptorProto;return null!=e.name?i.name=e.name:!1!==o?i.name="":delete i.name,null!=e.number?i.number=e.number:!1!==o?i.number=0:delete i.number,null!=e.options?i.options=t.google.protobuf.EnumValueOptions.fromJSON(e.options,n):delete i.options,i}}static toGRPC(e,n){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=t.google.protobuf.EnumValueOptions.toGRPC(e.options,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.EnumValueOptions.fromGRPC(e.options,n):delete o.options,o}}}return e.Object.defineProperty(EnumValueDescriptorProto.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.EnumValueDescriptorProto"),enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumValueDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.EnumValueDescriptorProto",enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumValueDescriptorProto.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumValueDescriptorProto.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),EnumValueDescriptorProto}(),n.ServiceDescriptorProto=function(){class ServiceDescriptorProto{constructor(e){this.name=e&&e.name,this.method=e&&e.method,this.options=e&&e.options}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.name?i.name=e.name:o&&(i.name=""),null!=e.method?i.method=e.method.map(e=>t.google.protobuf.MethodDescriptorProto.toJSON(e,n,o)):o&&(i.method=[]),null!=e.options?i.options=t.google.protobuf.ServiceOptions.toJSON(e.options,n,o):o&&delete i.options,i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.ServiceDescriptorProto;return null!=e.name?i.name=e.name:!1!==o?i.name="":delete i.name,null!=e.method?i.method=Array.isArray(e.method)?e.method.map(e=>t.google.protobuf.MethodDescriptorProto.fromJSON(e,n)):e.method:!1!==o?i.method=[]:delete i.method,null!=e.options?i.options=t.google.protobuf.ServiceOptions.fromJSON(e.options,n):delete i.options,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name),null!=e.method&&(o.method=e.method.map(e=>t.google.protobuf.MethodDescriptorProto.toGRPC(e,n))),null!=e.options&&(o.options=t.google.protobuf.ServiceOptions.toGRPC(e.options,n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.google.protobuf.ServiceDescriptorProto;return null!=e.name?o.name=e.name:o.name="",null!=e.method?o.method=e.method.map(e=>t.google.protobuf.MethodDescriptorProto.fromGRPC(e,n)):o.method=[],null!=e.options?o.options=t.google.protobuf.ServiceOptions.fromGRPC(e.options,n):delete o.options,o}}}return e.Object.defineProperty(ServiceDescriptorProto.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.ServiceDescriptorProto"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.ServiceDescriptorProto",enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceDescriptorProto.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceDescriptorProto.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ServiceDescriptorProto}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.name?i.name=e.name:o&&(i.name=""),null!=e.inputType?i.inputType=e.inputType:o&&(i.inputType=""),null!=e.outputType?i.outputType=e.outputType:o&&(i.outputType=""),null!=e.options?i.options=t.google.protobuf.MethodOptions.toJSON(e.options,n,o):o&&delete i.options,null!=e.clientStreaming?i.clientStreaming=e.clientStreaming:o&&(i.clientStreaming=!1),null!=e.serverStreaming?i.serverStreaming=e.serverStreaming:o&&(i.serverStreaming=!1),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.MethodDescriptorProto;return null!=e.name?i.name=e.name:!1!==o?i.name="":delete i.name,null!=e.inputType?i.inputType=e.inputType:!1!==o?i.inputType="":delete i.inputType,null!=e.outputType?i.outputType=e.outputType:!1!==o?i.outputType="":delete i.outputType,null!=e.options?i.options=t.google.protobuf.MethodOptions.fromJSON(e.options,n):delete i.options,null!=e.clientStreaming?i.clientStreaming=e.clientStreaming:!1!==o?i.clientStreaming=!1:delete i.clientStreaming,null!=e.serverStreaming?i.serverStreaming=e.serverStreaming:!1!==o?i.serverStreaming=!1:delete i.serverStreaming,i}}static toGRPC(e,n){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=t.google.protobuf.MethodOptions.toGRPC(e.options,n)),null!=e.clientStreaming&&(o.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&(o.serverStreaming=e.serverStreaming),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.protobuf.MethodOptions.fromGRPC(e.options,n):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 e.Object.defineProperty(MethodDescriptorProto.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.MethodDescriptorProto"),enumerable:!1,configurable:!1}),e.Object.defineProperty(MethodDescriptorProto.prototype,"__fqn__",{value:"google.protobuf.MethodDescriptorProto",enumerable:!1,configurable:!1}),e.Object.defineProperty(MethodDescriptorProto.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(MethodDescriptorProto.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),MethodDescriptorProto}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.javaPackage?i.javaPackage=e.javaPackage:o&&(i.javaPackage=""),null!=e.javaOuterClassname?i.javaOuterClassname=e.javaOuterClassname:o&&(i.javaOuterClassname=""),null!=e.javaMultipleFiles?i.javaMultipleFiles=e.javaMultipleFiles:o&&(i.javaMultipleFiles=!1),null!=e.javaGenerateEqualsAndHash?i.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash:o&&(i.javaGenerateEqualsAndHash=!1),null!=e.javaStringCheckUtf8?i.javaStringCheckUtf8=e.javaStringCheckUtf8:o&&(i.javaStringCheckUtf8=!1),null!=e.optimizeFor?i.optimizeFor=t.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor]:o&&(i.optimizeFor="SPEED"),null!=e.goPackage?i.goPackage=e.goPackage:o&&(i.goPackage=""),null!=e.ccGenericServices?i.ccGenericServices=e.ccGenericServices:o&&(i.ccGenericServices=!1),null!=e.javaGenericServices?i.javaGenericServices=e.javaGenericServices:o&&(i.javaGenericServices=!1),null!=e.pyGenericServices?i.pyGenericServices=e.pyGenericServices:o&&(i.pyGenericServices=!1),null!=e.phpGenericServices?i.phpGenericServices=e.phpGenericServices:o&&(i.phpGenericServices=!1),null!=e.deprecated?i.deprecated=e.deprecated:o&&(i.deprecated=!1),null!=e.ccEnableArenas?i.ccEnableArenas=e.ccEnableArenas:o&&(i.ccEnableArenas=!1),null!=e.objcClassPrefix?i.objcClassPrefix=e.objcClassPrefix:o&&(i.objcClassPrefix=""),null!=e.csharpNamespace?i.csharpNamespace=e.csharpNamespace:o&&(i.csharpNamespace=""),null!=e.swiftPrefix?i.swiftPrefix=e.swiftPrefix:o&&(i.swiftPrefix=""),null!=e.phpClassPrefix?i.phpClassPrefix=e.phpClassPrefix:o&&(i.phpClassPrefix=""),null!=e.phpNamespace?i.phpNamespace=e.phpNamespace:o&&(i.phpNamespace=""),null!=e.phpMetadataNamespace?i.phpMetadataNamespace=e.phpMetadataNamespace:o&&(i.phpMetadataNamespace=""),null!=e.rubyPackage?i.rubyPackage=e.rubyPackage:o&&(i.rubyPackage=""),null!=e.uninterpretedOption?i.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.toJSON(e,n,o)):o&&(i.uninterpretedOption=[]),null!=e["wix.graphql.namespace"]?i["wix.graphql.namespace"]=e["wix.graphql.namespace"]:o&&(i["wix.graphql.namespace"]=""),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.FileOptions;return null!=e.javaPackage?i.javaPackage=e.javaPackage:!1!==o?i.javaPackage="":delete i.javaPackage,null!=e.javaOuterClassname?i.javaOuterClassname=e.javaOuterClassname:!1!==o?i.javaOuterClassname="":delete i.javaOuterClassname,null!=e.javaMultipleFiles?i.javaMultipleFiles=e.javaMultipleFiles:!1!==o?i.javaMultipleFiles=!1:delete i.javaMultipleFiles,null!=e.javaGenerateEqualsAndHash?i.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash:!1!==o?i.javaGenerateEqualsAndHash=!1:delete i.javaGenerateEqualsAndHash,null!=e.javaStringCheckUtf8?i.javaStringCheckUtf8=e.javaStringCheckUtf8:!1!==o?i.javaStringCheckUtf8=!1:delete i.javaStringCheckUtf8,null!=e.optimizeFor?i.optimizeFor="string"==typeof e.optimizeFor?e.optimizeFor:t.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor]:!1!==o?i.optimizeFor="SPEED":delete i.optimizeFor,null!=e.goPackage?i.goPackage=e.goPackage:!1!==o?i.goPackage="":delete i.goPackage,null!=e.ccGenericServices?i.ccGenericServices=e.ccGenericServices:!1!==o?i.ccGenericServices=!1:delete i.ccGenericServices,null!=e.javaGenericServices?i.javaGenericServices=e.javaGenericServices:!1!==o?i.javaGenericServices=!1:delete i.javaGenericServices,null!=e.pyGenericServices?i.pyGenericServices=e.pyGenericServices:!1!==o?i.pyGenericServices=!1:delete i.pyGenericServices,null!=e.phpGenericServices?i.phpGenericServices=e.phpGenericServices:!1!==o?i.phpGenericServices=!1:delete i.phpGenericServices,null!=e.deprecated?i.deprecated=e.deprecated:!1!==o?i.deprecated=!1:delete i.deprecated,null!=e.ccEnableArenas?i.ccEnableArenas=e.ccEnableArenas:!1!==o?i.ccEnableArenas=!1:delete i.ccEnableArenas,null!=e.objcClassPrefix?i.objcClassPrefix=e.objcClassPrefix:!1!==o?i.objcClassPrefix="":delete i.objcClassPrefix,null!=e.csharpNamespace?i.csharpNamespace=e.csharpNamespace:!1!==o?i.csharpNamespace="":delete i.csharpNamespace,null!=e.swiftPrefix?i.swiftPrefix=e.swiftPrefix:!1!==o?i.swiftPrefix="":delete i.swiftPrefix,null!=e.phpClassPrefix?i.phpClassPrefix=e.phpClassPrefix:!1!==o?i.phpClassPrefix="":delete i.phpClassPrefix,null!=e.phpNamespace?i.phpNamespace=e.phpNamespace:!1!==o?i.phpNamespace="":delete i.phpNamespace,null!=e.phpMetadataNamespace?i.phpMetadataNamespace=e.phpMetadataNamespace:!1!==o?i.phpMetadataNamespace="":delete i.phpMetadataNamespace,null!=e.rubyPackage?i.rubyPackage=e.rubyPackage:!1!==o?i.rubyPackage="":delete i.rubyPackage,null!=e.uninterpretedOption?i.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.fromJSON(e,n)):e.uninterpretedOption:!1!==o?i.uninterpretedOption=[]:delete i.uninterpretedOption,null!=e["wix.graphql.namespace"]?i["wix.graphql.namespace"]=e["wix.graphql.namespace"]:!1!==o?i["wix.graphql.namespace"]="":delete i["wix.graphql.namespace"],i}}static toGRPC(e,n){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=>t.google.protobuf.UninterpretedOption.toGRPC(e,n))),null!=e["wix.graphql.namespace"]&&(o["wix.graphql.namespace"]=e["wix.graphql.namespace"]),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.google.protobuf.UninterpretedOption.fromGRPC(e,n)):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"},e.Object.defineProperty(FileOptions.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.FileOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(FileOptions.prototype,"__fqn__",{value:"google.protobuf.FileOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(FileOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(FileOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),FileOptions}(),n.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.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"],this["wix.api.actionPayload"]=e&&e["wix.api.actionPayload"]}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.messageSetWireFormat?i.messageSetWireFormat=e.messageSetWireFormat:o&&(i.messageSetWireFormat=!1),null!=e.noStandardDescriptorAccessor?i.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor:o&&(i.noStandardDescriptorAccessor=!1),null!=e.deprecated?i.deprecated=e.deprecated:o&&(i.deprecated=!1),null!=e.mapEntry?i.mapEntry=e.mapEntry:o&&(i.mapEntry=!1),null!=e.uninterpretedOption?i.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.toJSON(e,n,o)):o&&(i.uninterpretedOption=[]),null!=e["wix.api.decompositeOf"]?i["wix.api.decompositeOf"]=e["wix.api.decompositeOf"]:o&&(i["wix.api.decompositeOf"]=""),null!=e["wix.api.decompositionMinimumFields"]?i["wix.api.decompositionMinimumFields"]=e["wix.api.decompositionMinimumFields"].map(e=>t.wix.api.FieldSet.toJSON(e,n,o)):o&&(i["wix.api.decompositionMinimumFields"]=[]),null!=e["wix.api.unwrapArrayValue"]?i["wix.api.unwrapArrayValue"]=e["wix.api.unwrapArrayValue"]:o&&(i["wix.api.unwrapArrayValue"]=!1),null!=e["wix.api.messageDeprecated"]?i["wix.api.messageDeprecated"]=t.wix.api.Deprecated.toJSON(e["wix.api.messageDeprecated"],n,o):o&&delete i["wix.api.messageDeprecated"],null!=e["wix.api.unique"]?i["wix.api.unique"]=e["wix.api.unique"].map(e=>t.wix.api.Unique.toJSON(e,n,o)):o&&(i["wix.api.unique"]=[]),null!=e["wix.api.entity"]?i["wix.api.entity"]=t.wix.api.Entity.toJSON(e["wix.api.entity"],n,o):o&&delete i["wix.api.entity"],null!=e["wix.api.domainEvent"]?i["wix.api.domainEvent"]=e["wix.api.domainEvent"].map(e=>t.wix.api.DomainEvent.toJSON(e,n,o)):o&&(i["wix.api.domainEvent"]=[]),null!=e["wix.api.actionPayload"]?i["wix.api.actionPayload"]=t.wix.api.ActionPayload.toJSON(e["wix.api.actionPayload"],n,o):o&&delete i["wix.api.actionPayload"],i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.MessageOptions;return null!=e.messageSetWireFormat?i.messageSetWireFormat=e.messageSetWireFormat:!1!==o?i.messageSetWireFormat=!1:delete i.messageSetWireFormat,null!=e.noStandardDescriptorAccessor?i.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor:!1!==o?i.noStandardDescriptorAccessor=!1:delete i.noStandardDescriptorAccessor,null!=e.deprecated?i.deprecated=e.deprecated:!1!==o?i.deprecated=!1:delete i.deprecated,null!=e.mapEntry?i.mapEntry=e.mapEntry:!1!==o?i.mapEntry=!1:delete i.mapEntry,null!=e.uninterpretedOption?i.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.fromJSON(e,n)):e.uninterpretedOption:!1!==o?i.uninterpretedOption=[]:delete i.uninterpretedOption,null!=e["wix.api.decompositeOf"]?i["wix.api.decompositeOf"]=e["wix.api.decompositeOf"]:!1!==o?i["wix.api.decompositeOf"]="":delete i["wix.api.decompositeOf"],null!=e["wix.api.decompositionMinimumFields"]?i["wix.api.decompositionMinimumFields"]=Array.isArray(e["wix.api.decompositionMinimumFields"])?e["wix.api.decompositionMinimumFields"].map(e=>t.wix.api.FieldSet.fromJSON(e,n)):e["wix.api.decompositionMinimumFields"]:!1!==o?i["wix.api.decompositionMinimumFields"]=[]:delete i["wix.api.decompositionMinimumFields"],null!=e["wix.api.unwrapArrayValue"]?i["wix.api.unwrapArrayValue"]=e["wix.api.unwrapArrayValue"]:!1!==o?i["wix.api.unwrapArrayValue"]=!1:delete i["wix.api.unwrapArrayValue"],null!=e["wix.api.messageDeprecated"]?i["wix.api.messageDeprecated"]=t.wix.api.Deprecated.fromJSON(e["wix.api.messageDeprecated"],n):delete i["wix.api.messageDeprecated"],null!=e["wix.api.unique"]?i["wix.api.unique"]=Array.isArray(e["wix.api.unique"])?e["wix.api.unique"].map(e=>t.wix.api.Unique.fromJSON(e,n)):e["wix.api.unique"]:!1!==o?i["wix.api.unique"]=[]:delete i["wix.api.unique"],null!=e["wix.api.entity"]?i["wix.api.entity"]=t.wix.api.Entity.fromJSON(e["wix.api.entity"],n):delete i["wix.api.entity"],null!=e["wix.api.domainEvent"]?i["wix.api.domainEvent"]=Array.isArray(e["wix.api.domainEvent"])?e["wix.api.domainEvent"].map(e=>t.wix.api.DomainEvent.fromJSON(e,n)):e["wix.api.domainEvent"]:!1!==o?i["wix.api.domainEvent"]=[]:delete i["wix.api.domainEvent"],null!=e["wix.api.actionPayload"]?i["wix.api.actionPayload"]=t.wix.api.ActionPayload.fromJSON(e["wix.api.actionPayload"],n):delete i["wix.api.actionPayload"],i}}static toGRPC(e,n){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=>t.google.protobuf.UninterpretedOption.toGRPC(e,n))),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=>t.wix.api.FieldSet.toGRPC(e,n))),null!=e["wix.api.unwrapArrayValue"]&&(o["wix.api.unwrapArrayValue"]=e["wix.api.unwrapArrayValue"]),null!=e["wix.api.messageDeprecated"]&&(o["wix.api.messageDeprecated"]=t.wix.api.Deprecated.toGRPC(e["wix.api.messageDeprecated"],n)),null!=e["wix.api.unique"]&&(o["wix.api.unique"]=e["wix.api.unique"].map(e=>t.wix.api.Unique.toGRPC(e,n))),null!=e["wix.api.entity"]&&(o["wix.api.entity"]=t.wix.api.Entity.toGRPC(e["wix.api.entity"],n)),null!=e["wix.api.domainEvent"]&&(o["wix.api.domainEvent"]=e["wix.api.domainEvent"].map(e=>t.wix.api.DomainEvent.toGRPC(e,n))),null!=e["wix.api.actionPayload"]&&(o["wix.api.actionPayload"]=t.wix.api.ActionPayload.toGRPC(e["wix.api.actionPayload"],n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.google.protobuf.UninterpretedOption.fromGRPC(e,n)):o.uninterpretedOption=[],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=>t.wix.api.FieldSet.fromGRPC(e,n)):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"]=t.wix.api.Deprecated.fromGRPC(e["wix.api.messageDeprecated"],n):delete o["wix.api.messageDeprecated"],null!=e["wix.api.unique"]?o["wix.api.unique"]=e["wix.api.unique"].map(e=>t.wix.api.Unique.fromGRPC(e,n)):o["wix.api.unique"]=[],null!=e["wix.api.entity"]?o["wix.api.entity"]=t.wix.api.Entity.fromGRPC(e["wix.api.entity"],n):delete o["wix.api.entity"],null!=e["wix.api.domainEvent"]?o["wix.api.domainEvent"]=e["wix.api.domainEvent"].map(e=>t.wix.api.DomainEvent.fromGRPC(e,n)):o["wix.api.domainEvent"]=[],null!=e["wix.api.actionPayload"]?o["wix.api.actionPayload"]=t.wix.api.ActionPayload.fromGRPC(e["wix.api.actionPayload"],n):delete o["wix.api.actionPayload"],o}}}return e.Object.defineProperty(MessageOptions.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.MessageOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(MessageOptions.prototype,"__fqn__",{value:"google.protobuf.MessageOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(MessageOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(MessageOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),MessageOptions}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.ctype?i.ctype=t.google.protobuf.FieldOptions.CType[e.ctype]:o&&(i.ctype="STRING"),null!=e.packed?i.packed=e.packed:o&&(i.packed=!1),null!=e.jstype?i.jstype=t.google.protobuf.FieldOptions.JSType[e.jstype]:o&&(i.jstype="JS_NORMAL"),null!=e.lazy?i.lazy=e.lazy:o&&(i.lazy=!1),null!=e.deprecated?i.deprecated=e.deprecated:o&&(i.deprecated=!1),null!=e.weak?i.weak=e.weak:o&&(i.weak=!1),null!=e.uninterpretedOption?i.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.toJSON(e,n,o)):o&&(i.uninterpretedOption=[]),null!=e["wix.api.fieldExposure"]?i["wix.api.fieldExposure"]=t.wix.api.Exposure[e["wix.api.fieldExposure"]]:o&&(i["wix.api.fieldExposure"]="PRIVATE"),null!=e["wix.api.fieldMaturity"]?i["wix.api.fieldMaturity"]=t.wix.api.Maturity[e["wix.api.fieldMaturity"]]:o&&(i["wix.api.fieldMaturity"]="ALPHA"),null!=e["wix.api.pii"]?i["wix.api.pii"]=e["wix.api.pii"]:o&&(i["wix.api.pii"]=!1),null!=e["wix.api.referencedEntity"]?i["wix.api.referencedEntity"]=e["wix.api.referencedEntity"]:o&&(i["wix.api.referencedEntity"]=""),null!=e["wix.api.referencedEntityField"]?i["wix.api.referencedEntityField"]=t.wix.api.ReferenceEntityField.toJSON(e["wix.api.referencedEntityField"],n,o):o&&delete i["wix.api.referencedEntityField"],null!=e["wix.api.fieldDeprecated"]?i["wix.api.fieldDeprecated"]=t.wix.api.Deprecated.toJSON(e["wix.api.fieldDeprecated"],n,o):o&&delete i["wix.api.fieldDeprecated"],null!=e["wix.api.translatable"]?i["wix.api.translatable"]=t.wix.api.Translatable.toJSON(e["wix.api.translatable"],n,o):o&&delete i["wix.api.translatable"],null!=e["wix.api.sampleData"]?i["wix.api.sampleData"]=e["wix.api.sampleData"]:o&&(i["wix.api.sampleData"]=""),null!=e["wix.api.conditional"]?i["wix.api.conditional"]=t.wix.api.Conditional.toJSON(e["wix.api.conditional"],n,o):o&&delete i["wix.api.conditional"],null!=e["wix.api.nullable"]?i["wix.api.nullable"]=e["wix.api.nullable"]:o&&(i["wix.api.nullable"]=!1),null!=e["wix.api.max"]?i["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&&(i["wix.api.max"]=0),null!=e["wix.api.min"]?i["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&&(i["wix.api.min"]=0),null!=e["wix.api.maxLength"]?i["wix.api.maxLength"]=e["wix.api.maxLength"]:o&&(i["wix.api.maxLength"]=0),null!=e["wix.api.minLength"]?i["wix.api.minLength"]=e["wix.api.minLength"]:o&&(i["wix.api.minLength"]=0),null!=e["wix.api.exactLength"]?i["wix.api.exactLength"]=e["wix.api.exactLength"]:o&&(i["wix.api.exactLength"]=0),null!=e["wix.api.maxSize"]?i["wix.api.maxSize"]=e["wix.api.maxSize"]:o&&(i["wix.api.maxSize"]=0),null!=e["wix.api.minSize"]?i["wix.api.minSize"]=e["wix.api.minSize"]:o&&(i["wix.api.minSize"]=0),null!=e["wix.api.exactSize"]?i["wix.api.exactSize"]=e["wix.api.exactSize"]:o&&(i["wix.api.exactSize"]=0),null!=e["wix.api.format"]?i["wix.api.format"]=t.wix.api.Format[e["wix.api.format"]]:o&&(i["wix.api.format"]="EMAIL"),null!=e["wix.api.readOnly"]?i["wix.api.readOnly"]=e["wix.api.readOnly"]:o&&(i["wix.api.readOnly"]=!1),null!=e["wix.api.immutable"]?i["wix.api.immutable"]=e["wix.api.immutable"]:o&&(i["wix.api.immutable"]=!1),null!=e["wix.api.writeOnly"]?i["wix.api.writeOnly"]=e["wix.api.writeOnly"]:o&&(i["wix.api.writeOnly"]=!1),null!=e["wix.api.decimalValue"]?i["wix.api.decimalValue"]=t.wix.api.DecimalValueOptions.toJSON(e["wix.api.decimalValue"],n,o):o&&delete i["wix.api.decimalValue"],null!=e["wix.api.customValidation"]?i["wix.api.customValidation"]=t.wix.api.CustomValidationError.toJSON(e["wix.api.customValidation"],n,o):o&&delete i["wix.api.customValidation"],null!=e["wix.http.inferFieldmaskFrom"]?i["wix.http.inferFieldmaskFrom"]=e["wix.http.inferFieldmaskFrom"]:o&&(i["wix.http.inferFieldmaskFrom"]=""),null!=e["wix.spi.baseUri"]?i["wix.spi.baseUri"]=e["wix.spi.baseUri"]:o&&(i["wix.spi.baseUri"]=!1),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.FieldOptions;return null!=e.ctype?i.ctype="string"==typeof e.ctype?e.ctype:t.google.protobuf.FieldOptions.CType[e.ctype]:!1!==o?i.ctype="STRING":delete i.ctype,null!=e.packed?i.packed=e.packed:!1!==o?i.packed=!1:delete i.packed,null!=e.jstype?i.jstype="string"==typeof e.jstype?e.jstype:t.google.protobuf.FieldOptions.JSType[e.jstype]:!1!==o?i.jstype="JS_NORMAL":delete i.jstype,null!=e.lazy?i.lazy=e.lazy:!1!==o?i.lazy=!1:delete i.lazy,null!=e.deprecated?i.deprecated=e.deprecated:!1!==o?i.deprecated=!1:delete i.deprecated,null!=e.weak?i.weak=e.weak:!1!==o?i.weak=!1:delete i.weak,null!=e.uninterpretedOption?i.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.fromJSON(e,n)):e.uninterpretedOption:!1!==o?i.uninterpretedOption=[]:delete i.uninterpretedOption,null!=e["wix.api.fieldExposure"]?i["wix.api.fieldExposure"]="string"==typeof e["wix.api.fieldExposure"]?e["wix.api.fieldExposure"]:t.wix.api.Exposure[e["wix.api.fieldExposure"]]:!1!==o?i["wix.api.fieldExposure"]="PRIVATE":delete i["wix.api.fieldExposure"],null!=e["wix.api.fieldMaturity"]?i["wix.api.fieldMaturity"]="string"==typeof e["wix.api.fieldMaturity"]?e["wix.api.fieldMaturity"]:t.wix.api.Maturity[e["wix.api.fieldMaturity"]]:!1!==o?i["wix.api.fieldMaturity"]="ALPHA":delete i["wix.api.fieldMaturity"],null!=e["wix.api.pii"]?i["wix.api.pii"]=e["wix.api.pii"]:!1!==o?i["wix.api.pii"]=!1:delete i["wix.api.pii"],null!=e["wix.api.referencedEntity"]?i["wix.api.referencedEntity"]=e["wix.api.referencedEntity"]:!1!==o?i["wix.api.referencedEntity"]="":delete i["wix.api.referencedEntity"],null!=e["wix.api.referencedEntityField"]?i["wix.api.referencedEntityField"]=t.wix.api.ReferenceEntityField.fromJSON(e["wix.api.referencedEntityField"],n):delete i["wix.api.referencedEntityField"],null!=e["wix.api.fieldDeprecated"]?i["wix.api.fieldDeprecated"]=t.wix.api.Deprecated.fromJSON(e["wix.api.fieldDeprecated"],n):delete i["wix.api.fieldDeprecated"],null!=e["wix.api.translatable"]?i["wix.api.translatable"]=t.wix.api.Translatable.fromJSON(e["wix.api.translatable"],n):delete i["wix.api.translatable"],null!=e["wix.api.sampleData"]?i["wix.api.sampleData"]=e["wix.api.sampleData"]:!1!==o?i["wix.api.sampleData"]="":delete i["wix.api.sampleData"],null!=e["wix.api.conditional"]?i["wix.api.conditional"]=t.wix.api.Conditional.fromJSON(e["wix.api.conditional"],n):delete i["wix.api.conditional"],null!=e["wix.api.nullable"]?i["wix.api.nullable"]=e["wix.api.nullable"]:!1!==o?i["wix.api.nullable"]=!1:delete i["wix.api.nullable"],null!=e["wix.api.max"]?i["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?i["wix.api.max"]=0:delete i["wix.api.max"],null!=e["wix.api.min"]?i["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?i["wix.api.min"]=0:delete i["wix.api.min"],null!=e["wix.api.maxLength"]?i["wix.api.maxLength"]=e["wix.api.maxLength"]:!1!==o?i["wix.api.maxLength"]=0:delete i["wix.api.maxLength"],null!=e["wix.api.minLength"]?i["wix.api.minLength"]=e["wix.api.minLength"]:!1!==o?i["wix.api.minLength"]=0:delete i["wix.api.minLength"],null!=e["wix.api.exactLength"]?i["wix.api.exactLength"]=e["wix.api.exactLength"]:!1!==o?i["wix.api.exactLength"]=0:delete i["wix.api.exactLength"],null!=e["wix.api.maxSize"]?i["wix.api.maxSize"]=e["wix.api.maxSize"]:!1!==o?i["wix.api.maxSize"]=0:delete i["wix.api.maxSize"],null!=e["wix.api.minSize"]?i["wix.api.minSize"]=e["wix.api.minSize"]:!1!==o?i["wix.api.minSize"]=0:delete i["wix.api.minSize"],null!=e["wix.api.exactSize"]?i["wix.api.exactSize"]=e["wix.api.exactSize"]:!1!==o?i["wix.api.exactSize"]=0:delete i["wix.api.exactSize"],null!=e["wix.api.format"]?i["wix.api.format"]="string"==typeof e["wix.api.format"]?e["wix.api.format"]:t.wix.api.Format[e["wix.api.format"]]:!1!==o?i["wix.api.format"]="EMAIL":delete i["wix.api.format"],null!=e["wix.api.readOnly"]?i["wix.api.readOnly"]=e["wix.api.readOnly"]:!1!==o?i["wix.api.readOnly"]=!1:delete i["wix.api.readOnly"],null!=e["wix.api.immutable"]?i["wix.api.immutable"]=e["wix.api.immutable"]:!1!==o?i["wix.api.immutable"]=!1:delete i["wix.api.immutable"],null!=e["wix.api.writeOnly"]?i["wix.api.writeOnly"]=e["wix.api.writeOnly"]:!1!==o?i["wix.api.writeOnly"]=!1:delete i["wix.api.writeOnly"],null!=e["wix.api.decimalValue"]?i["wix.api.decimalValue"]=t.wix.api.DecimalValueOptions.fromJSON(e["wix.api.decimalValue"],n):delete i["wix.api.decimalValue"],null!=e["wix.api.customValidation"]?i["wix.api.customValidation"]=t.wix.api.CustomValidationError.fromJSON(e["wix.api.customValidation"],n):delete i["wix.api.customValidation"],null!=e["wix.http.inferFieldmaskFrom"]?i["wix.http.inferFieldmaskFrom"]=e["wix.http.inferFieldmaskFrom"]:!1!==o?i["wix.http.inferFieldmaskFrom"]="":delete i["wix.http.inferFieldmaskFrom"],null!=e["wix.spi.baseUri"]?i["wix.spi.baseUri"]=e["wix.spi.baseUri"]:!1!==o?i["wix.spi.baseUri"]=!1:delete i["wix.spi.baseUri"],i}}static toGRPC(e,n){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=>t.google.protobuf.UninterpretedOption.toGRPC(e,n))),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"]=t.wix.api.ReferenceEntityField.toGRPC(e["wix.api.referencedEntityField"],n)),null!=e["wix.api.fieldDeprecated"]&&(o["wix.api.fieldDeprecated"]=t.wix.api.Deprecated.toGRPC(e["wix.api.fieldDeprecated"],n)),null!=e["wix.api.translatable"]&&(o["wix.api.translatable"]=t.wix.api.Translatable.toGRPC(e["wix.api.translatable"],n)),null!=e["wix.api.sampleData"]&&(o["wix.api.sampleData"]=e["wix.api.sampleData"]),null!=e["wix.api.conditional"]&&(o["wix.api.conditional"]=t.wix.api.Conditional.toGRPC(e["wix.api.conditional"],n)),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"]=t.wix.api.DecimalValueOptions.toGRPC(e["wix.api.decimalValue"],n)),null!=e["wix.api.customValidation"]&&(o["wix.api.customValidation"]=t.wix.api.CustomValidationError.toGRPC(e["wix.api.customValidation"],n)),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,n){if(null==e)return null;{const o=new t.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=>t.google.protobuf.UninterpretedOption.fromGRPC(e,n)):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"]=t.wix.api.ReferenceEntityField.fromGRPC(e["wix.api.referencedEntityField"],n):delete o["wix.api.referencedEntityField"],null!=e["wix.api.fieldDeprecated"]?o["wix.api.fieldDeprecated"]=t.wix.api.Deprecated.fromGRPC(e["wix.api.fieldDeprecated"],n):delete o["wix.api.fieldDeprecated"],null!=e["wix.api.translatable"]?o["wix.api.translatable"]=t.wix.api.Translatable.fromGRPC(e["wix.api.translatable"],n):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"]=t.wix.api.Conditional.fromGRPC(e["wix.api.conditional"],n):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"]=t.wix.api.DecimalValueOptions.fromGRPC(e["wix.api.decimalValue"],n):delete o["wix.api.decimalValue"],null!=e["wix.api.customValidation"]?o["wix.api.customValidation"]=t.wix.api.CustomValidationError.fromGRPC(e["wix.api.customValidation"],n):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"},e.Object.defineProperty(FieldOptions.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.FieldOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldOptions.prototype,"__fqn__",{value:"google.protobuf.FieldOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(FieldOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),FieldOptions}(),n.OneofOptions=function(){class OneofOptions{constructor(e){this.uninterpretedOption=e&&e.uninterpretedOption,this["wix.api.alignedWithEnum"]=e&&e["wix.api.alignedWithEnum"]}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.uninterpretedOption?i.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.toJSON(e,n,o)):o&&(i.uninterpretedOption=[]),null!=e["wix.api.alignedWithEnum"]?i["wix.api.alignedWithEnum"]=t.wix.api.AlignedWithEnum.toJSON(e["wix.api.alignedWithEnum"],n,o):o&&delete i["wix.api.alignedWithEnum"],i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.OneofOptions;return null!=e.uninterpretedOption?i.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.fromJSON(e,n)):e.uninterpretedOption:!1!==o?i.uninterpretedOption=[]:delete i.uninterpretedOption,null!=e["wix.api.alignedWithEnum"]?i["wix.api.alignedWithEnum"]=t.wix.api.AlignedWithEnum.fromJSON(e["wix.api.alignedWithEnum"],n):delete i["wix.api.alignedWithEnum"],i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.uninterpretedOption&&(o.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.toGRPC(e,n))),null!=e["wix.api.alignedWithEnum"]&&(o["wix.api.alignedWithEnum"]=t.wix.api.AlignedWithEnum.toGRPC(e["wix.api.alignedWithEnum"],n)),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.google.protobuf.OneofOptions;return null!=e.uninterpretedOption?o.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.fromGRPC(e,n)):o.uninterpretedOption=[],null!=e["wix.api.alignedWithEnum"]?o["wix.api.alignedWithEnum"]=t.wix.api.AlignedWithEnum.fromGRPC(e["wix.api.alignedWithEnum"],n):delete o["wix.api.alignedWithEnum"],o}}}return e.Object.defineProperty(OneofOptions.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.OneofOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(OneofOptions.prototype,"__fqn__",{value:"google.protobuf.OneofOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(OneofOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(OneofOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),OneofOptions}(),n.EnumOptions=function(){class EnumOptions{constructor(e){this.allowAlias=e&&e.allowAlias,this.deprecated=e&&e.deprecated,this.uninterpretedOption=e&&e.uninterpretedOption}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.allowAlias?i.allowAlias=e.allowAlias:o&&(i.allowAlias=!1),null!=e.deprecated?i.deprecated=e.deprecated:o&&(i.deprecated=!1),null!=e.uninterpretedOption?i.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.toJSON(e,n,o)):o&&(i.uninterpretedOption=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.EnumOptions;return null!=e.allowAlias?i.allowAlias=e.allowAlias:!1!==o?i.allowAlias=!1:delete i.allowAlias,null!=e.deprecated?i.deprecated=e.deprecated:!1!==o?i.deprecated=!1:delete i.deprecated,null!=e.uninterpretedOption?i.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.fromJSON(e,n)):e.uninterpretedOption:!1!==o?i.uninterpretedOption=[]:delete i.uninterpretedOption,i}}static toGRPC(e,n){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=>t.google.protobuf.UninterpretedOption.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.google.protobuf.UninterpretedOption.fromGRPC(e,n)):o.uninterpretedOption=[],o}}}return e.Object.defineProperty(EnumOptions.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.EnumOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumOptions.prototype,"__fqn__",{value:"google.protobuf.EnumOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),EnumOptions}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.deprecated?i.deprecated=e.deprecated:o&&(i.deprecated=!1),null!=e.uninterpretedOption?i.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.toJSON(e,n,o)):o&&(i.uninterpretedOption=[]),null!=e["wix.api.enumMaturity"]?i["wix.api.enumMaturity"]=t.wix.api.Maturity[e["wix.api.enumMaturity"]]:o&&(i["wix.api.enumMaturity"]="ALPHA"),null!=e["wix.api.enumExposure"]?i["wix.api.enumExposure"]=t.wix.api.Exposure[e["wix.api.enumExposure"]]:o&&(i["wix.api.enumExposure"]="PRIVATE"),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.EnumValueOptions;return null!=e.deprecated?i.deprecated=e.deprecated:!1!==o?i.deprecated=!1:delete i.deprecated,null!=e.uninterpretedOption?i.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.fromJSON(e,n)):e.uninterpretedOption:!1!==o?i.uninterpretedOption=[]:delete i.uninterpretedOption,null!=e["wix.api.enumMaturity"]?i["wix.api.enumMaturity"]="string"==typeof e["wix.api.enumMaturity"]?e["wix.api.enumMaturity"]:t.wix.api.Maturity[e["wix.api.enumMaturity"]]:!1!==o?i["wix.api.enumMaturity"]="ALPHA":delete i["wix.api.enumMaturity"],null!=e["wix.api.enumExposure"]?i["wix.api.enumExposure"]="string"==typeof e["wix.api.enumExposure"]?e["wix.api.enumExposure"]:t.wix.api.Exposure[e["wix.api.enumExposure"]]:!1!==o?i["wix.api.enumExposure"]="PRIVATE":delete i["wix.api.enumExposure"],i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.deprecated&&(o.deprecated=e.deprecated),null!=e.uninterpretedOption&&(o.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.toGRPC(e,n))),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,n){if(null==e)return null;{const o=new t.google.protobuf.EnumValueOptions;return null!=e.deprecated?o.deprecated=e.deprecated:o.deprecated=!1,null!=e.uninterpretedOption?o.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.fromGRPC(e,n)):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 e.Object.defineProperty(EnumValueOptions.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.EnumValueOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumValueOptions.prototype,"__fqn__",{value:"google.protobuf.EnumValueOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumValueOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(EnumValueOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),EnumValueOptions}(),n.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.serviceTenancy"]=e&&e["wix.api.serviceTenancy"],this["wix.api.serviceDeprecated"]=e&&e["wix.api.serviceDeprecated"],this["wix.api.appendixFiles"]=e&&e["wix.api.appendixFiles"],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.api.errorDef"]=e&&e["wix.api.errorDef"],this["wix.spi.service"]=e&&e["wix.spi.service"],this["wix.spi.event"]=e&&e["wix.spi.event"]}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.deprecated?i.deprecated=e.deprecated:o&&(i.deprecated=!1),null!=e.uninterpretedOption?i.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.toJSON(e,n,o)):o&&(i.uninterpretedOption=[]),null!=e["wix.api.serviceMaturity"]?i["wix.api.serviceMaturity"]=t.wix.api.Maturity[e["wix.api.serviceMaturity"]]:o&&(i["wix.api.serviceMaturity"]="ALPHA"),null!=e["wix.api.serviceExposure"]?i["wix.api.serviceExposure"]=t.wix.api.Exposure[e["wix.api.serviceExposure"]]:o&&(i["wix.api.serviceExposure"]="PRIVATE"),null!=e["wix.api.serviceTenancy"]?i["wix.api.serviceTenancy"]=t.wix.api.TenancyOptions.toJSON(e["wix.api.serviceTenancy"],n,o):o&&delete i["wix.api.serviceTenancy"],null!=e["wix.api.serviceDeprecated"]?i["wix.api.serviceDeprecated"]=t.wix.api.Deprecated.toJSON(e["wix.api.serviceDeprecated"],n,o):o&&delete i["wix.api.serviceDeprecated"],null!=e["wix.api.appendixFiles"]?i["wix.api.appendixFiles"]=e["wix.api.appendixFiles"].map(e=>t.wix.api.ServiceAppendix.toJSON(e,n,o)):o&&(i["wix.api.appendixFiles"]=[]),null!=e["wix.api.event"]?i["wix.api.event"]=e["wix.api.event"].map(e=>t.wix.api.Callback.toJSON(e,n,o)):o&&(i["wix.api.event"]=[]),null!=e["wix.api.eventDeprecated"]?i["wix.api.eventDeprecated"]=e["wix.api.eventDeprecated"].map(e=>t.wix.api.CallbackDeprecation.toJSON(e,n,o)):o&&(i["wix.api.eventDeprecated"]=[]),null!=e["wix.api.serviceEntity"]?i["wix.api.serviceEntity"]=t.wix.api.ServiceEntity.toJSON(e["wix.api.serviceEntity"],n,o):o&&delete i["wix.api.serviceEntity"],null!=e["wix.api.errorDef"]?i["wix.api.errorDef"]=e["wix.api.errorDef"].map(e=>t.wix.api.Error.toJSON(e,n,o)):o&&(i["wix.api.errorDef"]=[]),null!=e["wix.spi.service"]?i["wix.spi.service"]=t.wix.spi.Service.toJSON(e["wix.spi.service"],n,o):o&&delete i["wix.spi.service"],null!=e["wix.spi.event"]?i["wix.spi.event"]=e["wix.spi.event"].map(e=>t.wix.spi.Event.toJSON(e,n,o)):o&&(i["wix.spi.event"]=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.ServiceOptions;return null!=e.deprecated?i.deprecated=e.deprecated:!1!==o?i.deprecated=!1:delete i.deprecated,null!=e.uninterpretedOption?i.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.fromJSON(e,n)):e.uninterpretedOption:!1!==o?i.uninterpretedOption=[]:delete i.uninterpretedOption,null!=e["wix.api.serviceMaturity"]?i["wix.api.serviceMaturity"]="string"==typeof e["wix.api.serviceMaturity"]?e["wix.api.serviceMaturity"]:t.wix.api.Maturity[e["wix.api.serviceMaturity"]]:!1!==o?i["wix.api.serviceMaturity"]="ALPHA":delete i["wix.api.serviceMaturity"],null!=e["wix.api.serviceExposure"]?i["wix.api.serviceExposure"]="string"==typeof e["wix.api.serviceExposure"]?e["wix.api.serviceExposure"]:t.wix.api.Exposure[e["wix.api.serviceExposure"]]:!1!==o?i["wix.api.serviceExposure"]="PRIVATE":delete i["wix.api.serviceExposure"],null!=e["wix.api.serviceTenancy"]?i["wix.api.serviceTenancy"]=t.wix.api.TenancyOptions.fromJSON(e["wix.api.serviceTenancy"],n):delete i["wix.api.serviceTenancy"],null!=e["wix.api.serviceDeprecated"]?i["wix.api.serviceDeprecated"]=t.wix.api.Deprecated.fromJSON(e["wix.api.serviceDeprecated"],n):delete i["wix.api.serviceDeprecated"],null!=e["wix.api.appendixFiles"]?i["wix.api.appendixFiles"]=Array.isArray(e["wix.api.appendixFiles"])?e["wix.api.appendixFiles"].map(e=>t.wix.api.ServiceAppendix.fromJSON(e,n)):e["wix.api.appendixFiles"]:!1!==o?i["wix.api.appendixFiles"]=[]:delete i["wix.api.appendixFiles"],null!=e["wix.api.event"]?i["wix.api.event"]=Array.isArray(e["wix.api.event"])?e["wix.api.event"].map(e=>t.wix.api.Callback.fromJSON(e,n)):e["wix.api.event"]:!1!==o?i["wix.api.event"]=[]:delete i["wix.api.event"],null!=e["wix.api.eventDeprecated"]?i["wix.api.eventDeprecated"]=Array.isArray(e["wix.api.eventDeprecated"])?e["wix.api.eventDeprecated"].map(e=>t.wix.api.CallbackDeprecation.fromJSON(e,n)):e["wix.api.eventDeprecated"]:!1!==o?i["wix.api.eventDeprecated"]=[]:delete i["wix.api.eventDeprecated"],null!=e["wix.api.serviceEntity"]?i["wix.api.serviceEntity"]=t.wix.api.ServiceEntity.fromJSON(e["wix.api.serviceEntity"],n):delete i["wix.api.serviceEntity"],null!=e["wix.api.errorDef"]?i["wix.api.errorDef"]=Array.isArray(e["wix.api.errorDef"])?e["wix.api.errorDef"].map(e=>t.wix.api.Error.fromJSON(e,n)):e["wix.api.errorDef"]:!1!==o?i["wix.api.errorDef"]=[]:delete i["wix.api.errorDef"],null!=e["wix.spi.service"]?i["wix.spi.service"]=t.wix.spi.Service.fromJSON(e["wix.spi.service"],n):delete i["wix.spi.service"],null!=e["wix.spi.event"]?i["wix.spi.event"]=Array.isArray(e["wix.spi.event"])?e["wix.spi.event"].map(e=>t.wix.spi.Event.fromJSON(e,n)):e["wix.spi.event"]:!1!==o?i["wix.spi.event"]=[]:delete i["wix.spi.event"],i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.deprecated&&(o.deprecated=e.deprecated),null!=e.uninterpretedOption&&(o.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.toGRPC(e,n))),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.serviceTenancy"]&&(o["wix.api.serviceTenancy"]=t.wix.api.TenancyOptions.toGRPC(e["wix.api.serviceTenancy"],n)),null!=e["wix.api.serviceDeprecated"]&&(o["wix.api.serviceDeprecated"]=t.wix.api.Deprecated.toGRPC(e["wix.api.serviceDeprecated"],n)),null!=e["wix.api.appendixFiles"]&&(o["wix.api.appendixFiles"]=e["wix.api.appendixFiles"].map(e=>t.wix.api.ServiceAppendix.toGRPC(e,n))),null!=e["wix.api.event"]&&(o["wix.api.event"]=e["wix.api.event"].map(e=>t.wix.api.Callback.toGRPC(e,n))),null!=e["wix.api.eventDeprecated"]&&(o["wix.api.eventDeprecated"]=e["wix.api.eventDeprecated"].map(e=>t.wix.api.CallbackDeprecation.toGRPC(e,n))),null!=e["wix.api.serviceEntity"]&&(o["wix.api.serviceEntity"]=t.wix.api.ServiceEntity.toGRPC(e["wix.api.serviceEntity"],n)),null!=e["wix.api.errorDef"]&&(o["wix.api.errorDef"]=e["wix.api.errorDef"].map(e=>t.wix.api.Error.toGRPC(e,n))),null!=e["wix.spi.service"]&&(o["wix.spi.service"]=t.wix.spi.Service.toGRPC(e["wix.spi.service"],n)),null!=e["wix.spi.event"]&&(o["wix.spi.event"]=e["wix.spi.event"].map(e=>t.wix.spi.Event.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.google.protobuf.ServiceOptions;return null!=e.deprecated?o.deprecated=e.deprecated:o.deprecated=!1,null!=e.uninterpretedOption?o.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.fromGRPC(e,n)):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.serviceTenancy"]?o["wix.api.serviceTenancy"]=t.wix.api.TenancyOptions.fromGRPC(e["wix.api.serviceTenancy"],n):delete o["wix.api.serviceTenancy"],null!=e["wix.api.serviceDeprecated"]?o["wix.api.serviceDeprecated"]=t.wix.api.Deprecated.fromGRPC(e["wix.api.serviceDeprecated"],n):delete o["wix.api.serviceDeprecated"],null!=e["wix.api.appendixFiles"]?o["wix.api.appendixFiles"]=e["wix.api.appendixFiles"].map(e=>t.wix.api.ServiceAppendix.fromGRPC(e,n)):o["wix.api.appendixFiles"]=[],null!=e["wix.api.event"]?o["wix.api.event"]=e["wix.api.event"].map(e=>t.wix.api.Callback.fromGRPC(e,n)):o["wix.api.event"]=[],null!=e["wix.api.eventDeprecated"]?o["wix.api.eventDeprecated"]=e["wix.api.eventDeprecated"].map(e=>t.wix.api.CallbackDeprecation.fromGRPC(e,n)):o["wix.api.eventDeprecated"]=[],null!=e["wix.api.serviceEntity"]?o["wix.api.serviceEntity"]=t.wix.api.ServiceEntity.fromGRPC(e["wix.api.serviceEntity"],n):delete o["wix.api.serviceEntity"],null!=e["wix.api.errorDef"]?o["wix.api.errorDef"]=e["wix.api.errorDef"].map(e=>t.wix.api.Error.fromGRPC(e,n)):o["wix.api.errorDef"]=[],null!=e["wix.spi.service"]?o["wix.spi.service"]=t.wix.spi.Service.fromGRPC(e["wix.spi.service"],n):delete o["wix.spi.service"],null!=e["wix.spi.event"]?o["wix.spi.event"]=e["wix.spi.event"].map(e=>t.wix.spi.Event.fromGRPC(e,n)):o["wix.spi.event"]=[],o}}}return e.Object.defineProperty(ServiceOptions.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.ServiceOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceOptions.prototype,"__fqn__",{value:"google.protobuf.ServiceOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ServiceOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ServiceOptions}(),n.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.audience"]=e&&e["wix.api.audience"],this["wix.api.tenancy"]=e&&e["wix.api.tenancy"],this["wix.api.callback"]=e&&e["wix.api.callback"],this["wix.api.emits"]=e&&e["wix.api.emits"],this["wix.api.permission"]=e&&e["wix.api.permission"],this["wix.api.additionalPermission"]=e&&e["wix.api.additionalPermission"],this["wix.api.required"]=e&&e["wix.api.required"],this["wix.api.writable"]=e&&e["wix.api.writable"],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.sdk.signature"]=e&&e["wix.sdk.signature"],this["wix.api.idempotency"]=e&&e["wix.api.idempotency"],this["wix.api.sla"]=e&&e["wix.api.sla"],this["wix.api.subscription"]=e&&e["wix.api.subscription"],this["google.api.http"]=e&&e["google.api.http"],this["wix.http.inferFieldmask"]=e&&e["wix.http.inferFieldmask"],this["wix.spi.error"]=e&&e["wix.spi.error"],this["wix.spi.featureToggle"]=e&&e["wix.spi.featureToggle"]}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.deprecated?i.deprecated=e.deprecated:o&&(i.deprecated=!1),null!=e.idempotencyLevel?i.idempotencyLevel=t.google.protobuf.MethodOptions.IdempotencyLevel[e.idempotencyLevel]:o&&(i.idempotencyLevel="IDEMPOTENCY_UNKNOWN"),null!=e.uninterpretedOption?i.uninterpretedOption=e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.toJSON(e,n,o)):o&&(i.uninterpretedOption=[]),null!=e["wix.api.exposure"]?i["wix.api.exposure"]=t.wix.api.Exposure[e["wix.api.exposure"]]:o&&(i["wix.api.exposure"]="PRIVATE"),null!=e["wix.api.maturity"]?i["wix.api.maturity"]=t.wix.api.Maturity[e["wix.api.maturity"]]:o&&(i["wix.api.maturity"]="ALPHA"),null!=e["wix.api.cacheable"]?i["wix.api.cacheable"]=t.wix.api.CacheSettings.toJSON(e["wix.api.cacheable"],n,o):o&&delete i["wix.api.cacheable"],null!=e["wix.api.deprecated"]?i["wix.api.deprecated"]=t.wix.api.Deprecated.toJSON(e["wix.api.deprecated"],n,o):o&&delete i["wix.api.deprecated"],null!=e["wix.api.crud"]?i["wix.api.crud"]=t.wix.api.Crud.toJSON(e["wix.api.crud"],n,o):o&&delete i["wix.api.crud"],null!=e["wix.api.acceptsLinguist"]?i["wix.api.acceptsLinguist"]=e["wix.api.acceptsLinguist"]:o&&(i["wix.api.acceptsLinguist"]=!1),null!=e["wix.api.audience"]?i["wix.api.audience"]=t.wix.api.Audience.toJSON(e["wix.api.audience"],n,o):o&&delete i["wix.api.audience"],null!=e["wix.api.tenancy"]?i["wix.api.tenancy"]=t.wix.api.TenancyOptions.toJSON(e["wix.api.tenancy"],n,o):o&&delete i["wix.api.tenancy"],null!=e["wix.api.callback"]?i["wix.api.callback"]=e["wix.api.callback"].map(e=>t.wix.api.Callback.toJSON(e,n,o)):o&&(i["wix.api.callback"]=[]),null!=e["wix.api.emits"]?i["wix.api.emits"]=e["wix.api.emits"].map(e=>t.wix.api.Emits.toJSON(e,n,o)):o&&(i["wix.api.emits"]=[]),null!=e["wix.api.permission"]?i["wix.api.permission"]=t.wix.api.PermissionRule.toJSON(e["wix.api.permission"],n,o):o&&delete i["wix.api.permission"],null!=e["wix.api.additionalPermission"]?i["wix.api.additionalPermission"]=e["wix.api.additionalPermission"].map(e=>t.wix.api.PermissionRule.toJSON(e,n,o)):o&&(i["wix.api.additionalPermission"]=[]),null!=e["wix.api.required"]?i["wix.api.required"]=e["wix.api.required"].map(e=>e):o&&(i["wix.api.required"]=[]),null!=e["wix.api.writable"]?i["wix.api.writable"]=e["wix.api.writable"].map(e=>e):o&&(i["wix.api.writable"]=[]),null!=e["wix.api.error"]?i["wix.api.error"]=e["wix.api.error"].map(e=>t.wix.api.Error.toJSON(e,n,o)):o&&(i["wix.api.error"]=[]),null!=e["wix.api.customValidationError"]?i["wix.api.customValidationError"]=e["wix.api.customValidationError"].map(e=>t.wix.api.CustomValidationError.toJSON(e,n,o)):o&&(i["wix.api.customValidationError"]=[]),null!=e["wix.api.inheritCrudErrors"]?i["wix.api.inheritCrudErrors"]=e["wix.api.inheritCrudErrors"].map(e=>t.wix.api.InheritCrudErrors.toJSON(e,n,o)):o&&(i["wix.api.inheritCrudErrors"]=[]),null!=e["wix.api.errorRef"]?i["wix.api.errorRef"]=e["wix.api.errorRef"].map(e=>t.wix.api.ErrorRef.toJSON(e,n,o)):o&&(i["wix.api.errorRef"]=[]),null!=e["wix.sdk.signature"]?i["wix.sdk.signature"]=e["wix.sdk.signature"].map(e=>t.wix.sdk.Signature.toJSON(e,n,o)):o&&(i["wix.sdk.signature"]=[]),null!=e["wix.api.idempotency"]?i["wix.api.idempotency"]=t.wix.api.Idempotency.toJSON(e["wix.api.idempotency"],n,o):o&&delete i["wix.api.idempotency"],null!=e["wix.api.sla"]?i["wix.api.sla"]=t.wix.api.Sla.toJSON(e["wix.api.sla"],n,o):o&&delete i["wix.api.sla"],null!=e["wix.api.subscription"]?i["wix.api.subscription"]=t.wix.api.Subscription.toJSON(e["wix.api.subscription"],n,o):o&&delete i["wix.api.subscription"],null!=e["google.api.http"]?i["google.api.http"]=t.google.api.HttpRule.toJSON(e["google.api.http"],n,o):o&&delete i["google.api.http"],null!=e["wix.http.inferFieldmask"]?i["wix.http.inferFieldmask"]=t.wix.http.InferFieldmask.toJSON(e["wix.http.inferFieldmask"],n,o):o&&delete i["wix.http.inferFieldmask"],null!=e["wix.spi.error"]?i["wix.spi.error"]=e["wix.spi.error"].map(e=>t.wix.spi.Error.toJSON(e,n,o)):o&&(i["wix.spi.error"]=[]),null!=e["wix.spi.featureToggle"]?i["wix.spi.featureToggle"]=e["wix.spi.featureToggle"]:o&&(i["wix.spi.featureToggle"]=""),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.MethodOptions;return null!=e.deprecated?i.deprecated=e.deprecated:!1!==o?i.deprecated=!1:delete i.deprecated,null!=e.idempotencyLevel?i.idempotencyLevel="string"==typeof e.idempotencyLevel?e.idempotencyLevel:t.google.protobuf.MethodOptions.IdempotencyLevel[e.idempotencyLevel]:!1!==o?i.idempotencyLevel="IDEMPOTENCY_UNKNOWN":delete i.idempotencyLevel,null!=e.uninterpretedOption?i.uninterpretedOption=Array.isArray(e.uninterpretedOption)?e.uninterpretedOption.map(e=>t.google.protobuf.UninterpretedOption.fromJSON(e,n)):e.uninterpretedOption:!1!==o?i.uninterpretedOption=[]:delete i.uninterpretedOption,null!=e["wix.api.exposure"]?i["wix.api.exposure"]="string"==typeof e["wix.api.exposure"]?e["wix.api.exposure"]:t.wix.api.Exposure[e["wix.api.exposure"]]:!1!==o?i["wix.api.exposure"]="PRIVATE":delete i["wix.api.exposure"],null!=e["wix.api.maturity"]?i["wix.api.maturity"]="string"==typeof e["wix.api.maturity"]?e["wix.api.maturity"]:t.wix.api.Maturity[e["wix.api.maturity"]]:!1!==o?i["wix.api.maturity"]="ALPHA":delete i["wix.api.maturity"],null!=e["wix.api.cacheable"]?i["wix.api.cacheable"]=t.wix.api.CacheSettings.fromJSON(e["wix.api.cacheable"],n):delete i["wix.api.cacheable"],null!=e["wix.api.deprecated"]?i["wix.api.deprecated"]=t.wix.api.Deprecated.fromJSON(e["wix.api.deprecated"],n):delete i["wix.api.deprecated"],null!=e["wix.api.crud"]?i["wix.api.crud"]=t.wix.api.Crud.fromJSON(e["wix.api.crud"],n):delete i["wix.api.crud"],null!=e["wix.api.acceptsLinguist"]?i["wix.api.acceptsLinguist"]=e["wix.api.acceptsLinguist"]:!1!==o?i["wix.api.acceptsLinguist"]=!1:delete i["wix.api.acceptsLinguist"],null!=e["wix.api.audience"]?i["wix.api.audience"]=t.wix.api.Audience.fromJSON(e["wix.api.audience"],n):delete i["wix.api.audience"],null!=e["wix.api.tenancy"]?i["wix.api.tenancy"]=t.wix.api.TenancyOptions.fromJSON(e["wix.api.tenancy"],n):delete i["wix.api.tenancy"],null!=e["wix.api.callback"]?i["wix.api.callback"]=Array.isArray(e["wix.api.callback"])?e["wix.api.callback"].map(e=>t.wix.api.Callback.fromJSON(e,n)):e["wix.api.callback"]:!1!==o?i["wix.api.callback"]=[]:delete i["wix.api.callback"],null!=e["wix.api.emits"]?i["wix.api.emits"]=Array.isArray(e["wix.api.emits"])?e["wix.api.emits"].map(e=>t.wix.api.Emits.fromJSON(e,n)):e["wix.api.emits"]:!1!==o?i["wix.api.emits"]=[]:delete i["wix.api.emits"],null!=e["wix.api.permission"]?i["wix.api.permission"]=t.wix.api.PermissionRule.fromJSON(e["wix.api.permission"],n):delete i["wix.api.permission"],null!=e["wix.api.additionalPermission"]?i["wix.api.additionalPermission"]=Array.isArray(e["wix.api.additionalPermission"])?e["wix.api.additionalPermission"].map(e=>t.wix.api.PermissionRule.fromJSON(e,n)):e["wix.api.additionalPermission"]:!1!==o?i["wix.api.additionalPermission"]=[]:delete i["wix.api.additionalPermission"],null!=e["wix.api.required"]?i["wix.api.required"]=Array.isArray(e["wix.api.required"])?e["wix.api.required"].map(e=>e):e["wix.api.required"]:!1!==o?i["wix.api.required"]=[]:delete i["wix.api.required"],null!=e["wix.api.writable"]?i["wix.api.writable"]=Array.isArray(e["wix.api.writable"])?e["wix.api.writable"].map(e=>e):e["wix.api.writable"]:!1!==o?i["wix.api.writable"]=[]:delete i["wix.api.writable"],null!=e["wix.api.error"]?i["wix.api.error"]=Array.isArray(e["wix.api.error"])?e["wix.api.error"].map(e=>t.wix.api.Error.fromJSON(e,n)):e["wix.api.error"]:!1!==o?i["wix.api.error"]=[]:delete i["wix.api.error"],null!=e["wix.api.customValidationError"]?i["wix.api.customValidationError"]=Array.isArray(e["wix.api.customValidationError"])?e["wix.api.customValidationError"].map(e=>t.wix.api.CustomValidationError.fromJSON(e,n)):e["wix.api.customValidationError"]:!1!==o?i["wix.api.customValidationError"]=[]:delete i["wix.api.customValidationError"],null!=e["wix.api.inheritCrudErrors"]?i["wix.api.inheritCrudErrors"]=Array.isArray(e["wix.api.inheritCrudErrors"])?e["wix.api.inheritCrudErrors"].map(e=>t.wix.api.InheritCrudErrors.fromJSON(e,n)):e["wix.api.inheritCrudErrors"]:!1!==o?i["wix.api.inheritCrudErrors"]=[]:delete i["wix.api.inheritCrudErrors"],null!=e["wix.api.errorRef"]?i["wix.api.errorRef"]=Array.isArray(e["wix.api.errorRef"])?e["wix.api.errorRef"].map(e=>t.wix.api.ErrorRef.fromJSON(e,n)):e["wix.api.errorRef"]:!1!==o?i["wix.api.errorRef"]=[]:delete i["wix.api.errorRef"],null!=e["wix.sdk.signature"]?i["wix.sdk.signature"]=Array.isArray(e["wix.sdk.signature"])?e["wix.sdk.signature"].map(e=>t.wix.sdk.Signature.fromJSON(e,n)):e["wix.sdk.signature"]:!1!==o?i["wix.sdk.signature"]=[]:delete i["wix.sdk.signature"],null!=e["wix.api.idempotency"]?i["wix.api.idempotency"]=t.wix.api.Idempotency.fromJSON(e["wix.api.idempotency"],n):delete i["wix.api.idempotency"],null!=e["wix.api.sla"]?i["wix.api.sla"]=t.wix.api.Sla.fromJSON(e["wix.api.sla"],n):delete i["wix.api.sla"],null!=e["wix.api.subscription"]?i["wix.api.subscription"]=t.wix.api.Subscription.fromJSON(e["wix.api.subscription"],n):delete i["wix.api.subscription"],null!=e["google.api.http"]?i["google.api.http"]=t.google.api.HttpRule.fromJSON(e["google.api.http"],n):delete i["google.api.http"],null!=e["wix.http.inferFieldmask"]?i["wix.http.inferFieldmask"]=t.wix.http.InferFieldmask.fromJSON(e["wix.http.inferFieldmask"],n):delete i["wix.http.inferFieldmask"],null!=e["wix.spi.error"]?i["wix.spi.error"]=Array.isArray(e["wix.spi.error"])?e["wix.spi.error"].map(e=>t.wix.spi.Error.fromJSON(e,n)):e["wix.spi.error"]:!1!==o?i["wix.spi.error"]=[]:delete i["wix.spi.error"],null!=e["wix.spi.featureToggle"]?i["wix.spi.featureToggle"]=e["wix.spi.featureToggle"]:!1!==o?i["wix.spi.featureToggle"]="":delete i["wix.spi.featureToggle"],i}}static toGRPC(e,n){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=>t.google.protobuf.UninterpretedOption.toGRPC(e,n))),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"]=t.wix.api.CacheSettings.toGRPC(e["wix.api.cacheable"],n)),null!=e["wix.api.deprecated"]&&(o["wix.api.deprecated"]=t.wix.api.Deprecated.toGRPC(e["wix.api.deprecated"],n)),null!=e["wix.api.crud"]&&(o["wix.api.crud"]=t.wix.api.Crud.toGRPC(e["wix.api.crud"],n)),null!=e["wix.api.acceptsLinguist"]&&(o["wix.api.acceptsLinguist"]=e["wix.api.acceptsLinguist"]),null!=e["wix.api.audience"]&&(o["wix.api.audience"]=t.wix.api.Audience.toGRPC(e["wix.api.audience"],n)),null!=e["wix.api.tenancy"]&&(o["wix.api.tenancy"]=t.wix.api.TenancyOptions.toGRPC(e["wix.api.tenancy"],n)),null!=e["wix.api.callback"]&&(o["wix.api.callback"]=e["wix.api.callback"].map(e=>t.wix.api.Callback.toGRPC(e,n))),null!=e["wix.api.emits"]&&(o["wix.api.emits"]=e["wix.api.emits"].map(e=>t.wix.api.Emits.toGRPC(e,n))),null!=e["wix.api.permission"]&&(o["wix.api.permission"]=t.wix.api.PermissionRule.toGRPC(e["wix.api.permission"],n)),null!=e["wix.api.additionalPermission"]&&(o["wix.api.additionalPermission"]=e["wix.api.additionalPermission"].map(e=>t.wix.api.PermissionRule.toGRPC(e,n))),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["wix.api.error"]&&(o["wix.api.error"]=e["wix.api.error"].map(e=>t.wix.api.Error.toGRPC(e,n))),null!=e["wix.api.customValidationError"]&&(o["wix.api.customValidationError"]=e["wix.api.customValidationError"].map(e=>t.wix.api.CustomValidationError.toGRPC(e,n))),null!=e["wix.api.inheritCrudErrors"]&&(o["wix.api.inheritCrudErrors"]=e["wix.api.inheritCrudErrors"].map(e=>t.wix.api.InheritCrudErrors.toGRPC(e,n))),null!=e["wix.api.errorRef"]&&(o["wix.api.errorRef"]=e["wix.api.errorRef"].map(e=>t.wix.api.ErrorRef.toGRPC(e,n))),null!=e["wix.sdk.signature"]&&(o["wix.sdk.signature"]=e["wix.sdk.signature"].map(e=>t.wix.sdk.Signature.toGRPC(e,n))),null!=e["wix.api.idempotency"]&&(o["wix.api.idempotency"]=t.wix.api.Idempotency.toGRPC(e["wix.api.idempotency"],n)),null!=e["wix.api.sla"]&&(o["wix.api.sla"]=t.wix.api.Sla.toGRPC(e["wix.api.sla"],n)),null!=e["wix.api.subscription"]&&(o["wix.api.subscription"]=t.wix.api.Subscription.toGRPC(e["wix.api.subscription"],n)),null!=e["google.api.http"]&&(o["google.api.http"]=t.google.api.HttpRule.toGRPC(e["google.api.http"],n)),null!=e["wix.http.inferFieldmask"]&&(o["wix.http.inferFieldmask"]=t.wix.http.InferFieldmask.toGRPC(e["wix.http.inferFieldmask"],n)),null!=e["wix.spi.error"]&&(o["wix.spi.error"]=e["wix.spi.error"].map(e=>t.wix.spi.Error.toGRPC(e,n))),null!=e["wix.spi.featureToggle"]&&(o["wix.spi.featureToggle"]=e["wix.spi.featureToggle"]),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=>t.google.protobuf.UninterpretedOption.fromGRPC(e,n)):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"]=t.wix.api.CacheSettings.fromGRPC(e["wix.api.cacheable"],n):delete o["wix.api.cacheable"],null!=e["wix.api.deprecated"]?o["wix.api.deprecated"]=t.wix.api.Deprecated.fromGRPC(e["wix.api.deprecated"],n):delete o["wix.api.deprecated"],null!=e["wix.api.crud"]?o["wix.api.crud"]=t.wix.api.Crud.fromGRPC(e["wix.api.crud"],n):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.audience"]?o["wix.api.audience"]=t.wix.api.Audience.fromGRPC(e["wix.api.audience"],n):delete o["wix.api.audience"],null!=e["wix.api.tenancy"]?o["wix.api.tenancy"]=t.wix.api.TenancyOptions.fromGRPC(e["wix.api.tenancy"],n):delete o["wix.api.tenancy"],null!=e["wix.api.callback"]?o["wix.api.callback"]=e["wix.api.callback"].map(e=>t.wix.api.Callback.fromGRPC(e,n)):o["wix.api.callback"]=[],null!=e["wix.api.emits"]?o["wix.api.emits"]=e["wix.api.emits"].map(e=>t.wix.api.Emits.fromGRPC(e,n)):o["wix.api.emits"]=[],null!=e["wix.api.permission"]?o["wix.api.permission"]=t.wix.api.PermissionRule.fromGRPC(e["wix.api.permission"],n):delete o["wix.api.permission"],null!=e["wix.api.additionalPermission"]?o["wix.api.additionalPermission"]=e["wix.api.additionalPermission"].map(e=>t.wix.api.PermissionRule.fromGRPC(e,n)):o["wix.api.additionalPermission"]=[],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["wix.api.error"]?o["wix.api.error"]=e["wix.api.error"].map(e=>t.wix.api.Error.fromGRPC(e,n)):o["wix.api.error"]=[],null!=e["wix.api.customValidationError"]?o["wix.api.customValidationError"]=e["wix.api.customValidationError"].map(e=>t.wix.api.CustomValidationError.fromGRPC(e,n)):o["wix.api.customValidationError"]=[],null!=e["wix.api.inheritCrudErrors"]?o["wix.api.inheritCrudErrors"]=e["wix.api.inheritCrudErrors"].map(e=>t.wix.api.InheritCrudErrors.fromGRPC(e,n)):o["wix.api.inheritCrudErrors"]=[],null!=e["wix.api.errorRef"]?o["wix.api.errorRef"]=e["wix.api.errorRef"].map(e=>t.wix.api.ErrorRef.fromGRPC(e,n)):o["wix.api.errorRef"]=[],null!=e["wix.sdk.signature"]?o["wix.sdk.signature"]=e["wix.sdk.signature"].map(e=>t.wix.sdk.Signature.fromGRPC(e,n)):o["wix.sdk.signature"]=[],null!=e["wix.api.idempotency"]?o["wix.api.idempotency"]=t.wix.api.Idempotency.fromGRPC(e["wix.api.idempotency"],n):delete o["wix.api.idempotency"],null!=e["wix.api.sla"]?o["wix.api.sla"]=t.wix.api.Sla.fromGRPC(e["wix.api.sla"],n):delete o["wix.api.sla"],null!=e["wix.api.subscription"]?o["wix.api.subscription"]=t.wix.api.Subscription.fromGRPC(e["wix.api.subscription"],n):delete o["wix.api.subscription"],null!=e["google.api.http"]?o["google.api.http"]=t.google.api.HttpRule.fromGRPC(e["google.api.http"],n):delete o["google.api.http"],null!=e["wix.http.inferFieldmask"]?o["wix.http.inferFieldmask"]=t.wix.http.InferFieldmask.fromGRPC(e["wix.http.inferFieldmask"],n):delete o["wix.http.inferFieldmask"],null!=e["wix.spi.error"]?o["wix.spi.error"]=e["wix.spi.error"].map(e=>t.wix.spi.Error.fromGRPC(e,n)):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"},e.Object.defineProperty(MethodOptions.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.MethodOptions"),enumerable:!1,configurable:!1}),e.Object.defineProperty(MethodOptions.prototype,"__fqn__",{value:"google.protobuf.MethodOptions",enumerable:!1,configurable:!1}),e.Object.defineProperty(MethodOptions.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(MethodOptions.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),MethodOptions}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.name?i.name=e.name.map(e=>t.google.protobuf.UninterpretedOption.NamePart.toJSON(e,n,o)):o&&(i.name=[]),null!=e.identifierValue?i.identifierValue=e.identifierValue:o&&(i.identifierValue=""),null!=e.positiveIntValue?i.positiveIntValue=e.positiveIntValue.toString():o&&(i.positiveIntValue="0"),null!=e.negativeIntValue?i.negativeIntValue=e.negativeIntValue.toString():o&&(i.negativeIntValue="0"),null!=e.doubleValue?i.doubleValue=null==e.doubleValue?e.doubleValue:isNaN(e.doubleValue)?"NaN":isFinite(e.doubleValue)?e.doubleValue:e.doubleValue.toString():o&&(i.doubleValue=0),null!=e.stringValue?i.stringValue=e.stringValue.toString("base64"):o&&(i.stringValue=""),null!=e.aggregateValue?i.aggregateValue=e.aggregateValue:o&&(i.aggregateValue=""),i}}static fromJSON(n,o,i){if("object"!=typeof n||Array.isArray(n))return n;{const l=new t.google.protobuf.UninterpretedOption;return null!=n.name?l.name=Array.isArray(n.name)?n.name.map(e=>t.google.protobuf.UninterpretedOption.NamePart.fromJSON(e,o)):n.name:!1!==i?l.name=[]:delete l.name,null!=n.identifierValue?l.identifierValue=n.identifierValue:!1!==i?l.identifierValue="":delete l.identifierValue,null!=n.positiveIntValue?l.positiveIntValue="number"==typeof n.positiveIntValue||"string"==typeof n.positiveIntValue&&/^[-+]?\d+$/.test(n.positiveIntValue)?n.positiveIntValue.toString():n.positiveIntValue:!1!==i?l.positiveIntValue="0":delete l.positiveIntValue,null!=n.negativeIntValue?l.negativeIntValue="number"==typeof n.negativeIntValue||"string"==typeof n.negativeIntValue&&/^[-+]?\d+$/.test(n.negativeIntValue)?n.negativeIntValue.toString():n.negativeIntValue:!1!==i?l.negativeIntValue="0":delete l.negativeIntValue,null!=n.doubleValue?l.doubleValue="NaN"===n.doubleValue?NaN:"Infinity"===n.doubleValue?1/0:"-Infinity"===n.doubleValue?-1/0:n.doubleValue:!1!==i?l.doubleValue=0:delete l.doubleValue,null!=n.stringValue?l.stringValue=function tryParseBytes(t){try{return e.Buffer.from(t,"base64")}catch(e){return t}}(n.stringValue):!1!==i?l.stringValue="":delete l.stringValue,null!=n.aggregateValue?l.aggregateValue=n.aggregateValue:!1!==i?l.aggregateValue="":delete l.aggregateValue,l}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.name&&(o.name=e.name.map(e=>t.google.protobuf.UninterpretedOption.NamePart.toGRPC(e,n))),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,n){if(null==e)return null;{const o=new t.google.protobuf.UninterpretedOption;return null!=e.name?o.name=e.name.map(e=>t.google.protobuf.UninterpretedOption.NamePart.fromGRPC(e,n)):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,n){if(null==e)return null;{const t={};return null!=e.namePart?t.namePart=e.namePart:n&&(t.namePart=""),null!=e.isExtension?t.isExtension=e.isExtension:n&&(t.isExtension=!1),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.google.protobuf.UninterpretedOption.NamePart;return null!=e.namePart?n.namePart=e.namePart:!1!==o?n.namePart="":delete n.namePart,null!=e.isExtension?n.isExtension=e.isExtension:!1!==o?n.isExtension=!1:delete n.isExtension,n}}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,n){if(null==e)return null;{const n=new t.google.protobuf.UninterpretedOption.NamePart;return null!=e.namePart?n.namePart=e.namePart:n.namePart="",null!=e.isExtension?n.isExtension=e.isExtension:n.isExtension=!1,n}}}return e.Object.defineProperty(NamePart.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.UninterpretedOption.NamePart"),enumerable:!1,configurable:!1}),e.Object.defineProperty(NamePart.prototype,"__fqn__",{value:"google.protobuf.UninterpretedOption.NamePart",enumerable:!1,configurable:!1}),e.Object.defineProperty(NamePart.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(NamePart.prototype,"__root__",{value:t,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,n){if(null==e)return null;{const t={};return null!=e.namePart?t.namePart=e.namePart:n&&(t.namePart=""),null!=e.isExtension?t.isExtension=e.isExtension:n&&(t.isExtension=!1),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.google.protobuf.UninterpretedOption.NamePart;return null!=e.namePart?n.namePart=e.namePart:!1!==o?n.namePart="":delete n.namePart,null!=e.isExtension?n.isExtension=e.isExtension:!1!==o?n.isExtension=!1:delete n.isExtension,n}}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,n){if(null==e)return null;{const n=new t.google.protobuf.UninterpretedOption.NamePart;return null!=e.namePart?n.namePart=e.namePart:n.namePart="",null!=e.isExtension?n.isExtension=e.isExtension:n.isExtension=!1,n}}}return e.Object.defineProperty(NamePart.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.UninterpretedOption.NamePart"),enumerable:!1,configurable:!1}),e.Object.defineProperty(NamePart.prototype,"__fqn__",{value:"google.protobuf.UninterpretedOption.NamePart",enumerable:!1,configurable:!1}),e.Object.defineProperty(NamePart.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(NamePart.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),NamePart}(),e.Object.defineProperty(UninterpretedOption.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.UninterpretedOption"),enumerable:!1,configurable:!1}),e.Object.defineProperty(UninterpretedOption.prototype,"__fqn__",{value:"google.protobuf.UninterpretedOption",enumerable:!1,configurable:!1}),e.Object.defineProperty(UninterpretedOption.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(UninterpretedOption.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),UninterpretedOption}(),n.SourceCodeInfo=function(){class SourceCodeInfo{constructor(e){this.location=e&&e.location}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.location?i.location=e.location.map(e=>t.google.protobuf.SourceCodeInfo.Location.toJSON(e,n,o)):o&&(i.location=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.SourceCodeInfo;return null!=e.location?i.location=Array.isArray(e.location)?e.location.map(e=>t.google.protobuf.SourceCodeInfo.Location.fromJSON(e,n)):e.location:!1!==o?i.location=[]:delete i.location,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.location&&(o.location=e.location.map(e=>t.google.protobuf.SourceCodeInfo.Location.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.google.protobuf.SourceCodeInfo;return null!=e.location?o.location=e.location.map(e=>t.google.protobuf.SourceCodeInfo.Location.fromGRPC(e,n)):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,n){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path.map(e=>e):n&&(t.path=[]),null!=e.span?t.span=e.span.map(e=>e):n&&(t.span=[]),null!=e.leadingComments?t.leadingComments=e.leadingComments:n&&(t.leadingComments=""),null!=e.trailingComments?t.trailingComments=e.trailingComments:n&&(t.trailingComments=""),null!=e.leadingDetachedComments?t.leadingDetachedComments=e.leadingDetachedComments.map(e=>e):n&&(t.leadingDetachedComments=[]),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.google.protobuf.SourceCodeInfo.Location;return null!=e.path?n.path=Array.isArray(e.path)?e.path.map(e=>e):e.path:!1!==o?n.path=[]:delete n.path,null!=e.span?n.span=Array.isArray(e.span)?e.span.map(e=>e):e.span:!1!==o?n.span=[]:delete n.span,null!=e.leadingComments?n.leadingComments=e.leadingComments:!1!==o?n.leadingComments="":delete n.leadingComments,null!=e.trailingComments?n.trailingComments=e.trailingComments:!1!==o?n.trailingComments="":delete n.trailingComments,null!=e.leadingDetachedComments?n.leadingDetachedComments=Array.isArray(e.leadingDetachedComments)?e.leadingDetachedComments.map(e=>e):e.leadingDetachedComments:!1!==o?n.leadingDetachedComments=[]:delete n.leadingDetachedComments,n}}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,n){if(null==e)return null;{const n=new t.google.protobuf.SourceCodeInfo.Location;return null!=e.path?n.path=e.path.map(e=>e):n.path=[],null!=e.span?n.span=e.span.map(e=>e):n.span=[],null!=e.leadingComments?n.leadingComments=e.leadingComments:n.leadingComments="",null!=e.trailingComments?n.trailingComments=e.trailingComments:n.trailingComments="",null!=e.leadingDetachedComments?n.leadingDetachedComments=e.leadingDetachedComments.map(e=>e):n.leadingDetachedComments=[],n}}}return e.Object.defineProperty(Location.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.SourceCodeInfo.Location"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Location.prototype,"__fqn__",{value:"google.protobuf.SourceCodeInfo.Location",enumerable:!1,configurable:!1}),e.Object.defineProperty(Location.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Location.prototype,"__root__",{value:t,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,n){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path.map(e=>e):n&&(t.path=[]),null!=e.span?t.span=e.span.map(e=>e):n&&(t.span=[]),null!=e.leadingComments?t.leadingComments=e.leadingComments:n&&(t.leadingComments=""),null!=e.trailingComments?t.trailingComments=e.trailingComments:n&&(t.trailingComments=""),null!=e.leadingDetachedComments?t.leadingDetachedComments=e.leadingDetachedComments.map(e=>e):n&&(t.leadingDetachedComments=[]),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.google.protobuf.SourceCodeInfo.Location;return null!=e.path?n.path=Array.isArray(e.path)?e.path.map(e=>e):e.path:!1!==o?n.path=[]:delete n.path,null!=e.span?n.span=Array.isArray(e.span)?e.span.map(e=>e):e.span:!1!==o?n.span=[]:delete n.span,null!=e.leadingComments?n.leadingComments=e.leadingComments:!1!==o?n.leadingComments="":delete n.leadingComments,null!=e.trailingComments?n.trailingComments=e.trailingComments:!1!==o?n.trailingComments="":delete n.trailingComments,null!=e.leadingDetachedComments?n.leadingDetachedComments=Array.isArray(e.leadingDetachedComments)?e.leadingDetachedComments.map(e=>e):e.leadingDetachedComments:!1!==o?n.leadingDetachedComments=[]:delete n.leadingDetachedComments,n}}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,n){if(null==e)return null;{const n=new t.google.protobuf.SourceCodeInfo.Location;return null!=e.path?n.path=e.path.map(e=>e):n.path=[],null!=e.span?n.span=e.span.map(e=>e):n.span=[],null!=e.leadingComments?n.leadingComments=e.leadingComments:n.leadingComments="",null!=e.trailingComments?n.trailingComments=e.trailingComments:n.trailingComments="",null!=e.leadingDetachedComments?n.leadingDetachedComments=e.leadingDetachedComments.map(e=>e):n.leadingDetachedComments=[],n}}}return e.Object.defineProperty(Location.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.SourceCodeInfo.Location"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Location.prototype,"__fqn__",{value:"google.protobuf.SourceCodeInfo.Location",enumerable:!1,configurable:!1}),e.Object.defineProperty(Location.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Location.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Location}(),e.Object.defineProperty(SourceCodeInfo.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.SourceCodeInfo"),enumerable:!1,configurable:!1}),e.Object.defineProperty(SourceCodeInfo.prototype,"__fqn__",{value:"google.protobuf.SourceCodeInfo",enumerable:!1,configurable:!1}),e.Object.defineProperty(SourceCodeInfo.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(SourceCodeInfo.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),SourceCodeInfo}(),n.GeneratedCodeInfo=function(){class GeneratedCodeInfo{constructor(e){this.annotation=e&&e.annotation}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.annotation?i.annotation=e.annotation.map(e=>t.google.protobuf.GeneratedCodeInfo.Annotation.toJSON(e,n,o)):o&&(i.annotation=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.protobuf.GeneratedCodeInfo;return null!=e.annotation?i.annotation=Array.isArray(e.annotation)?e.annotation.map(e=>t.google.protobuf.GeneratedCodeInfo.Annotation.fromJSON(e,n)):e.annotation:!1!==o?i.annotation=[]:delete i.annotation,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.annotation&&(o.annotation=e.annotation.map(e=>t.google.protobuf.GeneratedCodeInfo.Annotation.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.google.protobuf.GeneratedCodeInfo;return null!=e.annotation?o.annotation=e.annotation.map(e=>t.google.protobuf.GeneratedCodeInfo.Annotation.fromGRPC(e,n)):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,n){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path.map(e=>e):n&&(t.path=[]),null!=e.sourceFile?t.sourceFile=e.sourceFile:n&&(t.sourceFile=""),null!=e.begin?t.begin=e.begin:n&&(t.begin=0),null!=e.end?t.end=e.end:n&&(t.end=0),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.google.protobuf.GeneratedCodeInfo.Annotation;return null!=e.path?n.path=Array.isArray(e.path)?e.path.map(e=>e):e.path:!1!==o?n.path=[]:delete n.path,null!=e.sourceFile?n.sourceFile=e.sourceFile:!1!==o?n.sourceFile="":delete n.sourceFile,null!=e.begin?n.begin=e.begin:!1!==o?n.begin=0:delete n.begin,null!=e.end?n.end=e.end:!1!==o?n.end=0:delete n.end,n}}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,n){if(null==e)return null;{const n=new t.google.protobuf.GeneratedCodeInfo.Annotation;return null!=e.path?n.path=e.path.map(e=>e):n.path=[],null!=e.sourceFile?n.sourceFile=e.sourceFile:n.sourceFile="",null!=e.begin?n.begin=e.begin:n.begin=0,null!=e.end?n.end=e.end:n.end=0,n}}}return e.Object.defineProperty(Annotation.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.GeneratedCodeInfo.Annotation"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Annotation.prototype,"__fqn__",{value:"google.protobuf.GeneratedCodeInfo.Annotation",enumerable:!1,configurable:!1}),e.Object.defineProperty(Annotation.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Annotation.prototype,"__root__",{value:t,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,n){if(null==e)return null;{const t={};return null!=e.path?t.path=e.path.map(e=>e):n&&(t.path=[]),null!=e.sourceFile?t.sourceFile=e.sourceFile:n&&(t.sourceFile=""),null!=e.begin?t.begin=e.begin:n&&(t.begin=0),null!=e.end?t.end=e.end:n&&(t.end=0),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.google.protobuf.GeneratedCodeInfo.Annotation;return null!=e.path?n.path=Array.isArray(e.path)?e.path.map(e=>e):e.path:!1!==o?n.path=[]:delete n.path,null!=e.sourceFile?n.sourceFile=e.sourceFile:!1!==o?n.sourceFile="":delete n.sourceFile,null!=e.begin?n.begin=e.begin:!1!==o?n.begin=0:delete n.begin,null!=e.end?n.end=e.end:!1!==o?n.end=0:delete n.end,n}}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,n){if(null==e)return null;{const n=new t.google.protobuf.GeneratedCodeInfo.Annotation;return null!=e.path?n.path=e.path.map(e=>e):n.path=[],null!=e.sourceFile?n.sourceFile=e.sourceFile:n.sourceFile="",null!=e.begin?n.begin=e.begin:n.begin=0,null!=e.end?n.end=e.end:n.end=0,n}}}return e.Object.defineProperty(Annotation.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.GeneratedCodeInfo.Annotation"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Annotation.prototype,"__fqn__",{value:"google.protobuf.GeneratedCodeInfo.Annotation",enumerable:!1,configurable:!1}),e.Object.defineProperty(Annotation.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Annotation.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Annotation}(),e.Object.defineProperty(GeneratedCodeInfo.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.GeneratedCodeInfo"),enumerable:!1,configurable:!1}),e.Object.defineProperty(GeneratedCodeInfo.prototype,"__fqn__",{value:"google.protobuf.GeneratedCodeInfo",enumerable:!1,configurable:!1}),e.Object.defineProperty(GeneratedCodeInfo.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(GeneratedCodeInfo.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),GeneratedCodeInfo}(),n.Empty=function(){class Empty{constructor(e){}static toJSON(e,t,n){if(null==e)return null;return{}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;return new t.google.protobuf.Empty}static toGRPC(e,t){if(null==e)return null;return{}}static fromGRPC(e,n){if(null==e)return null;return new t.google.protobuf.Empty}}return e.Object.defineProperty(Empty.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.Empty"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Empty.prototype,"__fqn__",{value:"google.protobuf.Empty",enumerable:!1,configurable:!1}),e.Object.defineProperty(Empty.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Empty.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Empty}(),n.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 e.Object.defineProperty(Struct.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.Struct"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Struct.prototype,"__fqn__",{value:"google.protobuf.Struct",enumerable:!1,configurable:!1}),e.Object.defineProperty(Struct.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Struct.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Struct}(),n.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 e.Object.defineProperty(Value.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.Value"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Value.prototype,"__fqn__",{value:"google.protobuf.Value",enumerable:!1,configurable:!1}),e.Object.defineProperty(Value.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Value.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Value}(),n.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 e.Object.defineProperty(ListValue.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.ListValue"),enumerable:!1,configurable:!1}),e.Object.defineProperty(ListValue.prototype,"__fqn__",{value:"google.protobuf.ListValue",enumerable:!1,configurable:!1}),e.Object.defineProperty(ListValue.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(ListValue.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),ListValue}(),n.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 e.Object.defineProperty(DoubleValue.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.DoubleValue"),enumerable:!1,configurable:!1}),e.Object.defineProperty(DoubleValue.prototype,"__fqn__",{value:"google.protobuf.DoubleValue",enumerable:!1,configurable:!1}),e.Object.defineProperty(DoubleValue.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(DoubleValue.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),DoubleValue}(),n.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 e.Object.defineProperty(FloatValue.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.FloatValue"),enumerable:!1,configurable:!1}),e.Object.defineProperty(FloatValue.prototype,"__fqn__",{value:"google.protobuf.FloatValue",enumerable:!1,configurable:!1}),e.Object.defineProperty(FloatValue.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(FloatValue.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),FloatValue}(),n.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 e.Object.defineProperty(Int64Value.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.Int64Value"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Int64Value.prototype,"__fqn__",{value:"google.protobuf.Int64Value",enumerable:!1,configurable:!1}),e.Object.defineProperty(Int64Value.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Int64Value.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Int64Value}(),n.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 e.Object.defineProperty(UInt64Value.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.UInt64Value"),enumerable:!1,configurable:!1}),e.Object.defineProperty(UInt64Value.prototype,"__fqn__",{value:"google.protobuf.UInt64Value",enumerable:!1,configurable:!1}),e.Object.defineProperty(UInt64Value.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(UInt64Value.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),UInt64Value}(),n.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 e.Object.defineProperty(Int32Value.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.Int32Value"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Int32Value.prototype,"__fqn__",{value:"google.protobuf.Int32Value",enumerable:!1,configurable:!1}),e.Object.defineProperty(Int32Value.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Int32Value.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Int32Value}(),n.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 e.Object.defineProperty(UInt32Value.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.UInt32Value"),enumerable:!1,configurable:!1}),e.Object.defineProperty(UInt32Value.prototype,"__fqn__",{value:"google.protobuf.UInt32Value",enumerable:!1,configurable:!1}),e.Object.defineProperty(UInt32Value.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(UInt32Value.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),UInt32Value}(),n.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 e.Object.defineProperty(BoolValue.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.BoolValue"),enumerable:!1,configurable:!1}),e.Object.defineProperty(BoolValue.prototype,"__fqn__",{value:"google.protobuf.BoolValue",enumerable:!1,configurable:!1}),e.Object.defineProperty(BoolValue.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(BoolValue.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),BoolValue}(),n.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 e.Object.defineProperty(StringValue.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.StringValue"),enumerable:!1,configurable:!1}),e.Object.defineProperty(StringValue.prototype,"__fqn__",{value:"google.protobuf.StringValue",enumerable:!1,configurable:!1}),e.Object.defineProperty(StringValue.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(StringValue.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),StringValue}(),n.BytesValue=function(){class BytesValue{constructor(e){this.value=e&&e.value}static toJSON(e,t){return e&&e.toString("base64")}static fromJSON(t,n){return t&&function tryParseBytes(t){try{return e.Buffer.from(t,"base64")}catch(e){return t}}(t)}static toGRPC(e,t){return null==e?e:{value:e}}static fromGRPC(e,t){return e&&e.value}}return e.Object.defineProperty(BytesValue.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.BytesValue"),enumerable:!1,configurable:!1}),e.Object.defineProperty(BytesValue.prototype,"__fqn__",{value:"google.protobuf.BytesValue",enumerable:!1,configurable:!1}),e.Object.defineProperty(BytesValue.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(BytesValue.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),BytesValue}(),n.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 e.Object.defineProperty(Timestamp.prototype,"__proto",{value:e=>t.__lookup(e)("google.protobuf.Timestamp"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Timestamp.prototype,"__fqn__",{value:"google.protobuf.Timestamp",enumerable:!1,configurable:!1}),e.Object.defineProperty(Timestamp.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Timestamp.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Timestamp}(),n}(),n.api=function(){const n={};return n.Http=function(){class Http{constructor(e){this.rules=e&&e.rules}static toJSON(e,n,o){if(null==e)return null;{const i={};return null!=e.rules?i.rules=e.rules.map(e=>t.google.api.HttpRule.toJSON(e,n,o)):o&&(i.rules=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.api.Http;return null!=e.rules?i.rules=Array.isArray(e.rules)?e.rules.map(e=>t.google.api.HttpRule.fromJSON(e,n)):e.rules:!1!==o?i.rules=[]:delete i.rules,i}}static toGRPC(e,n){if(null==e)return null;{const o={};return null!=e.rules&&(o.rules=e.rules.map(e=>t.google.api.HttpRule.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.google.api.Http;return null!=e.rules?o.rules=e.rules.map(e=>t.google.api.HttpRule.fromGRPC(e,n)):o.rules=[],o}}}return e.Object.defineProperty(Http.prototype,"__proto",{value:e=>t.__lookup(e)("google.api.Http"),enumerable:!1,configurable:!1}),e.Object.defineProperty(Http.prototype,"__fqn__",{value:"google.api.Http",enumerable:!1,configurable:!1}),e.Object.defineProperty(Http.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(Http.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),Http}(),n.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,n,o){if(null==e)return null;{const i={};return null!=e.selector?i.selector=e.selector:o&&(i.selector=""),null!=e.get?i.get=e.get:o&&delete i.get,null!=e.put?i.put=e.put:o&&delete i.put,null!=e.post?i.post=e.post:o&&delete i.post,null!=e.delete?i.delete=e.delete:o&&delete i.delete,null!=e.patch?i.patch=e.patch:o&&delete i.patch,null!=e.custom?i.custom=t.google.api.CustomHttpPattern.toJSON(e.custom,n,o):o&&delete i.custom,null!=e.body?i.body=e.body:o&&(i.body=""),null!=e.additionalBindings?i.additionalBindings=e.additionalBindings.map(e=>t.google.api.HttpRule.toJSON(e,n,o)):o&&(i.additionalBindings=[]),i}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const i=new t.google.api.HttpRule;return null!=e.selector?i.selector=e.selector:!1!==o?i.selector="":delete i.selector,null!=e.get?i.get=e.get:delete i.get,null!=e.put?i.put=e.put:delete i.put,null!=e.post?i.post=e.post:delete i.post,null!=e.delete?i.delete=e.delete:delete i.delete,null!=e.patch?i.patch=e.patch:delete i.patch,null!=e.custom?i.custom=t.google.api.CustomHttpPattern.fromJSON(e.custom,n):delete i.custom,null!=e.body?i.body=e.body:!1!==o?i.body="":delete i.body,null!=e.additionalBindings?i.additionalBindings=Array.isArray(e.additionalBindings)?e.additionalBindings.map(e=>t.google.api.HttpRule.fromJSON(e,n)):e.additionalBindings:!1!==o?i.additionalBindings=[]:delete i.additionalBindings,i}}static toGRPC(e,n){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=t.google.api.CustomHttpPattern.toGRPC(e.custom,n)),null!=e.body&&(o.body=e.body),null!=e.additionalBindings&&(o.additionalBindings=e.additionalBindings.map(e=>t.google.api.HttpRule.toGRPC(e,n))),o}}static fromGRPC(e,n){if(null==e)return null;{const o=new t.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=t.google.api.CustomHttpPattern.fromGRPC(e.custom,n):delete o.custom,null!=e.body?o.body=e.body:o.body="",null!=e.additionalBindings?o.additionalBindings=e.additionalBindings.map(e=>t.google.api.HttpRule.fromGRPC(e,n)):o.additionalBindings=[],o}}}return e.Object.defineProperty(HttpRule.prototype,"__proto",{value:e=>t.__lookup(e)("google.api.HttpRule"),enumerable:!1,configurable:!1}),e.Object.defineProperty(HttpRule.prototype,"__fqn__",{value:"google.api.HttpRule",enumerable:!1,configurable:!1}),e.Object.defineProperty(HttpRule.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(HttpRule.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),HttpRule}(),n.CustomHttpPattern=function(){class CustomHttpPattern{constructor(e){this.kind=e&&e.kind,this.path=e&&e.path}static toJSON(e,t,n){if(null==e)return null;{const t={};return null!=e.kind?t.kind=e.kind:n&&(t.kind=""),null!=e.path?t.path=e.path:n&&(t.path=""),t}}static fromJSON(e,n,o){if("object"!=typeof e||Array.isArray(e))return e;{const n=new t.google.api.CustomHttpPattern;return null!=e.kind?n.kind=e.kind:!1!==o?n.kind="":delete n.kind,null!=e.path?n.path=e.path:!1!==o?n.path="":delete n.path,n}}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,n){if(null==e)return null;{const n=new t.google.api.CustomHttpPattern;return null!=e.kind?n.kind=e.kind:n.kind="",null!=e.path?n.path=e.path:n.path="",n}}}return e.Object.defineProperty(CustomHttpPattern.prototype,"__proto",{value:e=>t.__lookup(e)("google.api.CustomHttpPattern"),enumerable:!1,configurable:!1}),e.Object.defineProperty(CustomHttpPattern.prototype,"__fqn__",{value:"google.api.CustomHttpPattern",enumerable:!1,configurable:!1}),e.Object.defineProperty(CustomHttpPattern.prototype,"__options__",{value:t.__options,enumerable:!1,configurable:!1}),e.Object.defineProperty(CustomHttpPattern.prototype,"__root__",{value:t,enumerable:!1,configurable:!1}),CustomHttpPattern}(),n}(),n}(),t.__binaryDescriptors={};export default t;export const{com:com,wix:wix,upstream:upstream,google:google}=t;