@aldiokta/protocgen 1.1.23 → 1.1.25

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 (169) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +199 -0
  3. package/prisca/v1/account_assignment/account_assignment_pb.js +2726 -0
  4. package/prisca/v1/account_group/account_group_grpc_pb.js +200 -0
  5. package/prisca/v1/account_group/account_group_pb.js +2989 -0
  6. package/prisca/v1/bidding/bidding_grpc_pb.js +294 -0
  7. package/prisca/v1/bidding/bidding_pb.js +7488 -0
  8. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +199 -0
  9. package/prisca/v1/chart_of_account/chart_of_account_pb.js +2959 -0
  10. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +544 -0
  11. package/prisca/v1/core/access_manager/access_manager_pb.js +9383 -0
  12. package/prisca/v1/core/auth/auth_grpc_pb.js +423 -0
  13. package/prisca/v1/core/auth/auth_pb.js +4497 -0
  14. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +111 -0
  15. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +1531 -0
  16. package/prisca/v1/core/company/company_grpc_pb.js +178 -0
  17. package/prisca/v1/core/company/company_pb.js +3100 -0
  18. package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
  19. package/prisca/v1/core/currency/currency_pb.js +2522 -0
  20. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  21. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  22. package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
  23. package/prisca/v1/core/employee/employee_pb.js +4335 -0
  24. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +44 -0
  25. package/prisca/v1/core/file_upload/file_upload_pb.js +1052 -0
  26. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +177 -0
  27. package/prisca/v1/core/incoterm/incoterm_pb.js +2904 -0
  28. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +1 -0
  29. package/prisca/v1/core/item_transaction/item_transaction_pb.js +4330 -0
  30. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  31. package/prisca/v1/core/job_grade/job_grade_pb.js +2657 -0
  32. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  33. package/prisca/v1/core/job_position/job_position_pb.js +3814 -0
  34. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  35. package/prisca/v1/core/job_title/job_title_pb.js +3010 -0
  36. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +78 -0
  37. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +2087 -0
  38. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +200 -0
  39. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +3251 -0
  40. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
  41. package/prisca/v1/core/link_data_source/link_data_source_pb.js +2612 -0
  42. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  43. package/prisca/v1/core/location/location_pb.js +10879 -0
  44. package/prisca/v1/core/material/material_grpc_pb.js +182 -0
  45. package/prisca/v1/core/material/material_pb.js +4232 -0
  46. package/prisca/v1/core/material_group/material_group_grpc_pb.js +178 -0
  47. package/prisca/v1/core/material_group/material_group_pb.js +2828 -0
  48. package/prisca/v1/core/material_type/material_type_grpc_pb.js +182 -0
  49. package/prisca/v1/core/material_type/material_type_pb.js +3104 -0
  50. package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
  51. package/prisca/v1/core/messaging/email_template_pb.js +2664 -0
  52. package/prisca/v1/core/messaging/messaging_grpc_pb.js +56 -0
  53. package/prisca/v1/core/messaging/messaging_pb.js +896 -0
  54. package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
  55. package/prisca/v1/core/number_range/number_range_pb.js +2978 -0
  56. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  57. package/prisca/v1/core/organization/organization_pb.js +3084 -0
  58. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  59. package/prisca/v1/core/organization_level/organization_level_pb.js +2597 -0
  60. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +179 -0
  61. package/prisca/v1/core/price_condition/price_condition_pb.js +3061 -0
  62. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  63. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  64. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  65. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  66. package/prisca/v1/core/report/report_grpc_pb.js +200 -0
  67. package/prisca/v1/core/report/report_pb.js +2822 -0
  68. package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
  69. package/prisca/v1/core/report/user_report_pb.js +2452 -0
  70. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  71. package/prisca/v1/core/tax_code/tax_code_pb.js +2784 -0
  72. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +177 -0
  73. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +2512 -0
  74. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +498 -0
  75. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +10976 -0
  76. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  77. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2850 -0
  78. package/prisca/v1/core/users/users_grpc_pb.js +78 -0
  79. package/prisca/v1/core/users/users_pb.js +1653 -0
  80. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  81. package/prisca/v1/core/work_location/work_location_pb.js +4024 -0
  82. package/prisca/v1/core/workflow/workflow_grpc_pb.js +203 -0
  83. package/prisca/v1/core/workflow/workflow_pb.js +7577 -0
  84. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +229 -0
  85. package/prisca/v1/delivery_order/delivery_order_pb.js +4661 -0
  86. package/prisca/v1/document_type/document_type_grpc_pb.js +178 -0
  87. package/prisca/v1/document_type/document_type_pb.js +2798 -0
  88. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
  89. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3328 -0
  90. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  91. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  92. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +1 -0
  93. package/prisca/v1/good_receipt/good_receipt_pb.js +35 -0
  94. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +228 -0
  95. package/prisca/v1/purchase_order/purchase_order_pb.js +5049 -0
  96. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +523 -0
  97. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +9917 -0
  98. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
  99. package/prisca/v1/purchasing_group/purchasing_group_pb.js +2927 -0
  100. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +178 -0
  101. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2546 -0
  102. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +179 -0
  103. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2590 -0
  104. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
  105. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2543 -0
  106. package/prisca/v1/quotation/quotation_grpc_pb.js +207 -0
  107. package/prisca/v1/quotation/quotation_pb.js +3582 -0
  108. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +193 -0
  109. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +5961 -0
  110. package/prisca/v1/valuation/valuation_grpc_pb.js +366 -0
  111. package/prisca/v1/valuation/valuation_pb.js +7812 -0
  112. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +224 -0
  113. package/prisca/v1/vendor_domain/vendor_domain_pb.js +6363 -0
  114. package/prisca/v1/account_assignment/account_assignment.proto +0 -81
  115. package/prisca/v1/account_group/account_group.proto +0 -88
  116. package/prisca/v1/bidding/bidding.proto +0 -221
  117. package/prisca/v1/chart_of_account/chart_of_account.proto +0 -89
  118. package/prisca/v1/core/access_manager/access_manager.proto +0 -281
  119. package/prisca/v1/core/auth/auth.proto +0 -150
  120. package/prisca/v1/core/chat_messaging/chat_messaging.proto +0 -55
  121. package/prisca/v1/core/company/company.proto +0 -92
  122. package/prisca/v1/core/currency/currency.proto +0 -76
  123. package/prisca/v1/core/department_material/department_material.proto +0 -69
  124. package/prisca/v1/core/employee/employee.proto +0 -129
  125. package/prisca/v1/core/file_upload/file_upload.proto +0 -37
  126. package/prisca/v1/core/incoterm/incoterm.proto +0 -85
  127. package/prisca/v1/core/item_transaction/item_transaction.proto +0 -134
  128. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  129. package/prisca/v1/core/job_position/job_position.proto +0 -113
  130. package/prisca/v1/core/job_title/job_title.proto +0 -89
  131. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -66
  132. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -96
  133. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  134. package/prisca/v1/core/location/location.proto +0 -289
  135. package/prisca/v1/core/material/material.proto +0 -131
  136. package/prisca/v1/core/material_group/material_group.proto +0 -85
  137. package/prisca/v1/core/material_type/material_type.proto +0 -95
  138. package/prisca/v1/core/messaging/email_template.proto +0 -75
  139. package/prisca/v1/core/messaging/messaging.proto +0 -29
  140. package/prisca/v1/core/number_range/number_range.proto +0 -89
  141. package/prisca/v1/core/organization/organization.proto +0 -94
  142. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  143. package/prisca/v1/core/price_condition/price_condition.proto +0 -93
  144. package/prisca/v1/core/procurement/procurement.proto +0 -54
  145. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  146. package/prisca/v1/core/report/report.proto +0 -90
  147. package/prisca/v1/core/report/user_report.proto +0 -74
  148. package/prisca/v1/core/tax_code/tax_code.proto +0 -82
  149. package/prisca/v1/core/term_of_payment/term_of_payment.proto +0 -74
  150. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -325
  151. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  152. package/prisca/v1/core/users/users.proto +0 -55
  153. package/prisca/v1/core/work_location/work_location.proto +0 -122
  154. package/prisca/v1/core/workflow/workflow.proto +0 -218
  155. package/prisca/v1/delivery_order/delivery_order.proto +0 -147
  156. package/prisca/v1/document_type/document_type.proto +0 -82
  157. package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -100
  158. package/prisca/v1/global/meta/meta.proto +0 -57
  159. package/prisca/v1/good_receipt/good_receipt.proto +0 -11
  160. package/prisca/v1/purchase_order/purchase_order.proto +0 -157
  161. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -306
  162. package/prisca/v1/purchasing_group/purchasing_group.proto +0 -89
  163. package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -79
  164. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -81
  165. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
  166. package/prisca/v1/quotation/quotation.proto +0 -118
  167. package/prisca/v1/request_for_quotation/request_for_quotation.proto +0 -174
  168. package/prisca/v1/valuation/valuation.proto +0 -223
  169. package/prisca/v1/vendor_domain/vendor_domain.proto +0 -226
@@ -0,0 +1,2664 @@
1
+ // source: prisca/v1/core/messaging/email_template.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ goog.exportSymbol('proto.BaseEmailTemplateRequest', null, global);
27
+ goog.exportSymbol('proto.CreateEmailTemplateRequest', null, global);
28
+ goog.exportSymbol('proto.CreateEmailTemplateResponse', null, global);
29
+ goog.exportSymbol('proto.DeleteEmailTemplateRequest', null, global);
30
+ goog.exportSymbol('proto.DeleteEmailTemplateResponse', null, global);
31
+ goog.exportSymbol('proto.EmailTemplate', null, global);
32
+ goog.exportSymbol('proto.GetEmailTemplateByIdRequest', null, global);
33
+ goog.exportSymbol('proto.GetEmailTemplateByIdResponse', null, global);
34
+ goog.exportSymbol('proto.GetListEmailTemplateRequest', null, global);
35
+ goog.exportSymbol('proto.GetListEmailTemplateResponse', null, global);
36
+ goog.exportSymbol('proto.UpdateEmailTemplateRequest', null, global);
37
+ goog.exportSymbol('proto.UpdateEmailTemplateResponse', null, global);
38
+ /**
39
+ * Generated by JsPbCodeGenerator.
40
+ * @param {Array=} opt_data Optional initial data array, typically from a
41
+ * server response, or constructed directly in Javascript. The array is used
42
+ * in place and becomes part of the constructed object. It is not cloned.
43
+ * If no data is provided, the constructed object will be empty, but still
44
+ * valid.
45
+ * @extends {jspb.Message}
46
+ * @constructor
47
+ */
48
+ proto.EmailTemplate = function(opt_data) {
49
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
50
+ };
51
+ goog.inherits(proto.EmailTemplate, jspb.Message);
52
+ if (goog.DEBUG && !COMPILED) {
53
+ /**
54
+ * @public
55
+ * @override
56
+ */
57
+ proto.EmailTemplate.displayName = 'proto.EmailTemplate';
58
+ }
59
+ /**
60
+ * Generated by JsPbCodeGenerator.
61
+ * @param {Array=} opt_data Optional initial data array, typically from a
62
+ * server response, or constructed directly in Javascript. The array is used
63
+ * in place and becomes part of the constructed object. It is not cloned.
64
+ * If no data is provided, the constructed object will be empty, but still
65
+ * valid.
66
+ * @extends {jspb.Message}
67
+ * @constructor
68
+ */
69
+ proto.BaseEmailTemplateRequest = function(opt_data) {
70
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
71
+ };
72
+ goog.inherits(proto.BaseEmailTemplateRequest, jspb.Message);
73
+ if (goog.DEBUG && !COMPILED) {
74
+ /**
75
+ * @public
76
+ * @override
77
+ */
78
+ proto.BaseEmailTemplateRequest.displayName = 'proto.BaseEmailTemplateRequest';
79
+ }
80
+ /**
81
+ * Generated by JsPbCodeGenerator.
82
+ * @param {Array=} opt_data Optional initial data array, typically from a
83
+ * server response, or constructed directly in Javascript. The array is used
84
+ * in place and becomes part of the constructed object. It is not cloned.
85
+ * If no data is provided, the constructed object will be empty, but still
86
+ * valid.
87
+ * @extends {jspb.Message}
88
+ * @constructor
89
+ */
90
+ proto.CreateEmailTemplateRequest = function(opt_data) {
91
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
92
+ };
93
+ goog.inherits(proto.CreateEmailTemplateRequest, jspb.Message);
94
+ if (goog.DEBUG && !COMPILED) {
95
+ /**
96
+ * @public
97
+ * @override
98
+ */
99
+ proto.CreateEmailTemplateRequest.displayName = 'proto.CreateEmailTemplateRequest';
100
+ }
101
+ /**
102
+ * Generated by JsPbCodeGenerator.
103
+ * @param {Array=} opt_data Optional initial data array, typically from a
104
+ * server response, or constructed directly in Javascript. The array is used
105
+ * in place and becomes part of the constructed object. It is not cloned.
106
+ * If no data is provided, the constructed object will be empty, but still
107
+ * valid.
108
+ * @extends {jspb.Message}
109
+ * @constructor
110
+ */
111
+ proto.CreateEmailTemplateResponse = function(opt_data) {
112
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
113
+ };
114
+ goog.inherits(proto.CreateEmailTemplateResponse, jspb.Message);
115
+ if (goog.DEBUG && !COMPILED) {
116
+ /**
117
+ * @public
118
+ * @override
119
+ */
120
+ proto.CreateEmailTemplateResponse.displayName = 'proto.CreateEmailTemplateResponse';
121
+ }
122
+ /**
123
+ * Generated by JsPbCodeGenerator.
124
+ * @param {Array=} opt_data Optional initial data array, typically from a
125
+ * server response, or constructed directly in Javascript. The array is used
126
+ * in place and becomes part of the constructed object. It is not cloned.
127
+ * If no data is provided, the constructed object will be empty, but still
128
+ * valid.
129
+ * @extends {jspb.Message}
130
+ * @constructor
131
+ */
132
+ proto.GetEmailTemplateByIdRequest = function(opt_data) {
133
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
134
+ };
135
+ goog.inherits(proto.GetEmailTemplateByIdRequest, jspb.Message);
136
+ if (goog.DEBUG && !COMPILED) {
137
+ /**
138
+ * @public
139
+ * @override
140
+ */
141
+ proto.GetEmailTemplateByIdRequest.displayName = 'proto.GetEmailTemplateByIdRequest';
142
+ }
143
+ /**
144
+ * Generated by JsPbCodeGenerator.
145
+ * @param {Array=} opt_data Optional initial data array, typically from a
146
+ * server response, or constructed directly in Javascript. The array is used
147
+ * in place and becomes part of the constructed object. It is not cloned.
148
+ * If no data is provided, the constructed object will be empty, but still
149
+ * valid.
150
+ * @extends {jspb.Message}
151
+ * @constructor
152
+ */
153
+ proto.GetEmailTemplateByIdResponse = function(opt_data) {
154
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
155
+ };
156
+ goog.inherits(proto.GetEmailTemplateByIdResponse, jspb.Message);
157
+ if (goog.DEBUG && !COMPILED) {
158
+ /**
159
+ * @public
160
+ * @override
161
+ */
162
+ proto.GetEmailTemplateByIdResponse.displayName = 'proto.GetEmailTemplateByIdResponse';
163
+ }
164
+ /**
165
+ * Generated by JsPbCodeGenerator.
166
+ * @param {Array=} opt_data Optional initial data array, typically from a
167
+ * server response, or constructed directly in Javascript. The array is used
168
+ * in place and becomes part of the constructed object. It is not cloned.
169
+ * If no data is provided, the constructed object will be empty, but still
170
+ * valid.
171
+ * @extends {jspb.Message}
172
+ * @constructor
173
+ */
174
+ proto.GetListEmailTemplateRequest = function(opt_data) {
175
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
176
+ };
177
+ goog.inherits(proto.GetListEmailTemplateRequest, jspb.Message);
178
+ if (goog.DEBUG && !COMPILED) {
179
+ /**
180
+ * @public
181
+ * @override
182
+ */
183
+ proto.GetListEmailTemplateRequest.displayName = 'proto.GetListEmailTemplateRequest';
184
+ }
185
+ /**
186
+ * Generated by JsPbCodeGenerator.
187
+ * @param {Array=} opt_data Optional initial data array, typically from a
188
+ * server response, or constructed directly in Javascript. The array is used
189
+ * in place and becomes part of the constructed object. It is not cloned.
190
+ * If no data is provided, the constructed object will be empty, but still
191
+ * valid.
192
+ * @extends {jspb.Message}
193
+ * @constructor
194
+ */
195
+ proto.GetListEmailTemplateResponse = function(opt_data) {
196
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListEmailTemplateResponse.repeatedFields_, null);
197
+ };
198
+ goog.inherits(proto.GetListEmailTemplateResponse, jspb.Message);
199
+ if (goog.DEBUG && !COMPILED) {
200
+ /**
201
+ * @public
202
+ * @override
203
+ */
204
+ proto.GetListEmailTemplateResponse.displayName = 'proto.GetListEmailTemplateResponse';
205
+ }
206
+ /**
207
+ * Generated by JsPbCodeGenerator.
208
+ * @param {Array=} opt_data Optional initial data array, typically from a
209
+ * server response, or constructed directly in Javascript. The array is used
210
+ * in place and becomes part of the constructed object. It is not cloned.
211
+ * If no data is provided, the constructed object will be empty, but still
212
+ * valid.
213
+ * @extends {jspb.Message}
214
+ * @constructor
215
+ */
216
+ proto.UpdateEmailTemplateRequest = function(opt_data) {
217
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
218
+ };
219
+ goog.inherits(proto.UpdateEmailTemplateRequest, jspb.Message);
220
+ if (goog.DEBUG && !COMPILED) {
221
+ /**
222
+ * @public
223
+ * @override
224
+ */
225
+ proto.UpdateEmailTemplateRequest.displayName = 'proto.UpdateEmailTemplateRequest';
226
+ }
227
+ /**
228
+ * Generated by JsPbCodeGenerator.
229
+ * @param {Array=} opt_data Optional initial data array, typically from a
230
+ * server response, or constructed directly in Javascript. The array is used
231
+ * in place and becomes part of the constructed object. It is not cloned.
232
+ * If no data is provided, the constructed object will be empty, but still
233
+ * valid.
234
+ * @extends {jspb.Message}
235
+ * @constructor
236
+ */
237
+ proto.UpdateEmailTemplateResponse = function(opt_data) {
238
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
239
+ };
240
+ goog.inherits(proto.UpdateEmailTemplateResponse, jspb.Message);
241
+ if (goog.DEBUG && !COMPILED) {
242
+ /**
243
+ * @public
244
+ * @override
245
+ */
246
+ proto.UpdateEmailTemplateResponse.displayName = 'proto.UpdateEmailTemplateResponse';
247
+ }
248
+ /**
249
+ * Generated by JsPbCodeGenerator.
250
+ * @param {Array=} opt_data Optional initial data array, typically from a
251
+ * server response, or constructed directly in Javascript. The array is used
252
+ * in place and becomes part of the constructed object. It is not cloned.
253
+ * If no data is provided, the constructed object will be empty, but still
254
+ * valid.
255
+ * @extends {jspb.Message}
256
+ * @constructor
257
+ */
258
+ proto.DeleteEmailTemplateRequest = function(opt_data) {
259
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteEmailTemplateRequest.repeatedFields_, null);
260
+ };
261
+ goog.inherits(proto.DeleteEmailTemplateRequest, jspb.Message);
262
+ if (goog.DEBUG && !COMPILED) {
263
+ /**
264
+ * @public
265
+ * @override
266
+ */
267
+ proto.DeleteEmailTemplateRequest.displayName = 'proto.DeleteEmailTemplateRequest';
268
+ }
269
+ /**
270
+ * Generated by JsPbCodeGenerator.
271
+ * @param {Array=} opt_data Optional initial data array, typically from a
272
+ * server response, or constructed directly in Javascript. The array is used
273
+ * in place and becomes part of the constructed object. It is not cloned.
274
+ * If no data is provided, the constructed object will be empty, but still
275
+ * valid.
276
+ * @extends {jspb.Message}
277
+ * @constructor
278
+ */
279
+ proto.DeleteEmailTemplateResponse = function(opt_data) {
280
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteEmailTemplateResponse.repeatedFields_, null);
281
+ };
282
+ goog.inherits(proto.DeleteEmailTemplateResponse, jspb.Message);
283
+ if (goog.DEBUG && !COMPILED) {
284
+ /**
285
+ * @public
286
+ * @override
287
+ */
288
+ proto.DeleteEmailTemplateResponse.displayName = 'proto.DeleteEmailTemplateResponse';
289
+ }
290
+
291
+
292
+
293
+ if (jspb.Message.GENERATE_TO_OBJECT) {
294
+ /**
295
+ * Creates an object representation of this proto.
296
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
297
+ * Optional fields that are not set will be set to undefined.
298
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
299
+ * For the list of reserved names please see:
300
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
301
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
302
+ * JSPB instance for transitional soy proto support:
303
+ * http://goto/soy-param-migration
304
+ * @return {!Object}
305
+ */
306
+ proto.EmailTemplate.prototype.toObject = function(opt_includeInstance) {
307
+ return proto.EmailTemplate.toObject(opt_includeInstance, this);
308
+ };
309
+
310
+
311
+ /**
312
+ * Static version of the {@see toObject} method.
313
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
314
+ * the JSPB instance for transitional soy proto support:
315
+ * http://goto/soy-param-migration
316
+ * @param {!proto.EmailTemplate} msg The msg instance to transform.
317
+ * @return {!Object}
318
+ * @suppress {unusedLocalVariables} f is only used for nested messages
319
+ */
320
+ proto.EmailTemplate.toObject = function(includeInstance, msg) {
321
+ var f, obj = {
322
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
323
+ subject: jspb.Message.getFieldWithDefault(msg, 2, ""),
324
+ body: jspb.Message.getFieldWithDefault(msg, 3, ""),
325
+ referencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
326
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
327
+ createdAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
328
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
329
+ type: jspb.Message.getFieldWithDefault(msg, 8, "")
330
+ };
331
+
332
+ if (includeInstance) {
333
+ obj.$jspbMessageInstance = msg;
334
+ }
335
+ return obj;
336
+ };
337
+ }
338
+
339
+
340
+ /**
341
+ * Deserializes binary data (in protobuf wire format).
342
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
343
+ * @return {!proto.EmailTemplate}
344
+ */
345
+ proto.EmailTemplate.deserializeBinary = function(bytes) {
346
+ var reader = new jspb.BinaryReader(bytes);
347
+ var msg = new proto.EmailTemplate;
348
+ return proto.EmailTemplate.deserializeBinaryFromReader(msg, reader);
349
+ };
350
+
351
+
352
+ /**
353
+ * Deserializes binary data (in protobuf wire format) from the
354
+ * given reader into the given message object.
355
+ * @param {!proto.EmailTemplate} msg The message object to deserialize into.
356
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
357
+ * @return {!proto.EmailTemplate}
358
+ */
359
+ proto.EmailTemplate.deserializeBinaryFromReader = function(msg, reader) {
360
+ while (reader.nextField()) {
361
+ if (reader.isEndGroup()) {
362
+ break;
363
+ }
364
+ var field = reader.getFieldNumber();
365
+ switch (field) {
366
+ case 1:
367
+ var value = /** @type {number} */ (reader.readInt32());
368
+ msg.setId(value);
369
+ break;
370
+ case 2:
371
+ var value = /** @type {string} */ (reader.readString());
372
+ msg.setSubject(value);
373
+ break;
374
+ case 3:
375
+ var value = /** @type {string} */ (reader.readString());
376
+ msg.setBody(value);
377
+ break;
378
+ case 4:
379
+ var value = /** @type {string} */ (reader.readString());
380
+ msg.setReferencesId(value);
381
+ break;
382
+ case 5:
383
+ var value = /** @type {string} */ (reader.readString());
384
+ msg.setCompaniesReferencesId(value);
385
+ break;
386
+ case 6:
387
+ var value = /** @type {string} */ (reader.readString());
388
+ msg.setCreatedAt(value);
389
+ break;
390
+ case 7:
391
+ var value = /** @type {string} */ (reader.readString());
392
+ msg.setUpdatedAt(value);
393
+ break;
394
+ case 8:
395
+ var value = /** @type {string} */ (reader.readString());
396
+ msg.setType(value);
397
+ break;
398
+ default:
399
+ reader.skipField();
400
+ break;
401
+ }
402
+ }
403
+ return msg;
404
+ };
405
+
406
+
407
+ /**
408
+ * Serializes the message to binary data (in protobuf wire format).
409
+ * @return {!Uint8Array}
410
+ */
411
+ proto.EmailTemplate.prototype.serializeBinary = function() {
412
+ var writer = new jspb.BinaryWriter();
413
+ proto.EmailTemplate.serializeBinaryToWriter(this, writer);
414
+ return writer.getResultBuffer();
415
+ };
416
+
417
+
418
+ /**
419
+ * Serializes the given message to binary data (in protobuf wire
420
+ * format), writing to the given BinaryWriter.
421
+ * @param {!proto.EmailTemplate} message
422
+ * @param {!jspb.BinaryWriter} writer
423
+ * @suppress {unusedLocalVariables} f is only used for nested messages
424
+ */
425
+ proto.EmailTemplate.serializeBinaryToWriter = function(message, writer) {
426
+ var f = undefined;
427
+ f = message.getId();
428
+ if (f !== 0) {
429
+ writer.writeInt32(
430
+ 1,
431
+ f
432
+ );
433
+ }
434
+ f = message.getSubject();
435
+ if (f.length > 0) {
436
+ writer.writeString(
437
+ 2,
438
+ f
439
+ );
440
+ }
441
+ f = message.getBody();
442
+ if (f.length > 0) {
443
+ writer.writeString(
444
+ 3,
445
+ f
446
+ );
447
+ }
448
+ f = message.getReferencesId();
449
+ if (f.length > 0) {
450
+ writer.writeString(
451
+ 4,
452
+ f
453
+ );
454
+ }
455
+ f = message.getCompaniesReferencesId();
456
+ if (f.length > 0) {
457
+ writer.writeString(
458
+ 5,
459
+ f
460
+ );
461
+ }
462
+ f = message.getCreatedAt();
463
+ if (f.length > 0) {
464
+ writer.writeString(
465
+ 6,
466
+ f
467
+ );
468
+ }
469
+ f = message.getUpdatedAt();
470
+ if (f.length > 0) {
471
+ writer.writeString(
472
+ 7,
473
+ f
474
+ );
475
+ }
476
+ f = message.getType();
477
+ if (f.length > 0) {
478
+ writer.writeString(
479
+ 8,
480
+ f
481
+ );
482
+ }
483
+ };
484
+
485
+
486
+ /**
487
+ * optional int32 id = 1;
488
+ * @return {number}
489
+ */
490
+ proto.EmailTemplate.prototype.getId = function() {
491
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
492
+ };
493
+
494
+
495
+ /**
496
+ * @param {number} value
497
+ * @return {!proto.EmailTemplate} returns this
498
+ */
499
+ proto.EmailTemplate.prototype.setId = function(value) {
500
+ return jspb.Message.setProto3IntField(this, 1, value);
501
+ };
502
+
503
+
504
+ /**
505
+ * optional string subject = 2;
506
+ * @return {string}
507
+ */
508
+ proto.EmailTemplate.prototype.getSubject = function() {
509
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
510
+ };
511
+
512
+
513
+ /**
514
+ * @param {string} value
515
+ * @return {!proto.EmailTemplate} returns this
516
+ */
517
+ proto.EmailTemplate.prototype.setSubject = function(value) {
518
+ return jspb.Message.setProto3StringField(this, 2, value);
519
+ };
520
+
521
+
522
+ /**
523
+ * optional string body = 3;
524
+ * @return {string}
525
+ */
526
+ proto.EmailTemplate.prototype.getBody = function() {
527
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
528
+ };
529
+
530
+
531
+ /**
532
+ * @param {string} value
533
+ * @return {!proto.EmailTemplate} returns this
534
+ */
535
+ proto.EmailTemplate.prototype.setBody = function(value) {
536
+ return jspb.Message.setProto3StringField(this, 3, value);
537
+ };
538
+
539
+
540
+ /**
541
+ * optional string references_id = 4;
542
+ * @return {string}
543
+ */
544
+ proto.EmailTemplate.prototype.getReferencesId = function() {
545
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
546
+ };
547
+
548
+
549
+ /**
550
+ * @param {string} value
551
+ * @return {!proto.EmailTemplate} returns this
552
+ */
553
+ proto.EmailTemplate.prototype.setReferencesId = function(value) {
554
+ return jspb.Message.setProto3StringField(this, 4, value);
555
+ };
556
+
557
+
558
+ /**
559
+ * optional string companies_references_id = 5;
560
+ * @return {string}
561
+ */
562
+ proto.EmailTemplate.prototype.getCompaniesReferencesId = function() {
563
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
564
+ };
565
+
566
+
567
+ /**
568
+ * @param {string} value
569
+ * @return {!proto.EmailTemplate} returns this
570
+ */
571
+ proto.EmailTemplate.prototype.setCompaniesReferencesId = function(value) {
572
+ return jspb.Message.setProto3StringField(this, 5, value);
573
+ };
574
+
575
+
576
+ /**
577
+ * optional string created_at = 6;
578
+ * @return {string}
579
+ */
580
+ proto.EmailTemplate.prototype.getCreatedAt = function() {
581
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
582
+ };
583
+
584
+
585
+ /**
586
+ * @param {string} value
587
+ * @return {!proto.EmailTemplate} returns this
588
+ */
589
+ proto.EmailTemplate.prototype.setCreatedAt = function(value) {
590
+ return jspb.Message.setProto3StringField(this, 6, value);
591
+ };
592
+
593
+
594
+ /**
595
+ * optional string updated_at = 7;
596
+ * @return {string}
597
+ */
598
+ proto.EmailTemplate.prototype.getUpdatedAt = function() {
599
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
600
+ };
601
+
602
+
603
+ /**
604
+ * @param {string} value
605
+ * @return {!proto.EmailTemplate} returns this
606
+ */
607
+ proto.EmailTemplate.prototype.setUpdatedAt = function(value) {
608
+ return jspb.Message.setProto3StringField(this, 7, value);
609
+ };
610
+
611
+
612
+ /**
613
+ * optional string type = 8;
614
+ * @return {string}
615
+ */
616
+ proto.EmailTemplate.prototype.getType = function() {
617
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
618
+ };
619
+
620
+
621
+ /**
622
+ * @param {string} value
623
+ * @return {!proto.EmailTemplate} returns this
624
+ */
625
+ proto.EmailTemplate.prototype.setType = function(value) {
626
+ return jspb.Message.setProto3StringField(this, 8, value);
627
+ };
628
+
629
+
630
+
631
+
632
+
633
+ if (jspb.Message.GENERATE_TO_OBJECT) {
634
+ /**
635
+ * Creates an object representation of this proto.
636
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
637
+ * Optional fields that are not set will be set to undefined.
638
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
639
+ * For the list of reserved names please see:
640
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
641
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
642
+ * JSPB instance for transitional soy proto support:
643
+ * http://goto/soy-param-migration
644
+ * @return {!Object}
645
+ */
646
+ proto.BaseEmailTemplateRequest.prototype.toObject = function(opt_includeInstance) {
647
+ return proto.BaseEmailTemplateRequest.toObject(opt_includeInstance, this);
648
+ };
649
+
650
+
651
+ /**
652
+ * Static version of the {@see toObject} method.
653
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
654
+ * the JSPB instance for transitional soy proto support:
655
+ * http://goto/soy-param-migration
656
+ * @param {!proto.BaseEmailTemplateRequest} msg The msg instance to transform.
657
+ * @return {!Object}
658
+ * @suppress {unusedLocalVariables} f is only used for nested messages
659
+ */
660
+ proto.BaseEmailTemplateRequest.toObject = function(includeInstance, msg) {
661
+ var f, obj = {
662
+ subject: jspb.Message.getFieldWithDefault(msg, 1, ""),
663
+ body: jspb.Message.getFieldWithDefault(msg, 2, ""),
664
+ type: jspb.Message.getFieldWithDefault(msg, 3, "")
665
+ };
666
+
667
+ if (includeInstance) {
668
+ obj.$jspbMessageInstance = msg;
669
+ }
670
+ return obj;
671
+ };
672
+ }
673
+
674
+
675
+ /**
676
+ * Deserializes binary data (in protobuf wire format).
677
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
678
+ * @return {!proto.BaseEmailTemplateRequest}
679
+ */
680
+ proto.BaseEmailTemplateRequest.deserializeBinary = function(bytes) {
681
+ var reader = new jspb.BinaryReader(bytes);
682
+ var msg = new proto.BaseEmailTemplateRequest;
683
+ return proto.BaseEmailTemplateRequest.deserializeBinaryFromReader(msg, reader);
684
+ };
685
+
686
+
687
+ /**
688
+ * Deserializes binary data (in protobuf wire format) from the
689
+ * given reader into the given message object.
690
+ * @param {!proto.BaseEmailTemplateRequest} msg The message object to deserialize into.
691
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
692
+ * @return {!proto.BaseEmailTemplateRequest}
693
+ */
694
+ proto.BaseEmailTemplateRequest.deserializeBinaryFromReader = function(msg, reader) {
695
+ while (reader.nextField()) {
696
+ if (reader.isEndGroup()) {
697
+ break;
698
+ }
699
+ var field = reader.getFieldNumber();
700
+ switch (field) {
701
+ case 1:
702
+ var value = /** @type {string} */ (reader.readString());
703
+ msg.setSubject(value);
704
+ break;
705
+ case 2:
706
+ var value = /** @type {string} */ (reader.readString());
707
+ msg.setBody(value);
708
+ break;
709
+ case 3:
710
+ var value = /** @type {string} */ (reader.readString());
711
+ msg.setType(value);
712
+ break;
713
+ default:
714
+ reader.skipField();
715
+ break;
716
+ }
717
+ }
718
+ return msg;
719
+ };
720
+
721
+
722
+ /**
723
+ * Serializes the message to binary data (in protobuf wire format).
724
+ * @return {!Uint8Array}
725
+ */
726
+ proto.BaseEmailTemplateRequest.prototype.serializeBinary = function() {
727
+ var writer = new jspb.BinaryWriter();
728
+ proto.BaseEmailTemplateRequest.serializeBinaryToWriter(this, writer);
729
+ return writer.getResultBuffer();
730
+ };
731
+
732
+
733
+ /**
734
+ * Serializes the given message to binary data (in protobuf wire
735
+ * format), writing to the given BinaryWriter.
736
+ * @param {!proto.BaseEmailTemplateRequest} message
737
+ * @param {!jspb.BinaryWriter} writer
738
+ * @suppress {unusedLocalVariables} f is only used for nested messages
739
+ */
740
+ proto.BaseEmailTemplateRequest.serializeBinaryToWriter = function(message, writer) {
741
+ var f = undefined;
742
+ f = message.getSubject();
743
+ if (f.length > 0) {
744
+ writer.writeString(
745
+ 1,
746
+ f
747
+ );
748
+ }
749
+ f = message.getBody();
750
+ if (f.length > 0) {
751
+ writer.writeString(
752
+ 2,
753
+ f
754
+ );
755
+ }
756
+ f = message.getType();
757
+ if (f.length > 0) {
758
+ writer.writeString(
759
+ 3,
760
+ f
761
+ );
762
+ }
763
+ };
764
+
765
+
766
+ /**
767
+ * optional string subject = 1;
768
+ * @return {string}
769
+ */
770
+ proto.BaseEmailTemplateRequest.prototype.getSubject = function() {
771
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
772
+ };
773
+
774
+
775
+ /**
776
+ * @param {string} value
777
+ * @return {!proto.BaseEmailTemplateRequest} returns this
778
+ */
779
+ proto.BaseEmailTemplateRequest.prototype.setSubject = function(value) {
780
+ return jspb.Message.setProto3StringField(this, 1, value);
781
+ };
782
+
783
+
784
+ /**
785
+ * optional string body = 2;
786
+ * @return {string}
787
+ */
788
+ proto.BaseEmailTemplateRequest.prototype.getBody = function() {
789
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
790
+ };
791
+
792
+
793
+ /**
794
+ * @param {string} value
795
+ * @return {!proto.BaseEmailTemplateRequest} returns this
796
+ */
797
+ proto.BaseEmailTemplateRequest.prototype.setBody = function(value) {
798
+ return jspb.Message.setProto3StringField(this, 2, value);
799
+ };
800
+
801
+
802
+ /**
803
+ * optional string type = 3;
804
+ * @return {string}
805
+ */
806
+ proto.BaseEmailTemplateRequest.prototype.getType = function() {
807
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
808
+ };
809
+
810
+
811
+ /**
812
+ * @param {string} value
813
+ * @return {!proto.BaseEmailTemplateRequest} returns this
814
+ */
815
+ proto.BaseEmailTemplateRequest.prototype.setType = function(value) {
816
+ return jspb.Message.setProto3StringField(this, 3, value);
817
+ };
818
+
819
+
820
+
821
+
822
+
823
+ if (jspb.Message.GENERATE_TO_OBJECT) {
824
+ /**
825
+ * Creates an object representation of this proto.
826
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
827
+ * Optional fields that are not set will be set to undefined.
828
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
829
+ * For the list of reserved names please see:
830
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
831
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
832
+ * JSPB instance for transitional soy proto support:
833
+ * http://goto/soy-param-migration
834
+ * @return {!Object}
835
+ */
836
+ proto.CreateEmailTemplateRequest.prototype.toObject = function(opt_includeInstance) {
837
+ return proto.CreateEmailTemplateRequest.toObject(opt_includeInstance, this);
838
+ };
839
+
840
+
841
+ /**
842
+ * Static version of the {@see toObject} method.
843
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
844
+ * the JSPB instance for transitional soy proto support:
845
+ * http://goto/soy-param-migration
846
+ * @param {!proto.CreateEmailTemplateRequest} msg The msg instance to transform.
847
+ * @return {!Object}
848
+ * @suppress {unusedLocalVariables} f is only used for nested messages
849
+ */
850
+ proto.CreateEmailTemplateRequest.toObject = function(includeInstance, msg) {
851
+ var f, obj = {
852
+ baseRequest: (f = msg.getBaseRequest()) && proto.BaseEmailTemplateRequest.toObject(includeInstance, f)
853
+ };
854
+
855
+ if (includeInstance) {
856
+ obj.$jspbMessageInstance = msg;
857
+ }
858
+ return obj;
859
+ };
860
+ }
861
+
862
+
863
+ /**
864
+ * Deserializes binary data (in protobuf wire format).
865
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
866
+ * @return {!proto.CreateEmailTemplateRequest}
867
+ */
868
+ proto.CreateEmailTemplateRequest.deserializeBinary = function(bytes) {
869
+ var reader = new jspb.BinaryReader(bytes);
870
+ var msg = new proto.CreateEmailTemplateRequest;
871
+ return proto.CreateEmailTemplateRequest.deserializeBinaryFromReader(msg, reader);
872
+ };
873
+
874
+
875
+ /**
876
+ * Deserializes binary data (in protobuf wire format) from the
877
+ * given reader into the given message object.
878
+ * @param {!proto.CreateEmailTemplateRequest} msg The message object to deserialize into.
879
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
880
+ * @return {!proto.CreateEmailTemplateRequest}
881
+ */
882
+ proto.CreateEmailTemplateRequest.deserializeBinaryFromReader = function(msg, reader) {
883
+ while (reader.nextField()) {
884
+ if (reader.isEndGroup()) {
885
+ break;
886
+ }
887
+ var field = reader.getFieldNumber();
888
+ switch (field) {
889
+ case 1:
890
+ var value = new proto.BaseEmailTemplateRequest;
891
+ reader.readMessage(value,proto.BaseEmailTemplateRequest.deserializeBinaryFromReader);
892
+ msg.setBaseRequest(value);
893
+ break;
894
+ default:
895
+ reader.skipField();
896
+ break;
897
+ }
898
+ }
899
+ return msg;
900
+ };
901
+
902
+
903
+ /**
904
+ * Serializes the message to binary data (in protobuf wire format).
905
+ * @return {!Uint8Array}
906
+ */
907
+ proto.CreateEmailTemplateRequest.prototype.serializeBinary = function() {
908
+ var writer = new jspb.BinaryWriter();
909
+ proto.CreateEmailTemplateRequest.serializeBinaryToWriter(this, writer);
910
+ return writer.getResultBuffer();
911
+ };
912
+
913
+
914
+ /**
915
+ * Serializes the given message to binary data (in protobuf wire
916
+ * format), writing to the given BinaryWriter.
917
+ * @param {!proto.CreateEmailTemplateRequest} message
918
+ * @param {!jspb.BinaryWriter} writer
919
+ * @suppress {unusedLocalVariables} f is only used for nested messages
920
+ */
921
+ proto.CreateEmailTemplateRequest.serializeBinaryToWriter = function(message, writer) {
922
+ var f = undefined;
923
+ f = message.getBaseRequest();
924
+ if (f != null) {
925
+ writer.writeMessage(
926
+ 1,
927
+ f,
928
+ proto.BaseEmailTemplateRequest.serializeBinaryToWriter
929
+ );
930
+ }
931
+ };
932
+
933
+
934
+ /**
935
+ * optional BaseEmailTemplateRequest base_request = 1;
936
+ * @return {?proto.BaseEmailTemplateRequest}
937
+ */
938
+ proto.CreateEmailTemplateRequest.prototype.getBaseRequest = function() {
939
+ return /** @type{?proto.BaseEmailTemplateRequest} */ (
940
+ jspb.Message.getWrapperField(this, proto.BaseEmailTemplateRequest, 1));
941
+ };
942
+
943
+
944
+ /**
945
+ * @param {?proto.BaseEmailTemplateRequest|undefined} value
946
+ * @return {!proto.CreateEmailTemplateRequest} returns this
947
+ */
948
+ proto.CreateEmailTemplateRequest.prototype.setBaseRequest = function(value) {
949
+ return jspb.Message.setWrapperField(this, 1, value);
950
+ };
951
+
952
+
953
+ /**
954
+ * Clears the message field making it undefined.
955
+ * @return {!proto.CreateEmailTemplateRequest} returns this
956
+ */
957
+ proto.CreateEmailTemplateRequest.prototype.clearBaseRequest = function() {
958
+ return this.setBaseRequest(undefined);
959
+ };
960
+
961
+
962
+ /**
963
+ * Returns whether this field is set.
964
+ * @return {boolean}
965
+ */
966
+ proto.CreateEmailTemplateRequest.prototype.hasBaseRequest = function() {
967
+ return jspb.Message.getField(this, 1) != null;
968
+ };
969
+
970
+
971
+
972
+
973
+
974
+ if (jspb.Message.GENERATE_TO_OBJECT) {
975
+ /**
976
+ * Creates an object representation of this proto.
977
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
978
+ * Optional fields that are not set will be set to undefined.
979
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
980
+ * For the list of reserved names please see:
981
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
982
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
983
+ * JSPB instance for transitional soy proto support:
984
+ * http://goto/soy-param-migration
985
+ * @return {!Object}
986
+ */
987
+ proto.CreateEmailTemplateResponse.prototype.toObject = function(opt_includeInstance) {
988
+ return proto.CreateEmailTemplateResponse.toObject(opt_includeInstance, this);
989
+ };
990
+
991
+
992
+ /**
993
+ * Static version of the {@see toObject} method.
994
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
995
+ * the JSPB instance for transitional soy proto support:
996
+ * http://goto/soy-param-migration
997
+ * @param {!proto.CreateEmailTemplateResponse} msg The msg instance to transform.
998
+ * @return {!Object}
999
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1000
+ */
1001
+ proto.CreateEmailTemplateResponse.toObject = function(includeInstance, msg) {
1002
+ var f, obj = {
1003
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f),
1004
+ emailTemplate: (f = msg.getEmailTemplate()) && proto.EmailTemplate.toObject(includeInstance, f)
1005
+ };
1006
+
1007
+ if (includeInstance) {
1008
+ obj.$jspbMessageInstance = msg;
1009
+ }
1010
+ return obj;
1011
+ };
1012
+ }
1013
+
1014
+
1015
+ /**
1016
+ * Deserializes binary data (in protobuf wire format).
1017
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1018
+ * @return {!proto.CreateEmailTemplateResponse}
1019
+ */
1020
+ proto.CreateEmailTemplateResponse.deserializeBinary = function(bytes) {
1021
+ var reader = new jspb.BinaryReader(bytes);
1022
+ var msg = new proto.CreateEmailTemplateResponse;
1023
+ return proto.CreateEmailTemplateResponse.deserializeBinaryFromReader(msg, reader);
1024
+ };
1025
+
1026
+
1027
+ /**
1028
+ * Deserializes binary data (in protobuf wire format) from the
1029
+ * given reader into the given message object.
1030
+ * @param {!proto.CreateEmailTemplateResponse} msg The message object to deserialize into.
1031
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1032
+ * @return {!proto.CreateEmailTemplateResponse}
1033
+ */
1034
+ proto.CreateEmailTemplateResponse.deserializeBinaryFromReader = function(msg, reader) {
1035
+ while (reader.nextField()) {
1036
+ if (reader.isEndGroup()) {
1037
+ break;
1038
+ }
1039
+ var field = reader.getFieldNumber();
1040
+ switch (field) {
1041
+ case 1:
1042
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1043
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1044
+ msg.setMeta(value);
1045
+ break;
1046
+ case 2:
1047
+ var value = new proto.EmailTemplate;
1048
+ reader.readMessage(value,proto.EmailTemplate.deserializeBinaryFromReader);
1049
+ msg.setEmailTemplate(value);
1050
+ break;
1051
+ default:
1052
+ reader.skipField();
1053
+ break;
1054
+ }
1055
+ }
1056
+ return msg;
1057
+ };
1058
+
1059
+
1060
+ /**
1061
+ * Serializes the message to binary data (in protobuf wire format).
1062
+ * @return {!Uint8Array}
1063
+ */
1064
+ proto.CreateEmailTemplateResponse.prototype.serializeBinary = function() {
1065
+ var writer = new jspb.BinaryWriter();
1066
+ proto.CreateEmailTemplateResponse.serializeBinaryToWriter(this, writer);
1067
+ return writer.getResultBuffer();
1068
+ };
1069
+
1070
+
1071
+ /**
1072
+ * Serializes the given message to binary data (in protobuf wire
1073
+ * format), writing to the given BinaryWriter.
1074
+ * @param {!proto.CreateEmailTemplateResponse} message
1075
+ * @param {!jspb.BinaryWriter} writer
1076
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1077
+ */
1078
+ proto.CreateEmailTemplateResponse.serializeBinaryToWriter = function(message, writer) {
1079
+ var f = undefined;
1080
+ f = message.getMeta();
1081
+ if (f != null) {
1082
+ writer.writeMessage(
1083
+ 1,
1084
+ f,
1085
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1086
+ );
1087
+ }
1088
+ f = message.getEmailTemplate();
1089
+ if (f != null) {
1090
+ writer.writeMessage(
1091
+ 2,
1092
+ f,
1093
+ proto.EmailTemplate.serializeBinaryToWriter
1094
+ );
1095
+ }
1096
+ };
1097
+
1098
+
1099
+ /**
1100
+ * optional prisca.v1.global.meta.Meta meta = 1;
1101
+ * @return {?proto.prisca.v1.global.meta.Meta}
1102
+ */
1103
+ proto.CreateEmailTemplateResponse.prototype.getMeta = function() {
1104
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1105
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 1));
1106
+ };
1107
+
1108
+
1109
+ /**
1110
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1111
+ * @return {!proto.CreateEmailTemplateResponse} returns this
1112
+ */
1113
+ proto.CreateEmailTemplateResponse.prototype.setMeta = function(value) {
1114
+ return jspb.Message.setWrapperField(this, 1, value);
1115
+ };
1116
+
1117
+
1118
+ /**
1119
+ * Clears the message field making it undefined.
1120
+ * @return {!proto.CreateEmailTemplateResponse} returns this
1121
+ */
1122
+ proto.CreateEmailTemplateResponse.prototype.clearMeta = function() {
1123
+ return this.setMeta(undefined);
1124
+ };
1125
+
1126
+
1127
+ /**
1128
+ * Returns whether this field is set.
1129
+ * @return {boolean}
1130
+ */
1131
+ proto.CreateEmailTemplateResponse.prototype.hasMeta = function() {
1132
+ return jspb.Message.getField(this, 1) != null;
1133
+ };
1134
+
1135
+
1136
+ /**
1137
+ * optional EmailTemplate email_template = 2;
1138
+ * @return {?proto.EmailTemplate}
1139
+ */
1140
+ proto.CreateEmailTemplateResponse.prototype.getEmailTemplate = function() {
1141
+ return /** @type{?proto.EmailTemplate} */ (
1142
+ jspb.Message.getWrapperField(this, proto.EmailTemplate, 2));
1143
+ };
1144
+
1145
+
1146
+ /**
1147
+ * @param {?proto.EmailTemplate|undefined} value
1148
+ * @return {!proto.CreateEmailTemplateResponse} returns this
1149
+ */
1150
+ proto.CreateEmailTemplateResponse.prototype.setEmailTemplate = function(value) {
1151
+ return jspb.Message.setWrapperField(this, 2, value);
1152
+ };
1153
+
1154
+
1155
+ /**
1156
+ * Clears the message field making it undefined.
1157
+ * @return {!proto.CreateEmailTemplateResponse} returns this
1158
+ */
1159
+ proto.CreateEmailTemplateResponse.prototype.clearEmailTemplate = function() {
1160
+ return this.setEmailTemplate(undefined);
1161
+ };
1162
+
1163
+
1164
+ /**
1165
+ * Returns whether this field is set.
1166
+ * @return {boolean}
1167
+ */
1168
+ proto.CreateEmailTemplateResponse.prototype.hasEmailTemplate = function() {
1169
+ return jspb.Message.getField(this, 2) != null;
1170
+ };
1171
+
1172
+
1173
+
1174
+
1175
+
1176
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1177
+ /**
1178
+ * Creates an object representation of this proto.
1179
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1180
+ * Optional fields that are not set will be set to undefined.
1181
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1182
+ * For the list of reserved names please see:
1183
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1184
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1185
+ * JSPB instance for transitional soy proto support:
1186
+ * http://goto/soy-param-migration
1187
+ * @return {!Object}
1188
+ */
1189
+ proto.GetEmailTemplateByIdRequest.prototype.toObject = function(opt_includeInstance) {
1190
+ return proto.GetEmailTemplateByIdRequest.toObject(opt_includeInstance, this);
1191
+ };
1192
+
1193
+
1194
+ /**
1195
+ * Static version of the {@see toObject} method.
1196
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1197
+ * the JSPB instance for transitional soy proto support:
1198
+ * http://goto/soy-param-migration
1199
+ * @param {!proto.GetEmailTemplateByIdRequest} msg The msg instance to transform.
1200
+ * @return {!Object}
1201
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1202
+ */
1203
+ proto.GetEmailTemplateByIdRequest.toObject = function(includeInstance, msg) {
1204
+ var f, obj = {
1205
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1206
+ };
1207
+
1208
+ if (includeInstance) {
1209
+ obj.$jspbMessageInstance = msg;
1210
+ }
1211
+ return obj;
1212
+ };
1213
+ }
1214
+
1215
+
1216
+ /**
1217
+ * Deserializes binary data (in protobuf wire format).
1218
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1219
+ * @return {!proto.GetEmailTemplateByIdRequest}
1220
+ */
1221
+ proto.GetEmailTemplateByIdRequest.deserializeBinary = function(bytes) {
1222
+ var reader = new jspb.BinaryReader(bytes);
1223
+ var msg = new proto.GetEmailTemplateByIdRequest;
1224
+ return proto.GetEmailTemplateByIdRequest.deserializeBinaryFromReader(msg, reader);
1225
+ };
1226
+
1227
+
1228
+ /**
1229
+ * Deserializes binary data (in protobuf wire format) from the
1230
+ * given reader into the given message object.
1231
+ * @param {!proto.GetEmailTemplateByIdRequest} msg The message object to deserialize into.
1232
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1233
+ * @return {!proto.GetEmailTemplateByIdRequest}
1234
+ */
1235
+ proto.GetEmailTemplateByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1236
+ while (reader.nextField()) {
1237
+ if (reader.isEndGroup()) {
1238
+ break;
1239
+ }
1240
+ var field = reader.getFieldNumber();
1241
+ switch (field) {
1242
+ case 1:
1243
+ var value = /** @type {string} */ (reader.readString());
1244
+ msg.setReferencesId(value);
1245
+ break;
1246
+ default:
1247
+ reader.skipField();
1248
+ break;
1249
+ }
1250
+ }
1251
+ return msg;
1252
+ };
1253
+
1254
+
1255
+ /**
1256
+ * Serializes the message to binary data (in protobuf wire format).
1257
+ * @return {!Uint8Array}
1258
+ */
1259
+ proto.GetEmailTemplateByIdRequest.prototype.serializeBinary = function() {
1260
+ var writer = new jspb.BinaryWriter();
1261
+ proto.GetEmailTemplateByIdRequest.serializeBinaryToWriter(this, writer);
1262
+ return writer.getResultBuffer();
1263
+ };
1264
+
1265
+
1266
+ /**
1267
+ * Serializes the given message to binary data (in protobuf wire
1268
+ * format), writing to the given BinaryWriter.
1269
+ * @param {!proto.GetEmailTemplateByIdRequest} message
1270
+ * @param {!jspb.BinaryWriter} writer
1271
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1272
+ */
1273
+ proto.GetEmailTemplateByIdRequest.serializeBinaryToWriter = function(message, writer) {
1274
+ var f = undefined;
1275
+ f = message.getReferencesId();
1276
+ if (f.length > 0) {
1277
+ writer.writeString(
1278
+ 1,
1279
+ f
1280
+ );
1281
+ }
1282
+ };
1283
+
1284
+
1285
+ /**
1286
+ * optional string references_id = 1;
1287
+ * @return {string}
1288
+ */
1289
+ proto.GetEmailTemplateByIdRequest.prototype.getReferencesId = function() {
1290
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1291
+ };
1292
+
1293
+
1294
+ /**
1295
+ * @param {string} value
1296
+ * @return {!proto.GetEmailTemplateByIdRequest} returns this
1297
+ */
1298
+ proto.GetEmailTemplateByIdRequest.prototype.setReferencesId = function(value) {
1299
+ return jspb.Message.setProto3StringField(this, 1, value);
1300
+ };
1301
+
1302
+
1303
+
1304
+
1305
+
1306
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1307
+ /**
1308
+ * Creates an object representation of this proto.
1309
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1310
+ * Optional fields that are not set will be set to undefined.
1311
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1312
+ * For the list of reserved names please see:
1313
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1314
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1315
+ * JSPB instance for transitional soy proto support:
1316
+ * http://goto/soy-param-migration
1317
+ * @return {!Object}
1318
+ */
1319
+ proto.GetEmailTemplateByIdResponse.prototype.toObject = function(opt_includeInstance) {
1320
+ return proto.GetEmailTemplateByIdResponse.toObject(opt_includeInstance, this);
1321
+ };
1322
+
1323
+
1324
+ /**
1325
+ * Static version of the {@see toObject} method.
1326
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1327
+ * the JSPB instance for transitional soy proto support:
1328
+ * http://goto/soy-param-migration
1329
+ * @param {!proto.GetEmailTemplateByIdResponse} msg The msg instance to transform.
1330
+ * @return {!Object}
1331
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1332
+ */
1333
+ proto.GetEmailTemplateByIdResponse.toObject = function(includeInstance, msg) {
1334
+ var f, obj = {
1335
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f),
1336
+ emailTemplate: (f = msg.getEmailTemplate()) && proto.EmailTemplate.toObject(includeInstance, f)
1337
+ };
1338
+
1339
+ if (includeInstance) {
1340
+ obj.$jspbMessageInstance = msg;
1341
+ }
1342
+ return obj;
1343
+ };
1344
+ }
1345
+
1346
+
1347
+ /**
1348
+ * Deserializes binary data (in protobuf wire format).
1349
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1350
+ * @return {!proto.GetEmailTemplateByIdResponse}
1351
+ */
1352
+ proto.GetEmailTemplateByIdResponse.deserializeBinary = function(bytes) {
1353
+ var reader = new jspb.BinaryReader(bytes);
1354
+ var msg = new proto.GetEmailTemplateByIdResponse;
1355
+ return proto.GetEmailTemplateByIdResponse.deserializeBinaryFromReader(msg, reader);
1356
+ };
1357
+
1358
+
1359
+ /**
1360
+ * Deserializes binary data (in protobuf wire format) from the
1361
+ * given reader into the given message object.
1362
+ * @param {!proto.GetEmailTemplateByIdResponse} msg The message object to deserialize into.
1363
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1364
+ * @return {!proto.GetEmailTemplateByIdResponse}
1365
+ */
1366
+ proto.GetEmailTemplateByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
1367
+ while (reader.nextField()) {
1368
+ if (reader.isEndGroup()) {
1369
+ break;
1370
+ }
1371
+ var field = reader.getFieldNumber();
1372
+ switch (field) {
1373
+ case 1:
1374
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1375
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1376
+ msg.setMeta(value);
1377
+ break;
1378
+ case 2:
1379
+ var value = new proto.EmailTemplate;
1380
+ reader.readMessage(value,proto.EmailTemplate.deserializeBinaryFromReader);
1381
+ msg.setEmailTemplate(value);
1382
+ break;
1383
+ default:
1384
+ reader.skipField();
1385
+ break;
1386
+ }
1387
+ }
1388
+ return msg;
1389
+ };
1390
+
1391
+
1392
+ /**
1393
+ * Serializes the message to binary data (in protobuf wire format).
1394
+ * @return {!Uint8Array}
1395
+ */
1396
+ proto.GetEmailTemplateByIdResponse.prototype.serializeBinary = function() {
1397
+ var writer = new jspb.BinaryWriter();
1398
+ proto.GetEmailTemplateByIdResponse.serializeBinaryToWriter(this, writer);
1399
+ return writer.getResultBuffer();
1400
+ };
1401
+
1402
+
1403
+ /**
1404
+ * Serializes the given message to binary data (in protobuf wire
1405
+ * format), writing to the given BinaryWriter.
1406
+ * @param {!proto.GetEmailTemplateByIdResponse} message
1407
+ * @param {!jspb.BinaryWriter} writer
1408
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1409
+ */
1410
+ proto.GetEmailTemplateByIdResponse.serializeBinaryToWriter = function(message, writer) {
1411
+ var f = undefined;
1412
+ f = message.getMeta();
1413
+ if (f != null) {
1414
+ writer.writeMessage(
1415
+ 1,
1416
+ f,
1417
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1418
+ );
1419
+ }
1420
+ f = message.getEmailTemplate();
1421
+ if (f != null) {
1422
+ writer.writeMessage(
1423
+ 2,
1424
+ f,
1425
+ proto.EmailTemplate.serializeBinaryToWriter
1426
+ );
1427
+ }
1428
+ };
1429
+
1430
+
1431
+ /**
1432
+ * optional prisca.v1.global.meta.Meta meta = 1;
1433
+ * @return {?proto.prisca.v1.global.meta.Meta}
1434
+ */
1435
+ proto.GetEmailTemplateByIdResponse.prototype.getMeta = function() {
1436
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1437
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 1));
1438
+ };
1439
+
1440
+
1441
+ /**
1442
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1443
+ * @return {!proto.GetEmailTemplateByIdResponse} returns this
1444
+ */
1445
+ proto.GetEmailTemplateByIdResponse.prototype.setMeta = function(value) {
1446
+ return jspb.Message.setWrapperField(this, 1, value);
1447
+ };
1448
+
1449
+
1450
+ /**
1451
+ * Clears the message field making it undefined.
1452
+ * @return {!proto.GetEmailTemplateByIdResponse} returns this
1453
+ */
1454
+ proto.GetEmailTemplateByIdResponse.prototype.clearMeta = function() {
1455
+ return this.setMeta(undefined);
1456
+ };
1457
+
1458
+
1459
+ /**
1460
+ * Returns whether this field is set.
1461
+ * @return {boolean}
1462
+ */
1463
+ proto.GetEmailTemplateByIdResponse.prototype.hasMeta = function() {
1464
+ return jspb.Message.getField(this, 1) != null;
1465
+ };
1466
+
1467
+
1468
+ /**
1469
+ * optional EmailTemplate email_template = 2;
1470
+ * @return {?proto.EmailTemplate}
1471
+ */
1472
+ proto.GetEmailTemplateByIdResponse.prototype.getEmailTemplate = function() {
1473
+ return /** @type{?proto.EmailTemplate} */ (
1474
+ jspb.Message.getWrapperField(this, proto.EmailTemplate, 2));
1475
+ };
1476
+
1477
+
1478
+ /**
1479
+ * @param {?proto.EmailTemplate|undefined} value
1480
+ * @return {!proto.GetEmailTemplateByIdResponse} returns this
1481
+ */
1482
+ proto.GetEmailTemplateByIdResponse.prototype.setEmailTemplate = function(value) {
1483
+ return jspb.Message.setWrapperField(this, 2, value);
1484
+ };
1485
+
1486
+
1487
+ /**
1488
+ * Clears the message field making it undefined.
1489
+ * @return {!proto.GetEmailTemplateByIdResponse} returns this
1490
+ */
1491
+ proto.GetEmailTemplateByIdResponse.prototype.clearEmailTemplate = function() {
1492
+ return this.setEmailTemplate(undefined);
1493
+ };
1494
+
1495
+
1496
+ /**
1497
+ * Returns whether this field is set.
1498
+ * @return {boolean}
1499
+ */
1500
+ proto.GetEmailTemplateByIdResponse.prototype.hasEmailTemplate = function() {
1501
+ return jspb.Message.getField(this, 2) != null;
1502
+ };
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1509
+ /**
1510
+ * Creates an object representation of this proto.
1511
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1512
+ * Optional fields that are not set will be set to undefined.
1513
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1514
+ * For the list of reserved names please see:
1515
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1516
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1517
+ * JSPB instance for transitional soy proto support:
1518
+ * http://goto/soy-param-migration
1519
+ * @return {!Object}
1520
+ */
1521
+ proto.GetListEmailTemplateRequest.prototype.toObject = function(opt_includeInstance) {
1522
+ return proto.GetListEmailTemplateRequest.toObject(opt_includeInstance, this);
1523
+ };
1524
+
1525
+
1526
+ /**
1527
+ * Static version of the {@see toObject} method.
1528
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1529
+ * the JSPB instance for transitional soy proto support:
1530
+ * http://goto/soy-param-migration
1531
+ * @param {!proto.GetListEmailTemplateRequest} msg The msg instance to transform.
1532
+ * @return {!Object}
1533
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1534
+ */
1535
+ proto.GetListEmailTemplateRequest.toObject = function(includeInstance, msg) {
1536
+ var f, obj = {
1537
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1538
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1539
+ };
1540
+
1541
+ if (includeInstance) {
1542
+ obj.$jspbMessageInstance = msg;
1543
+ }
1544
+ return obj;
1545
+ };
1546
+ }
1547
+
1548
+
1549
+ /**
1550
+ * Deserializes binary data (in protobuf wire format).
1551
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1552
+ * @return {!proto.GetListEmailTemplateRequest}
1553
+ */
1554
+ proto.GetListEmailTemplateRequest.deserializeBinary = function(bytes) {
1555
+ var reader = new jspb.BinaryReader(bytes);
1556
+ var msg = new proto.GetListEmailTemplateRequest;
1557
+ return proto.GetListEmailTemplateRequest.deserializeBinaryFromReader(msg, reader);
1558
+ };
1559
+
1560
+
1561
+ /**
1562
+ * Deserializes binary data (in protobuf wire format) from the
1563
+ * given reader into the given message object.
1564
+ * @param {!proto.GetListEmailTemplateRequest} msg The message object to deserialize into.
1565
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1566
+ * @return {!proto.GetListEmailTemplateRequest}
1567
+ */
1568
+ proto.GetListEmailTemplateRequest.deserializeBinaryFromReader = function(msg, reader) {
1569
+ while (reader.nextField()) {
1570
+ if (reader.isEndGroup()) {
1571
+ break;
1572
+ }
1573
+ var field = reader.getFieldNumber();
1574
+ switch (field) {
1575
+ case 1:
1576
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1577
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1578
+ msg.setPagination(value);
1579
+ break;
1580
+ case 2:
1581
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1582
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1583
+ msg.setQuery(value);
1584
+ break;
1585
+ default:
1586
+ reader.skipField();
1587
+ break;
1588
+ }
1589
+ }
1590
+ return msg;
1591
+ };
1592
+
1593
+
1594
+ /**
1595
+ * Serializes the message to binary data (in protobuf wire format).
1596
+ * @return {!Uint8Array}
1597
+ */
1598
+ proto.GetListEmailTemplateRequest.prototype.serializeBinary = function() {
1599
+ var writer = new jspb.BinaryWriter();
1600
+ proto.GetListEmailTemplateRequest.serializeBinaryToWriter(this, writer);
1601
+ return writer.getResultBuffer();
1602
+ };
1603
+
1604
+
1605
+ /**
1606
+ * Serializes the given message to binary data (in protobuf wire
1607
+ * format), writing to the given BinaryWriter.
1608
+ * @param {!proto.GetListEmailTemplateRequest} message
1609
+ * @param {!jspb.BinaryWriter} writer
1610
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1611
+ */
1612
+ proto.GetListEmailTemplateRequest.serializeBinaryToWriter = function(message, writer) {
1613
+ var f = undefined;
1614
+ f = message.getPagination();
1615
+ if (f != null) {
1616
+ writer.writeMessage(
1617
+ 1,
1618
+ f,
1619
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1620
+ );
1621
+ }
1622
+ f = message.getQuery();
1623
+ if (f != null) {
1624
+ writer.writeMessage(
1625
+ 2,
1626
+ f,
1627
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1628
+ );
1629
+ }
1630
+ };
1631
+
1632
+
1633
+ /**
1634
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1635
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1636
+ */
1637
+ proto.GetListEmailTemplateRequest.prototype.getPagination = function() {
1638
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1639
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1640
+ };
1641
+
1642
+
1643
+ /**
1644
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1645
+ * @return {!proto.GetListEmailTemplateRequest} returns this
1646
+ */
1647
+ proto.GetListEmailTemplateRequest.prototype.setPagination = function(value) {
1648
+ return jspb.Message.setWrapperField(this, 1, value);
1649
+ };
1650
+
1651
+
1652
+ /**
1653
+ * Clears the message field making it undefined.
1654
+ * @return {!proto.GetListEmailTemplateRequest} returns this
1655
+ */
1656
+ proto.GetListEmailTemplateRequest.prototype.clearPagination = function() {
1657
+ return this.setPagination(undefined);
1658
+ };
1659
+
1660
+
1661
+ /**
1662
+ * Returns whether this field is set.
1663
+ * @return {boolean}
1664
+ */
1665
+ proto.GetListEmailTemplateRequest.prototype.hasPagination = function() {
1666
+ return jspb.Message.getField(this, 1) != null;
1667
+ };
1668
+
1669
+
1670
+ /**
1671
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1672
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1673
+ */
1674
+ proto.GetListEmailTemplateRequest.prototype.getQuery = function() {
1675
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1676
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1677
+ };
1678
+
1679
+
1680
+ /**
1681
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1682
+ * @return {!proto.GetListEmailTemplateRequest} returns this
1683
+ */
1684
+ proto.GetListEmailTemplateRequest.prototype.setQuery = function(value) {
1685
+ return jspb.Message.setWrapperField(this, 2, value);
1686
+ };
1687
+
1688
+
1689
+ /**
1690
+ * Clears the message field making it undefined.
1691
+ * @return {!proto.GetListEmailTemplateRequest} returns this
1692
+ */
1693
+ proto.GetListEmailTemplateRequest.prototype.clearQuery = function() {
1694
+ return this.setQuery(undefined);
1695
+ };
1696
+
1697
+
1698
+ /**
1699
+ * Returns whether this field is set.
1700
+ * @return {boolean}
1701
+ */
1702
+ proto.GetListEmailTemplateRequest.prototype.hasQuery = function() {
1703
+ return jspb.Message.getField(this, 2) != null;
1704
+ };
1705
+
1706
+
1707
+
1708
+ /**
1709
+ * List of repeated fields within this message type.
1710
+ * @private {!Array<number>}
1711
+ * @const
1712
+ */
1713
+ proto.GetListEmailTemplateResponse.repeatedFields_ = [2];
1714
+
1715
+
1716
+
1717
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1718
+ /**
1719
+ * Creates an object representation of this proto.
1720
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1721
+ * Optional fields that are not set will be set to undefined.
1722
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1723
+ * For the list of reserved names please see:
1724
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1725
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1726
+ * JSPB instance for transitional soy proto support:
1727
+ * http://goto/soy-param-migration
1728
+ * @return {!Object}
1729
+ */
1730
+ proto.GetListEmailTemplateResponse.prototype.toObject = function(opt_includeInstance) {
1731
+ return proto.GetListEmailTemplateResponse.toObject(opt_includeInstance, this);
1732
+ };
1733
+
1734
+
1735
+ /**
1736
+ * Static version of the {@see toObject} method.
1737
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1738
+ * the JSPB instance for transitional soy proto support:
1739
+ * http://goto/soy-param-migration
1740
+ * @param {!proto.GetListEmailTemplateResponse} msg The msg instance to transform.
1741
+ * @return {!Object}
1742
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1743
+ */
1744
+ proto.GetListEmailTemplateResponse.toObject = function(includeInstance, msg) {
1745
+ var f, obj = {
1746
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f),
1747
+ emailTemplatesList: jspb.Message.toObjectList(msg.getEmailTemplatesList(),
1748
+ proto.EmailTemplate.toObject, includeInstance)
1749
+ };
1750
+
1751
+ if (includeInstance) {
1752
+ obj.$jspbMessageInstance = msg;
1753
+ }
1754
+ return obj;
1755
+ };
1756
+ }
1757
+
1758
+
1759
+ /**
1760
+ * Deserializes binary data (in protobuf wire format).
1761
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1762
+ * @return {!proto.GetListEmailTemplateResponse}
1763
+ */
1764
+ proto.GetListEmailTemplateResponse.deserializeBinary = function(bytes) {
1765
+ var reader = new jspb.BinaryReader(bytes);
1766
+ var msg = new proto.GetListEmailTemplateResponse;
1767
+ return proto.GetListEmailTemplateResponse.deserializeBinaryFromReader(msg, reader);
1768
+ };
1769
+
1770
+
1771
+ /**
1772
+ * Deserializes binary data (in protobuf wire format) from the
1773
+ * given reader into the given message object.
1774
+ * @param {!proto.GetListEmailTemplateResponse} msg The message object to deserialize into.
1775
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1776
+ * @return {!proto.GetListEmailTemplateResponse}
1777
+ */
1778
+ proto.GetListEmailTemplateResponse.deserializeBinaryFromReader = function(msg, reader) {
1779
+ while (reader.nextField()) {
1780
+ if (reader.isEndGroup()) {
1781
+ break;
1782
+ }
1783
+ var field = reader.getFieldNumber();
1784
+ switch (field) {
1785
+ case 1:
1786
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1787
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1788
+ msg.setMeta(value);
1789
+ break;
1790
+ case 2:
1791
+ var value = new proto.EmailTemplate;
1792
+ reader.readMessage(value,proto.EmailTemplate.deserializeBinaryFromReader);
1793
+ msg.addEmailTemplates(value);
1794
+ break;
1795
+ default:
1796
+ reader.skipField();
1797
+ break;
1798
+ }
1799
+ }
1800
+ return msg;
1801
+ };
1802
+
1803
+
1804
+ /**
1805
+ * Serializes the message to binary data (in protobuf wire format).
1806
+ * @return {!Uint8Array}
1807
+ */
1808
+ proto.GetListEmailTemplateResponse.prototype.serializeBinary = function() {
1809
+ var writer = new jspb.BinaryWriter();
1810
+ proto.GetListEmailTemplateResponse.serializeBinaryToWriter(this, writer);
1811
+ return writer.getResultBuffer();
1812
+ };
1813
+
1814
+
1815
+ /**
1816
+ * Serializes the given message to binary data (in protobuf wire
1817
+ * format), writing to the given BinaryWriter.
1818
+ * @param {!proto.GetListEmailTemplateResponse} message
1819
+ * @param {!jspb.BinaryWriter} writer
1820
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1821
+ */
1822
+ proto.GetListEmailTemplateResponse.serializeBinaryToWriter = function(message, writer) {
1823
+ var f = undefined;
1824
+ f = message.getMeta();
1825
+ if (f != null) {
1826
+ writer.writeMessage(
1827
+ 1,
1828
+ f,
1829
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1830
+ );
1831
+ }
1832
+ f = message.getEmailTemplatesList();
1833
+ if (f.length > 0) {
1834
+ writer.writeRepeatedMessage(
1835
+ 2,
1836
+ f,
1837
+ proto.EmailTemplate.serializeBinaryToWriter
1838
+ );
1839
+ }
1840
+ };
1841
+
1842
+
1843
+ /**
1844
+ * optional prisca.v1.global.meta.Meta meta = 1;
1845
+ * @return {?proto.prisca.v1.global.meta.Meta}
1846
+ */
1847
+ proto.GetListEmailTemplateResponse.prototype.getMeta = function() {
1848
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1849
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 1));
1850
+ };
1851
+
1852
+
1853
+ /**
1854
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1855
+ * @return {!proto.GetListEmailTemplateResponse} returns this
1856
+ */
1857
+ proto.GetListEmailTemplateResponse.prototype.setMeta = function(value) {
1858
+ return jspb.Message.setWrapperField(this, 1, value);
1859
+ };
1860
+
1861
+
1862
+ /**
1863
+ * Clears the message field making it undefined.
1864
+ * @return {!proto.GetListEmailTemplateResponse} returns this
1865
+ */
1866
+ proto.GetListEmailTemplateResponse.prototype.clearMeta = function() {
1867
+ return this.setMeta(undefined);
1868
+ };
1869
+
1870
+
1871
+ /**
1872
+ * Returns whether this field is set.
1873
+ * @return {boolean}
1874
+ */
1875
+ proto.GetListEmailTemplateResponse.prototype.hasMeta = function() {
1876
+ return jspb.Message.getField(this, 1) != null;
1877
+ };
1878
+
1879
+
1880
+ /**
1881
+ * repeated EmailTemplate email_templates = 2;
1882
+ * @return {!Array<!proto.EmailTemplate>}
1883
+ */
1884
+ proto.GetListEmailTemplateResponse.prototype.getEmailTemplatesList = function() {
1885
+ return /** @type{!Array<!proto.EmailTemplate>} */ (
1886
+ jspb.Message.getRepeatedWrapperField(this, proto.EmailTemplate, 2));
1887
+ };
1888
+
1889
+
1890
+ /**
1891
+ * @param {!Array<!proto.EmailTemplate>} value
1892
+ * @return {!proto.GetListEmailTemplateResponse} returns this
1893
+ */
1894
+ proto.GetListEmailTemplateResponse.prototype.setEmailTemplatesList = function(value) {
1895
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
1896
+ };
1897
+
1898
+
1899
+ /**
1900
+ * @param {!proto.EmailTemplate=} opt_value
1901
+ * @param {number=} opt_index
1902
+ * @return {!proto.EmailTemplate}
1903
+ */
1904
+ proto.GetListEmailTemplateResponse.prototype.addEmailTemplates = function(opt_value, opt_index) {
1905
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.EmailTemplate, opt_index);
1906
+ };
1907
+
1908
+
1909
+ /**
1910
+ * Clears the list making it empty but non-null.
1911
+ * @return {!proto.GetListEmailTemplateResponse} returns this
1912
+ */
1913
+ proto.GetListEmailTemplateResponse.prototype.clearEmailTemplatesList = function() {
1914
+ return this.setEmailTemplatesList([]);
1915
+ };
1916
+
1917
+
1918
+
1919
+
1920
+
1921
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1922
+ /**
1923
+ * Creates an object representation of this proto.
1924
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1925
+ * Optional fields that are not set will be set to undefined.
1926
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1927
+ * For the list of reserved names please see:
1928
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1929
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1930
+ * JSPB instance for transitional soy proto support:
1931
+ * http://goto/soy-param-migration
1932
+ * @return {!Object}
1933
+ */
1934
+ proto.UpdateEmailTemplateRequest.prototype.toObject = function(opt_includeInstance) {
1935
+ return proto.UpdateEmailTemplateRequest.toObject(opt_includeInstance, this);
1936
+ };
1937
+
1938
+
1939
+ /**
1940
+ * Static version of the {@see toObject} method.
1941
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1942
+ * the JSPB instance for transitional soy proto support:
1943
+ * http://goto/soy-param-migration
1944
+ * @param {!proto.UpdateEmailTemplateRequest} msg The msg instance to transform.
1945
+ * @return {!Object}
1946
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1947
+ */
1948
+ proto.UpdateEmailTemplateRequest.toObject = function(includeInstance, msg) {
1949
+ var f, obj = {
1950
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1951
+ baseRequest: (f = msg.getBaseRequest()) && proto.BaseEmailTemplateRequest.toObject(includeInstance, f)
1952
+ };
1953
+
1954
+ if (includeInstance) {
1955
+ obj.$jspbMessageInstance = msg;
1956
+ }
1957
+ return obj;
1958
+ };
1959
+ }
1960
+
1961
+
1962
+ /**
1963
+ * Deserializes binary data (in protobuf wire format).
1964
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1965
+ * @return {!proto.UpdateEmailTemplateRequest}
1966
+ */
1967
+ proto.UpdateEmailTemplateRequest.deserializeBinary = function(bytes) {
1968
+ var reader = new jspb.BinaryReader(bytes);
1969
+ var msg = new proto.UpdateEmailTemplateRequest;
1970
+ return proto.UpdateEmailTemplateRequest.deserializeBinaryFromReader(msg, reader);
1971
+ };
1972
+
1973
+
1974
+ /**
1975
+ * Deserializes binary data (in protobuf wire format) from the
1976
+ * given reader into the given message object.
1977
+ * @param {!proto.UpdateEmailTemplateRequest} msg The message object to deserialize into.
1978
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1979
+ * @return {!proto.UpdateEmailTemplateRequest}
1980
+ */
1981
+ proto.UpdateEmailTemplateRequest.deserializeBinaryFromReader = function(msg, reader) {
1982
+ while (reader.nextField()) {
1983
+ if (reader.isEndGroup()) {
1984
+ break;
1985
+ }
1986
+ var field = reader.getFieldNumber();
1987
+ switch (field) {
1988
+ case 1:
1989
+ var value = /** @type {string} */ (reader.readString());
1990
+ msg.setReferencesId(value);
1991
+ break;
1992
+ case 2:
1993
+ var value = new proto.BaseEmailTemplateRequest;
1994
+ reader.readMessage(value,proto.BaseEmailTemplateRequest.deserializeBinaryFromReader);
1995
+ msg.setBaseRequest(value);
1996
+ break;
1997
+ default:
1998
+ reader.skipField();
1999
+ break;
2000
+ }
2001
+ }
2002
+ return msg;
2003
+ };
2004
+
2005
+
2006
+ /**
2007
+ * Serializes the message to binary data (in protobuf wire format).
2008
+ * @return {!Uint8Array}
2009
+ */
2010
+ proto.UpdateEmailTemplateRequest.prototype.serializeBinary = function() {
2011
+ var writer = new jspb.BinaryWriter();
2012
+ proto.UpdateEmailTemplateRequest.serializeBinaryToWriter(this, writer);
2013
+ return writer.getResultBuffer();
2014
+ };
2015
+
2016
+
2017
+ /**
2018
+ * Serializes the given message to binary data (in protobuf wire
2019
+ * format), writing to the given BinaryWriter.
2020
+ * @param {!proto.UpdateEmailTemplateRequest} message
2021
+ * @param {!jspb.BinaryWriter} writer
2022
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2023
+ */
2024
+ proto.UpdateEmailTemplateRequest.serializeBinaryToWriter = function(message, writer) {
2025
+ var f = undefined;
2026
+ f = message.getReferencesId();
2027
+ if (f.length > 0) {
2028
+ writer.writeString(
2029
+ 1,
2030
+ f
2031
+ );
2032
+ }
2033
+ f = message.getBaseRequest();
2034
+ if (f != null) {
2035
+ writer.writeMessage(
2036
+ 2,
2037
+ f,
2038
+ proto.BaseEmailTemplateRequest.serializeBinaryToWriter
2039
+ );
2040
+ }
2041
+ };
2042
+
2043
+
2044
+ /**
2045
+ * optional string references_id = 1;
2046
+ * @return {string}
2047
+ */
2048
+ proto.UpdateEmailTemplateRequest.prototype.getReferencesId = function() {
2049
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2050
+ };
2051
+
2052
+
2053
+ /**
2054
+ * @param {string} value
2055
+ * @return {!proto.UpdateEmailTemplateRequest} returns this
2056
+ */
2057
+ proto.UpdateEmailTemplateRequest.prototype.setReferencesId = function(value) {
2058
+ return jspb.Message.setProto3StringField(this, 1, value);
2059
+ };
2060
+
2061
+
2062
+ /**
2063
+ * optional BaseEmailTemplateRequest base_request = 2;
2064
+ * @return {?proto.BaseEmailTemplateRequest}
2065
+ */
2066
+ proto.UpdateEmailTemplateRequest.prototype.getBaseRequest = function() {
2067
+ return /** @type{?proto.BaseEmailTemplateRequest} */ (
2068
+ jspb.Message.getWrapperField(this, proto.BaseEmailTemplateRequest, 2));
2069
+ };
2070
+
2071
+
2072
+ /**
2073
+ * @param {?proto.BaseEmailTemplateRequest|undefined} value
2074
+ * @return {!proto.UpdateEmailTemplateRequest} returns this
2075
+ */
2076
+ proto.UpdateEmailTemplateRequest.prototype.setBaseRequest = function(value) {
2077
+ return jspb.Message.setWrapperField(this, 2, value);
2078
+ };
2079
+
2080
+
2081
+ /**
2082
+ * Clears the message field making it undefined.
2083
+ * @return {!proto.UpdateEmailTemplateRequest} returns this
2084
+ */
2085
+ proto.UpdateEmailTemplateRequest.prototype.clearBaseRequest = function() {
2086
+ return this.setBaseRequest(undefined);
2087
+ };
2088
+
2089
+
2090
+ /**
2091
+ * Returns whether this field is set.
2092
+ * @return {boolean}
2093
+ */
2094
+ proto.UpdateEmailTemplateRequest.prototype.hasBaseRequest = function() {
2095
+ return jspb.Message.getField(this, 2) != null;
2096
+ };
2097
+
2098
+
2099
+
2100
+
2101
+
2102
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2103
+ /**
2104
+ * Creates an object representation of this proto.
2105
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2106
+ * Optional fields that are not set will be set to undefined.
2107
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2108
+ * For the list of reserved names please see:
2109
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2110
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2111
+ * JSPB instance for transitional soy proto support:
2112
+ * http://goto/soy-param-migration
2113
+ * @return {!Object}
2114
+ */
2115
+ proto.UpdateEmailTemplateResponse.prototype.toObject = function(opt_includeInstance) {
2116
+ return proto.UpdateEmailTemplateResponse.toObject(opt_includeInstance, this);
2117
+ };
2118
+
2119
+
2120
+ /**
2121
+ * Static version of the {@see toObject} method.
2122
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2123
+ * the JSPB instance for transitional soy proto support:
2124
+ * http://goto/soy-param-migration
2125
+ * @param {!proto.UpdateEmailTemplateResponse} msg The msg instance to transform.
2126
+ * @return {!Object}
2127
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2128
+ */
2129
+ proto.UpdateEmailTemplateResponse.toObject = function(includeInstance, msg) {
2130
+ var f, obj = {
2131
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f),
2132
+ emailTemplate: (f = msg.getEmailTemplate()) && proto.EmailTemplate.toObject(includeInstance, f)
2133
+ };
2134
+
2135
+ if (includeInstance) {
2136
+ obj.$jspbMessageInstance = msg;
2137
+ }
2138
+ return obj;
2139
+ };
2140
+ }
2141
+
2142
+
2143
+ /**
2144
+ * Deserializes binary data (in protobuf wire format).
2145
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2146
+ * @return {!proto.UpdateEmailTemplateResponse}
2147
+ */
2148
+ proto.UpdateEmailTemplateResponse.deserializeBinary = function(bytes) {
2149
+ var reader = new jspb.BinaryReader(bytes);
2150
+ var msg = new proto.UpdateEmailTemplateResponse;
2151
+ return proto.UpdateEmailTemplateResponse.deserializeBinaryFromReader(msg, reader);
2152
+ };
2153
+
2154
+
2155
+ /**
2156
+ * Deserializes binary data (in protobuf wire format) from the
2157
+ * given reader into the given message object.
2158
+ * @param {!proto.UpdateEmailTemplateResponse} msg The message object to deserialize into.
2159
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2160
+ * @return {!proto.UpdateEmailTemplateResponse}
2161
+ */
2162
+ proto.UpdateEmailTemplateResponse.deserializeBinaryFromReader = function(msg, reader) {
2163
+ while (reader.nextField()) {
2164
+ if (reader.isEndGroup()) {
2165
+ break;
2166
+ }
2167
+ var field = reader.getFieldNumber();
2168
+ switch (field) {
2169
+ case 1:
2170
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2171
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2172
+ msg.setMeta(value);
2173
+ break;
2174
+ case 2:
2175
+ var value = new proto.EmailTemplate;
2176
+ reader.readMessage(value,proto.EmailTemplate.deserializeBinaryFromReader);
2177
+ msg.setEmailTemplate(value);
2178
+ break;
2179
+ default:
2180
+ reader.skipField();
2181
+ break;
2182
+ }
2183
+ }
2184
+ return msg;
2185
+ };
2186
+
2187
+
2188
+ /**
2189
+ * Serializes the message to binary data (in protobuf wire format).
2190
+ * @return {!Uint8Array}
2191
+ */
2192
+ proto.UpdateEmailTemplateResponse.prototype.serializeBinary = function() {
2193
+ var writer = new jspb.BinaryWriter();
2194
+ proto.UpdateEmailTemplateResponse.serializeBinaryToWriter(this, writer);
2195
+ return writer.getResultBuffer();
2196
+ };
2197
+
2198
+
2199
+ /**
2200
+ * Serializes the given message to binary data (in protobuf wire
2201
+ * format), writing to the given BinaryWriter.
2202
+ * @param {!proto.UpdateEmailTemplateResponse} message
2203
+ * @param {!jspb.BinaryWriter} writer
2204
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2205
+ */
2206
+ proto.UpdateEmailTemplateResponse.serializeBinaryToWriter = function(message, writer) {
2207
+ var f = undefined;
2208
+ f = message.getMeta();
2209
+ if (f != null) {
2210
+ writer.writeMessage(
2211
+ 1,
2212
+ f,
2213
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2214
+ );
2215
+ }
2216
+ f = message.getEmailTemplate();
2217
+ if (f != null) {
2218
+ writer.writeMessage(
2219
+ 2,
2220
+ f,
2221
+ proto.EmailTemplate.serializeBinaryToWriter
2222
+ );
2223
+ }
2224
+ };
2225
+
2226
+
2227
+ /**
2228
+ * optional prisca.v1.global.meta.Meta meta = 1;
2229
+ * @return {?proto.prisca.v1.global.meta.Meta}
2230
+ */
2231
+ proto.UpdateEmailTemplateResponse.prototype.getMeta = function() {
2232
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2233
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 1));
2234
+ };
2235
+
2236
+
2237
+ /**
2238
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2239
+ * @return {!proto.UpdateEmailTemplateResponse} returns this
2240
+ */
2241
+ proto.UpdateEmailTemplateResponse.prototype.setMeta = function(value) {
2242
+ return jspb.Message.setWrapperField(this, 1, value);
2243
+ };
2244
+
2245
+
2246
+ /**
2247
+ * Clears the message field making it undefined.
2248
+ * @return {!proto.UpdateEmailTemplateResponse} returns this
2249
+ */
2250
+ proto.UpdateEmailTemplateResponse.prototype.clearMeta = function() {
2251
+ return this.setMeta(undefined);
2252
+ };
2253
+
2254
+
2255
+ /**
2256
+ * Returns whether this field is set.
2257
+ * @return {boolean}
2258
+ */
2259
+ proto.UpdateEmailTemplateResponse.prototype.hasMeta = function() {
2260
+ return jspb.Message.getField(this, 1) != null;
2261
+ };
2262
+
2263
+
2264
+ /**
2265
+ * optional EmailTemplate email_template = 2;
2266
+ * @return {?proto.EmailTemplate}
2267
+ */
2268
+ proto.UpdateEmailTemplateResponse.prototype.getEmailTemplate = function() {
2269
+ return /** @type{?proto.EmailTemplate} */ (
2270
+ jspb.Message.getWrapperField(this, proto.EmailTemplate, 2));
2271
+ };
2272
+
2273
+
2274
+ /**
2275
+ * @param {?proto.EmailTemplate|undefined} value
2276
+ * @return {!proto.UpdateEmailTemplateResponse} returns this
2277
+ */
2278
+ proto.UpdateEmailTemplateResponse.prototype.setEmailTemplate = function(value) {
2279
+ return jspb.Message.setWrapperField(this, 2, value);
2280
+ };
2281
+
2282
+
2283
+ /**
2284
+ * Clears the message field making it undefined.
2285
+ * @return {!proto.UpdateEmailTemplateResponse} returns this
2286
+ */
2287
+ proto.UpdateEmailTemplateResponse.prototype.clearEmailTemplate = function() {
2288
+ return this.setEmailTemplate(undefined);
2289
+ };
2290
+
2291
+
2292
+ /**
2293
+ * Returns whether this field is set.
2294
+ * @return {boolean}
2295
+ */
2296
+ proto.UpdateEmailTemplateResponse.prototype.hasEmailTemplate = function() {
2297
+ return jspb.Message.getField(this, 2) != null;
2298
+ };
2299
+
2300
+
2301
+
2302
+ /**
2303
+ * List of repeated fields within this message type.
2304
+ * @private {!Array<number>}
2305
+ * @const
2306
+ */
2307
+ proto.DeleteEmailTemplateRequest.repeatedFields_ = [1];
2308
+
2309
+
2310
+
2311
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2312
+ /**
2313
+ * Creates an object representation of this proto.
2314
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2315
+ * Optional fields that are not set will be set to undefined.
2316
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2317
+ * For the list of reserved names please see:
2318
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2319
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2320
+ * JSPB instance for transitional soy proto support:
2321
+ * http://goto/soy-param-migration
2322
+ * @return {!Object}
2323
+ */
2324
+ proto.DeleteEmailTemplateRequest.prototype.toObject = function(opt_includeInstance) {
2325
+ return proto.DeleteEmailTemplateRequest.toObject(opt_includeInstance, this);
2326
+ };
2327
+
2328
+
2329
+ /**
2330
+ * Static version of the {@see toObject} method.
2331
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2332
+ * the JSPB instance for transitional soy proto support:
2333
+ * http://goto/soy-param-migration
2334
+ * @param {!proto.DeleteEmailTemplateRequest} msg The msg instance to transform.
2335
+ * @return {!Object}
2336
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2337
+ */
2338
+ proto.DeleteEmailTemplateRequest.toObject = function(includeInstance, msg) {
2339
+ var f, obj = {
2340
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
2341
+ };
2342
+
2343
+ if (includeInstance) {
2344
+ obj.$jspbMessageInstance = msg;
2345
+ }
2346
+ return obj;
2347
+ };
2348
+ }
2349
+
2350
+
2351
+ /**
2352
+ * Deserializes binary data (in protobuf wire format).
2353
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2354
+ * @return {!proto.DeleteEmailTemplateRequest}
2355
+ */
2356
+ proto.DeleteEmailTemplateRequest.deserializeBinary = function(bytes) {
2357
+ var reader = new jspb.BinaryReader(bytes);
2358
+ var msg = new proto.DeleteEmailTemplateRequest;
2359
+ return proto.DeleteEmailTemplateRequest.deserializeBinaryFromReader(msg, reader);
2360
+ };
2361
+
2362
+
2363
+ /**
2364
+ * Deserializes binary data (in protobuf wire format) from the
2365
+ * given reader into the given message object.
2366
+ * @param {!proto.DeleteEmailTemplateRequest} msg The message object to deserialize into.
2367
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2368
+ * @return {!proto.DeleteEmailTemplateRequest}
2369
+ */
2370
+ proto.DeleteEmailTemplateRequest.deserializeBinaryFromReader = function(msg, reader) {
2371
+ while (reader.nextField()) {
2372
+ if (reader.isEndGroup()) {
2373
+ break;
2374
+ }
2375
+ var field = reader.getFieldNumber();
2376
+ switch (field) {
2377
+ case 1:
2378
+ var value = /** @type {string} */ (reader.readString());
2379
+ msg.addReferenceIds(value);
2380
+ break;
2381
+ default:
2382
+ reader.skipField();
2383
+ break;
2384
+ }
2385
+ }
2386
+ return msg;
2387
+ };
2388
+
2389
+
2390
+ /**
2391
+ * Serializes the message to binary data (in protobuf wire format).
2392
+ * @return {!Uint8Array}
2393
+ */
2394
+ proto.DeleteEmailTemplateRequest.prototype.serializeBinary = function() {
2395
+ var writer = new jspb.BinaryWriter();
2396
+ proto.DeleteEmailTemplateRequest.serializeBinaryToWriter(this, writer);
2397
+ return writer.getResultBuffer();
2398
+ };
2399
+
2400
+
2401
+ /**
2402
+ * Serializes the given message to binary data (in protobuf wire
2403
+ * format), writing to the given BinaryWriter.
2404
+ * @param {!proto.DeleteEmailTemplateRequest} message
2405
+ * @param {!jspb.BinaryWriter} writer
2406
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2407
+ */
2408
+ proto.DeleteEmailTemplateRequest.serializeBinaryToWriter = function(message, writer) {
2409
+ var f = undefined;
2410
+ f = message.getReferenceIdsList();
2411
+ if (f.length > 0) {
2412
+ writer.writeRepeatedString(
2413
+ 1,
2414
+ f
2415
+ );
2416
+ }
2417
+ };
2418
+
2419
+
2420
+ /**
2421
+ * repeated string reference_ids = 1;
2422
+ * @return {!Array<string>}
2423
+ */
2424
+ proto.DeleteEmailTemplateRequest.prototype.getReferenceIdsList = function() {
2425
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2426
+ };
2427
+
2428
+
2429
+ /**
2430
+ * @param {!Array<string>} value
2431
+ * @return {!proto.DeleteEmailTemplateRequest} returns this
2432
+ */
2433
+ proto.DeleteEmailTemplateRequest.prototype.setReferenceIdsList = function(value) {
2434
+ return jspb.Message.setField(this, 1, value || []);
2435
+ };
2436
+
2437
+
2438
+ /**
2439
+ * @param {string} value
2440
+ * @param {number=} opt_index
2441
+ * @return {!proto.DeleteEmailTemplateRequest} returns this
2442
+ */
2443
+ proto.DeleteEmailTemplateRequest.prototype.addReferenceIds = function(value, opt_index) {
2444
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2445
+ };
2446
+
2447
+
2448
+ /**
2449
+ * Clears the list making it empty but non-null.
2450
+ * @return {!proto.DeleteEmailTemplateRequest} returns this
2451
+ */
2452
+ proto.DeleteEmailTemplateRequest.prototype.clearReferenceIdsList = function() {
2453
+ return this.setReferenceIdsList([]);
2454
+ };
2455
+
2456
+
2457
+
2458
+ /**
2459
+ * List of repeated fields within this message type.
2460
+ * @private {!Array<number>}
2461
+ * @const
2462
+ */
2463
+ proto.DeleteEmailTemplateResponse.repeatedFields_ = [1];
2464
+
2465
+
2466
+
2467
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2468
+ /**
2469
+ * Creates an object representation of this proto.
2470
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2471
+ * Optional fields that are not set will be set to undefined.
2472
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2473
+ * For the list of reserved names please see:
2474
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2475
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2476
+ * JSPB instance for transitional soy proto support:
2477
+ * http://goto/soy-param-migration
2478
+ * @return {!Object}
2479
+ */
2480
+ proto.DeleteEmailTemplateResponse.prototype.toObject = function(opt_includeInstance) {
2481
+ return proto.DeleteEmailTemplateResponse.toObject(opt_includeInstance, this);
2482
+ };
2483
+
2484
+
2485
+ /**
2486
+ * Static version of the {@see toObject} method.
2487
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2488
+ * the JSPB instance for transitional soy proto support:
2489
+ * http://goto/soy-param-migration
2490
+ * @param {!proto.DeleteEmailTemplateResponse} msg The msg instance to transform.
2491
+ * @return {!Object}
2492
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2493
+ */
2494
+ proto.DeleteEmailTemplateResponse.toObject = function(includeInstance, msg) {
2495
+ var f, obj = {
2496
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2497
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2498
+ };
2499
+
2500
+ if (includeInstance) {
2501
+ obj.$jspbMessageInstance = msg;
2502
+ }
2503
+ return obj;
2504
+ };
2505
+ }
2506
+
2507
+
2508
+ /**
2509
+ * Deserializes binary data (in protobuf wire format).
2510
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2511
+ * @return {!proto.DeleteEmailTemplateResponse}
2512
+ */
2513
+ proto.DeleteEmailTemplateResponse.deserializeBinary = function(bytes) {
2514
+ var reader = new jspb.BinaryReader(bytes);
2515
+ var msg = new proto.DeleteEmailTemplateResponse;
2516
+ return proto.DeleteEmailTemplateResponse.deserializeBinaryFromReader(msg, reader);
2517
+ };
2518
+
2519
+
2520
+ /**
2521
+ * Deserializes binary data (in protobuf wire format) from the
2522
+ * given reader into the given message object.
2523
+ * @param {!proto.DeleteEmailTemplateResponse} msg The message object to deserialize into.
2524
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2525
+ * @return {!proto.DeleteEmailTemplateResponse}
2526
+ */
2527
+ proto.DeleteEmailTemplateResponse.deserializeBinaryFromReader = function(msg, reader) {
2528
+ while (reader.nextField()) {
2529
+ if (reader.isEndGroup()) {
2530
+ break;
2531
+ }
2532
+ var field = reader.getFieldNumber();
2533
+ switch (field) {
2534
+ case 1:
2535
+ var value = /** @type {string} */ (reader.readString());
2536
+ msg.addReferenceIds(value);
2537
+ break;
2538
+ case 2:
2539
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2540
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2541
+ msg.setMeta(value);
2542
+ break;
2543
+ default:
2544
+ reader.skipField();
2545
+ break;
2546
+ }
2547
+ }
2548
+ return msg;
2549
+ };
2550
+
2551
+
2552
+ /**
2553
+ * Serializes the message to binary data (in protobuf wire format).
2554
+ * @return {!Uint8Array}
2555
+ */
2556
+ proto.DeleteEmailTemplateResponse.prototype.serializeBinary = function() {
2557
+ var writer = new jspb.BinaryWriter();
2558
+ proto.DeleteEmailTemplateResponse.serializeBinaryToWriter(this, writer);
2559
+ return writer.getResultBuffer();
2560
+ };
2561
+
2562
+
2563
+ /**
2564
+ * Serializes the given message to binary data (in protobuf wire
2565
+ * format), writing to the given BinaryWriter.
2566
+ * @param {!proto.DeleteEmailTemplateResponse} message
2567
+ * @param {!jspb.BinaryWriter} writer
2568
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2569
+ */
2570
+ proto.DeleteEmailTemplateResponse.serializeBinaryToWriter = function(message, writer) {
2571
+ var f = undefined;
2572
+ f = message.getReferenceIdsList();
2573
+ if (f.length > 0) {
2574
+ writer.writeRepeatedString(
2575
+ 1,
2576
+ f
2577
+ );
2578
+ }
2579
+ f = message.getMeta();
2580
+ if (f != null) {
2581
+ writer.writeMessage(
2582
+ 2,
2583
+ f,
2584
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2585
+ );
2586
+ }
2587
+ };
2588
+
2589
+
2590
+ /**
2591
+ * repeated string reference_ids = 1;
2592
+ * @return {!Array<string>}
2593
+ */
2594
+ proto.DeleteEmailTemplateResponse.prototype.getReferenceIdsList = function() {
2595
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2596
+ };
2597
+
2598
+
2599
+ /**
2600
+ * @param {!Array<string>} value
2601
+ * @return {!proto.DeleteEmailTemplateResponse} returns this
2602
+ */
2603
+ proto.DeleteEmailTemplateResponse.prototype.setReferenceIdsList = function(value) {
2604
+ return jspb.Message.setField(this, 1, value || []);
2605
+ };
2606
+
2607
+
2608
+ /**
2609
+ * @param {string} value
2610
+ * @param {number=} opt_index
2611
+ * @return {!proto.DeleteEmailTemplateResponse} returns this
2612
+ */
2613
+ proto.DeleteEmailTemplateResponse.prototype.addReferenceIds = function(value, opt_index) {
2614
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2615
+ };
2616
+
2617
+
2618
+ /**
2619
+ * Clears the list making it empty but non-null.
2620
+ * @return {!proto.DeleteEmailTemplateResponse} returns this
2621
+ */
2622
+ proto.DeleteEmailTemplateResponse.prototype.clearReferenceIdsList = function() {
2623
+ return this.setReferenceIdsList([]);
2624
+ };
2625
+
2626
+
2627
+ /**
2628
+ * optional prisca.v1.global.meta.Meta meta = 2;
2629
+ * @return {?proto.prisca.v1.global.meta.Meta}
2630
+ */
2631
+ proto.DeleteEmailTemplateResponse.prototype.getMeta = function() {
2632
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2633
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2634
+ };
2635
+
2636
+
2637
+ /**
2638
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2639
+ * @return {!proto.DeleteEmailTemplateResponse} returns this
2640
+ */
2641
+ proto.DeleteEmailTemplateResponse.prototype.setMeta = function(value) {
2642
+ return jspb.Message.setWrapperField(this, 2, value);
2643
+ };
2644
+
2645
+
2646
+ /**
2647
+ * Clears the message field making it undefined.
2648
+ * @return {!proto.DeleteEmailTemplateResponse} returns this
2649
+ */
2650
+ proto.DeleteEmailTemplateResponse.prototype.clearMeta = function() {
2651
+ return this.setMeta(undefined);
2652
+ };
2653
+
2654
+
2655
+ /**
2656
+ * Returns whether this field is set.
2657
+ * @return {boolean}
2658
+ */
2659
+ proto.DeleteEmailTemplateResponse.prototype.hasMeta = function() {
2660
+ return jspb.Message.getField(this, 2) != null;
2661
+ };
2662
+
2663
+
2664
+ goog.object.extend(exports, proto);