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