@aldiokta/protocgen 1.1.44 → 1.1.45

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 (178) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +81 -0
  3. package/prisca/v1/account_group/account_group.proto +88 -0
  4. package/prisca/v1/bidding/bidding.proto +251 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +328 -0
  7. package/prisca/v1/core/auth/auth.proto +185 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +62 -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 +41 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +188 -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 +94 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +113 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +295 -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 +95 -0
  26. package/prisca/v1/core/messaging/email_template.proto +77 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/messaging/notification.proto +144 -0
  29. package/prisca/v1/core/number_range/number_range.proto +89 -0
  30. package/prisca/v1/core/organization/organization.proto +94 -0
  31. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  32. package/prisca/v1/core/price_condition/price_condition.proto +97 -0
  33. package/prisca/v1/core/procurement/procurement.proto +54 -0
  34. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  35. package/prisca/v1/core/report/report.proto +90 -0
  36. package/prisca/v1/core/report/user_report.proto +74 -0
  37. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  38. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  39. package/prisca/v1/core/transaction_builder/transaction_builder.proto +366 -0
  40. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +89 -0
  41. package/prisca/v1/core/users/users.proto +55 -0
  42. package/prisca/v1/core/work_location/work_location.proto +122 -0
  43. package/prisca/v1/core/workflow/workflow.proto +220 -0
  44. package/prisca/v1/core/workspace/workspace.proto +48 -0
  45. package/prisca/v1/delivery_order/delivery_order.proto +116 -0
  46. package/prisca/v1/document_type/document_type.proto +89 -0
  47. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  48. package/prisca/v1/global/meta/meta.proto +57 -0
  49. package/prisca/v1/good_receipt/good_receipt.proto +118 -0
  50. package/prisca/v1/invoice/invoice.proto +170 -0
  51. package/prisca/v1/purchase_order/purchase_order.proto +292 -0
  52. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +327 -0
  53. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  54. package/prisca/v1/purchasing_organization/purchasing_organization.proto +77 -0
  55. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  56. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  57. package/prisca/v1/quotation/quotation.proto +135 -0
  58. package/prisca/v1/request_for_quotation/request_for_quotation.proto +203 -0
  59. package/prisca/v1/valuation/valuation.proto +223 -0
  60. package/prisca/v1/vendor_domain/vendor_domain.proto +485 -0
  61. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  62. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2720
  63. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  64. package/prisca/v1/account_group/account_group_pb.js +0 -2983
  65. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -350
  66. package/prisca/v1/bidding/bidding_pb.js +0 -8694
  67. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  68. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2953
  69. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -577
  70. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -10655
  71. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -523
  72. package/prisca/v1/core/auth/auth_pb.js +0 -5833
  73. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  74. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1726
  75. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  76. package/prisca/v1/core/company/company_pb.js +0 -3094
  77. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  78. package/prisca/v1/core/currency/currency_pb.js +0 -2516
  79. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  80. package/prisca/v1/core/department_material/department_material_pb.js +0 -2161
  81. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  82. package/prisca/v1/core/employee/employee_pb.js +0 -4329
  83. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -66
  84. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1136
  85. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
  86. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2898
  87. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  88. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -6038
  89. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  90. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2651
  91. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  92. package/prisca/v1/core/job_position/job_position_pb.js +0 -3808
  93. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  94. package/prisca/v1/core/job_title/job_title_pb.js +0 -3004
  95. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -78
  96. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -2503
  97. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -222
  98. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3801
  99. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  100. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2606
  101. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  102. package/prisca/v1/core/location/location_pb.js +0 -11262
  103. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  104. package/prisca/v1/core/material/material_pb.js +0 -4226
  105. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  106. package/prisca/v1/core/material_group/material_group_pb.js +0 -2822
  107. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
  108. package/prisca/v1/core/material_type/material_type_pb.js +0 -3098
  109. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  110. package/prisca/v1/core/messaging/email_template_pb.js +0 -2658
  111. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  112. package/prisca/v1/core/messaging/messaging_pb.js +0 -890
  113. package/prisca/v1/core/messaging/notification_grpc_pb.js +0 -331
  114. package/prisca/v1/core/messaging/notification_pb.js +0 -4775
  115. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  116. package/prisca/v1/core/number_range/number_range_pb.js +0 -2972
  117. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  118. package/prisca/v1/core/organization/organization_pb.js +0 -3078
  119. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  120. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2591
  121. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
  122. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3175
  123. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  124. package/prisca/v1/core/procurement/procurement_pb.js +0 -1675
  125. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  126. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -200
  127. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  128. package/prisca/v1/core/report/report_pb.js +0 -2816
  129. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  130. package/prisca/v1/core/report/user_report_pb.js +0 -2446
  131. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  132. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2778
  133. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
  134. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2506
  135. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -652
  136. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -11953
  137. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  138. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2874
  139. package/prisca/v1/core/users/users_grpc_pb.js +0 -78
  140. package/prisca/v1/core/users/users_pb.js +0 -1647
  141. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  142. package/prisca/v1/core/work_location/work_location_pb.js +0 -4018
  143. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  144. package/prisca/v1/core/workflow/workflow_pb.js +0 -7631
  145. package/prisca/v1/core/workspace/workspace_grpc_pb.js +0 -101
  146. package/prisca/v1/core/workspace/workspace_pb.js +0 -1381
  147. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
  148. package/prisca/v1/delivery_order/delivery_order_pb.js +0 -3647
  149. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -200
  150. package/prisca/v1/document_type/document_type_pb.js +0 -3004
  151. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  152. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3322
  153. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  154. package/prisca/v1/global/meta/meta_pb.js +0 -1173
  155. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -250
  156. package/prisca/v1/good_receipt/good_receipt_pb.js +0 -3945
  157. package/prisca/v1/invoice/invoice_grpc_pb.js +0 -273
  158. package/prisca/v1/invoice/invoice_pb.js +0 -5664
  159. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -263
  160. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -9839
  161. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -600
  162. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -10795
  163. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  164. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2921
  165. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
  166. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2418
  167. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
  168. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2584
  169. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  170. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2537
  171. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -240
  172. package/prisca/v1/quotation/quotation_pb.js +0 -4167
  173. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -281
  174. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -7042
  175. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -366
  176. package/prisca/v1/valuation/valuation_pb.js +0 -7806
  177. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -290
  178. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -14714
@@ -1,890 +0,0 @@
1
- // source: prisca/v1/core/messaging/messaging.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 = globalThis;
17
-
18
- var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
19
- goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
20
- goog.exportSymbol('proto.BaseEmailMessageRequest', null, global);
21
- goog.exportSymbol('proto.SendEmailMessageRequest', null, global);
22
- goog.exportSymbol('proto.SendEmailMessageResponse', null, global);
23
- goog.exportSymbol('proto.Variable', null, global);
24
- /**
25
- * Generated by JsPbCodeGenerator.
26
- * @param {Array=} opt_data Optional initial data array, typically from a
27
- * server response, or constructed directly in Javascript. The array is used
28
- * in place and becomes part of the constructed object. It is not cloned.
29
- * If no data is provided, the constructed object will be empty, but still
30
- * valid.
31
- * @extends {jspb.Message}
32
- * @constructor
33
- */
34
- proto.BaseEmailMessageRequest = function(opt_data) {
35
- jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseEmailMessageRequest.repeatedFields_, null);
36
- };
37
- goog.inherits(proto.BaseEmailMessageRequest, jspb.Message);
38
- if (goog.DEBUG && !COMPILED) {
39
- /**
40
- * @public
41
- * @override
42
- */
43
- proto.BaseEmailMessageRequest.displayName = 'proto.BaseEmailMessageRequest';
44
- }
45
- /**
46
- * Generated by JsPbCodeGenerator.
47
- * @param {Array=} opt_data Optional initial data array, typically from a
48
- * server response, or constructed directly in Javascript. The array is used
49
- * in place and becomes part of the constructed object. It is not cloned.
50
- * If no data is provided, the constructed object will be empty, but still
51
- * valid.
52
- * @extends {jspb.Message}
53
- * @constructor
54
- */
55
- proto.Variable = function(opt_data) {
56
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
57
- };
58
- goog.inherits(proto.Variable, jspb.Message);
59
- if (goog.DEBUG && !COMPILED) {
60
- /**
61
- * @public
62
- * @override
63
- */
64
- proto.Variable.displayName = 'proto.Variable';
65
- }
66
- /**
67
- * Generated by JsPbCodeGenerator.
68
- * @param {Array=} opt_data Optional initial data array, typically from a
69
- * server response, or constructed directly in Javascript. The array is used
70
- * in place and becomes part of the constructed object. It is not cloned.
71
- * If no data is provided, the constructed object will be empty, but still
72
- * valid.
73
- * @extends {jspb.Message}
74
- * @constructor
75
- */
76
- proto.SendEmailMessageRequest = function(opt_data) {
77
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
78
- };
79
- goog.inherits(proto.SendEmailMessageRequest, jspb.Message);
80
- if (goog.DEBUG && !COMPILED) {
81
- /**
82
- * @public
83
- * @override
84
- */
85
- proto.SendEmailMessageRequest.displayName = 'proto.SendEmailMessageRequest';
86
- }
87
- /**
88
- * Generated by JsPbCodeGenerator.
89
- * @param {Array=} opt_data Optional initial data array, typically from a
90
- * server response, or constructed directly in Javascript. The array is used
91
- * in place and becomes part of the constructed object. It is not cloned.
92
- * If no data is provided, the constructed object will be empty, but still
93
- * valid.
94
- * @extends {jspb.Message}
95
- * @constructor
96
- */
97
- proto.SendEmailMessageResponse = function(opt_data) {
98
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
99
- };
100
- goog.inherits(proto.SendEmailMessageResponse, jspb.Message);
101
- if (goog.DEBUG && !COMPILED) {
102
- /**
103
- * @public
104
- * @override
105
- */
106
- proto.SendEmailMessageResponse.displayName = 'proto.SendEmailMessageResponse';
107
- }
108
-
109
- /**
110
- * List of repeated fields within this message type.
111
- * @private {!Array<number>}
112
- * @const
113
- */
114
- proto.BaseEmailMessageRequest.repeatedFields_ = [3,4];
115
-
116
-
117
-
118
- if (jspb.Message.GENERATE_TO_OBJECT) {
119
- /**
120
- * Creates an object representation of this proto.
121
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
122
- * Optional fields that are not set will be set to undefined.
123
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
124
- * For the list of reserved names please see:
125
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
126
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
127
- * JSPB instance for transitional soy proto support:
128
- * http://goto/soy-param-migration
129
- * @return {!Object}
130
- */
131
- proto.BaseEmailMessageRequest.prototype.toObject = function(opt_includeInstance) {
132
- return proto.BaseEmailMessageRequest.toObject(opt_includeInstance, this);
133
- };
134
-
135
-
136
- /**
137
- * Static version of the {@see toObject} method.
138
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
139
- * the JSPB instance for transitional soy proto support:
140
- * http://goto/soy-param-migration
141
- * @param {!proto.BaseEmailMessageRequest} msg The msg instance to transform.
142
- * @return {!Object}
143
- * @suppress {unusedLocalVariables} f is only used for nested messages
144
- */
145
- proto.BaseEmailMessageRequest.toObject = function(includeInstance, msg) {
146
- var f, obj = {
147
- id: jspb.Message.getFieldWithDefault(msg, 1, ""),
148
- email: jspb.Message.getFieldWithDefault(msg, 2, ""),
149
- ccList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
150
- variableList: jspb.Message.toObjectList(msg.getVariableList(),
151
- proto.Variable.toObject, includeInstance)
152
- };
153
-
154
- if (includeInstance) {
155
- obj.$jspbMessageInstance = msg;
156
- }
157
- return obj;
158
- };
159
- }
160
-
161
-
162
- /**
163
- * Deserializes binary data (in protobuf wire format).
164
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
165
- * @return {!proto.BaseEmailMessageRequest}
166
- */
167
- proto.BaseEmailMessageRequest.deserializeBinary = function(bytes) {
168
- var reader = new jspb.BinaryReader(bytes);
169
- var msg = new proto.BaseEmailMessageRequest;
170
- return proto.BaseEmailMessageRequest.deserializeBinaryFromReader(msg, reader);
171
- };
172
-
173
-
174
- /**
175
- * Deserializes binary data (in protobuf wire format) from the
176
- * given reader into the given message object.
177
- * @param {!proto.BaseEmailMessageRequest} msg The message object to deserialize into.
178
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
179
- * @return {!proto.BaseEmailMessageRequest}
180
- */
181
- proto.BaseEmailMessageRequest.deserializeBinaryFromReader = function(msg, reader) {
182
- while (reader.nextField()) {
183
- if (reader.isEndGroup()) {
184
- break;
185
- }
186
- var field = reader.getFieldNumber();
187
- switch (field) {
188
- case 1:
189
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
190
- msg.setId(value);
191
- break;
192
- case 2:
193
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
194
- msg.setEmail(value);
195
- break;
196
- case 3:
197
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
198
- msg.addCc(value);
199
- break;
200
- case 4:
201
- var value = new proto.Variable;
202
- reader.readMessage(value,proto.Variable.deserializeBinaryFromReader);
203
- msg.addVariable(value);
204
- break;
205
- default:
206
- reader.skipField();
207
- break;
208
- }
209
- }
210
- return msg;
211
- };
212
-
213
-
214
- /**
215
- * Serializes the message to binary data (in protobuf wire format).
216
- * @return {!Uint8Array}
217
- */
218
- proto.BaseEmailMessageRequest.prototype.serializeBinary = function() {
219
- var writer = new jspb.BinaryWriter();
220
- proto.BaseEmailMessageRequest.serializeBinaryToWriter(this, writer);
221
- return writer.getResultBuffer();
222
- };
223
-
224
-
225
- /**
226
- * Serializes the given message to binary data (in protobuf wire
227
- * format), writing to the given BinaryWriter.
228
- * @param {!proto.BaseEmailMessageRequest} message
229
- * @param {!jspb.BinaryWriter} writer
230
- * @suppress {unusedLocalVariables} f is only used for nested messages
231
- */
232
- proto.BaseEmailMessageRequest.serializeBinaryToWriter = function(message, writer) {
233
- var f = undefined;
234
- f = message.getId();
235
- if (f.length > 0) {
236
- writer.writeString(
237
- 1,
238
- f
239
- );
240
- }
241
- f = message.getEmail();
242
- if (f.length > 0) {
243
- writer.writeString(
244
- 2,
245
- f
246
- );
247
- }
248
- f = message.getCcList();
249
- if (f.length > 0) {
250
- writer.writeRepeatedString(
251
- 3,
252
- f
253
- );
254
- }
255
- f = message.getVariableList();
256
- if (f.length > 0) {
257
- writer.writeRepeatedMessage(
258
- 4,
259
- f,
260
- proto.Variable.serializeBinaryToWriter
261
- );
262
- }
263
- };
264
-
265
-
266
- /**
267
- * optional string id = 1;
268
- * @return {string}
269
- */
270
- proto.BaseEmailMessageRequest.prototype.getId = function() {
271
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
272
- };
273
-
274
-
275
- /**
276
- * @param {string} value
277
- * @return {!proto.BaseEmailMessageRequest} returns this
278
- */
279
- proto.BaseEmailMessageRequest.prototype.setId = function(value) {
280
- return jspb.Message.setProto3StringField(this, 1, value);
281
- };
282
-
283
-
284
- /**
285
- * optional string email = 2;
286
- * @return {string}
287
- */
288
- proto.BaseEmailMessageRequest.prototype.getEmail = function() {
289
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
290
- };
291
-
292
-
293
- /**
294
- * @param {string} value
295
- * @return {!proto.BaseEmailMessageRequest} returns this
296
- */
297
- proto.BaseEmailMessageRequest.prototype.setEmail = function(value) {
298
- return jspb.Message.setProto3StringField(this, 2, value);
299
- };
300
-
301
-
302
- /**
303
- * repeated string cc = 3;
304
- * @return {!Array<string>}
305
- */
306
- proto.BaseEmailMessageRequest.prototype.getCcList = function() {
307
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
308
- };
309
-
310
-
311
- /**
312
- * @param {!Array<string>} value
313
- * @return {!proto.BaseEmailMessageRequest} returns this
314
- */
315
- proto.BaseEmailMessageRequest.prototype.setCcList = function(value) {
316
- return jspb.Message.setField(this, 3, value || []);
317
- };
318
-
319
-
320
- /**
321
- * @param {string} value
322
- * @param {number=} opt_index
323
- * @return {!proto.BaseEmailMessageRequest} returns this
324
- */
325
- proto.BaseEmailMessageRequest.prototype.addCc = function(value, opt_index) {
326
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
327
- };
328
-
329
-
330
- /**
331
- * Clears the list making it empty but non-null.
332
- * @return {!proto.BaseEmailMessageRequest} returns this
333
- */
334
- proto.BaseEmailMessageRequest.prototype.clearCcList = function() {
335
- return this.setCcList([]);
336
- };
337
-
338
-
339
- /**
340
- * repeated Variable variable = 4;
341
- * @return {!Array<!proto.Variable>}
342
- */
343
- proto.BaseEmailMessageRequest.prototype.getVariableList = function() {
344
- return /** @type{!Array<!proto.Variable>} */ (
345
- jspb.Message.getRepeatedWrapperField(this, proto.Variable, 4));
346
- };
347
-
348
-
349
- /**
350
- * @param {!Array<!proto.Variable>} value
351
- * @return {!proto.BaseEmailMessageRequest} returns this
352
- */
353
- proto.BaseEmailMessageRequest.prototype.setVariableList = function(value) {
354
- return jspb.Message.setRepeatedWrapperField(this, 4, value);
355
- };
356
-
357
-
358
- /**
359
- * @param {!proto.Variable=} opt_value
360
- * @param {number=} opt_index
361
- * @return {!proto.Variable}
362
- */
363
- proto.BaseEmailMessageRequest.prototype.addVariable = function(opt_value, opt_index) {
364
- return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.Variable, opt_index);
365
- };
366
-
367
-
368
- /**
369
- * Clears the list making it empty but non-null.
370
- * @return {!proto.BaseEmailMessageRequest} returns this
371
- */
372
- proto.BaseEmailMessageRequest.prototype.clearVariableList = function() {
373
- return this.setVariableList([]);
374
- };
375
-
376
-
377
-
378
-
379
-
380
- if (jspb.Message.GENERATE_TO_OBJECT) {
381
- /**
382
- * Creates an object representation of this proto.
383
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
384
- * Optional fields that are not set will be set to undefined.
385
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
386
- * For the list of reserved names please see:
387
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
388
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
389
- * JSPB instance for transitional soy proto support:
390
- * http://goto/soy-param-migration
391
- * @return {!Object}
392
- */
393
- proto.Variable.prototype.toObject = function(opt_includeInstance) {
394
- return proto.Variable.toObject(opt_includeInstance, this);
395
- };
396
-
397
-
398
- /**
399
- * Static version of the {@see toObject} method.
400
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
401
- * the JSPB instance for transitional soy proto support:
402
- * http://goto/soy-param-migration
403
- * @param {!proto.Variable} msg The msg instance to transform.
404
- * @return {!Object}
405
- * @suppress {unusedLocalVariables} f is only used for nested messages
406
- */
407
- proto.Variable.toObject = function(includeInstance, msg) {
408
- var f, obj = {
409
- key: jspb.Message.getFieldWithDefault(msg, 1, ""),
410
- value: jspb.Message.getFieldWithDefault(msg, 2, "")
411
- };
412
-
413
- if (includeInstance) {
414
- obj.$jspbMessageInstance = msg;
415
- }
416
- return obj;
417
- };
418
- }
419
-
420
-
421
- /**
422
- * Deserializes binary data (in protobuf wire format).
423
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
424
- * @return {!proto.Variable}
425
- */
426
- proto.Variable.deserializeBinary = function(bytes) {
427
- var reader = new jspb.BinaryReader(bytes);
428
- var msg = new proto.Variable;
429
- return proto.Variable.deserializeBinaryFromReader(msg, reader);
430
- };
431
-
432
-
433
- /**
434
- * Deserializes binary data (in protobuf wire format) from the
435
- * given reader into the given message object.
436
- * @param {!proto.Variable} msg The message object to deserialize into.
437
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
438
- * @return {!proto.Variable}
439
- */
440
- proto.Variable.deserializeBinaryFromReader = function(msg, reader) {
441
- while (reader.nextField()) {
442
- if (reader.isEndGroup()) {
443
- break;
444
- }
445
- var field = reader.getFieldNumber();
446
- switch (field) {
447
- case 1:
448
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
449
- msg.setKey(value);
450
- break;
451
- case 2:
452
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
453
- msg.setValue(value);
454
- break;
455
- default:
456
- reader.skipField();
457
- break;
458
- }
459
- }
460
- return msg;
461
- };
462
-
463
-
464
- /**
465
- * Serializes the message to binary data (in protobuf wire format).
466
- * @return {!Uint8Array}
467
- */
468
- proto.Variable.prototype.serializeBinary = function() {
469
- var writer = new jspb.BinaryWriter();
470
- proto.Variable.serializeBinaryToWriter(this, writer);
471
- return writer.getResultBuffer();
472
- };
473
-
474
-
475
- /**
476
- * Serializes the given message to binary data (in protobuf wire
477
- * format), writing to the given BinaryWriter.
478
- * @param {!proto.Variable} message
479
- * @param {!jspb.BinaryWriter} writer
480
- * @suppress {unusedLocalVariables} f is only used for nested messages
481
- */
482
- proto.Variable.serializeBinaryToWriter = function(message, writer) {
483
- var f = undefined;
484
- f = message.getKey();
485
- if (f.length > 0) {
486
- writer.writeString(
487
- 1,
488
- f
489
- );
490
- }
491
- f = message.getValue();
492
- if (f.length > 0) {
493
- writer.writeString(
494
- 2,
495
- f
496
- );
497
- }
498
- };
499
-
500
-
501
- /**
502
- * optional string key = 1;
503
- * @return {string}
504
- */
505
- proto.Variable.prototype.getKey = function() {
506
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
507
- };
508
-
509
-
510
- /**
511
- * @param {string} value
512
- * @return {!proto.Variable} returns this
513
- */
514
- proto.Variable.prototype.setKey = function(value) {
515
- return jspb.Message.setProto3StringField(this, 1, value);
516
- };
517
-
518
-
519
- /**
520
- * optional string value = 2;
521
- * @return {string}
522
- */
523
- proto.Variable.prototype.getValue = function() {
524
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
525
- };
526
-
527
-
528
- /**
529
- * @param {string} value
530
- * @return {!proto.Variable} returns this
531
- */
532
- proto.Variable.prototype.setValue = function(value) {
533
- return jspb.Message.setProto3StringField(this, 2, value);
534
- };
535
-
536
-
537
-
538
-
539
-
540
- if (jspb.Message.GENERATE_TO_OBJECT) {
541
- /**
542
- * Creates an object representation of this proto.
543
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
544
- * Optional fields that are not set will be set to undefined.
545
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
546
- * For the list of reserved names please see:
547
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
548
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
549
- * JSPB instance for transitional soy proto support:
550
- * http://goto/soy-param-migration
551
- * @return {!Object}
552
- */
553
- proto.SendEmailMessageRequest.prototype.toObject = function(opt_includeInstance) {
554
- return proto.SendEmailMessageRequest.toObject(opt_includeInstance, this);
555
- };
556
-
557
-
558
- /**
559
- * Static version of the {@see toObject} method.
560
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
561
- * the JSPB instance for transitional soy proto support:
562
- * http://goto/soy-param-migration
563
- * @param {!proto.SendEmailMessageRequest} msg The msg instance to transform.
564
- * @return {!Object}
565
- * @suppress {unusedLocalVariables} f is only used for nested messages
566
- */
567
- proto.SendEmailMessageRequest.toObject = function(includeInstance, msg) {
568
- var f, obj = {
569
- baseRequest: (f = msg.getBaseRequest()) && proto.BaseEmailMessageRequest.toObject(includeInstance, f)
570
- };
571
-
572
- if (includeInstance) {
573
- obj.$jspbMessageInstance = msg;
574
- }
575
- return obj;
576
- };
577
- }
578
-
579
-
580
- /**
581
- * Deserializes binary data (in protobuf wire format).
582
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
583
- * @return {!proto.SendEmailMessageRequest}
584
- */
585
- proto.SendEmailMessageRequest.deserializeBinary = function(bytes) {
586
- var reader = new jspb.BinaryReader(bytes);
587
- var msg = new proto.SendEmailMessageRequest;
588
- return proto.SendEmailMessageRequest.deserializeBinaryFromReader(msg, reader);
589
- };
590
-
591
-
592
- /**
593
- * Deserializes binary data (in protobuf wire format) from the
594
- * given reader into the given message object.
595
- * @param {!proto.SendEmailMessageRequest} msg The message object to deserialize into.
596
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
597
- * @return {!proto.SendEmailMessageRequest}
598
- */
599
- proto.SendEmailMessageRequest.deserializeBinaryFromReader = function(msg, reader) {
600
- while (reader.nextField()) {
601
- if (reader.isEndGroup()) {
602
- break;
603
- }
604
- var field = reader.getFieldNumber();
605
- switch (field) {
606
- case 1:
607
- var value = new proto.BaseEmailMessageRequest;
608
- reader.readMessage(value,proto.BaseEmailMessageRequest.deserializeBinaryFromReader);
609
- msg.setBaseRequest(value);
610
- break;
611
- default:
612
- reader.skipField();
613
- break;
614
- }
615
- }
616
- return msg;
617
- };
618
-
619
-
620
- /**
621
- * Serializes the message to binary data (in protobuf wire format).
622
- * @return {!Uint8Array}
623
- */
624
- proto.SendEmailMessageRequest.prototype.serializeBinary = function() {
625
- var writer = new jspb.BinaryWriter();
626
- proto.SendEmailMessageRequest.serializeBinaryToWriter(this, writer);
627
- return writer.getResultBuffer();
628
- };
629
-
630
-
631
- /**
632
- * Serializes the given message to binary data (in protobuf wire
633
- * format), writing to the given BinaryWriter.
634
- * @param {!proto.SendEmailMessageRequest} message
635
- * @param {!jspb.BinaryWriter} writer
636
- * @suppress {unusedLocalVariables} f is only used for nested messages
637
- */
638
- proto.SendEmailMessageRequest.serializeBinaryToWriter = function(message, writer) {
639
- var f = undefined;
640
- f = message.getBaseRequest();
641
- if (f != null) {
642
- writer.writeMessage(
643
- 1,
644
- f,
645
- proto.BaseEmailMessageRequest.serializeBinaryToWriter
646
- );
647
- }
648
- };
649
-
650
-
651
- /**
652
- * optional BaseEmailMessageRequest base_request = 1;
653
- * @return {?proto.BaseEmailMessageRequest}
654
- */
655
- proto.SendEmailMessageRequest.prototype.getBaseRequest = function() {
656
- return /** @type{?proto.BaseEmailMessageRequest} */ (
657
- jspb.Message.getWrapperField(this, proto.BaseEmailMessageRequest, 1));
658
- };
659
-
660
-
661
- /**
662
- * @param {?proto.BaseEmailMessageRequest|undefined} value
663
- * @return {!proto.SendEmailMessageRequest} returns this
664
- */
665
- proto.SendEmailMessageRequest.prototype.setBaseRequest = function(value) {
666
- return jspb.Message.setWrapperField(this, 1, value);
667
- };
668
-
669
-
670
- /**
671
- * Clears the message field making it undefined.
672
- * @return {!proto.SendEmailMessageRequest} returns this
673
- */
674
- proto.SendEmailMessageRequest.prototype.clearBaseRequest = function() {
675
- return this.setBaseRequest(undefined);
676
- };
677
-
678
-
679
- /**
680
- * Returns whether this field is set.
681
- * @return {boolean}
682
- */
683
- proto.SendEmailMessageRequest.prototype.hasBaseRequest = function() {
684
- return jspb.Message.getField(this, 1) != null;
685
- };
686
-
687
-
688
-
689
-
690
-
691
- if (jspb.Message.GENERATE_TO_OBJECT) {
692
- /**
693
- * Creates an object representation of this proto.
694
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
695
- * Optional fields that are not set will be set to undefined.
696
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
697
- * For the list of reserved names please see:
698
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
699
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
700
- * JSPB instance for transitional soy proto support:
701
- * http://goto/soy-param-migration
702
- * @return {!Object}
703
- */
704
- proto.SendEmailMessageResponse.prototype.toObject = function(opt_includeInstance) {
705
- return proto.SendEmailMessageResponse.toObject(opt_includeInstance, this);
706
- };
707
-
708
-
709
- /**
710
- * Static version of the {@see toObject} method.
711
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
712
- * the JSPB instance for transitional soy proto support:
713
- * http://goto/soy-param-migration
714
- * @param {!proto.SendEmailMessageResponse} msg The msg instance to transform.
715
- * @return {!Object}
716
- * @suppress {unusedLocalVariables} f is only used for nested messages
717
- */
718
- proto.SendEmailMessageResponse.toObject = function(includeInstance, msg) {
719
- var f, obj = {
720
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f),
721
- baseEmailMessageRequest: (f = msg.getBaseEmailMessageRequest()) && proto.BaseEmailMessageRequest.toObject(includeInstance, f)
722
- };
723
-
724
- if (includeInstance) {
725
- obj.$jspbMessageInstance = msg;
726
- }
727
- return obj;
728
- };
729
- }
730
-
731
-
732
- /**
733
- * Deserializes binary data (in protobuf wire format).
734
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
735
- * @return {!proto.SendEmailMessageResponse}
736
- */
737
- proto.SendEmailMessageResponse.deserializeBinary = function(bytes) {
738
- var reader = new jspb.BinaryReader(bytes);
739
- var msg = new proto.SendEmailMessageResponse;
740
- return proto.SendEmailMessageResponse.deserializeBinaryFromReader(msg, reader);
741
- };
742
-
743
-
744
- /**
745
- * Deserializes binary data (in protobuf wire format) from the
746
- * given reader into the given message object.
747
- * @param {!proto.SendEmailMessageResponse} msg The message object to deserialize into.
748
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
749
- * @return {!proto.SendEmailMessageResponse}
750
- */
751
- proto.SendEmailMessageResponse.deserializeBinaryFromReader = function(msg, reader) {
752
- while (reader.nextField()) {
753
- if (reader.isEndGroup()) {
754
- break;
755
- }
756
- var field = reader.getFieldNumber();
757
- switch (field) {
758
- case 1:
759
- var value = new prisca_v1_global_meta_meta_pb.Meta;
760
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
761
- msg.setMeta(value);
762
- break;
763
- case 2:
764
- var value = new proto.BaseEmailMessageRequest;
765
- reader.readMessage(value,proto.BaseEmailMessageRequest.deserializeBinaryFromReader);
766
- msg.setBaseEmailMessageRequest(value);
767
- break;
768
- default:
769
- reader.skipField();
770
- break;
771
- }
772
- }
773
- return msg;
774
- };
775
-
776
-
777
- /**
778
- * Serializes the message to binary data (in protobuf wire format).
779
- * @return {!Uint8Array}
780
- */
781
- proto.SendEmailMessageResponse.prototype.serializeBinary = function() {
782
- var writer = new jspb.BinaryWriter();
783
- proto.SendEmailMessageResponse.serializeBinaryToWriter(this, writer);
784
- return writer.getResultBuffer();
785
- };
786
-
787
-
788
- /**
789
- * Serializes the given message to binary data (in protobuf wire
790
- * format), writing to the given BinaryWriter.
791
- * @param {!proto.SendEmailMessageResponse} message
792
- * @param {!jspb.BinaryWriter} writer
793
- * @suppress {unusedLocalVariables} f is only used for nested messages
794
- */
795
- proto.SendEmailMessageResponse.serializeBinaryToWriter = function(message, writer) {
796
- var f = undefined;
797
- f = message.getMeta();
798
- if (f != null) {
799
- writer.writeMessage(
800
- 1,
801
- f,
802
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
803
- );
804
- }
805
- f = message.getBaseEmailMessageRequest();
806
- if (f != null) {
807
- writer.writeMessage(
808
- 2,
809
- f,
810
- proto.BaseEmailMessageRequest.serializeBinaryToWriter
811
- );
812
- }
813
- };
814
-
815
-
816
- /**
817
- * optional prisca.v1.global.meta.Meta meta = 1;
818
- * @return {?proto.prisca.v1.global.meta.Meta}
819
- */
820
- proto.SendEmailMessageResponse.prototype.getMeta = function() {
821
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
822
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 1));
823
- };
824
-
825
-
826
- /**
827
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
828
- * @return {!proto.SendEmailMessageResponse} returns this
829
- */
830
- proto.SendEmailMessageResponse.prototype.setMeta = function(value) {
831
- return jspb.Message.setWrapperField(this, 1, value);
832
- };
833
-
834
-
835
- /**
836
- * Clears the message field making it undefined.
837
- * @return {!proto.SendEmailMessageResponse} returns this
838
- */
839
- proto.SendEmailMessageResponse.prototype.clearMeta = function() {
840
- return this.setMeta(undefined);
841
- };
842
-
843
-
844
- /**
845
- * Returns whether this field is set.
846
- * @return {boolean}
847
- */
848
- proto.SendEmailMessageResponse.prototype.hasMeta = function() {
849
- return jspb.Message.getField(this, 1) != null;
850
- };
851
-
852
-
853
- /**
854
- * optional BaseEmailMessageRequest base_email_message_request = 2;
855
- * @return {?proto.BaseEmailMessageRequest}
856
- */
857
- proto.SendEmailMessageResponse.prototype.getBaseEmailMessageRequest = function() {
858
- return /** @type{?proto.BaseEmailMessageRequest} */ (
859
- jspb.Message.getWrapperField(this, proto.BaseEmailMessageRequest, 2));
860
- };
861
-
862
-
863
- /**
864
- * @param {?proto.BaseEmailMessageRequest|undefined} value
865
- * @return {!proto.SendEmailMessageResponse} returns this
866
- */
867
- proto.SendEmailMessageResponse.prototype.setBaseEmailMessageRequest = function(value) {
868
- return jspb.Message.setWrapperField(this, 2, value);
869
- };
870
-
871
-
872
- /**
873
- * Clears the message field making it undefined.
874
- * @return {!proto.SendEmailMessageResponse} returns this
875
- */
876
- proto.SendEmailMessageResponse.prototype.clearBaseEmailMessageRequest = function() {
877
- return this.setBaseEmailMessageRequest(undefined);
878
- };
879
-
880
-
881
- /**
882
- * Returns whether this field is set.
883
- * @return {boolean}
884
- */
885
- proto.SendEmailMessageResponse.prototype.hasBaseEmailMessageRequest = function() {
886
- return jspb.Message.getField(this, 2) != null;
887
- };
888
-
889
-
890
- goog.object.extend(exports, proto);