@aldiokta/protocgen 1.1.19 → 1.1.21

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