@aldiokta/protocgen 1.1.21 → 1.1.23

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