@aldiokta/protocgen 1.1.43 → 1.1.45

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