@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,982 @@
1
+ // source: google/api/http.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
+ goog.exportSymbol('proto.google.api.CustomHttpPattern', null, global);
25
+ goog.exportSymbol('proto.google.api.Http', null, global);
26
+ goog.exportSymbol('proto.google.api.HttpRule', null, global);
27
+ goog.exportSymbol('proto.google.api.HttpRule.PatternCase', null, global);
28
+ /**
29
+ * Generated by JsPbCodeGenerator.
30
+ * @param {Array=} opt_data Optional initial data array, typically from a
31
+ * server response, or constructed directly in Javascript. The array is used
32
+ * in place and becomes part of the constructed object. It is not cloned.
33
+ * If no data is provided, the constructed object will be empty, but still
34
+ * valid.
35
+ * @extends {jspb.Message}
36
+ * @constructor
37
+ */
38
+ proto.google.api.Http = function(opt_data) {
39
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Http.repeatedFields_, null);
40
+ };
41
+ goog.inherits(proto.google.api.Http, jspb.Message);
42
+ if (goog.DEBUG && !COMPILED) {
43
+ /**
44
+ * @public
45
+ * @override
46
+ */
47
+ proto.google.api.Http.displayName = 'proto.google.api.Http';
48
+ }
49
+ /**
50
+ * Generated by JsPbCodeGenerator.
51
+ * @param {Array=} opt_data Optional initial data array, typically from a
52
+ * server response, or constructed directly in Javascript. The array is used
53
+ * in place and becomes part of the constructed object. It is not cloned.
54
+ * If no data is provided, the constructed object will be empty, but still
55
+ * valid.
56
+ * @extends {jspb.Message}
57
+ * @constructor
58
+ */
59
+ proto.google.api.HttpRule = function(opt_data) {
60
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.HttpRule.repeatedFields_, proto.google.api.HttpRule.oneofGroups_);
61
+ };
62
+ goog.inherits(proto.google.api.HttpRule, jspb.Message);
63
+ if (goog.DEBUG && !COMPILED) {
64
+ /**
65
+ * @public
66
+ * @override
67
+ */
68
+ proto.google.api.HttpRule.displayName = 'proto.google.api.HttpRule';
69
+ }
70
+ /**
71
+ * Generated by JsPbCodeGenerator.
72
+ * @param {Array=} opt_data Optional initial data array, typically from a
73
+ * server response, or constructed directly in Javascript. The array is used
74
+ * in place and becomes part of the constructed object. It is not cloned.
75
+ * If no data is provided, the constructed object will be empty, but still
76
+ * valid.
77
+ * @extends {jspb.Message}
78
+ * @constructor
79
+ */
80
+ proto.google.api.CustomHttpPattern = function(opt_data) {
81
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
82
+ };
83
+ goog.inherits(proto.google.api.CustomHttpPattern, jspb.Message);
84
+ if (goog.DEBUG && !COMPILED) {
85
+ /**
86
+ * @public
87
+ * @override
88
+ */
89
+ proto.google.api.CustomHttpPattern.displayName = 'proto.google.api.CustomHttpPattern';
90
+ }
91
+
92
+ /**
93
+ * List of repeated fields within this message type.
94
+ * @private {!Array<number>}
95
+ * @const
96
+ */
97
+ proto.google.api.Http.repeatedFields_ = [1];
98
+
99
+
100
+
101
+ if (jspb.Message.GENERATE_TO_OBJECT) {
102
+ /**
103
+ * Creates an object representation of this proto.
104
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
105
+ * Optional fields that are not set will be set to undefined.
106
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
107
+ * For the list of reserved names please see:
108
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
109
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
110
+ * JSPB instance for transitional soy proto support:
111
+ * http://goto/soy-param-migration
112
+ * @return {!Object}
113
+ */
114
+ proto.google.api.Http.prototype.toObject = function(opt_includeInstance) {
115
+ return proto.google.api.Http.toObject(opt_includeInstance, this);
116
+ };
117
+
118
+
119
+ /**
120
+ * Static version of the {@see toObject} method.
121
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
122
+ * the JSPB instance for transitional soy proto support:
123
+ * http://goto/soy-param-migration
124
+ * @param {!proto.google.api.Http} msg The msg instance to transform.
125
+ * @return {!Object}
126
+ * @suppress {unusedLocalVariables} f is only used for nested messages
127
+ */
128
+ proto.google.api.Http.toObject = function(includeInstance, msg) {
129
+ var f, obj = {
130
+ rulesList: jspb.Message.toObjectList(msg.getRulesList(),
131
+ proto.google.api.HttpRule.toObject, includeInstance),
132
+ fullyDecodeReservedExpansion: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
133
+ };
134
+
135
+ if (includeInstance) {
136
+ obj.$jspbMessageInstance = msg;
137
+ }
138
+ return obj;
139
+ };
140
+ }
141
+
142
+
143
+ /**
144
+ * Deserializes binary data (in protobuf wire format).
145
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
146
+ * @return {!proto.google.api.Http}
147
+ */
148
+ proto.google.api.Http.deserializeBinary = function(bytes) {
149
+ var reader = new jspb.BinaryReader(bytes);
150
+ var msg = new proto.google.api.Http;
151
+ return proto.google.api.Http.deserializeBinaryFromReader(msg, reader);
152
+ };
153
+
154
+
155
+ /**
156
+ * Deserializes binary data (in protobuf wire format) from the
157
+ * given reader into the given message object.
158
+ * @param {!proto.google.api.Http} msg The message object to deserialize into.
159
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
160
+ * @return {!proto.google.api.Http}
161
+ */
162
+ proto.google.api.Http.deserializeBinaryFromReader = function(msg, reader) {
163
+ while (reader.nextField()) {
164
+ if (reader.isEndGroup()) {
165
+ break;
166
+ }
167
+ var field = reader.getFieldNumber();
168
+ switch (field) {
169
+ case 1:
170
+ var value = new proto.google.api.HttpRule;
171
+ reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader);
172
+ msg.addRules(value);
173
+ break;
174
+ case 2:
175
+ var value = /** @type {boolean} */ (reader.readBool());
176
+ msg.setFullyDecodeReservedExpansion(value);
177
+ break;
178
+ default:
179
+ reader.skipField();
180
+ break;
181
+ }
182
+ }
183
+ return msg;
184
+ };
185
+
186
+
187
+ /**
188
+ * Serializes the message to binary data (in protobuf wire format).
189
+ * @return {!Uint8Array}
190
+ */
191
+ proto.google.api.Http.prototype.serializeBinary = function() {
192
+ var writer = new jspb.BinaryWriter();
193
+ proto.google.api.Http.serializeBinaryToWriter(this, writer);
194
+ return writer.getResultBuffer();
195
+ };
196
+
197
+
198
+ /**
199
+ * Serializes the given message to binary data (in protobuf wire
200
+ * format), writing to the given BinaryWriter.
201
+ * @param {!proto.google.api.Http} message
202
+ * @param {!jspb.BinaryWriter} writer
203
+ * @suppress {unusedLocalVariables} f is only used for nested messages
204
+ */
205
+ proto.google.api.Http.serializeBinaryToWriter = function(message, writer) {
206
+ var f = undefined;
207
+ f = message.getRulesList();
208
+ if (f.length > 0) {
209
+ writer.writeRepeatedMessage(
210
+ 1,
211
+ f,
212
+ proto.google.api.HttpRule.serializeBinaryToWriter
213
+ );
214
+ }
215
+ f = message.getFullyDecodeReservedExpansion();
216
+ if (f) {
217
+ writer.writeBool(
218
+ 2,
219
+ f
220
+ );
221
+ }
222
+ };
223
+
224
+
225
+ /**
226
+ * repeated HttpRule rules = 1;
227
+ * @return {!Array<!proto.google.api.HttpRule>}
228
+ */
229
+ proto.google.api.Http.prototype.getRulesList = function() {
230
+ return /** @type{!Array<!proto.google.api.HttpRule>} */ (
231
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 1));
232
+ };
233
+
234
+
235
+ /**
236
+ * @param {!Array<!proto.google.api.HttpRule>} value
237
+ * @return {!proto.google.api.Http} returns this
238
+ */
239
+ proto.google.api.Http.prototype.setRulesList = function(value) {
240
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
241
+ };
242
+
243
+
244
+ /**
245
+ * @param {!proto.google.api.HttpRule=} opt_value
246
+ * @param {number=} opt_index
247
+ * @return {!proto.google.api.HttpRule}
248
+ */
249
+ proto.google.api.Http.prototype.addRules = function(opt_value, opt_index) {
250
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.HttpRule, opt_index);
251
+ };
252
+
253
+
254
+ /**
255
+ * Clears the list making it empty but non-null.
256
+ * @return {!proto.google.api.Http} returns this
257
+ */
258
+ proto.google.api.Http.prototype.clearRulesList = function() {
259
+ return this.setRulesList([]);
260
+ };
261
+
262
+
263
+ /**
264
+ * optional bool fully_decode_reserved_expansion = 2;
265
+ * @return {boolean}
266
+ */
267
+ proto.google.api.Http.prototype.getFullyDecodeReservedExpansion = function() {
268
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
269
+ };
270
+
271
+
272
+ /**
273
+ * @param {boolean} value
274
+ * @return {!proto.google.api.Http} returns this
275
+ */
276
+ proto.google.api.Http.prototype.setFullyDecodeReservedExpansion = function(value) {
277
+ return jspb.Message.setProto3BooleanField(this, 2, value);
278
+ };
279
+
280
+
281
+
282
+ /**
283
+ * List of repeated fields within this message type.
284
+ * @private {!Array<number>}
285
+ * @const
286
+ */
287
+ proto.google.api.HttpRule.repeatedFields_ = [11];
288
+
289
+ /**
290
+ * Oneof group definitions for this message. Each group defines the field
291
+ * numbers belonging to that group. When of these fields' value is set, all
292
+ * other fields in the group are cleared. During deserialization, if multiple
293
+ * fields are encountered for a group, only the last value seen will be kept.
294
+ * @private {!Array<!Array<number>>}
295
+ * @const
296
+ */
297
+ proto.google.api.HttpRule.oneofGroups_ = [[2,3,4,5,6,8]];
298
+
299
+ /**
300
+ * @enum {number}
301
+ */
302
+ proto.google.api.HttpRule.PatternCase = {
303
+ PATTERN_NOT_SET: 0,
304
+ GET: 2,
305
+ PUT: 3,
306
+ POST: 4,
307
+ DELETE: 5,
308
+ PATCH: 6,
309
+ CUSTOM: 8
310
+ };
311
+
312
+ /**
313
+ * @return {proto.google.api.HttpRule.PatternCase}
314
+ */
315
+ proto.google.api.HttpRule.prototype.getPatternCase = function() {
316
+ return /** @type {proto.google.api.HttpRule.PatternCase} */(jspb.Message.computeOneofCase(this, proto.google.api.HttpRule.oneofGroups_[0]));
317
+ };
318
+
319
+
320
+
321
+ if (jspb.Message.GENERATE_TO_OBJECT) {
322
+ /**
323
+ * Creates an object representation of this proto.
324
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
325
+ * Optional fields that are not set will be set to undefined.
326
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
327
+ * For the list of reserved names please see:
328
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
329
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
330
+ * JSPB instance for transitional soy proto support:
331
+ * http://goto/soy-param-migration
332
+ * @return {!Object}
333
+ */
334
+ proto.google.api.HttpRule.prototype.toObject = function(opt_includeInstance) {
335
+ return proto.google.api.HttpRule.toObject(opt_includeInstance, this);
336
+ };
337
+
338
+
339
+ /**
340
+ * Static version of the {@see toObject} method.
341
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
342
+ * the JSPB instance for transitional soy proto support:
343
+ * http://goto/soy-param-migration
344
+ * @param {!proto.google.api.HttpRule} msg The msg instance to transform.
345
+ * @return {!Object}
346
+ * @suppress {unusedLocalVariables} f is only used for nested messages
347
+ */
348
+ proto.google.api.HttpRule.toObject = function(includeInstance, msg) {
349
+ var f, obj = {
350
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
351
+ get: jspb.Message.getFieldWithDefault(msg, 2, ""),
352
+ put: jspb.Message.getFieldWithDefault(msg, 3, ""),
353
+ post: jspb.Message.getFieldWithDefault(msg, 4, ""),
354
+ pb_delete: jspb.Message.getFieldWithDefault(msg, 5, ""),
355
+ patch: jspb.Message.getFieldWithDefault(msg, 6, ""),
356
+ custom: (f = msg.getCustom()) && proto.google.api.CustomHttpPattern.toObject(includeInstance, f),
357
+ body: jspb.Message.getFieldWithDefault(msg, 7, ""),
358
+ additionalBindingsList: jspb.Message.toObjectList(msg.getAdditionalBindingsList(),
359
+ proto.google.api.HttpRule.toObject, includeInstance)
360
+ };
361
+
362
+ if (includeInstance) {
363
+ obj.$jspbMessageInstance = msg;
364
+ }
365
+ return obj;
366
+ };
367
+ }
368
+
369
+
370
+ /**
371
+ * Deserializes binary data (in protobuf wire format).
372
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
373
+ * @return {!proto.google.api.HttpRule}
374
+ */
375
+ proto.google.api.HttpRule.deserializeBinary = function(bytes) {
376
+ var reader = new jspb.BinaryReader(bytes);
377
+ var msg = new proto.google.api.HttpRule;
378
+ return proto.google.api.HttpRule.deserializeBinaryFromReader(msg, reader);
379
+ };
380
+
381
+
382
+ /**
383
+ * Deserializes binary data (in protobuf wire format) from the
384
+ * given reader into the given message object.
385
+ * @param {!proto.google.api.HttpRule} msg The message object to deserialize into.
386
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
387
+ * @return {!proto.google.api.HttpRule}
388
+ */
389
+ proto.google.api.HttpRule.deserializeBinaryFromReader = function(msg, reader) {
390
+ while (reader.nextField()) {
391
+ if (reader.isEndGroup()) {
392
+ break;
393
+ }
394
+ var field = reader.getFieldNumber();
395
+ switch (field) {
396
+ case 1:
397
+ var value = /** @type {string} */ (reader.readString());
398
+ msg.setSelector(value);
399
+ break;
400
+ case 2:
401
+ var value = /** @type {string} */ (reader.readString());
402
+ msg.setGet(value);
403
+ break;
404
+ case 3:
405
+ var value = /** @type {string} */ (reader.readString());
406
+ msg.setPut(value);
407
+ break;
408
+ case 4:
409
+ var value = /** @type {string} */ (reader.readString());
410
+ msg.setPost(value);
411
+ break;
412
+ case 5:
413
+ var value = /** @type {string} */ (reader.readString());
414
+ msg.setDelete(value);
415
+ break;
416
+ case 6:
417
+ var value = /** @type {string} */ (reader.readString());
418
+ msg.setPatch(value);
419
+ break;
420
+ case 8:
421
+ var value = new proto.google.api.CustomHttpPattern;
422
+ reader.readMessage(value,proto.google.api.CustomHttpPattern.deserializeBinaryFromReader);
423
+ msg.setCustom(value);
424
+ break;
425
+ case 7:
426
+ var value = /** @type {string} */ (reader.readString());
427
+ msg.setBody(value);
428
+ break;
429
+ case 11:
430
+ var value = new proto.google.api.HttpRule;
431
+ reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader);
432
+ msg.addAdditionalBindings(value);
433
+ break;
434
+ default:
435
+ reader.skipField();
436
+ break;
437
+ }
438
+ }
439
+ return msg;
440
+ };
441
+
442
+
443
+ /**
444
+ * Serializes the message to binary data (in protobuf wire format).
445
+ * @return {!Uint8Array}
446
+ */
447
+ proto.google.api.HttpRule.prototype.serializeBinary = function() {
448
+ var writer = new jspb.BinaryWriter();
449
+ proto.google.api.HttpRule.serializeBinaryToWriter(this, writer);
450
+ return writer.getResultBuffer();
451
+ };
452
+
453
+
454
+ /**
455
+ * Serializes the given message to binary data (in protobuf wire
456
+ * format), writing to the given BinaryWriter.
457
+ * @param {!proto.google.api.HttpRule} message
458
+ * @param {!jspb.BinaryWriter} writer
459
+ * @suppress {unusedLocalVariables} f is only used for nested messages
460
+ */
461
+ proto.google.api.HttpRule.serializeBinaryToWriter = function(message, writer) {
462
+ var f = undefined;
463
+ f = message.getSelector();
464
+ if (f.length > 0) {
465
+ writer.writeString(
466
+ 1,
467
+ f
468
+ );
469
+ }
470
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
471
+ if (f != null) {
472
+ writer.writeString(
473
+ 2,
474
+ f
475
+ );
476
+ }
477
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
478
+ if (f != null) {
479
+ writer.writeString(
480
+ 3,
481
+ f
482
+ );
483
+ }
484
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
485
+ if (f != null) {
486
+ writer.writeString(
487
+ 4,
488
+ f
489
+ );
490
+ }
491
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
492
+ if (f != null) {
493
+ writer.writeString(
494
+ 5,
495
+ f
496
+ );
497
+ }
498
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
499
+ if (f != null) {
500
+ writer.writeString(
501
+ 6,
502
+ f
503
+ );
504
+ }
505
+ f = message.getCustom();
506
+ if (f != null) {
507
+ writer.writeMessage(
508
+ 8,
509
+ f,
510
+ proto.google.api.CustomHttpPattern.serializeBinaryToWriter
511
+ );
512
+ }
513
+ f = message.getBody();
514
+ if (f.length > 0) {
515
+ writer.writeString(
516
+ 7,
517
+ f
518
+ );
519
+ }
520
+ f = message.getAdditionalBindingsList();
521
+ if (f.length > 0) {
522
+ writer.writeRepeatedMessage(
523
+ 11,
524
+ f,
525
+ proto.google.api.HttpRule.serializeBinaryToWriter
526
+ );
527
+ }
528
+ };
529
+
530
+
531
+ /**
532
+ * optional string selector = 1;
533
+ * @return {string}
534
+ */
535
+ proto.google.api.HttpRule.prototype.getSelector = function() {
536
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
537
+ };
538
+
539
+
540
+ /**
541
+ * @param {string} value
542
+ * @return {!proto.google.api.HttpRule} returns this
543
+ */
544
+ proto.google.api.HttpRule.prototype.setSelector = function(value) {
545
+ return jspb.Message.setProto3StringField(this, 1, value);
546
+ };
547
+
548
+
549
+ /**
550
+ * optional string get = 2;
551
+ * @return {string}
552
+ */
553
+ proto.google.api.HttpRule.prototype.getGet = function() {
554
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
555
+ };
556
+
557
+
558
+ /**
559
+ * @param {string} value
560
+ * @return {!proto.google.api.HttpRule} returns this
561
+ */
562
+ proto.google.api.HttpRule.prototype.setGet = function(value) {
563
+ return jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], value);
564
+ };
565
+
566
+
567
+ /**
568
+ * Clears the field making it undefined.
569
+ * @return {!proto.google.api.HttpRule} returns this
570
+ */
571
+ proto.google.api.HttpRule.prototype.clearGet = function() {
572
+ return jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], undefined);
573
+ };
574
+
575
+
576
+ /**
577
+ * Returns whether this field is set.
578
+ * @return {boolean}
579
+ */
580
+ proto.google.api.HttpRule.prototype.hasGet = function() {
581
+ return jspb.Message.getField(this, 2) != null;
582
+ };
583
+
584
+
585
+ /**
586
+ * optional string put = 3;
587
+ * @return {string}
588
+ */
589
+ proto.google.api.HttpRule.prototype.getPut = function() {
590
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
591
+ };
592
+
593
+
594
+ /**
595
+ * @param {string} value
596
+ * @return {!proto.google.api.HttpRule} returns this
597
+ */
598
+ proto.google.api.HttpRule.prototype.setPut = function(value) {
599
+ return jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], value);
600
+ };
601
+
602
+
603
+ /**
604
+ * Clears the field making it undefined.
605
+ * @return {!proto.google.api.HttpRule} returns this
606
+ */
607
+ proto.google.api.HttpRule.prototype.clearPut = function() {
608
+ return jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], undefined);
609
+ };
610
+
611
+
612
+ /**
613
+ * Returns whether this field is set.
614
+ * @return {boolean}
615
+ */
616
+ proto.google.api.HttpRule.prototype.hasPut = function() {
617
+ return jspb.Message.getField(this, 3) != null;
618
+ };
619
+
620
+
621
+ /**
622
+ * optional string post = 4;
623
+ * @return {string}
624
+ */
625
+ proto.google.api.HttpRule.prototype.getPost = function() {
626
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
627
+ };
628
+
629
+
630
+ /**
631
+ * @param {string} value
632
+ * @return {!proto.google.api.HttpRule} returns this
633
+ */
634
+ proto.google.api.HttpRule.prototype.setPost = function(value) {
635
+ return jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], value);
636
+ };
637
+
638
+
639
+ /**
640
+ * Clears the field making it undefined.
641
+ * @return {!proto.google.api.HttpRule} returns this
642
+ */
643
+ proto.google.api.HttpRule.prototype.clearPost = function() {
644
+ return jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], undefined);
645
+ };
646
+
647
+
648
+ /**
649
+ * Returns whether this field is set.
650
+ * @return {boolean}
651
+ */
652
+ proto.google.api.HttpRule.prototype.hasPost = function() {
653
+ return jspb.Message.getField(this, 4) != null;
654
+ };
655
+
656
+
657
+ /**
658
+ * optional string delete = 5;
659
+ * @return {string}
660
+ */
661
+ proto.google.api.HttpRule.prototype.getDelete = function() {
662
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
663
+ };
664
+
665
+
666
+ /**
667
+ * @param {string} value
668
+ * @return {!proto.google.api.HttpRule} returns this
669
+ */
670
+ proto.google.api.HttpRule.prototype.setDelete = function(value) {
671
+ return jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], value);
672
+ };
673
+
674
+
675
+ /**
676
+ * Clears the field making it undefined.
677
+ * @return {!proto.google.api.HttpRule} returns this
678
+ */
679
+ proto.google.api.HttpRule.prototype.clearDelete = function() {
680
+ return jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], undefined);
681
+ };
682
+
683
+
684
+ /**
685
+ * Returns whether this field is set.
686
+ * @return {boolean}
687
+ */
688
+ proto.google.api.HttpRule.prototype.hasDelete = function() {
689
+ return jspb.Message.getField(this, 5) != null;
690
+ };
691
+
692
+
693
+ /**
694
+ * optional string patch = 6;
695
+ * @return {string}
696
+ */
697
+ proto.google.api.HttpRule.prototype.getPatch = function() {
698
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
699
+ };
700
+
701
+
702
+ /**
703
+ * @param {string} value
704
+ * @return {!proto.google.api.HttpRule} returns this
705
+ */
706
+ proto.google.api.HttpRule.prototype.setPatch = function(value) {
707
+ return jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], value);
708
+ };
709
+
710
+
711
+ /**
712
+ * Clears the field making it undefined.
713
+ * @return {!proto.google.api.HttpRule} returns this
714
+ */
715
+ proto.google.api.HttpRule.prototype.clearPatch = function() {
716
+ return jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], undefined);
717
+ };
718
+
719
+
720
+ /**
721
+ * Returns whether this field is set.
722
+ * @return {boolean}
723
+ */
724
+ proto.google.api.HttpRule.prototype.hasPatch = function() {
725
+ return jspb.Message.getField(this, 6) != null;
726
+ };
727
+
728
+
729
+ /**
730
+ * optional CustomHttpPattern custom = 8;
731
+ * @return {?proto.google.api.CustomHttpPattern}
732
+ */
733
+ proto.google.api.HttpRule.prototype.getCustom = function() {
734
+ return /** @type{?proto.google.api.CustomHttpPattern} */ (
735
+ jspb.Message.getWrapperField(this, proto.google.api.CustomHttpPattern, 8));
736
+ };
737
+
738
+
739
+ /**
740
+ * @param {?proto.google.api.CustomHttpPattern|undefined} value
741
+ * @return {!proto.google.api.HttpRule} returns this
742
+ */
743
+ proto.google.api.HttpRule.prototype.setCustom = function(value) {
744
+ return jspb.Message.setOneofWrapperField(this, 8, proto.google.api.HttpRule.oneofGroups_[0], value);
745
+ };
746
+
747
+
748
+ /**
749
+ * Clears the message field making it undefined.
750
+ * @return {!proto.google.api.HttpRule} returns this
751
+ */
752
+ proto.google.api.HttpRule.prototype.clearCustom = function() {
753
+ return this.setCustom(undefined);
754
+ };
755
+
756
+
757
+ /**
758
+ * Returns whether this field is set.
759
+ * @return {boolean}
760
+ */
761
+ proto.google.api.HttpRule.prototype.hasCustom = function() {
762
+ return jspb.Message.getField(this, 8) != null;
763
+ };
764
+
765
+
766
+ /**
767
+ * optional string body = 7;
768
+ * @return {string}
769
+ */
770
+ proto.google.api.HttpRule.prototype.getBody = function() {
771
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
772
+ };
773
+
774
+
775
+ /**
776
+ * @param {string} value
777
+ * @return {!proto.google.api.HttpRule} returns this
778
+ */
779
+ proto.google.api.HttpRule.prototype.setBody = function(value) {
780
+ return jspb.Message.setProto3StringField(this, 7, value);
781
+ };
782
+
783
+
784
+ /**
785
+ * repeated HttpRule additional_bindings = 11;
786
+ * @return {!Array<!proto.google.api.HttpRule>}
787
+ */
788
+ proto.google.api.HttpRule.prototype.getAdditionalBindingsList = function() {
789
+ return /** @type{!Array<!proto.google.api.HttpRule>} */ (
790
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 11));
791
+ };
792
+
793
+
794
+ /**
795
+ * @param {!Array<!proto.google.api.HttpRule>} value
796
+ * @return {!proto.google.api.HttpRule} returns this
797
+ */
798
+ proto.google.api.HttpRule.prototype.setAdditionalBindingsList = function(value) {
799
+ return jspb.Message.setRepeatedWrapperField(this, 11, value);
800
+ };
801
+
802
+
803
+ /**
804
+ * @param {!proto.google.api.HttpRule=} opt_value
805
+ * @param {number=} opt_index
806
+ * @return {!proto.google.api.HttpRule}
807
+ */
808
+ proto.google.api.HttpRule.prototype.addAdditionalBindings = function(opt_value, opt_index) {
809
+ return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.google.api.HttpRule, opt_index);
810
+ };
811
+
812
+
813
+ /**
814
+ * Clears the list making it empty but non-null.
815
+ * @return {!proto.google.api.HttpRule} returns this
816
+ */
817
+ proto.google.api.HttpRule.prototype.clearAdditionalBindingsList = function() {
818
+ return this.setAdditionalBindingsList([]);
819
+ };
820
+
821
+
822
+
823
+
824
+
825
+ if (jspb.Message.GENERATE_TO_OBJECT) {
826
+ /**
827
+ * Creates an object representation of this proto.
828
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
829
+ * Optional fields that are not set will be set to undefined.
830
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
831
+ * For the list of reserved names please see:
832
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
833
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
834
+ * JSPB instance for transitional soy proto support:
835
+ * http://goto/soy-param-migration
836
+ * @return {!Object}
837
+ */
838
+ proto.google.api.CustomHttpPattern.prototype.toObject = function(opt_includeInstance) {
839
+ return proto.google.api.CustomHttpPattern.toObject(opt_includeInstance, this);
840
+ };
841
+
842
+
843
+ /**
844
+ * Static version of the {@see toObject} method.
845
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
846
+ * the JSPB instance for transitional soy proto support:
847
+ * http://goto/soy-param-migration
848
+ * @param {!proto.google.api.CustomHttpPattern} msg The msg instance to transform.
849
+ * @return {!Object}
850
+ * @suppress {unusedLocalVariables} f is only used for nested messages
851
+ */
852
+ proto.google.api.CustomHttpPattern.toObject = function(includeInstance, msg) {
853
+ var f, obj = {
854
+ kind: jspb.Message.getFieldWithDefault(msg, 1, ""),
855
+ path: jspb.Message.getFieldWithDefault(msg, 2, "")
856
+ };
857
+
858
+ if (includeInstance) {
859
+ obj.$jspbMessageInstance = msg;
860
+ }
861
+ return obj;
862
+ };
863
+ }
864
+
865
+
866
+ /**
867
+ * Deserializes binary data (in protobuf wire format).
868
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
869
+ * @return {!proto.google.api.CustomHttpPattern}
870
+ */
871
+ proto.google.api.CustomHttpPattern.deserializeBinary = function(bytes) {
872
+ var reader = new jspb.BinaryReader(bytes);
873
+ var msg = new proto.google.api.CustomHttpPattern;
874
+ return proto.google.api.CustomHttpPattern.deserializeBinaryFromReader(msg, reader);
875
+ };
876
+
877
+
878
+ /**
879
+ * Deserializes binary data (in protobuf wire format) from the
880
+ * given reader into the given message object.
881
+ * @param {!proto.google.api.CustomHttpPattern} msg The message object to deserialize into.
882
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
883
+ * @return {!proto.google.api.CustomHttpPattern}
884
+ */
885
+ proto.google.api.CustomHttpPattern.deserializeBinaryFromReader = function(msg, reader) {
886
+ while (reader.nextField()) {
887
+ if (reader.isEndGroup()) {
888
+ break;
889
+ }
890
+ var field = reader.getFieldNumber();
891
+ switch (field) {
892
+ case 1:
893
+ var value = /** @type {string} */ (reader.readString());
894
+ msg.setKind(value);
895
+ break;
896
+ case 2:
897
+ var value = /** @type {string} */ (reader.readString());
898
+ msg.setPath(value);
899
+ break;
900
+ default:
901
+ reader.skipField();
902
+ break;
903
+ }
904
+ }
905
+ return msg;
906
+ };
907
+
908
+
909
+ /**
910
+ * Serializes the message to binary data (in protobuf wire format).
911
+ * @return {!Uint8Array}
912
+ */
913
+ proto.google.api.CustomHttpPattern.prototype.serializeBinary = function() {
914
+ var writer = new jspb.BinaryWriter();
915
+ proto.google.api.CustomHttpPattern.serializeBinaryToWriter(this, writer);
916
+ return writer.getResultBuffer();
917
+ };
918
+
919
+
920
+ /**
921
+ * Serializes the given message to binary data (in protobuf wire
922
+ * format), writing to the given BinaryWriter.
923
+ * @param {!proto.google.api.CustomHttpPattern} message
924
+ * @param {!jspb.BinaryWriter} writer
925
+ * @suppress {unusedLocalVariables} f is only used for nested messages
926
+ */
927
+ proto.google.api.CustomHttpPattern.serializeBinaryToWriter = function(message, writer) {
928
+ var f = undefined;
929
+ f = message.getKind();
930
+ if (f.length > 0) {
931
+ writer.writeString(
932
+ 1,
933
+ f
934
+ );
935
+ }
936
+ f = message.getPath();
937
+ if (f.length > 0) {
938
+ writer.writeString(
939
+ 2,
940
+ f
941
+ );
942
+ }
943
+ };
944
+
945
+
946
+ /**
947
+ * optional string kind = 1;
948
+ * @return {string}
949
+ */
950
+ proto.google.api.CustomHttpPattern.prototype.getKind = function() {
951
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
952
+ };
953
+
954
+
955
+ /**
956
+ * @param {string} value
957
+ * @return {!proto.google.api.CustomHttpPattern} returns this
958
+ */
959
+ proto.google.api.CustomHttpPattern.prototype.setKind = function(value) {
960
+ return jspb.Message.setProto3StringField(this, 1, value);
961
+ };
962
+
963
+
964
+ /**
965
+ * optional string path = 2;
966
+ * @return {string}
967
+ */
968
+ proto.google.api.CustomHttpPattern.prototype.getPath = function() {
969
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
970
+ };
971
+
972
+
973
+ /**
974
+ * @param {string} value
975
+ * @return {!proto.google.api.CustomHttpPattern} returns this
976
+ */
977
+ proto.google.api.CustomHttpPattern.prototype.setPath = function(value) {
978
+ return jspb.Message.setProto3StringField(this, 2, value);
979
+ };
980
+
981
+
982
+ goog.object.extend(exports, proto.google.api);