@kenji71089/evaluation 0.0.1

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 (209) hide show
  1. package/.release-please-manifest.json +3 -0
  2. package/README.md +9 -0
  3. package/eslint.config.mjs +27 -0
  4. package/lib/clauseEvaluator.d.ts +22 -0
  5. package/lib/clauseEvaluator.js +299 -0
  6. package/lib/clauseEvaluator.mjs +214 -0
  7. package/lib/dependencyEvaluator.d.ts +6 -0
  8. package/lib/dependencyEvaluator.js +46 -0
  9. package/lib/dependencyEvaluator.mjs +19 -0
  10. package/lib/errors.d.ts +9 -0
  11. package/lib/errors.js +15 -0
  12. package/lib/errors.mjs +12 -0
  13. package/lib/evaluation.d.ts +25 -0
  14. package/lib/evaluation.js +503 -0
  15. package/lib/evaluation.mjs +328 -0
  16. package/lib/google/api/annotations_pb.d.ts +8 -0
  17. package/lib/google/api/annotations_pb.js +40 -0
  18. package/lib/google/api/annotations_pb.mjs +54 -0
  19. package/lib/google/api/annotations_pb_service.d.ts +3 -0
  20. package/lib/google/api/annotations_pb_service.js +3 -0
  21. package/lib/google/api/annotations_pb_service.mjs +3 -0
  22. package/lib/google/api/http_pb.d.ts +132 -0
  23. package/lib/google/api/http_pb.js +860 -0
  24. package/lib/google/api/http_pb.mjs +982 -0
  25. package/lib/google/api/http_pb_service.d.ts +3 -0
  26. package/lib/google/api/http_pb_service.js +3 -0
  27. package/lib/google/api/http_pb_service.mjs +3 -0
  28. package/lib/google/rpc/code_pb.d.ts +26 -0
  29. package/lib/google/rpc/code_pb.js +44 -0
  30. package/lib/google/rpc/code_pb.mjs +48 -0
  31. package/lib/google/rpc/code_pb_service.d.ts +3 -0
  32. package/lib/google/rpc/code_pb_service.js +3 -0
  33. package/lib/google/rpc/code_pb_service.mjs +3 -0
  34. package/lib/google/rpc/error_details_pb.d.ts +322 -0
  35. package/lib/google/rpc/error_details_pb.js +2220 -0
  36. package/lib/google/rpc/error_details_pb.mjs +2499 -0
  37. package/lib/google/rpc/error_details_pb_service.d.ts +3 -0
  38. package/lib/google/rpc/error_details_pb_service.js +3 -0
  39. package/lib/google/rpc/error_details_pb_service.mjs +3 -0
  40. package/lib/google/rpc/status_pb.d.ts +36 -0
  41. package/lib/google/rpc/status_pb.js +235 -0
  42. package/lib/google/rpc/status_pb.mjs +268 -0
  43. package/lib/google/rpc/status_pb_service.d.ts +3 -0
  44. package/lib/google/rpc/status_pb_service.js +3 -0
  45. package/lib/google/rpc/status_pb_service.mjs +3 -0
  46. package/lib/index.d.ts +20 -0
  47. package/lib/index.js +199 -0
  48. package/lib/index.mjs +46 -0
  49. package/lib/modelFactory.d.ts +64 -0
  50. package/lib/modelFactory.js +206 -0
  51. package/lib/modelFactory.mjs +176 -0
  52. package/lib/proto/event/client/event_pb.d.ts +761 -0
  53. package/lib/proto/event/client/event_pb.js +5195 -0
  54. package/lib/proto/event/client/event_pb.mjs +5865 -0
  55. package/lib/proto/event/client/event_pb_service.d.ts +3 -0
  56. package/lib/proto/event/client/event_pb_service.js +3 -0
  57. package/lib/proto/event/client/event_pb_service.mjs +3 -0
  58. package/lib/proto/event/domain/event_pb.d.ts +4518 -0
  59. package/lib/proto/event/domain/event_pb.js +10834 -0
  60. package/lib/proto/event/domain/event_pb.mjs +33315 -0
  61. package/lib/proto/event/domain/event_pb_service.d.ts +3 -0
  62. package/lib/proto/event/domain/event_pb_service.js +3 -0
  63. package/lib/proto/event/domain/event_pb_service.mjs +3 -0
  64. package/lib/proto/event/domain/localized_message_pb.d.ts +29 -0
  65. package/lib/proto/event/domain/localized_message_pb.js +183 -0
  66. package/lib/proto/event/domain/localized_message_pb.mjs +206 -0
  67. package/lib/proto/event/domain/localized_message_pb_service.d.ts +3 -0
  68. package/lib/proto/event/domain/localized_message_pb_service.js +3 -0
  69. package/lib/proto/event/domain/localized_message_pb_service.mjs +3 -0
  70. package/lib/proto/event/service/feature_pb.d.ts +44 -0
  71. package/lib/proto/event/service/feature_pb.js +277 -0
  72. package/lib/proto/event/service/feature_pb.mjs +319 -0
  73. package/lib/proto/event/service/feature_pb_service.d.ts +3 -0
  74. package/lib/proto/event/service/feature_pb_service.js +3 -0
  75. package/lib/proto/event/service/feature_pb_service.mjs +3 -0
  76. package/lib/proto/event/service/segment_pb.d.ts +51 -0
  77. package/lib/proto/event/service/segment_pb.js +324 -0
  78. package/lib/proto/event/service/segment_pb.mjs +375 -0
  79. package/lib/proto/event/service/segment_pb_service.d.ts +3 -0
  80. package/lib/proto/event/service/segment_pb_service.js +3 -0
  81. package/lib/proto/event/service/segment_pb_service.mjs +3 -0
  82. package/lib/proto/event/service/user_pb.d.ts +49 -0
  83. package/lib/proto/event/service/user_pb.js +315 -0
  84. package/lib/proto/event/service/user_pb.mjs +362 -0
  85. package/lib/proto/event/service/user_pb_service.d.ts +3 -0
  86. package/lib/proto/event/service/user_pb_service.js +3 -0
  87. package/lib/proto/event/service/user_pb_service.mjs +3 -0
  88. package/lib/proto/feature/clause_pb.d.ts +57 -0
  89. package/lib/proto/feature/clause_pb.js +277 -0
  90. package/lib/proto/feature/clause_pb.mjs +312 -0
  91. package/lib/proto/feature/clause_pb_service.d.ts +3 -0
  92. package/lib/proto/feature/clause_pb_service.js +3 -0
  93. package/lib/proto/feature/clause_pb_service.mjs +3 -0
  94. package/lib/proto/feature/command_pb.d.ts +1213 -0
  95. package/lib/proto/feature/command_pb.js +8260 -0
  96. package/lib/proto/feature/command_pb.mjs +9275 -0
  97. package/lib/proto/feature/command_pb_service.d.ts +3 -0
  98. package/lib/proto/feature/command_pb_service.js +3 -0
  99. package/lib/proto/feature/command_pb_service.mjs +3 -0
  100. package/lib/proto/feature/evaluation_pb.d.ts +111 -0
  101. package/lib/proto/feature/evaluation_pb.js +685 -0
  102. package/lib/proto/feature/evaluation_pb.mjs +793 -0
  103. package/lib/proto/feature/evaluation_pb_service.d.ts +3 -0
  104. package/lib/proto/feature/evaluation_pb_service.js +3 -0
  105. package/lib/proto/feature/evaluation_pb_service.mjs +3 -0
  106. package/lib/proto/feature/feature_last_used_info_pb.d.ts +45 -0
  107. package/lib/proto/feature/feature_last_used_info_pb.js +283 -0
  108. package/lib/proto/feature/feature_last_used_info_pb.mjs +326 -0
  109. package/lib/proto/feature/feature_last_used_info_pb_service.d.ts +3 -0
  110. package/lib/proto/feature/feature_last_used_info_pb_service.js +3 -0
  111. package/lib/proto/feature/feature_last_used_info_pb_service.mjs +3 -0
  112. package/lib/proto/feature/feature_pb.d.ts +192 -0
  113. package/lib/proto/feature/feature_pb.js +1210 -0
  114. package/lib/proto/feature/feature_pb.mjs +1413 -0
  115. package/lib/proto/feature/feature_pb_service.d.ts +3 -0
  116. package/lib/proto/feature/feature_pb_service.js +3 -0
  117. package/lib/proto/feature/feature_pb_service.mjs +3 -0
  118. package/lib/proto/feature/flag_trigger_pb.d.ts +84 -0
  119. package/lib/proto/feature/flag_trigger_pb.js +452 -0
  120. package/lib/proto/feature/flag_trigger_pb.mjs +525 -0
  121. package/lib/proto/feature/flag_trigger_pb_service.d.ts +3 -0
  122. package/lib/proto/feature/flag_trigger_pb_service.js +3 -0
  123. package/lib/proto/feature/flag_trigger_pb_service.mjs +3 -0
  124. package/lib/proto/feature/prerequisite_pb.d.ts +29 -0
  125. package/lib/proto/feature/prerequisite_pb.js +183 -0
  126. package/lib/proto/feature/prerequisite_pb.mjs +206 -0
  127. package/lib/proto/feature/prerequisite_pb_service.d.ts +3 -0
  128. package/lib/proto/feature/prerequisite_pb_service.js +3 -0
  129. package/lib/proto/feature/prerequisite_pb_service.mjs +3 -0
  130. package/lib/proto/feature/reason_pb.d.ts +40 -0
  131. package/lib/proto/feature/reason_pb.js +196 -0
  132. package/lib/proto/feature/reason_pb.mjs +219 -0
  133. package/lib/proto/feature/reason_pb_service.d.ts +3 -0
  134. package/lib/proto/feature/reason_pb_service.js +3 -0
  135. package/lib/proto/feature/reason_pb_service.mjs +3 -0
  136. package/lib/proto/feature/rule_pb.d.ts +39 -0
  137. package/lib/proto/feature/rule_pb.js +254 -0
  138. package/lib/proto/feature/rule_pb.mjs +291 -0
  139. package/lib/proto/feature/rule_pb_service.d.ts +3 -0
  140. package/lib/proto/feature/rule_pb_service.js +3 -0
  141. package/lib/proto/feature/rule_pb_service.mjs +3 -0
  142. package/lib/proto/feature/segment_pb.d.ts +161 -0
  143. package/lib/proto/feature/segment_pb.js +974 -0
  144. package/lib/proto/feature/segment_pb.mjs +1127 -0
  145. package/lib/proto/feature/segment_pb_service.d.ts +3 -0
  146. package/lib/proto/feature/segment_pb_service.js +3 -0
  147. package/lib/proto/feature/segment_pb_service.mjs +3 -0
  148. package/lib/proto/feature/service_pb.d.ts +2158 -0
  149. package/lib/proto/feature/service_pb.js +5363 -0
  150. package/lib/proto/feature/service_pb.mjs +16348 -0
  151. package/lib/proto/feature/service_pb_service.d.ts +747 -0
  152. package/lib/proto/feature/service_pb_service.js +1424 -0
  153. package/lib/proto/feature/service_pb_service.mjs +1501 -0
  154. package/lib/proto/feature/strategy_pb.d.ts +110 -0
  155. package/lib/proto/feature/strategy_pb.js +712 -0
  156. package/lib/proto/feature/strategy_pb.mjs +803 -0
  157. package/lib/proto/feature/strategy_pb_service.d.ts +3 -0
  158. package/lib/proto/feature/strategy_pb_service.js +3 -0
  159. package/lib/proto/feature/strategy_pb_service.mjs +3 -0
  160. package/lib/proto/feature/target_pb.d.ts +31 -0
  161. package/lib/proto/feature/target_pb.js +207 -0
  162. package/lib/proto/feature/target_pb.mjs +232 -0
  163. package/lib/proto/feature/target_pb_service.d.ts +3 -0
  164. package/lib/proto/feature/target_pb_service.js +3 -0
  165. package/lib/proto/feature/target_pb_service.mjs +3 -0
  166. package/lib/proto/feature/variation_pb.d.ts +37 -0
  167. package/lib/proto/feature/variation_pb.js +233 -0
  168. package/lib/proto/feature/variation_pb.mjs +266 -0
  169. package/lib/proto/feature/variation_pb_service.d.ts +3 -0
  170. package/lib/proto/feature/variation_pb_service.js +3 -0
  171. package/lib/proto/feature/variation_pb_service.mjs +3 -0
  172. package/lib/proto/gateway/service_pb.d.ts +772 -0
  173. package/lib/proto/gateway/service_pb.js +5249 -0
  174. package/lib/proto/gateway/service_pb.mjs +6001 -0
  175. package/lib/proto/gateway/service_pb_service.d.ts +253 -0
  176. package/lib/proto/gateway/service_pb_service.js +436 -0
  177. package/lib/proto/gateway/service_pb_service.mjs +461 -0
  178. package/lib/proto/user/user_pb.d.ts +58 -0
  179. package/lib/proto/user/user_pb.js +410 -0
  180. package/lib/proto/user/user_pb.mjs +460 -0
  181. package/lib/proto/user/user_pb_service.d.ts +3 -0
  182. package/lib/proto/user/user_pb_service.js +3 -0
  183. package/lib/proto/user/user_pb_service.mjs +3 -0
  184. package/lib/protoc-gen-openapiv2/options/annotations_pb.d.ts +16 -0
  185. package/lib/protoc-gen-openapiv2/options/annotations_pb.js +100 -0
  186. package/lib/protoc-gen-openapiv2/options/annotations_pb.mjs +158 -0
  187. package/lib/protoc-gen-openapiv2/options/annotations_pb_service.d.ts +3 -0
  188. package/lib/protoc-gen-openapiv2/options/annotations_pb_service.js +3 -0
  189. package/lib/protoc-gen-openapiv2/options/annotations_pb_service.mjs +3 -0
  190. package/lib/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +834 -0
  191. package/lib/protoc-gen-openapiv2/options/openapiv2_pb.js +5456 -0
  192. package/lib/protoc-gen-openapiv2/options/openapiv2_pb.mjs +6256 -0
  193. package/lib/protoc-gen-openapiv2/options/openapiv2_pb_service.d.ts +3 -0
  194. package/lib/protoc-gen-openapiv2/options/openapiv2_pb_service.js +3 -0
  195. package/lib/protoc-gen-openapiv2/options/openapiv2_pb_service.mjs +3 -0
  196. package/lib/ruleEvaluator.d.ts +13 -0
  197. package/lib/ruleEvaluator.js +80 -0
  198. package/lib/ruleEvaluator.mjs +41 -0
  199. package/lib/segmentEvaluator.d.ts +7 -0
  200. package/lib/segmentEvaluator.js +74 -0
  201. package/lib/segmentEvaluator.mjs +34 -0
  202. package/lib/strategyEvaluator.d.ts +10 -0
  203. package/lib/strategyEvaluator.js +135 -0
  204. package/lib/strategyEvaluator.mjs +83 -0
  205. package/lib/userEvaluation.d.ts +8 -0
  206. package/lib/userEvaluation.js +70 -0
  207. package/lib/userEvaluation.mjs +60 -0
  208. package/package.json +46 -0
  209. package/release-please-config.json +22 -0
@@ -0,0 +1,2499 @@
1
+ // source: google/rpc/error_details.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
+
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
25
+ goog.object.extend(proto, google_protobuf_duration_pb);
26
+ goog.exportSymbol('proto.google.rpc.BadRequest', null, global);
27
+ goog.exportSymbol('proto.google.rpc.BadRequest.FieldViolation', null, global);
28
+ goog.exportSymbol('proto.google.rpc.DebugInfo', null, global);
29
+ goog.exportSymbol('proto.google.rpc.Help', null, global);
30
+ goog.exportSymbol('proto.google.rpc.Help.Link', null, global);
31
+ goog.exportSymbol('proto.google.rpc.LocalizedMessage', null, global);
32
+ goog.exportSymbol('proto.google.rpc.PreconditionFailure', null, global);
33
+ goog.exportSymbol('proto.google.rpc.PreconditionFailure.Violation', null, global);
34
+ goog.exportSymbol('proto.google.rpc.QuotaFailure', null, global);
35
+ goog.exportSymbol('proto.google.rpc.QuotaFailure.Violation', null, global);
36
+ goog.exportSymbol('proto.google.rpc.RequestInfo', null, global);
37
+ goog.exportSymbol('proto.google.rpc.ResourceInfo', null, global);
38
+ goog.exportSymbol('proto.google.rpc.RetryInfo', null, global);
39
+ /**
40
+ * Generated by JsPbCodeGenerator.
41
+ * @param {Array=} opt_data Optional initial data array, typically from a
42
+ * server response, or constructed directly in Javascript. The array is used
43
+ * in place and becomes part of the constructed object. It is not cloned.
44
+ * If no data is provided, the constructed object will be empty, but still
45
+ * valid.
46
+ * @extends {jspb.Message}
47
+ * @constructor
48
+ */
49
+ proto.google.rpc.RetryInfo = function(opt_data) {
50
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
51
+ };
52
+ goog.inherits(proto.google.rpc.RetryInfo, jspb.Message);
53
+ if (goog.DEBUG && !COMPILED) {
54
+ /**
55
+ * @public
56
+ * @override
57
+ */
58
+ proto.google.rpc.RetryInfo.displayName = 'proto.google.rpc.RetryInfo';
59
+ }
60
+ /**
61
+ * Generated by JsPbCodeGenerator.
62
+ * @param {Array=} opt_data Optional initial data array, typically from a
63
+ * server response, or constructed directly in Javascript. The array is used
64
+ * in place and becomes part of the constructed object. It is not cloned.
65
+ * If no data is provided, the constructed object will be empty, but still
66
+ * valid.
67
+ * @extends {jspb.Message}
68
+ * @constructor
69
+ */
70
+ proto.google.rpc.DebugInfo = function(opt_data) {
71
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.DebugInfo.repeatedFields_, null);
72
+ };
73
+ goog.inherits(proto.google.rpc.DebugInfo, jspb.Message);
74
+ if (goog.DEBUG && !COMPILED) {
75
+ /**
76
+ * @public
77
+ * @override
78
+ */
79
+ proto.google.rpc.DebugInfo.displayName = 'proto.google.rpc.DebugInfo';
80
+ }
81
+ /**
82
+ * Generated by JsPbCodeGenerator.
83
+ * @param {Array=} opt_data Optional initial data array, typically from a
84
+ * server response, or constructed directly in Javascript. The array is used
85
+ * in place and becomes part of the constructed object. It is not cloned.
86
+ * If no data is provided, the constructed object will be empty, but still
87
+ * valid.
88
+ * @extends {jspb.Message}
89
+ * @constructor
90
+ */
91
+ proto.google.rpc.QuotaFailure = function(opt_data) {
92
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.QuotaFailure.repeatedFields_, null);
93
+ };
94
+ goog.inherits(proto.google.rpc.QuotaFailure, jspb.Message);
95
+ if (goog.DEBUG && !COMPILED) {
96
+ /**
97
+ * @public
98
+ * @override
99
+ */
100
+ proto.google.rpc.QuotaFailure.displayName = 'proto.google.rpc.QuotaFailure';
101
+ }
102
+ /**
103
+ * Generated by JsPbCodeGenerator.
104
+ * @param {Array=} opt_data Optional initial data array, typically from a
105
+ * server response, or constructed directly in Javascript. The array is used
106
+ * in place and becomes part of the constructed object. It is not cloned.
107
+ * If no data is provided, the constructed object will be empty, but still
108
+ * valid.
109
+ * @extends {jspb.Message}
110
+ * @constructor
111
+ */
112
+ proto.google.rpc.QuotaFailure.Violation = function(opt_data) {
113
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
114
+ };
115
+ goog.inherits(proto.google.rpc.QuotaFailure.Violation, jspb.Message);
116
+ if (goog.DEBUG && !COMPILED) {
117
+ /**
118
+ * @public
119
+ * @override
120
+ */
121
+ proto.google.rpc.QuotaFailure.Violation.displayName = 'proto.google.rpc.QuotaFailure.Violation';
122
+ }
123
+ /**
124
+ * Generated by JsPbCodeGenerator.
125
+ * @param {Array=} opt_data Optional initial data array, typically from a
126
+ * server response, or constructed directly in Javascript. The array is used
127
+ * in place and becomes part of the constructed object. It is not cloned.
128
+ * If no data is provided, the constructed object will be empty, but still
129
+ * valid.
130
+ * @extends {jspb.Message}
131
+ * @constructor
132
+ */
133
+ proto.google.rpc.PreconditionFailure = function(opt_data) {
134
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.PreconditionFailure.repeatedFields_, null);
135
+ };
136
+ goog.inherits(proto.google.rpc.PreconditionFailure, jspb.Message);
137
+ if (goog.DEBUG && !COMPILED) {
138
+ /**
139
+ * @public
140
+ * @override
141
+ */
142
+ proto.google.rpc.PreconditionFailure.displayName = 'proto.google.rpc.PreconditionFailure';
143
+ }
144
+ /**
145
+ * Generated by JsPbCodeGenerator.
146
+ * @param {Array=} opt_data Optional initial data array, typically from a
147
+ * server response, or constructed directly in Javascript. The array is used
148
+ * in place and becomes part of the constructed object. It is not cloned.
149
+ * If no data is provided, the constructed object will be empty, but still
150
+ * valid.
151
+ * @extends {jspb.Message}
152
+ * @constructor
153
+ */
154
+ proto.google.rpc.PreconditionFailure.Violation = function(opt_data) {
155
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
156
+ };
157
+ goog.inherits(proto.google.rpc.PreconditionFailure.Violation, jspb.Message);
158
+ if (goog.DEBUG && !COMPILED) {
159
+ /**
160
+ * @public
161
+ * @override
162
+ */
163
+ proto.google.rpc.PreconditionFailure.Violation.displayName = 'proto.google.rpc.PreconditionFailure.Violation';
164
+ }
165
+ /**
166
+ * Generated by JsPbCodeGenerator.
167
+ * @param {Array=} opt_data Optional initial data array, typically from a
168
+ * server response, or constructed directly in Javascript. The array is used
169
+ * in place and becomes part of the constructed object. It is not cloned.
170
+ * If no data is provided, the constructed object will be empty, but still
171
+ * valid.
172
+ * @extends {jspb.Message}
173
+ * @constructor
174
+ */
175
+ proto.google.rpc.BadRequest = function(opt_data) {
176
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.BadRequest.repeatedFields_, null);
177
+ };
178
+ goog.inherits(proto.google.rpc.BadRequest, jspb.Message);
179
+ if (goog.DEBUG && !COMPILED) {
180
+ /**
181
+ * @public
182
+ * @override
183
+ */
184
+ proto.google.rpc.BadRequest.displayName = 'proto.google.rpc.BadRequest';
185
+ }
186
+ /**
187
+ * Generated by JsPbCodeGenerator.
188
+ * @param {Array=} opt_data Optional initial data array, typically from a
189
+ * server response, or constructed directly in Javascript. The array is used
190
+ * in place and becomes part of the constructed object. It is not cloned.
191
+ * If no data is provided, the constructed object will be empty, but still
192
+ * valid.
193
+ * @extends {jspb.Message}
194
+ * @constructor
195
+ */
196
+ proto.google.rpc.BadRequest.FieldViolation = function(opt_data) {
197
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
198
+ };
199
+ goog.inherits(proto.google.rpc.BadRequest.FieldViolation, jspb.Message);
200
+ if (goog.DEBUG && !COMPILED) {
201
+ /**
202
+ * @public
203
+ * @override
204
+ */
205
+ proto.google.rpc.BadRequest.FieldViolation.displayName = 'proto.google.rpc.BadRequest.FieldViolation';
206
+ }
207
+ /**
208
+ * Generated by JsPbCodeGenerator.
209
+ * @param {Array=} opt_data Optional initial data array, typically from a
210
+ * server response, or constructed directly in Javascript. The array is used
211
+ * in place and becomes part of the constructed object. It is not cloned.
212
+ * If no data is provided, the constructed object will be empty, but still
213
+ * valid.
214
+ * @extends {jspb.Message}
215
+ * @constructor
216
+ */
217
+ proto.google.rpc.RequestInfo = function(opt_data) {
218
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
219
+ };
220
+ goog.inherits(proto.google.rpc.RequestInfo, jspb.Message);
221
+ if (goog.DEBUG && !COMPILED) {
222
+ /**
223
+ * @public
224
+ * @override
225
+ */
226
+ proto.google.rpc.RequestInfo.displayName = 'proto.google.rpc.RequestInfo';
227
+ }
228
+ /**
229
+ * Generated by JsPbCodeGenerator.
230
+ * @param {Array=} opt_data Optional initial data array, typically from a
231
+ * server response, or constructed directly in Javascript. The array is used
232
+ * in place and becomes part of the constructed object. It is not cloned.
233
+ * If no data is provided, the constructed object will be empty, but still
234
+ * valid.
235
+ * @extends {jspb.Message}
236
+ * @constructor
237
+ */
238
+ proto.google.rpc.ResourceInfo = function(opt_data) {
239
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
240
+ };
241
+ goog.inherits(proto.google.rpc.ResourceInfo, jspb.Message);
242
+ if (goog.DEBUG && !COMPILED) {
243
+ /**
244
+ * @public
245
+ * @override
246
+ */
247
+ proto.google.rpc.ResourceInfo.displayName = 'proto.google.rpc.ResourceInfo';
248
+ }
249
+ /**
250
+ * Generated by JsPbCodeGenerator.
251
+ * @param {Array=} opt_data Optional initial data array, typically from a
252
+ * server response, or constructed directly in Javascript. The array is used
253
+ * in place and becomes part of the constructed object. It is not cloned.
254
+ * If no data is provided, the constructed object will be empty, but still
255
+ * valid.
256
+ * @extends {jspb.Message}
257
+ * @constructor
258
+ */
259
+ proto.google.rpc.Help = function(opt_data) {
260
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.Help.repeatedFields_, null);
261
+ };
262
+ goog.inherits(proto.google.rpc.Help, jspb.Message);
263
+ if (goog.DEBUG && !COMPILED) {
264
+ /**
265
+ * @public
266
+ * @override
267
+ */
268
+ proto.google.rpc.Help.displayName = 'proto.google.rpc.Help';
269
+ }
270
+ /**
271
+ * Generated by JsPbCodeGenerator.
272
+ * @param {Array=} opt_data Optional initial data array, typically from a
273
+ * server response, or constructed directly in Javascript. The array is used
274
+ * in place and becomes part of the constructed object. It is not cloned.
275
+ * If no data is provided, the constructed object will be empty, but still
276
+ * valid.
277
+ * @extends {jspb.Message}
278
+ * @constructor
279
+ */
280
+ proto.google.rpc.Help.Link = function(opt_data) {
281
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
282
+ };
283
+ goog.inherits(proto.google.rpc.Help.Link, jspb.Message);
284
+ if (goog.DEBUG && !COMPILED) {
285
+ /**
286
+ * @public
287
+ * @override
288
+ */
289
+ proto.google.rpc.Help.Link.displayName = 'proto.google.rpc.Help.Link';
290
+ }
291
+ /**
292
+ * Generated by JsPbCodeGenerator.
293
+ * @param {Array=} opt_data Optional initial data array, typically from a
294
+ * server response, or constructed directly in Javascript. The array is used
295
+ * in place and becomes part of the constructed object. It is not cloned.
296
+ * If no data is provided, the constructed object will be empty, but still
297
+ * valid.
298
+ * @extends {jspb.Message}
299
+ * @constructor
300
+ */
301
+ proto.google.rpc.LocalizedMessage = function(opt_data) {
302
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
303
+ };
304
+ goog.inherits(proto.google.rpc.LocalizedMessage, jspb.Message);
305
+ if (goog.DEBUG && !COMPILED) {
306
+ /**
307
+ * @public
308
+ * @override
309
+ */
310
+ proto.google.rpc.LocalizedMessage.displayName = 'proto.google.rpc.LocalizedMessage';
311
+ }
312
+
313
+
314
+
315
+ if (jspb.Message.GENERATE_TO_OBJECT) {
316
+ /**
317
+ * Creates an object representation of this proto.
318
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
319
+ * Optional fields that are not set will be set to undefined.
320
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
321
+ * For the list of reserved names please see:
322
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
323
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
324
+ * JSPB instance for transitional soy proto support:
325
+ * http://goto/soy-param-migration
326
+ * @return {!Object}
327
+ */
328
+ proto.google.rpc.RetryInfo.prototype.toObject = function(opt_includeInstance) {
329
+ return proto.google.rpc.RetryInfo.toObject(opt_includeInstance, this);
330
+ };
331
+
332
+
333
+ /**
334
+ * Static version of the {@see toObject} method.
335
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
336
+ * the JSPB instance for transitional soy proto support:
337
+ * http://goto/soy-param-migration
338
+ * @param {!proto.google.rpc.RetryInfo} msg The msg instance to transform.
339
+ * @return {!Object}
340
+ * @suppress {unusedLocalVariables} f is only used for nested messages
341
+ */
342
+ proto.google.rpc.RetryInfo.toObject = function(includeInstance, msg) {
343
+ var f, obj = {
344
+ retryDelay: (f = msg.getRetryDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
345
+ };
346
+
347
+ if (includeInstance) {
348
+ obj.$jspbMessageInstance = msg;
349
+ }
350
+ return obj;
351
+ };
352
+ }
353
+
354
+
355
+ /**
356
+ * Deserializes binary data (in protobuf wire format).
357
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
358
+ * @return {!proto.google.rpc.RetryInfo}
359
+ */
360
+ proto.google.rpc.RetryInfo.deserializeBinary = function(bytes) {
361
+ var reader = new jspb.BinaryReader(bytes);
362
+ var msg = new proto.google.rpc.RetryInfo;
363
+ return proto.google.rpc.RetryInfo.deserializeBinaryFromReader(msg, reader);
364
+ };
365
+
366
+
367
+ /**
368
+ * Deserializes binary data (in protobuf wire format) from the
369
+ * given reader into the given message object.
370
+ * @param {!proto.google.rpc.RetryInfo} msg The message object to deserialize into.
371
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
372
+ * @return {!proto.google.rpc.RetryInfo}
373
+ */
374
+ proto.google.rpc.RetryInfo.deserializeBinaryFromReader = function(msg, reader) {
375
+ while (reader.nextField()) {
376
+ if (reader.isEndGroup()) {
377
+ break;
378
+ }
379
+ var field = reader.getFieldNumber();
380
+ switch (field) {
381
+ case 1:
382
+ var value = new google_protobuf_duration_pb.Duration;
383
+ reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
384
+ msg.setRetryDelay(value);
385
+ break;
386
+ default:
387
+ reader.skipField();
388
+ break;
389
+ }
390
+ }
391
+ return msg;
392
+ };
393
+
394
+
395
+ /**
396
+ * Serializes the message to binary data (in protobuf wire format).
397
+ * @return {!Uint8Array}
398
+ */
399
+ proto.google.rpc.RetryInfo.prototype.serializeBinary = function() {
400
+ var writer = new jspb.BinaryWriter();
401
+ proto.google.rpc.RetryInfo.serializeBinaryToWriter(this, writer);
402
+ return writer.getResultBuffer();
403
+ };
404
+
405
+
406
+ /**
407
+ * Serializes the given message to binary data (in protobuf wire
408
+ * format), writing to the given BinaryWriter.
409
+ * @param {!proto.google.rpc.RetryInfo} message
410
+ * @param {!jspb.BinaryWriter} writer
411
+ * @suppress {unusedLocalVariables} f is only used for nested messages
412
+ */
413
+ proto.google.rpc.RetryInfo.serializeBinaryToWriter = function(message, writer) {
414
+ var f = undefined;
415
+ f = message.getRetryDelay();
416
+ if (f != null) {
417
+ writer.writeMessage(
418
+ 1,
419
+ f,
420
+ google_protobuf_duration_pb.Duration.serializeBinaryToWriter
421
+ );
422
+ }
423
+ };
424
+
425
+
426
+ /**
427
+ * optional google.protobuf.Duration retry_delay = 1;
428
+ * @return {?proto.google.protobuf.Duration}
429
+ */
430
+ proto.google.rpc.RetryInfo.prototype.getRetryDelay = function() {
431
+ return /** @type{?proto.google.protobuf.Duration} */ (
432
+ jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 1));
433
+ };
434
+
435
+
436
+ /**
437
+ * @param {?proto.google.protobuf.Duration|undefined} value
438
+ * @return {!proto.google.rpc.RetryInfo} returns this
439
+ */
440
+ proto.google.rpc.RetryInfo.prototype.setRetryDelay = function(value) {
441
+ return jspb.Message.setWrapperField(this, 1, value);
442
+ };
443
+
444
+
445
+ /**
446
+ * Clears the message field making it undefined.
447
+ * @return {!proto.google.rpc.RetryInfo} returns this
448
+ */
449
+ proto.google.rpc.RetryInfo.prototype.clearRetryDelay = function() {
450
+ return this.setRetryDelay(undefined);
451
+ };
452
+
453
+
454
+ /**
455
+ * Returns whether this field is set.
456
+ * @return {boolean}
457
+ */
458
+ proto.google.rpc.RetryInfo.prototype.hasRetryDelay = function() {
459
+ return jspb.Message.getField(this, 1) != null;
460
+ };
461
+
462
+
463
+
464
+ /**
465
+ * List of repeated fields within this message type.
466
+ * @private {!Array<number>}
467
+ * @const
468
+ */
469
+ proto.google.rpc.DebugInfo.repeatedFields_ = [1];
470
+
471
+
472
+
473
+ if (jspb.Message.GENERATE_TO_OBJECT) {
474
+ /**
475
+ * Creates an object representation of this proto.
476
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
477
+ * Optional fields that are not set will be set to undefined.
478
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
479
+ * For the list of reserved names please see:
480
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
481
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
482
+ * JSPB instance for transitional soy proto support:
483
+ * http://goto/soy-param-migration
484
+ * @return {!Object}
485
+ */
486
+ proto.google.rpc.DebugInfo.prototype.toObject = function(opt_includeInstance) {
487
+ return proto.google.rpc.DebugInfo.toObject(opt_includeInstance, this);
488
+ };
489
+
490
+
491
+ /**
492
+ * Static version of the {@see toObject} method.
493
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
494
+ * the JSPB instance for transitional soy proto support:
495
+ * http://goto/soy-param-migration
496
+ * @param {!proto.google.rpc.DebugInfo} msg The msg instance to transform.
497
+ * @return {!Object}
498
+ * @suppress {unusedLocalVariables} f is only used for nested messages
499
+ */
500
+ proto.google.rpc.DebugInfo.toObject = function(includeInstance, msg) {
501
+ var f, obj = {
502
+ stackEntriesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
503
+ detail: jspb.Message.getFieldWithDefault(msg, 2, "")
504
+ };
505
+
506
+ if (includeInstance) {
507
+ obj.$jspbMessageInstance = msg;
508
+ }
509
+ return obj;
510
+ };
511
+ }
512
+
513
+
514
+ /**
515
+ * Deserializes binary data (in protobuf wire format).
516
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
517
+ * @return {!proto.google.rpc.DebugInfo}
518
+ */
519
+ proto.google.rpc.DebugInfo.deserializeBinary = function(bytes) {
520
+ var reader = new jspb.BinaryReader(bytes);
521
+ var msg = new proto.google.rpc.DebugInfo;
522
+ return proto.google.rpc.DebugInfo.deserializeBinaryFromReader(msg, reader);
523
+ };
524
+
525
+
526
+ /**
527
+ * Deserializes binary data (in protobuf wire format) from the
528
+ * given reader into the given message object.
529
+ * @param {!proto.google.rpc.DebugInfo} msg The message object to deserialize into.
530
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
531
+ * @return {!proto.google.rpc.DebugInfo}
532
+ */
533
+ proto.google.rpc.DebugInfo.deserializeBinaryFromReader = function(msg, reader) {
534
+ while (reader.nextField()) {
535
+ if (reader.isEndGroup()) {
536
+ break;
537
+ }
538
+ var field = reader.getFieldNumber();
539
+ switch (field) {
540
+ case 1:
541
+ var value = /** @type {string} */ (reader.readString());
542
+ msg.addStackEntries(value);
543
+ break;
544
+ case 2:
545
+ var value = /** @type {string} */ (reader.readString());
546
+ msg.setDetail(value);
547
+ break;
548
+ default:
549
+ reader.skipField();
550
+ break;
551
+ }
552
+ }
553
+ return msg;
554
+ };
555
+
556
+
557
+ /**
558
+ * Serializes the message to binary data (in protobuf wire format).
559
+ * @return {!Uint8Array}
560
+ */
561
+ proto.google.rpc.DebugInfo.prototype.serializeBinary = function() {
562
+ var writer = new jspb.BinaryWriter();
563
+ proto.google.rpc.DebugInfo.serializeBinaryToWriter(this, writer);
564
+ return writer.getResultBuffer();
565
+ };
566
+
567
+
568
+ /**
569
+ * Serializes the given message to binary data (in protobuf wire
570
+ * format), writing to the given BinaryWriter.
571
+ * @param {!proto.google.rpc.DebugInfo} message
572
+ * @param {!jspb.BinaryWriter} writer
573
+ * @suppress {unusedLocalVariables} f is only used for nested messages
574
+ */
575
+ proto.google.rpc.DebugInfo.serializeBinaryToWriter = function(message, writer) {
576
+ var f = undefined;
577
+ f = message.getStackEntriesList();
578
+ if (f.length > 0) {
579
+ writer.writeRepeatedString(
580
+ 1,
581
+ f
582
+ );
583
+ }
584
+ f = message.getDetail();
585
+ if (f.length > 0) {
586
+ writer.writeString(
587
+ 2,
588
+ f
589
+ );
590
+ }
591
+ };
592
+
593
+
594
+ /**
595
+ * repeated string stack_entries = 1;
596
+ * @return {!Array<string>}
597
+ */
598
+ proto.google.rpc.DebugInfo.prototype.getStackEntriesList = function() {
599
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
600
+ };
601
+
602
+
603
+ /**
604
+ * @param {!Array<string>} value
605
+ * @return {!proto.google.rpc.DebugInfo} returns this
606
+ */
607
+ proto.google.rpc.DebugInfo.prototype.setStackEntriesList = function(value) {
608
+ return jspb.Message.setField(this, 1, value || []);
609
+ };
610
+
611
+
612
+ /**
613
+ * @param {string} value
614
+ * @param {number=} opt_index
615
+ * @return {!proto.google.rpc.DebugInfo} returns this
616
+ */
617
+ proto.google.rpc.DebugInfo.prototype.addStackEntries = function(value, opt_index) {
618
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
619
+ };
620
+
621
+
622
+ /**
623
+ * Clears the list making it empty but non-null.
624
+ * @return {!proto.google.rpc.DebugInfo} returns this
625
+ */
626
+ proto.google.rpc.DebugInfo.prototype.clearStackEntriesList = function() {
627
+ return this.setStackEntriesList([]);
628
+ };
629
+
630
+
631
+ /**
632
+ * optional string detail = 2;
633
+ * @return {string}
634
+ */
635
+ proto.google.rpc.DebugInfo.prototype.getDetail = function() {
636
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
637
+ };
638
+
639
+
640
+ /**
641
+ * @param {string} value
642
+ * @return {!proto.google.rpc.DebugInfo} returns this
643
+ */
644
+ proto.google.rpc.DebugInfo.prototype.setDetail = function(value) {
645
+ return jspb.Message.setProto3StringField(this, 2, value);
646
+ };
647
+
648
+
649
+
650
+ /**
651
+ * List of repeated fields within this message type.
652
+ * @private {!Array<number>}
653
+ * @const
654
+ */
655
+ proto.google.rpc.QuotaFailure.repeatedFields_ = [1];
656
+
657
+
658
+
659
+ if (jspb.Message.GENERATE_TO_OBJECT) {
660
+ /**
661
+ * Creates an object representation of this proto.
662
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
663
+ * Optional fields that are not set will be set to undefined.
664
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
665
+ * For the list of reserved names please see:
666
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
667
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
668
+ * JSPB instance for transitional soy proto support:
669
+ * http://goto/soy-param-migration
670
+ * @return {!Object}
671
+ */
672
+ proto.google.rpc.QuotaFailure.prototype.toObject = function(opt_includeInstance) {
673
+ return proto.google.rpc.QuotaFailure.toObject(opt_includeInstance, this);
674
+ };
675
+
676
+
677
+ /**
678
+ * Static version of the {@see toObject} method.
679
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
680
+ * the JSPB instance for transitional soy proto support:
681
+ * http://goto/soy-param-migration
682
+ * @param {!proto.google.rpc.QuotaFailure} msg The msg instance to transform.
683
+ * @return {!Object}
684
+ * @suppress {unusedLocalVariables} f is only used for nested messages
685
+ */
686
+ proto.google.rpc.QuotaFailure.toObject = function(includeInstance, msg) {
687
+ var f, obj = {
688
+ violationsList: jspb.Message.toObjectList(msg.getViolationsList(),
689
+ proto.google.rpc.QuotaFailure.Violation.toObject, includeInstance)
690
+ };
691
+
692
+ if (includeInstance) {
693
+ obj.$jspbMessageInstance = msg;
694
+ }
695
+ return obj;
696
+ };
697
+ }
698
+
699
+
700
+ /**
701
+ * Deserializes binary data (in protobuf wire format).
702
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
703
+ * @return {!proto.google.rpc.QuotaFailure}
704
+ */
705
+ proto.google.rpc.QuotaFailure.deserializeBinary = function(bytes) {
706
+ var reader = new jspb.BinaryReader(bytes);
707
+ var msg = new proto.google.rpc.QuotaFailure;
708
+ return proto.google.rpc.QuotaFailure.deserializeBinaryFromReader(msg, reader);
709
+ };
710
+
711
+
712
+ /**
713
+ * Deserializes binary data (in protobuf wire format) from the
714
+ * given reader into the given message object.
715
+ * @param {!proto.google.rpc.QuotaFailure} msg The message object to deserialize into.
716
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
717
+ * @return {!proto.google.rpc.QuotaFailure}
718
+ */
719
+ proto.google.rpc.QuotaFailure.deserializeBinaryFromReader = function(msg, reader) {
720
+ while (reader.nextField()) {
721
+ if (reader.isEndGroup()) {
722
+ break;
723
+ }
724
+ var field = reader.getFieldNumber();
725
+ switch (field) {
726
+ case 1:
727
+ var value = new proto.google.rpc.QuotaFailure.Violation;
728
+ reader.readMessage(value,proto.google.rpc.QuotaFailure.Violation.deserializeBinaryFromReader);
729
+ msg.addViolations(value);
730
+ break;
731
+ default:
732
+ reader.skipField();
733
+ break;
734
+ }
735
+ }
736
+ return msg;
737
+ };
738
+
739
+
740
+ /**
741
+ * Serializes the message to binary data (in protobuf wire format).
742
+ * @return {!Uint8Array}
743
+ */
744
+ proto.google.rpc.QuotaFailure.prototype.serializeBinary = function() {
745
+ var writer = new jspb.BinaryWriter();
746
+ proto.google.rpc.QuotaFailure.serializeBinaryToWriter(this, writer);
747
+ return writer.getResultBuffer();
748
+ };
749
+
750
+
751
+ /**
752
+ * Serializes the given message to binary data (in protobuf wire
753
+ * format), writing to the given BinaryWriter.
754
+ * @param {!proto.google.rpc.QuotaFailure} message
755
+ * @param {!jspb.BinaryWriter} writer
756
+ * @suppress {unusedLocalVariables} f is only used for nested messages
757
+ */
758
+ proto.google.rpc.QuotaFailure.serializeBinaryToWriter = function(message, writer) {
759
+ var f = undefined;
760
+ f = message.getViolationsList();
761
+ if (f.length > 0) {
762
+ writer.writeRepeatedMessage(
763
+ 1,
764
+ f,
765
+ proto.google.rpc.QuotaFailure.Violation.serializeBinaryToWriter
766
+ );
767
+ }
768
+ };
769
+
770
+
771
+
772
+
773
+
774
+ if (jspb.Message.GENERATE_TO_OBJECT) {
775
+ /**
776
+ * Creates an object representation of this proto.
777
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
778
+ * Optional fields that are not set will be set to undefined.
779
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
780
+ * For the list of reserved names please see:
781
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
782
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
783
+ * JSPB instance for transitional soy proto support:
784
+ * http://goto/soy-param-migration
785
+ * @return {!Object}
786
+ */
787
+ proto.google.rpc.QuotaFailure.Violation.prototype.toObject = function(opt_includeInstance) {
788
+ return proto.google.rpc.QuotaFailure.Violation.toObject(opt_includeInstance, this);
789
+ };
790
+
791
+
792
+ /**
793
+ * Static version of the {@see toObject} method.
794
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
795
+ * the JSPB instance for transitional soy proto support:
796
+ * http://goto/soy-param-migration
797
+ * @param {!proto.google.rpc.QuotaFailure.Violation} msg The msg instance to transform.
798
+ * @return {!Object}
799
+ * @suppress {unusedLocalVariables} f is only used for nested messages
800
+ */
801
+ proto.google.rpc.QuotaFailure.Violation.toObject = function(includeInstance, msg) {
802
+ var f, obj = {
803
+ subject: jspb.Message.getFieldWithDefault(msg, 1, ""),
804
+ description: jspb.Message.getFieldWithDefault(msg, 2, "")
805
+ };
806
+
807
+ if (includeInstance) {
808
+ obj.$jspbMessageInstance = msg;
809
+ }
810
+ return obj;
811
+ };
812
+ }
813
+
814
+
815
+ /**
816
+ * Deserializes binary data (in protobuf wire format).
817
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
818
+ * @return {!proto.google.rpc.QuotaFailure.Violation}
819
+ */
820
+ proto.google.rpc.QuotaFailure.Violation.deserializeBinary = function(bytes) {
821
+ var reader = new jspb.BinaryReader(bytes);
822
+ var msg = new proto.google.rpc.QuotaFailure.Violation;
823
+ return proto.google.rpc.QuotaFailure.Violation.deserializeBinaryFromReader(msg, reader);
824
+ };
825
+
826
+
827
+ /**
828
+ * Deserializes binary data (in protobuf wire format) from the
829
+ * given reader into the given message object.
830
+ * @param {!proto.google.rpc.QuotaFailure.Violation} msg The message object to deserialize into.
831
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
832
+ * @return {!proto.google.rpc.QuotaFailure.Violation}
833
+ */
834
+ proto.google.rpc.QuotaFailure.Violation.deserializeBinaryFromReader = function(msg, reader) {
835
+ while (reader.nextField()) {
836
+ if (reader.isEndGroup()) {
837
+ break;
838
+ }
839
+ var field = reader.getFieldNumber();
840
+ switch (field) {
841
+ case 1:
842
+ var value = /** @type {string} */ (reader.readString());
843
+ msg.setSubject(value);
844
+ break;
845
+ case 2:
846
+ var value = /** @type {string} */ (reader.readString());
847
+ msg.setDescription(value);
848
+ break;
849
+ default:
850
+ reader.skipField();
851
+ break;
852
+ }
853
+ }
854
+ return msg;
855
+ };
856
+
857
+
858
+ /**
859
+ * Serializes the message to binary data (in protobuf wire format).
860
+ * @return {!Uint8Array}
861
+ */
862
+ proto.google.rpc.QuotaFailure.Violation.prototype.serializeBinary = function() {
863
+ var writer = new jspb.BinaryWriter();
864
+ proto.google.rpc.QuotaFailure.Violation.serializeBinaryToWriter(this, writer);
865
+ return writer.getResultBuffer();
866
+ };
867
+
868
+
869
+ /**
870
+ * Serializes the given message to binary data (in protobuf wire
871
+ * format), writing to the given BinaryWriter.
872
+ * @param {!proto.google.rpc.QuotaFailure.Violation} message
873
+ * @param {!jspb.BinaryWriter} writer
874
+ * @suppress {unusedLocalVariables} f is only used for nested messages
875
+ */
876
+ proto.google.rpc.QuotaFailure.Violation.serializeBinaryToWriter = function(message, writer) {
877
+ var f = undefined;
878
+ f = message.getSubject();
879
+ if (f.length > 0) {
880
+ writer.writeString(
881
+ 1,
882
+ f
883
+ );
884
+ }
885
+ f = message.getDescription();
886
+ if (f.length > 0) {
887
+ writer.writeString(
888
+ 2,
889
+ f
890
+ );
891
+ }
892
+ };
893
+
894
+
895
+ /**
896
+ * optional string subject = 1;
897
+ * @return {string}
898
+ */
899
+ proto.google.rpc.QuotaFailure.Violation.prototype.getSubject = function() {
900
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
901
+ };
902
+
903
+
904
+ /**
905
+ * @param {string} value
906
+ * @return {!proto.google.rpc.QuotaFailure.Violation} returns this
907
+ */
908
+ proto.google.rpc.QuotaFailure.Violation.prototype.setSubject = function(value) {
909
+ return jspb.Message.setProto3StringField(this, 1, value);
910
+ };
911
+
912
+
913
+ /**
914
+ * optional string description = 2;
915
+ * @return {string}
916
+ */
917
+ proto.google.rpc.QuotaFailure.Violation.prototype.getDescription = function() {
918
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
919
+ };
920
+
921
+
922
+ /**
923
+ * @param {string} value
924
+ * @return {!proto.google.rpc.QuotaFailure.Violation} returns this
925
+ */
926
+ proto.google.rpc.QuotaFailure.Violation.prototype.setDescription = function(value) {
927
+ return jspb.Message.setProto3StringField(this, 2, value);
928
+ };
929
+
930
+
931
+ /**
932
+ * repeated Violation violations = 1;
933
+ * @return {!Array<!proto.google.rpc.QuotaFailure.Violation>}
934
+ */
935
+ proto.google.rpc.QuotaFailure.prototype.getViolationsList = function() {
936
+ return /** @type{!Array<!proto.google.rpc.QuotaFailure.Violation>} */ (
937
+ jspb.Message.getRepeatedWrapperField(this, proto.google.rpc.QuotaFailure.Violation, 1));
938
+ };
939
+
940
+
941
+ /**
942
+ * @param {!Array<!proto.google.rpc.QuotaFailure.Violation>} value
943
+ * @return {!proto.google.rpc.QuotaFailure} returns this
944
+ */
945
+ proto.google.rpc.QuotaFailure.prototype.setViolationsList = function(value) {
946
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
947
+ };
948
+
949
+
950
+ /**
951
+ * @param {!proto.google.rpc.QuotaFailure.Violation=} opt_value
952
+ * @param {number=} opt_index
953
+ * @return {!proto.google.rpc.QuotaFailure.Violation}
954
+ */
955
+ proto.google.rpc.QuotaFailure.prototype.addViolations = function(opt_value, opt_index) {
956
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.rpc.QuotaFailure.Violation, opt_index);
957
+ };
958
+
959
+
960
+ /**
961
+ * Clears the list making it empty but non-null.
962
+ * @return {!proto.google.rpc.QuotaFailure} returns this
963
+ */
964
+ proto.google.rpc.QuotaFailure.prototype.clearViolationsList = function() {
965
+ return this.setViolationsList([]);
966
+ };
967
+
968
+
969
+
970
+ /**
971
+ * List of repeated fields within this message type.
972
+ * @private {!Array<number>}
973
+ * @const
974
+ */
975
+ proto.google.rpc.PreconditionFailure.repeatedFields_ = [1];
976
+
977
+
978
+
979
+ if (jspb.Message.GENERATE_TO_OBJECT) {
980
+ /**
981
+ * Creates an object representation of this proto.
982
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
983
+ * Optional fields that are not set will be set to undefined.
984
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
985
+ * For the list of reserved names please see:
986
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
987
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
988
+ * JSPB instance for transitional soy proto support:
989
+ * http://goto/soy-param-migration
990
+ * @return {!Object}
991
+ */
992
+ proto.google.rpc.PreconditionFailure.prototype.toObject = function(opt_includeInstance) {
993
+ return proto.google.rpc.PreconditionFailure.toObject(opt_includeInstance, this);
994
+ };
995
+
996
+
997
+ /**
998
+ * Static version of the {@see toObject} method.
999
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1000
+ * the JSPB instance for transitional soy proto support:
1001
+ * http://goto/soy-param-migration
1002
+ * @param {!proto.google.rpc.PreconditionFailure} msg The msg instance to transform.
1003
+ * @return {!Object}
1004
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1005
+ */
1006
+ proto.google.rpc.PreconditionFailure.toObject = function(includeInstance, msg) {
1007
+ var f, obj = {
1008
+ violationsList: jspb.Message.toObjectList(msg.getViolationsList(),
1009
+ proto.google.rpc.PreconditionFailure.Violation.toObject, includeInstance)
1010
+ };
1011
+
1012
+ if (includeInstance) {
1013
+ obj.$jspbMessageInstance = msg;
1014
+ }
1015
+ return obj;
1016
+ };
1017
+ }
1018
+
1019
+
1020
+ /**
1021
+ * Deserializes binary data (in protobuf wire format).
1022
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1023
+ * @return {!proto.google.rpc.PreconditionFailure}
1024
+ */
1025
+ proto.google.rpc.PreconditionFailure.deserializeBinary = function(bytes) {
1026
+ var reader = new jspb.BinaryReader(bytes);
1027
+ var msg = new proto.google.rpc.PreconditionFailure;
1028
+ return proto.google.rpc.PreconditionFailure.deserializeBinaryFromReader(msg, reader);
1029
+ };
1030
+
1031
+
1032
+ /**
1033
+ * Deserializes binary data (in protobuf wire format) from the
1034
+ * given reader into the given message object.
1035
+ * @param {!proto.google.rpc.PreconditionFailure} msg The message object to deserialize into.
1036
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1037
+ * @return {!proto.google.rpc.PreconditionFailure}
1038
+ */
1039
+ proto.google.rpc.PreconditionFailure.deserializeBinaryFromReader = function(msg, reader) {
1040
+ while (reader.nextField()) {
1041
+ if (reader.isEndGroup()) {
1042
+ break;
1043
+ }
1044
+ var field = reader.getFieldNumber();
1045
+ switch (field) {
1046
+ case 1:
1047
+ var value = new proto.google.rpc.PreconditionFailure.Violation;
1048
+ reader.readMessage(value,proto.google.rpc.PreconditionFailure.Violation.deserializeBinaryFromReader);
1049
+ msg.addViolations(value);
1050
+ break;
1051
+ default:
1052
+ reader.skipField();
1053
+ break;
1054
+ }
1055
+ }
1056
+ return msg;
1057
+ };
1058
+
1059
+
1060
+ /**
1061
+ * Serializes the message to binary data (in protobuf wire format).
1062
+ * @return {!Uint8Array}
1063
+ */
1064
+ proto.google.rpc.PreconditionFailure.prototype.serializeBinary = function() {
1065
+ var writer = new jspb.BinaryWriter();
1066
+ proto.google.rpc.PreconditionFailure.serializeBinaryToWriter(this, writer);
1067
+ return writer.getResultBuffer();
1068
+ };
1069
+
1070
+
1071
+ /**
1072
+ * Serializes the given message to binary data (in protobuf wire
1073
+ * format), writing to the given BinaryWriter.
1074
+ * @param {!proto.google.rpc.PreconditionFailure} message
1075
+ * @param {!jspb.BinaryWriter} writer
1076
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1077
+ */
1078
+ proto.google.rpc.PreconditionFailure.serializeBinaryToWriter = function(message, writer) {
1079
+ var f = undefined;
1080
+ f = message.getViolationsList();
1081
+ if (f.length > 0) {
1082
+ writer.writeRepeatedMessage(
1083
+ 1,
1084
+ f,
1085
+ proto.google.rpc.PreconditionFailure.Violation.serializeBinaryToWriter
1086
+ );
1087
+ }
1088
+ };
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1095
+ /**
1096
+ * Creates an object representation of this proto.
1097
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1098
+ * Optional fields that are not set will be set to undefined.
1099
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1100
+ * For the list of reserved names please see:
1101
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1102
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1103
+ * JSPB instance for transitional soy proto support:
1104
+ * http://goto/soy-param-migration
1105
+ * @return {!Object}
1106
+ */
1107
+ proto.google.rpc.PreconditionFailure.Violation.prototype.toObject = function(opt_includeInstance) {
1108
+ return proto.google.rpc.PreconditionFailure.Violation.toObject(opt_includeInstance, this);
1109
+ };
1110
+
1111
+
1112
+ /**
1113
+ * Static version of the {@see toObject} method.
1114
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1115
+ * the JSPB instance for transitional soy proto support:
1116
+ * http://goto/soy-param-migration
1117
+ * @param {!proto.google.rpc.PreconditionFailure.Violation} msg The msg instance to transform.
1118
+ * @return {!Object}
1119
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1120
+ */
1121
+ proto.google.rpc.PreconditionFailure.Violation.toObject = function(includeInstance, msg) {
1122
+ var f, obj = {
1123
+ type: jspb.Message.getFieldWithDefault(msg, 1, ""),
1124
+ subject: jspb.Message.getFieldWithDefault(msg, 2, ""),
1125
+ description: jspb.Message.getFieldWithDefault(msg, 3, "")
1126
+ };
1127
+
1128
+ if (includeInstance) {
1129
+ obj.$jspbMessageInstance = msg;
1130
+ }
1131
+ return obj;
1132
+ };
1133
+ }
1134
+
1135
+
1136
+ /**
1137
+ * Deserializes binary data (in protobuf wire format).
1138
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1139
+ * @return {!proto.google.rpc.PreconditionFailure.Violation}
1140
+ */
1141
+ proto.google.rpc.PreconditionFailure.Violation.deserializeBinary = function(bytes) {
1142
+ var reader = new jspb.BinaryReader(bytes);
1143
+ var msg = new proto.google.rpc.PreconditionFailure.Violation;
1144
+ return proto.google.rpc.PreconditionFailure.Violation.deserializeBinaryFromReader(msg, reader);
1145
+ };
1146
+
1147
+
1148
+ /**
1149
+ * Deserializes binary data (in protobuf wire format) from the
1150
+ * given reader into the given message object.
1151
+ * @param {!proto.google.rpc.PreconditionFailure.Violation} msg The message object to deserialize into.
1152
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1153
+ * @return {!proto.google.rpc.PreconditionFailure.Violation}
1154
+ */
1155
+ proto.google.rpc.PreconditionFailure.Violation.deserializeBinaryFromReader = function(msg, reader) {
1156
+ while (reader.nextField()) {
1157
+ if (reader.isEndGroup()) {
1158
+ break;
1159
+ }
1160
+ var field = reader.getFieldNumber();
1161
+ switch (field) {
1162
+ case 1:
1163
+ var value = /** @type {string} */ (reader.readString());
1164
+ msg.setType(value);
1165
+ break;
1166
+ case 2:
1167
+ var value = /** @type {string} */ (reader.readString());
1168
+ msg.setSubject(value);
1169
+ break;
1170
+ case 3:
1171
+ var value = /** @type {string} */ (reader.readString());
1172
+ msg.setDescription(value);
1173
+ break;
1174
+ default:
1175
+ reader.skipField();
1176
+ break;
1177
+ }
1178
+ }
1179
+ return msg;
1180
+ };
1181
+
1182
+
1183
+ /**
1184
+ * Serializes the message to binary data (in protobuf wire format).
1185
+ * @return {!Uint8Array}
1186
+ */
1187
+ proto.google.rpc.PreconditionFailure.Violation.prototype.serializeBinary = function() {
1188
+ var writer = new jspb.BinaryWriter();
1189
+ proto.google.rpc.PreconditionFailure.Violation.serializeBinaryToWriter(this, writer);
1190
+ return writer.getResultBuffer();
1191
+ };
1192
+
1193
+
1194
+ /**
1195
+ * Serializes the given message to binary data (in protobuf wire
1196
+ * format), writing to the given BinaryWriter.
1197
+ * @param {!proto.google.rpc.PreconditionFailure.Violation} message
1198
+ * @param {!jspb.BinaryWriter} writer
1199
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1200
+ */
1201
+ proto.google.rpc.PreconditionFailure.Violation.serializeBinaryToWriter = function(message, writer) {
1202
+ var f = undefined;
1203
+ f = message.getType();
1204
+ if (f.length > 0) {
1205
+ writer.writeString(
1206
+ 1,
1207
+ f
1208
+ );
1209
+ }
1210
+ f = message.getSubject();
1211
+ if (f.length > 0) {
1212
+ writer.writeString(
1213
+ 2,
1214
+ f
1215
+ );
1216
+ }
1217
+ f = message.getDescription();
1218
+ if (f.length > 0) {
1219
+ writer.writeString(
1220
+ 3,
1221
+ f
1222
+ );
1223
+ }
1224
+ };
1225
+
1226
+
1227
+ /**
1228
+ * optional string type = 1;
1229
+ * @return {string}
1230
+ */
1231
+ proto.google.rpc.PreconditionFailure.Violation.prototype.getType = function() {
1232
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1233
+ };
1234
+
1235
+
1236
+ /**
1237
+ * @param {string} value
1238
+ * @return {!proto.google.rpc.PreconditionFailure.Violation} returns this
1239
+ */
1240
+ proto.google.rpc.PreconditionFailure.Violation.prototype.setType = function(value) {
1241
+ return jspb.Message.setProto3StringField(this, 1, value);
1242
+ };
1243
+
1244
+
1245
+ /**
1246
+ * optional string subject = 2;
1247
+ * @return {string}
1248
+ */
1249
+ proto.google.rpc.PreconditionFailure.Violation.prototype.getSubject = function() {
1250
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1251
+ };
1252
+
1253
+
1254
+ /**
1255
+ * @param {string} value
1256
+ * @return {!proto.google.rpc.PreconditionFailure.Violation} returns this
1257
+ */
1258
+ proto.google.rpc.PreconditionFailure.Violation.prototype.setSubject = function(value) {
1259
+ return jspb.Message.setProto3StringField(this, 2, value);
1260
+ };
1261
+
1262
+
1263
+ /**
1264
+ * optional string description = 3;
1265
+ * @return {string}
1266
+ */
1267
+ proto.google.rpc.PreconditionFailure.Violation.prototype.getDescription = function() {
1268
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1269
+ };
1270
+
1271
+
1272
+ /**
1273
+ * @param {string} value
1274
+ * @return {!proto.google.rpc.PreconditionFailure.Violation} returns this
1275
+ */
1276
+ proto.google.rpc.PreconditionFailure.Violation.prototype.setDescription = function(value) {
1277
+ return jspb.Message.setProto3StringField(this, 3, value);
1278
+ };
1279
+
1280
+
1281
+ /**
1282
+ * repeated Violation violations = 1;
1283
+ * @return {!Array<!proto.google.rpc.PreconditionFailure.Violation>}
1284
+ */
1285
+ proto.google.rpc.PreconditionFailure.prototype.getViolationsList = function() {
1286
+ return /** @type{!Array<!proto.google.rpc.PreconditionFailure.Violation>} */ (
1287
+ jspb.Message.getRepeatedWrapperField(this, proto.google.rpc.PreconditionFailure.Violation, 1));
1288
+ };
1289
+
1290
+
1291
+ /**
1292
+ * @param {!Array<!proto.google.rpc.PreconditionFailure.Violation>} value
1293
+ * @return {!proto.google.rpc.PreconditionFailure} returns this
1294
+ */
1295
+ proto.google.rpc.PreconditionFailure.prototype.setViolationsList = function(value) {
1296
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1297
+ };
1298
+
1299
+
1300
+ /**
1301
+ * @param {!proto.google.rpc.PreconditionFailure.Violation=} opt_value
1302
+ * @param {number=} opt_index
1303
+ * @return {!proto.google.rpc.PreconditionFailure.Violation}
1304
+ */
1305
+ proto.google.rpc.PreconditionFailure.prototype.addViolations = function(opt_value, opt_index) {
1306
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.rpc.PreconditionFailure.Violation, opt_index);
1307
+ };
1308
+
1309
+
1310
+ /**
1311
+ * Clears the list making it empty but non-null.
1312
+ * @return {!proto.google.rpc.PreconditionFailure} returns this
1313
+ */
1314
+ proto.google.rpc.PreconditionFailure.prototype.clearViolationsList = function() {
1315
+ return this.setViolationsList([]);
1316
+ };
1317
+
1318
+
1319
+
1320
+ /**
1321
+ * List of repeated fields within this message type.
1322
+ * @private {!Array<number>}
1323
+ * @const
1324
+ */
1325
+ proto.google.rpc.BadRequest.repeatedFields_ = [1];
1326
+
1327
+
1328
+
1329
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1330
+ /**
1331
+ * Creates an object representation of this proto.
1332
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1333
+ * Optional fields that are not set will be set to undefined.
1334
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1335
+ * For the list of reserved names please see:
1336
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1337
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1338
+ * JSPB instance for transitional soy proto support:
1339
+ * http://goto/soy-param-migration
1340
+ * @return {!Object}
1341
+ */
1342
+ proto.google.rpc.BadRequest.prototype.toObject = function(opt_includeInstance) {
1343
+ return proto.google.rpc.BadRequest.toObject(opt_includeInstance, this);
1344
+ };
1345
+
1346
+
1347
+ /**
1348
+ * Static version of the {@see toObject} method.
1349
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1350
+ * the JSPB instance for transitional soy proto support:
1351
+ * http://goto/soy-param-migration
1352
+ * @param {!proto.google.rpc.BadRequest} msg The msg instance to transform.
1353
+ * @return {!Object}
1354
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1355
+ */
1356
+ proto.google.rpc.BadRequest.toObject = function(includeInstance, msg) {
1357
+ var f, obj = {
1358
+ fieldViolationsList: jspb.Message.toObjectList(msg.getFieldViolationsList(),
1359
+ proto.google.rpc.BadRequest.FieldViolation.toObject, includeInstance)
1360
+ };
1361
+
1362
+ if (includeInstance) {
1363
+ obj.$jspbMessageInstance = msg;
1364
+ }
1365
+ return obj;
1366
+ };
1367
+ }
1368
+
1369
+
1370
+ /**
1371
+ * Deserializes binary data (in protobuf wire format).
1372
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1373
+ * @return {!proto.google.rpc.BadRequest}
1374
+ */
1375
+ proto.google.rpc.BadRequest.deserializeBinary = function(bytes) {
1376
+ var reader = new jspb.BinaryReader(bytes);
1377
+ var msg = new proto.google.rpc.BadRequest;
1378
+ return proto.google.rpc.BadRequest.deserializeBinaryFromReader(msg, reader);
1379
+ };
1380
+
1381
+
1382
+ /**
1383
+ * Deserializes binary data (in protobuf wire format) from the
1384
+ * given reader into the given message object.
1385
+ * @param {!proto.google.rpc.BadRequest} msg The message object to deserialize into.
1386
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1387
+ * @return {!proto.google.rpc.BadRequest}
1388
+ */
1389
+ proto.google.rpc.BadRequest.deserializeBinaryFromReader = function(msg, reader) {
1390
+ while (reader.nextField()) {
1391
+ if (reader.isEndGroup()) {
1392
+ break;
1393
+ }
1394
+ var field = reader.getFieldNumber();
1395
+ switch (field) {
1396
+ case 1:
1397
+ var value = new proto.google.rpc.BadRequest.FieldViolation;
1398
+ reader.readMessage(value,proto.google.rpc.BadRequest.FieldViolation.deserializeBinaryFromReader);
1399
+ msg.addFieldViolations(value);
1400
+ break;
1401
+ default:
1402
+ reader.skipField();
1403
+ break;
1404
+ }
1405
+ }
1406
+ return msg;
1407
+ };
1408
+
1409
+
1410
+ /**
1411
+ * Serializes the message to binary data (in protobuf wire format).
1412
+ * @return {!Uint8Array}
1413
+ */
1414
+ proto.google.rpc.BadRequest.prototype.serializeBinary = function() {
1415
+ var writer = new jspb.BinaryWriter();
1416
+ proto.google.rpc.BadRequest.serializeBinaryToWriter(this, writer);
1417
+ return writer.getResultBuffer();
1418
+ };
1419
+
1420
+
1421
+ /**
1422
+ * Serializes the given message to binary data (in protobuf wire
1423
+ * format), writing to the given BinaryWriter.
1424
+ * @param {!proto.google.rpc.BadRequest} message
1425
+ * @param {!jspb.BinaryWriter} writer
1426
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1427
+ */
1428
+ proto.google.rpc.BadRequest.serializeBinaryToWriter = function(message, writer) {
1429
+ var f = undefined;
1430
+ f = message.getFieldViolationsList();
1431
+ if (f.length > 0) {
1432
+ writer.writeRepeatedMessage(
1433
+ 1,
1434
+ f,
1435
+ proto.google.rpc.BadRequest.FieldViolation.serializeBinaryToWriter
1436
+ );
1437
+ }
1438
+ };
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1445
+ /**
1446
+ * Creates an object representation of this proto.
1447
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1448
+ * Optional fields that are not set will be set to undefined.
1449
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1450
+ * For the list of reserved names please see:
1451
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1452
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1453
+ * JSPB instance for transitional soy proto support:
1454
+ * http://goto/soy-param-migration
1455
+ * @return {!Object}
1456
+ */
1457
+ proto.google.rpc.BadRequest.FieldViolation.prototype.toObject = function(opt_includeInstance) {
1458
+ return proto.google.rpc.BadRequest.FieldViolation.toObject(opt_includeInstance, this);
1459
+ };
1460
+
1461
+
1462
+ /**
1463
+ * Static version of the {@see toObject} method.
1464
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1465
+ * the JSPB instance for transitional soy proto support:
1466
+ * http://goto/soy-param-migration
1467
+ * @param {!proto.google.rpc.BadRequest.FieldViolation} msg The msg instance to transform.
1468
+ * @return {!Object}
1469
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1470
+ */
1471
+ proto.google.rpc.BadRequest.FieldViolation.toObject = function(includeInstance, msg) {
1472
+ var f, obj = {
1473
+ field: jspb.Message.getFieldWithDefault(msg, 1, ""),
1474
+ description: jspb.Message.getFieldWithDefault(msg, 2, "")
1475
+ };
1476
+
1477
+ if (includeInstance) {
1478
+ obj.$jspbMessageInstance = msg;
1479
+ }
1480
+ return obj;
1481
+ };
1482
+ }
1483
+
1484
+
1485
+ /**
1486
+ * Deserializes binary data (in protobuf wire format).
1487
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1488
+ * @return {!proto.google.rpc.BadRequest.FieldViolation}
1489
+ */
1490
+ proto.google.rpc.BadRequest.FieldViolation.deserializeBinary = function(bytes) {
1491
+ var reader = new jspb.BinaryReader(bytes);
1492
+ var msg = new proto.google.rpc.BadRequest.FieldViolation;
1493
+ return proto.google.rpc.BadRequest.FieldViolation.deserializeBinaryFromReader(msg, reader);
1494
+ };
1495
+
1496
+
1497
+ /**
1498
+ * Deserializes binary data (in protobuf wire format) from the
1499
+ * given reader into the given message object.
1500
+ * @param {!proto.google.rpc.BadRequest.FieldViolation} msg The message object to deserialize into.
1501
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1502
+ * @return {!proto.google.rpc.BadRequest.FieldViolation}
1503
+ */
1504
+ proto.google.rpc.BadRequest.FieldViolation.deserializeBinaryFromReader = function(msg, reader) {
1505
+ while (reader.nextField()) {
1506
+ if (reader.isEndGroup()) {
1507
+ break;
1508
+ }
1509
+ var field = reader.getFieldNumber();
1510
+ switch (field) {
1511
+ case 1:
1512
+ var value = /** @type {string} */ (reader.readString());
1513
+ msg.setField(value);
1514
+ break;
1515
+ case 2:
1516
+ var value = /** @type {string} */ (reader.readString());
1517
+ msg.setDescription(value);
1518
+ break;
1519
+ default:
1520
+ reader.skipField();
1521
+ break;
1522
+ }
1523
+ }
1524
+ return msg;
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * Serializes the message to binary data (in protobuf wire format).
1530
+ * @return {!Uint8Array}
1531
+ */
1532
+ proto.google.rpc.BadRequest.FieldViolation.prototype.serializeBinary = function() {
1533
+ var writer = new jspb.BinaryWriter();
1534
+ proto.google.rpc.BadRequest.FieldViolation.serializeBinaryToWriter(this, writer);
1535
+ return writer.getResultBuffer();
1536
+ };
1537
+
1538
+
1539
+ /**
1540
+ * Serializes the given message to binary data (in protobuf wire
1541
+ * format), writing to the given BinaryWriter.
1542
+ * @param {!proto.google.rpc.BadRequest.FieldViolation} message
1543
+ * @param {!jspb.BinaryWriter} writer
1544
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1545
+ */
1546
+ proto.google.rpc.BadRequest.FieldViolation.serializeBinaryToWriter = function(message, writer) {
1547
+ var f = undefined;
1548
+ f = message.getField();
1549
+ if (f.length > 0) {
1550
+ writer.writeString(
1551
+ 1,
1552
+ f
1553
+ );
1554
+ }
1555
+ f = message.getDescription();
1556
+ if (f.length > 0) {
1557
+ writer.writeString(
1558
+ 2,
1559
+ f
1560
+ );
1561
+ }
1562
+ };
1563
+
1564
+
1565
+ /**
1566
+ * optional string field = 1;
1567
+ * @return {string}
1568
+ */
1569
+ proto.google.rpc.BadRequest.FieldViolation.prototype.getField = function() {
1570
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1571
+ };
1572
+
1573
+
1574
+ /**
1575
+ * @param {string} value
1576
+ * @return {!proto.google.rpc.BadRequest.FieldViolation} returns this
1577
+ */
1578
+ proto.google.rpc.BadRequest.FieldViolation.prototype.setField = function(value) {
1579
+ return jspb.Message.setProto3StringField(this, 1, value);
1580
+ };
1581
+
1582
+
1583
+ /**
1584
+ * optional string description = 2;
1585
+ * @return {string}
1586
+ */
1587
+ proto.google.rpc.BadRequest.FieldViolation.prototype.getDescription = function() {
1588
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1589
+ };
1590
+
1591
+
1592
+ /**
1593
+ * @param {string} value
1594
+ * @return {!proto.google.rpc.BadRequest.FieldViolation} returns this
1595
+ */
1596
+ proto.google.rpc.BadRequest.FieldViolation.prototype.setDescription = function(value) {
1597
+ return jspb.Message.setProto3StringField(this, 2, value);
1598
+ };
1599
+
1600
+
1601
+ /**
1602
+ * repeated FieldViolation field_violations = 1;
1603
+ * @return {!Array<!proto.google.rpc.BadRequest.FieldViolation>}
1604
+ */
1605
+ proto.google.rpc.BadRequest.prototype.getFieldViolationsList = function() {
1606
+ return /** @type{!Array<!proto.google.rpc.BadRequest.FieldViolation>} */ (
1607
+ jspb.Message.getRepeatedWrapperField(this, proto.google.rpc.BadRequest.FieldViolation, 1));
1608
+ };
1609
+
1610
+
1611
+ /**
1612
+ * @param {!Array<!proto.google.rpc.BadRequest.FieldViolation>} value
1613
+ * @return {!proto.google.rpc.BadRequest} returns this
1614
+ */
1615
+ proto.google.rpc.BadRequest.prototype.setFieldViolationsList = function(value) {
1616
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1617
+ };
1618
+
1619
+
1620
+ /**
1621
+ * @param {!proto.google.rpc.BadRequest.FieldViolation=} opt_value
1622
+ * @param {number=} opt_index
1623
+ * @return {!proto.google.rpc.BadRequest.FieldViolation}
1624
+ */
1625
+ proto.google.rpc.BadRequest.prototype.addFieldViolations = function(opt_value, opt_index) {
1626
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.rpc.BadRequest.FieldViolation, opt_index);
1627
+ };
1628
+
1629
+
1630
+ /**
1631
+ * Clears the list making it empty but non-null.
1632
+ * @return {!proto.google.rpc.BadRequest} returns this
1633
+ */
1634
+ proto.google.rpc.BadRequest.prototype.clearFieldViolationsList = function() {
1635
+ return this.setFieldViolationsList([]);
1636
+ };
1637
+
1638
+
1639
+
1640
+
1641
+
1642
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1643
+ /**
1644
+ * Creates an object representation of this proto.
1645
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1646
+ * Optional fields that are not set will be set to undefined.
1647
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1648
+ * For the list of reserved names please see:
1649
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1650
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1651
+ * JSPB instance for transitional soy proto support:
1652
+ * http://goto/soy-param-migration
1653
+ * @return {!Object}
1654
+ */
1655
+ proto.google.rpc.RequestInfo.prototype.toObject = function(opt_includeInstance) {
1656
+ return proto.google.rpc.RequestInfo.toObject(opt_includeInstance, this);
1657
+ };
1658
+
1659
+
1660
+ /**
1661
+ * Static version of the {@see toObject} method.
1662
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1663
+ * the JSPB instance for transitional soy proto support:
1664
+ * http://goto/soy-param-migration
1665
+ * @param {!proto.google.rpc.RequestInfo} msg The msg instance to transform.
1666
+ * @return {!Object}
1667
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1668
+ */
1669
+ proto.google.rpc.RequestInfo.toObject = function(includeInstance, msg) {
1670
+ var f, obj = {
1671
+ requestId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1672
+ servingData: jspb.Message.getFieldWithDefault(msg, 2, "")
1673
+ };
1674
+
1675
+ if (includeInstance) {
1676
+ obj.$jspbMessageInstance = msg;
1677
+ }
1678
+ return obj;
1679
+ };
1680
+ }
1681
+
1682
+
1683
+ /**
1684
+ * Deserializes binary data (in protobuf wire format).
1685
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1686
+ * @return {!proto.google.rpc.RequestInfo}
1687
+ */
1688
+ proto.google.rpc.RequestInfo.deserializeBinary = function(bytes) {
1689
+ var reader = new jspb.BinaryReader(bytes);
1690
+ var msg = new proto.google.rpc.RequestInfo;
1691
+ return proto.google.rpc.RequestInfo.deserializeBinaryFromReader(msg, reader);
1692
+ };
1693
+
1694
+
1695
+ /**
1696
+ * Deserializes binary data (in protobuf wire format) from the
1697
+ * given reader into the given message object.
1698
+ * @param {!proto.google.rpc.RequestInfo} msg The message object to deserialize into.
1699
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1700
+ * @return {!proto.google.rpc.RequestInfo}
1701
+ */
1702
+ proto.google.rpc.RequestInfo.deserializeBinaryFromReader = function(msg, reader) {
1703
+ while (reader.nextField()) {
1704
+ if (reader.isEndGroup()) {
1705
+ break;
1706
+ }
1707
+ var field = reader.getFieldNumber();
1708
+ switch (field) {
1709
+ case 1:
1710
+ var value = /** @type {string} */ (reader.readString());
1711
+ msg.setRequestId(value);
1712
+ break;
1713
+ case 2:
1714
+ var value = /** @type {string} */ (reader.readString());
1715
+ msg.setServingData(value);
1716
+ break;
1717
+ default:
1718
+ reader.skipField();
1719
+ break;
1720
+ }
1721
+ }
1722
+ return msg;
1723
+ };
1724
+
1725
+
1726
+ /**
1727
+ * Serializes the message to binary data (in protobuf wire format).
1728
+ * @return {!Uint8Array}
1729
+ */
1730
+ proto.google.rpc.RequestInfo.prototype.serializeBinary = function() {
1731
+ var writer = new jspb.BinaryWriter();
1732
+ proto.google.rpc.RequestInfo.serializeBinaryToWriter(this, writer);
1733
+ return writer.getResultBuffer();
1734
+ };
1735
+
1736
+
1737
+ /**
1738
+ * Serializes the given message to binary data (in protobuf wire
1739
+ * format), writing to the given BinaryWriter.
1740
+ * @param {!proto.google.rpc.RequestInfo} message
1741
+ * @param {!jspb.BinaryWriter} writer
1742
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1743
+ */
1744
+ proto.google.rpc.RequestInfo.serializeBinaryToWriter = function(message, writer) {
1745
+ var f = undefined;
1746
+ f = message.getRequestId();
1747
+ if (f.length > 0) {
1748
+ writer.writeString(
1749
+ 1,
1750
+ f
1751
+ );
1752
+ }
1753
+ f = message.getServingData();
1754
+ if (f.length > 0) {
1755
+ writer.writeString(
1756
+ 2,
1757
+ f
1758
+ );
1759
+ }
1760
+ };
1761
+
1762
+
1763
+ /**
1764
+ * optional string request_id = 1;
1765
+ * @return {string}
1766
+ */
1767
+ proto.google.rpc.RequestInfo.prototype.getRequestId = function() {
1768
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1769
+ };
1770
+
1771
+
1772
+ /**
1773
+ * @param {string} value
1774
+ * @return {!proto.google.rpc.RequestInfo} returns this
1775
+ */
1776
+ proto.google.rpc.RequestInfo.prototype.setRequestId = function(value) {
1777
+ return jspb.Message.setProto3StringField(this, 1, value);
1778
+ };
1779
+
1780
+
1781
+ /**
1782
+ * optional string serving_data = 2;
1783
+ * @return {string}
1784
+ */
1785
+ proto.google.rpc.RequestInfo.prototype.getServingData = function() {
1786
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1787
+ };
1788
+
1789
+
1790
+ /**
1791
+ * @param {string} value
1792
+ * @return {!proto.google.rpc.RequestInfo} returns this
1793
+ */
1794
+ proto.google.rpc.RequestInfo.prototype.setServingData = function(value) {
1795
+ return jspb.Message.setProto3StringField(this, 2, value);
1796
+ };
1797
+
1798
+
1799
+
1800
+
1801
+
1802
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1803
+ /**
1804
+ * Creates an object representation of this proto.
1805
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1806
+ * Optional fields that are not set will be set to undefined.
1807
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1808
+ * For the list of reserved names please see:
1809
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1810
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1811
+ * JSPB instance for transitional soy proto support:
1812
+ * http://goto/soy-param-migration
1813
+ * @return {!Object}
1814
+ */
1815
+ proto.google.rpc.ResourceInfo.prototype.toObject = function(opt_includeInstance) {
1816
+ return proto.google.rpc.ResourceInfo.toObject(opt_includeInstance, this);
1817
+ };
1818
+
1819
+
1820
+ /**
1821
+ * Static version of the {@see toObject} method.
1822
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1823
+ * the JSPB instance for transitional soy proto support:
1824
+ * http://goto/soy-param-migration
1825
+ * @param {!proto.google.rpc.ResourceInfo} msg The msg instance to transform.
1826
+ * @return {!Object}
1827
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1828
+ */
1829
+ proto.google.rpc.ResourceInfo.toObject = function(includeInstance, msg) {
1830
+ var f, obj = {
1831
+ resourceType: jspb.Message.getFieldWithDefault(msg, 1, ""),
1832
+ resourceName: jspb.Message.getFieldWithDefault(msg, 2, ""),
1833
+ owner: jspb.Message.getFieldWithDefault(msg, 3, ""),
1834
+ description: jspb.Message.getFieldWithDefault(msg, 4, "")
1835
+ };
1836
+
1837
+ if (includeInstance) {
1838
+ obj.$jspbMessageInstance = msg;
1839
+ }
1840
+ return obj;
1841
+ };
1842
+ }
1843
+
1844
+
1845
+ /**
1846
+ * Deserializes binary data (in protobuf wire format).
1847
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1848
+ * @return {!proto.google.rpc.ResourceInfo}
1849
+ */
1850
+ proto.google.rpc.ResourceInfo.deserializeBinary = function(bytes) {
1851
+ var reader = new jspb.BinaryReader(bytes);
1852
+ var msg = new proto.google.rpc.ResourceInfo;
1853
+ return proto.google.rpc.ResourceInfo.deserializeBinaryFromReader(msg, reader);
1854
+ };
1855
+
1856
+
1857
+ /**
1858
+ * Deserializes binary data (in protobuf wire format) from the
1859
+ * given reader into the given message object.
1860
+ * @param {!proto.google.rpc.ResourceInfo} msg The message object to deserialize into.
1861
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1862
+ * @return {!proto.google.rpc.ResourceInfo}
1863
+ */
1864
+ proto.google.rpc.ResourceInfo.deserializeBinaryFromReader = function(msg, reader) {
1865
+ while (reader.nextField()) {
1866
+ if (reader.isEndGroup()) {
1867
+ break;
1868
+ }
1869
+ var field = reader.getFieldNumber();
1870
+ switch (field) {
1871
+ case 1:
1872
+ var value = /** @type {string} */ (reader.readString());
1873
+ msg.setResourceType(value);
1874
+ break;
1875
+ case 2:
1876
+ var value = /** @type {string} */ (reader.readString());
1877
+ msg.setResourceName(value);
1878
+ break;
1879
+ case 3:
1880
+ var value = /** @type {string} */ (reader.readString());
1881
+ msg.setOwner(value);
1882
+ break;
1883
+ case 4:
1884
+ var value = /** @type {string} */ (reader.readString());
1885
+ msg.setDescription(value);
1886
+ break;
1887
+ default:
1888
+ reader.skipField();
1889
+ break;
1890
+ }
1891
+ }
1892
+ return msg;
1893
+ };
1894
+
1895
+
1896
+ /**
1897
+ * Serializes the message to binary data (in protobuf wire format).
1898
+ * @return {!Uint8Array}
1899
+ */
1900
+ proto.google.rpc.ResourceInfo.prototype.serializeBinary = function() {
1901
+ var writer = new jspb.BinaryWriter();
1902
+ proto.google.rpc.ResourceInfo.serializeBinaryToWriter(this, writer);
1903
+ return writer.getResultBuffer();
1904
+ };
1905
+
1906
+
1907
+ /**
1908
+ * Serializes the given message to binary data (in protobuf wire
1909
+ * format), writing to the given BinaryWriter.
1910
+ * @param {!proto.google.rpc.ResourceInfo} message
1911
+ * @param {!jspb.BinaryWriter} writer
1912
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1913
+ */
1914
+ proto.google.rpc.ResourceInfo.serializeBinaryToWriter = function(message, writer) {
1915
+ var f = undefined;
1916
+ f = message.getResourceType();
1917
+ if (f.length > 0) {
1918
+ writer.writeString(
1919
+ 1,
1920
+ f
1921
+ );
1922
+ }
1923
+ f = message.getResourceName();
1924
+ if (f.length > 0) {
1925
+ writer.writeString(
1926
+ 2,
1927
+ f
1928
+ );
1929
+ }
1930
+ f = message.getOwner();
1931
+ if (f.length > 0) {
1932
+ writer.writeString(
1933
+ 3,
1934
+ f
1935
+ );
1936
+ }
1937
+ f = message.getDescription();
1938
+ if (f.length > 0) {
1939
+ writer.writeString(
1940
+ 4,
1941
+ f
1942
+ );
1943
+ }
1944
+ };
1945
+
1946
+
1947
+ /**
1948
+ * optional string resource_type = 1;
1949
+ * @return {string}
1950
+ */
1951
+ proto.google.rpc.ResourceInfo.prototype.getResourceType = function() {
1952
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1953
+ };
1954
+
1955
+
1956
+ /**
1957
+ * @param {string} value
1958
+ * @return {!proto.google.rpc.ResourceInfo} returns this
1959
+ */
1960
+ proto.google.rpc.ResourceInfo.prototype.setResourceType = function(value) {
1961
+ return jspb.Message.setProto3StringField(this, 1, value);
1962
+ };
1963
+
1964
+
1965
+ /**
1966
+ * optional string resource_name = 2;
1967
+ * @return {string}
1968
+ */
1969
+ proto.google.rpc.ResourceInfo.prototype.getResourceName = function() {
1970
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1971
+ };
1972
+
1973
+
1974
+ /**
1975
+ * @param {string} value
1976
+ * @return {!proto.google.rpc.ResourceInfo} returns this
1977
+ */
1978
+ proto.google.rpc.ResourceInfo.prototype.setResourceName = function(value) {
1979
+ return jspb.Message.setProto3StringField(this, 2, value);
1980
+ };
1981
+
1982
+
1983
+ /**
1984
+ * optional string owner = 3;
1985
+ * @return {string}
1986
+ */
1987
+ proto.google.rpc.ResourceInfo.prototype.getOwner = function() {
1988
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1989
+ };
1990
+
1991
+
1992
+ /**
1993
+ * @param {string} value
1994
+ * @return {!proto.google.rpc.ResourceInfo} returns this
1995
+ */
1996
+ proto.google.rpc.ResourceInfo.prototype.setOwner = function(value) {
1997
+ return jspb.Message.setProto3StringField(this, 3, value);
1998
+ };
1999
+
2000
+
2001
+ /**
2002
+ * optional string description = 4;
2003
+ * @return {string}
2004
+ */
2005
+ proto.google.rpc.ResourceInfo.prototype.getDescription = function() {
2006
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2007
+ };
2008
+
2009
+
2010
+ /**
2011
+ * @param {string} value
2012
+ * @return {!proto.google.rpc.ResourceInfo} returns this
2013
+ */
2014
+ proto.google.rpc.ResourceInfo.prototype.setDescription = function(value) {
2015
+ return jspb.Message.setProto3StringField(this, 4, value);
2016
+ };
2017
+
2018
+
2019
+
2020
+ /**
2021
+ * List of repeated fields within this message type.
2022
+ * @private {!Array<number>}
2023
+ * @const
2024
+ */
2025
+ proto.google.rpc.Help.repeatedFields_ = [1];
2026
+
2027
+
2028
+
2029
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2030
+ /**
2031
+ * Creates an object representation of this proto.
2032
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2033
+ * Optional fields that are not set will be set to undefined.
2034
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2035
+ * For the list of reserved names please see:
2036
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2037
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2038
+ * JSPB instance for transitional soy proto support:
2039
+ * http://goto/soy-param-migration
2040
+ * @return {!Object}
2041
+ */
2042
+ proto.google.rpc.Help.prototype.toObject = function(opt_includeInstance) {
2043
+ return proto.google.rpc.Help.toObject(opt_includeInstance, this);
2044
+ };
2045
+
2046
+
2047
+ /**
2048
+ * Static version of the {@see toObject} method.
2049
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2050
+ * the JSPB instance for transitional soy proto support:
2051
+ * http://goto/soy-param-migration
2052
+ * @param {!proto.google.rpc.Help} msg The msg instance to transform.
2053
+ * @return {!Object}
2054
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2055
+ */
2056
+ proto.google.rpc.Help.toObject = function(includeInstance, msg) {
2057
+ var f, obj = {
2058
+ linksList: jspb.Message.toObjectList(msg.getLinksList(),
2059
+ proto.google.rpc.Help.Link.toObject, includeInstance)
2060
+ };
2061
+
2062
+ if (includeInstance) {
2063
+ obj.$jspbMessageInstance = msg;
2064
+ }
2065
+ return obj;
2066
+ };
2067
+ }
2068
+
2069
+
2070
+ /**
2071
+ * Deserializes binary data (in protobuf wire format).
2072
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2073
+ * @return {!proto.google.rpc.Help}
2074
+ */
2075
+ proto.google.rpc.Help.deserializeBinary = function(bytes) {
2076
+ var reader = new jspb.BinaryReader(bytes);
2077
+ var msg = new proto.google.rpc.Help;
2078
+ return proto.google.rpc.Help.deserializeBinaryFromReader(msg, reader);
2079
+ };
2080
+
2081
+
2082
+ /**
2083
+ * Deserializes binary data (in protobuf wire format) from the
2084
+ * given reader into the given message object.
2085
+ * @param {!proto.google.rpc.Help} msg The message object to deserialize into.
2086
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2087
+ * @return {!proto.google.rpc.Help}
2088
+ */
2089
+ proto.google.rpc.Help.deserializeBinaryFromReader = function(msg, reader) {
2090
+ while (reader.nextField()) {
2091
+ if (reader.isEndGroup()) {
2092
+ break;
2093
+ }
2094
+ var field = reader.getFieldNumber();
2095
+ switch (field) {
2096
+ case 1:
2097
+ var value = new proto.google.rpc.Help.Link;
2098
+ reader.readMessage(value,proto.google.rpc.Help.Link.deserializeBinaryFromReader);
2099
+ msg.addLinks(value);
2100
+ break;
2101
+ default:
2102
+ reader.skipField();
2103
+ break;
2104
+ }
2105
+ }
2106
+ return msg;
2107
+ };
2108
+
2109
+
2110
+ /**
2111
+ * Serializes the message to binary data (in protobuf wire format).
2112
+ * @return {!Uint8Array}
2113
+ */
2114
+ proto.google.rpc.Help.prototype.serializeBinary = function() {
2115
+ var writer = new jspb.BinaryWriter();
2116
+ proto.google.rpc.Help.serializeBinaryToWriter(this, writer);
2117
+ return writer.getResultBuffer();
2118
+ };
2119
+
2120
+
2121
+ /**
2122
+ * Serializes the given message to binary data (in protobuf wire
2123
+ * format), writing to the given BinaryWriter.
2124
+ * @param {!proto.google.rpc.Help} message
2125
+ * @param {!jspb.BinaryWriter} writer
2126
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2127
+ */
2128
+ proto.google.rpc.Help.serializeBinaryToWriter = function(message, writer) {
2129
+ var f = undefined;
2130
+ f = message.getLinksList();
2131
+ if (f.length > 0) {
2132
+ writer.writeRepeatedMessage(
2133
+ 1,
2134
+ f,
2135
+ proto.google.rpc.Help.Link.serializeBinaryToWriter
2136
+ );
2137
+ }
2138
+ };
2139
+
2140
+
2141
+
2142
+
2143
+
2144
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2145
+ /**
2146
+ * Creates an object representation of this proto.
2147
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2148
+ * Optional fields that are not set will be set to undefined.
2149
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2150
+ * For the list of reserved names please see:
2151
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2152
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2153
+ * JSPB instance for transitional soy proto support:
2154
+ * http://goto/soy-param-migration
2155
+ * @return {!Object}
2156
+ */
2157
+ proto.google.rpc.Help.Link.prototype.toObject = function(opt_includeInstance) {
2158
+ return proto.google.rpc.Help.Link.toObject(opt_includeInstance, this);
2159
+ };
2160
+
2161
+
2162
+ /**
2163
+ * Static version of the {@see toObject} method.
2164
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2165
+ * the JSPB instance for transitional soy proto support:
2166
+ * http://goto/soy-param-migration
2167
+ * @param {!proto.google.rpc.Help.Link} msg The msg instance to transform.
2168
+ * @return {!Object}
2169
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2170
+ */
2171
+ proto.google.rpc.Help.Link.toObject = function(includeInstance, msg) {
2172
+ var f, obj = {
2173
+ description: jspb.Message.getFieldWithDefault(msg, 1, ""),
2174
+ url: jspb.Message.getFieldWithDefault(msg, 2, "")
2175
+ };
2176
+
2177
+ if (includeInstance) {
2178
+ obj.$jspbMessageInstance = msg;
2179
+ }
2180
+ return obj;
2181
+ };
2182
+ }
2183
+
2184
+
2185
+ /**
2186
+ * Deserializes binary data (in protobuf wire format).
2187
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2188
+ * @return {!proto.google.rpc.Help.Link}
2189
+ */
2190
+ proto.google.rpc.Help.Link.deserializeBinary = function(bytes) {
2191
+ var reader = new jspb.BinaryReader(bytes);
2192
+ var msg = new proto.google.rpc.Help.Link;
2193
+ return proto.google.rpc.Help.Link.deserializeBinaryFromReader(msg, reader);
2194
+ };
2195
+
2196
+
2197
+ /**
2198
+ * Deserializes binary data (in protobuf wire format) from the
2199
+ * given reader into the given message object.
2200
+ * @param {!proto.google.rpc.Help.Link} msg The message object to deserialize into.
2201
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2202
+ * @return {!proto.google.rpc.Help.Link}
2203
+ */
2204
+ proto.google.rpc.Help.Link.deserializeBinaryFromReader = function(msg, reader) {
2205
+ while (reader.nextField()) {
2206
+ if (reader.isEndGroup()) {
2207
+ break;
2208
+ }
2209
+ var field = reader.getFieldNumber();
2210
+ switch (field) {
2211
+ case 1:
2212
+ var value = /** @type {string} */ (reader.readString());
2213
+ msg.setDescription(value);
2214
+ break;
2215
+ case 2:
2216
+ var value = /** @type {string} */ (reader.readString());
2217
+ msg.setUrl(value);
2218
+ break;
2219
+ default:
2220
+ reader.skipField();
2221
+ break;
2222
+ }
2223
+ }
2224
+ return msg;
2225
+ };
2226
+
2227
+
2228
+ /**
2229
+ * Serializes the message to binary data (in protobuf wire format).
2230
+ * @return {!Uint8Array}
2231
+ */
2232
+ proto.google.rpc.Help.Link.prototype.serializeBinary = function() {
2233
+ var writer = new jspb.BinaryWriter();
2234
+ proto.google.rpc.Help.Link.serializeBinaryToWriter(this, writer);
2235
+ return writer.getResultBuffer();
2236
+ };
2237
+
2238
+
2239
+ /**
2240
+ * Serializes the given message to binary data (in protobuf wire
2241
+ * format), writing to the given BinaryWriter.
2242
+ * @param {!proto.google.rpc.Help.Link} message
2243
+ * @param {!jspb.BinaryWriter} writer
2244
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2245
+ */
2246
+ proto.google.rpc.Help.Link.serializeBinaryToWriter = function(message, writer) {
2247
+ var f = undefined;
2248
+ f = message.getDescription();
2249
+ if (f.length > 0) {
2250
+ writer.writeString(
2251
+ 1,
2252
+ f
2253
+ );
2254
+ }
2255
+ f = message.getUrl();
2256
+ if (f.length > 0) {
2257
+ writer.writeString(
2258
+ 2,
2259
+ f
2260
+ );
2261
+ }
2262
+ };
2263
+
2264
+
2265
+ /**
2266
+ * optional string description = 1;
2267
+ * @return {string}
2268
+ */
2269
+ proto.google.rpc.Help.Link.prototype.getDescription = function() {
2270
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2271
+ };
2272
+
2273
+
2274
+ /**
2275
+ * @param {string} value
2276
+ * @return {!proto.google.rpc.Help.Link} returns this
2277
+ */
2278
+ proto.google.rpc.Help.Link.prototype.setDescription = function(value) {
2279
+ return jspb.Message.setProto3StringField(this, 1, value);
2280
+ };
2281
+
2282
+
2283
+ /**
2284
+ * optional string url = 2;
2285
+ * @return {string}
2286
+ */
2287
+ proto.google.rpc.Help.Link.prototype.getUrl = function() {
2288
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2289
+ };
2290
+
2291
+
2292
+ /**
2293
+ * @param {string} value
2294
+ * @return {!proto.google.rpc.Help.Link} returns this
2295
+ */
2296
+ proto.google.rpc.Help.Link.prototype.setUrl = function(value) {
2297
+ return jspb.Message.setProto3StringField(this, 2, value);
2298
+ };
2299
+
2300
+
2301
+ /**
2302
+ * repeated Link links = 1;
2303
+ * @return {!Array<!proto.google.rpc.Help.Link>}
2304
+ */
2305
+ proto.google.rpc.Help.prototype.getLinksList = function() {
2306
+ return /** @type{!Array<!proto.google.rpc.Help.Link>} */ (
2307
+ jspb.Message.getRepeatedWrapperField(this, proto.google.rpc.Help.Link, 1));
2308
+ };
2309
+
2310
+
2311
+ /**
2312
+ * @param {!Array<!proto.google.rpc.Help.Link>} value
2313
+ * @return {!proto.google.rpc.Help} returns this
2314
+ */
2315
+ proto.google.rpc.Help.prototype.setLinksList = function(value) {
2316
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2317
+ };
2318
+
2319
+
2320
+ /**
2321
+ * @param {!proto.google.rpc.Help.Link=} opt_value
2322
+ * @param {number=} opt_index
2323
+ * @return {!proto.google.rpc.Help.Link}
2324
+ */
2325
+ proto.google.rpc.Help.prototype.addLinks = function(opt_value, opt_index) {
2326
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.rpc.Help.Link, opt_index);
2327
+ };
2328
+
2329
+
2330
+ /**
2331
+ * Clears the list making it empty but non-null.
2332
+ * @return {!proto.google.rpc.Help} returns this
2333
+ */
2334
+ proto.google.rpc.Help.prototype.clearLinksList = function() {
2335
+ return this.setLinksList([]);
2336
+ };
2337
+
2338
+
2339
+
2340
+
2341
+
2342
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2343
+ /**
2344
+ * Creates an object representation of this proto.
2345
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2346
+ * Optional fields that are not set will be set to undefined.
2347
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2348
+ * For the list of reserved names please see:
2349
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2350
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2351
+ * JSPB instance for transitional soy proto support:
2352
+ * http://goto/soy-param-migration
2353
+ * @return {!Object}
2354
+ */
2355
+ proto.google.rpc.LocalizedMessage.prototype.toObject = function(opt_includeInstance) {
2356
+ return proto.google.rpc.LocalizedMessage.toObject(opt_includeInstance, this);
2357
+ };
2358
+
2359
+
2360
+ /**
2361
+ * Static version of the {@see toObject} method.
2362
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2363
+ * the JSPB instance for transitional soy proto support:
2364
+ * http://goto/soy-param-migration
2365
+ * @param {!proto.google.rpc.LocalizedMessage} msg The msg instance to transform.
2366
+ * @return {!Object}
2367
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2368
+ */
2369
+ proto.google.rpc.LocalizedMessage.toObject = function(includeInstance, msg) {
2370
+ var f, obj = {
2371
+ locale: jspb.Message.getFieldWithDefault(msg, 1, ""),
2372
+ message: jspb.Message.getFieldWithDefault(msg, 2, "")
2373
+ };
2374
+
2375
+ if (includeInstance) {
2376
+ obj.$jspbMessageInstance = msg;
2377
+ }
2378
+ return obj;
2379
+ };
2380
+ }
2381
+
2382
+
2383
+ /**
2384
+ * Deserializes binary data (in protobuf wire format).
2385
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2386
+ * @return {!proto.google.rpc.LocalizedMessage}
2387
+ */
2388
+ proto.google.rpc.LocalizedMessage.deserializeBinary = function(bytes) {
2389
+ var reader = new jspb.BinaryReader(bytes);
2390
+ var msg = new proto.google.rpc.LocalizedMessage;
2391
+ return proto.google.rpc.LocalizedMessage.deserializeBinaryFromReader(msg, reader);
2392
+ };
2393
+
2394
+
2395
+ /**
2396
+ * Deserializes binary data (in protobuf wire format) from the
2397
+ * given reader into the given message object.
2398
+ * @param {!proto.google.rpc.LocalizedMessage} msg The message object to deserialize into.
2399
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2400
+ * @return {!proto.google.rpc.LocalizedMessage}
2401
+ */
2402
+ proto.google.rpc.LocalizedMessage.deserializeBinaryFromReader = function(msg, reader) {
2403
+ while (reader.nextField()) {
2404
+ if (reader.isEndGroup()) {
2405
+ break;
2406
+ }
2407
+ var field = reader.getFieldNumber();
2408
+ switch (field) {
2409
+ case 1:
2410
+ var value = /** @type {string} */ (reader.readString());
2411
+ msg.setLocale(value);
2412
+ break;
2413
+ case 2:
2414
+ var value = /** @type {string} */ (reader.readString());
2415
+ msg.setMessage(value);
2416
+ break;
2417
+ default:
2418
+ reader.skipField();
2419
+ break;
2420
+ }
2421
+ }
2422
+ return msg;
2423
+ };
2424
+
2425
+
2426
+ /**
2427
+ * Serializes the message to binary data (in protobuf wire format).
2428
+ * @return {!Uint8Array}
2429
+ */
2430
+ proto.google.rpc.LocalizedMessage.prototype.serializeBinary = function() {
2431
+ var writer = new jspb.BinaryWriter();
2432
+ proto.google.rpc.LocalizedMessage.serializeBinaryToWriter(this, writer);
2433
+ return writer.getResultBuffer();
2434
+ };
2435
+
2436
+
2437
+ /**
2438
+ * Serializes the given message to binary data (in protobuf wire
2439
+ * format), writing to the given BinaryWriter.
2440
+ * @param {!proto.google.rpc.LocalizedMessage} message
2441
+ * @param {!jspb.BinaryWriter} writer
2442
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2443
+ */
2444
+ proto.google.rpc.LocalizedMessage.serializeBinaryToWriter = function(message, writer) {
2445
+ var f = undefined;
2446
+ f = message.getLocale();
2447
+ if (f.length > 0) {
2448
+ writer.writeString(
2449
+ 1,
2450
+ f
2451
+ );
2452
+ }
2453
+ f = message.getMessage();
2454
+ if (f.length > 0) {
2455
+ writer.writeString(
2456
+ 2,
2457
+ f
2458
+ );
2459
+ }
2460
+ };
2461
+
2462
+
2463
+ /**
2464
+ * optional string locale = 1;
2465
+ * @return {string}
2466
+ */
2467
+ proto.google.rpc.LocalizedMessage.prototype.getLocale = function() {
2468
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2469
+ };
2470
+
2471
+
2472
+ /**
2473
+ * @param {string} value
2474
+ * @return {!proto.google.rpc.LocalizedMessage} returns this
2475
+ */
2476
+ proto.google.rpc.LocalizedMessage.prototype.setLocale = function(value) {
2477
+ return jspb.Message.setProto3StringField(this, 1, value);
2478
+ };
2479
+
2480
+
2481
+ /**
2482
+ * optional string message = 2;
2483
+ * @return {string}
2484
+ */
2485
+ proto.google.rpc.LocalizedMessage.prototype.getMessage = function() {
2486
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2487
+ };
2488
+
2489
+
2490
+ /**
2491
+ * @param {string} value
2492
+ * @return {!proto.google.rpc.LocalizedMessage} returns this
2493
+ */
2494
+ proto.google.rpc.LocalizedMessage.prototype.setMessage = function(value) {
2495
+ return jspb.Message.setProto3StringField(this, 2, value);
2496
+ };
2497
+
2498
+
2499
+ goog.object.extend(exports, proto.google.rpc);