@aldiokta/protocgen 1.1.8 → 1.1.19

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