@aceplus/smartace-api 3.6.0-alpha.17 → 3.6.0-alpha.19

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 (249) hide show
  1. package/auth.account_pb.d.ts +582 -0
  2. package/auth.account_pb.js +4287 -0
  3. package/auth.account_pb_service.d.ts +340 -0
  4. package/auth.account_pb_service.js +637 -0
  5. package/auth.account_two_factor_pb.d.ts +159 -0
  6. package/auth.account_two_factor_pb.js +1184 -0
  7. package/auth.account_two_factor_pb_service.d.ts +121 -0
  8. package/auth.account_two_factor_pb_service.js +182 -0
  9. package/auth.app_account_pb.d.ts +156 -0
  10. package/auth.app_account_pb.js +1153 -0
  11. package/auth.app_account_pb_service.d.ts +160 -0
  12. package/auth.app_account_pb_service.js +263 -0
  13. package/auth.app_authn_pb.d.ts +172 -0
  14. package/auth.app_authn_pb.js +1233 -0
  15. package/auth.app_authn_pb_service.d.ts +140 -0
  16. package/auth.app_authn_pb_service.js +222 -0
  17. package/auth.app_distribution_pb.d.ts +174 -0
  18. package/auth.app_distribution_pb.js +1338 -0
  19. package/auth.app_distribution_pb_service.d.ts +120 -0
  20. package/auth.app_distribution_pb_service.js +181 -0
  21. package/auth.authn_pb.d.ts +95 -0
  22. package/auth.authn_pb.js +637 -0
  23. package/auth.authn_pb_service.d.ts +82 -0
  24. package/auth.authn_pb_service.js +101 -0
  25. package/auth.cluster_pb.d.ts +142 -0
  26. package/auth.cluster_pb.js +1050 -0
  27. package/auth.cluster_pb_service.d.ts +82 -0
  28. package/auth.cluster_pb_service.js +101 -0
  29. package/auth.distribution_pb.d.ts +233 -0
  30. package/auth.distribution_pb.js +1785 -0
  31. package/auth.distribution_pb_service.d.ts +82 -0
  32. package/auth.distribution_pb_service.js +101 -0
  33. package/auth.email_pb.d.ts +217 -0
  34. package/auth.email_pb.js +1508 -0
  35. package/auth.email_pb_service.d.ts +102 -0
  36. package/auth.email_pb_service.js +142 -0
  37. package/auth.firmware_pb.d.ts +256 -0
  38. package/auth.firmware_pb.js +1997 -0
  39. package/auth.firmware_pb_service.d.ts +120 -0
  40. package/auth.firmware_pb_service.js +181 -0
  41. package/auth.push_notification_pb.d.ts +69 -0
  42. package/auth.push_notification_pb.js +411 -0
  43. package/auth.push_notification_pb_service.d.ts +64 -0
  44. package/auth.push_notification_pb_service.js +62 -0
  45. package/auth.sms_pb.d.ts +79 -0
  46. package/auth.sms_pb.js +575 -0
  47. package/auth.sms_pb_service.d.ts +83 -0
  48. package/auth.sms_pb_service.js +102 -0
  49. package/google/api/annotations_pb.d.ts +9 -0
  50. package/google/api/annotations_pb.js +54 -0
  51. package/google/api/annotations_pb_service.d.ts +3 -0
  52. package/google/api/annotations_pb_service.js +3 -0
  53. package/google/api/auth_pb.d.ts +150 -0
  54. package/google/api/auth_pb.js +1160 -0
  55. package/google/api/auth_pb_service.d.ts +3 -0
  56. package/google/api/auth_pb_service.js +3 -0
  57. package/google/api/backend_pb.d.ts +59 -0
  58. package/google/api/backend_pb.js +448 -0
  59. package/google/api/backend_pb_service.d.ts +3 -0
  60. package/google/api/backend_pb_service.js +3 -0
  61. package/google/api/billing_pb.d.ts +54 -0
  62. package/google/api/billing_pb.js +416 -0
  63. package/google/api/billing_pb_service.d.ts +3 -0
  64. package/google/api/billing_pb_service.js +3 -0
  65. package/google/api/client_pb.d.ts +12 -0
  66. package/google/api/client_pb.js +104 -0
  67. package/google/api/client_pb_service.d.ts +3 -0
  68. package/google/api/client_pb_service.js +3 -0
  69. package/google/api/config_change_pb.d.ts +72 -0
  70. package/google/api/config_change_pb.js +489 -0
  71. package/google/api/config_change_pb_service.d.ts +3 -0
  72. package/google/api/config_change_pb_service.js +3 -0
  73. package/google/api/consumer_pb.d.ts +65 -0
  74. package/google/api/consumer_pb.js +430 -0
  75. package/google/api/consumer_pb_service.d.ts +3 -0
  76. package/google/api/consumer_pb_service.js +3 -0
  77. package/google/api/context_pb.d.ts +59 -0
  78. package/google/api/context_pb.js +463 -0
  79. package/google/api/context_pb_service.d.ts +3 -0
  80. package/google/api/context_pb_service.js +3 -0
  81. package/google/api/control_pb.d.ts +25 -0
  82. package/google/api/control_pb.js +176 -0
  83. package/google/api/control_pb_service.d.ts +3 -0
  84. package/google/api/control_pb_service.js +3 -0
  85. package/google/api/distribution_pb.d.ts +235 -0
  86. package/google/api/distribution_pb.js +1805 -0
  87. package/google/api/distribution_pb_service.d.ts +3 -0
  88. package/google/api/distribution_pb_service.js +3 -0
  89. package/google/api/documentation_pb.d.ts +103 -0
  90. package/google/api/documentation_pb.js +803 -0
  91. package/google/api/documentation_pb_service.d.ts +3 -0
  92. package/google/api/documentation_pb_service.js +3 -0
  93. package/google/api/endpoint_pb.d.ts +46 -0
  94. package/google/api/endpoint_pb.js +343 -0
  95. package/google/api/endpoint_pb_service.d.ts +3 -0
  96. package/google/api/endpoint_pb_service.js +3 -0
  97. package/google/api/error_reason_pb.d.ts +40 -0
  98. package/google/api/error_reason_pb.js +61 -0
  99. package/google/api/error_reason_pb_service.d.ts +3 -0
  100. package/google/api/error_reason_pb_service.js +3 -0
  101. package/google/api/field_behavior_pb.d.ts +20 -0
  102. package/google/api/field_behavior_pb.js +66 -0
  103. package/google/api/field_behavior_pb_service.d.ts +3 -0
  104. package/google/api/field_behavior_pb_service.js +3 -0
  105. package/google/api/http_pb.d.ts +136 -0
  106. package/google/api/http_pb.js +1012 -0
  107. package/google/api/http_pb_service.d.ts +3 -0
  108. package/google/api/http_pb_service.js +3 -0
  109. package/google/api/httpbody_pb.d.ts +38 -0
  110. package/google/api/httpbody_pb.js +292 -0
  111. package/google/api/httpbody_pb_service.d.ts +3 -0
  112. package/google/api/httpbody_pb_service.js +3 -0
  113. package/google/api/label_pb.d.ts +41 -0
  114. package/google/api/label_pb.js +246 -0
  115. package/google/api/label_pb_service.d.ts +3 -0
  116. package/google/api/label_pb_service.js +3 -0
  117. package/google/api/launch_stage_pb.d.ts +16 -0
  118. package/google/api/launch_stage_pb.js +37 -0
  119. package/google/api/launch_stage_pb_service.d.ts +3 -0
  120. package/google/api/launch_stage_pb_service.js +3 -0
  121. package/google/api/log_pb.d.ts +40 -0
  122. package/google/api/log_pb.js +298 -0
  123. package/google/api/log_pb_service.d.ts +3 -0
  124. package/google/api/log_pb_service.js +3 -0
  125. package/google/api/logging_pb.d.ts +60 -0
  126. package/google/api/logging_pb.js +469 -0
  127. package/google/api/logging_pb_service.d.ts +3 -0
  128. package/google/api/logging_pb_service.js +3 -0
  129. package/google/api/metric_pb.d.ts +100 -0
  130. package/google/api/metric_pb.js +629 -0
  131. package/google/api/metric_pb_service.d.ts +3 -0
  132. package/google/api/metric_pb_service.js +3 -0
  133. package/google/api/monitored_resource_pb.d.ts +93 -0
  134. package/google/api/monitored_resource_pb.js +723 -0
  135. package/google/api/monitored_resource_pb_service.d.ts +3 -0
  136. package/google/api/monitored_resource_pb_service.js +3 -0
  137. package/google/api/monitoring_pb.d.ts +60 -0
  138. package/google/api/monitoring_pb.js +469 -0
  139. package/google/api/monitoring_pb_service.d.ts +3 -0
  140. package/google/api/monitoring_pb_service.js +3 -0
  141. package/google/api/policy_pb.d.ts +64 -0
  142. package/google/api/policy_pb.js +502 -0
  143. package/google/api/policy_pb_service.d.ts +3 -0
  144. package/google/api/policy_pb_service.js +3 -0
  145. package/google/api/quota_pb.d.ts +112 -0
  146. package/google/api/quota_pb.js +873 -0
  147. package/google/api/quota_pb_service.d.ts +3 -0
  148. package/google/api/quota_pb_service.js +3 -0
  149. package/google/api/resource_pb.d.ts +99 -0
  150. package/google/api/resource_pb.js +684 -0
  151. package/google/api/resource_pb_service.d.ts +3 -0
  152. package/google/api/resource_pb_service.js +3 -0
  153. package/google/api/routing_pb.d.ts +54 -0
  154. package/google/api/routing_pb.js +416 -0
  155. package/google/api/routing_pb_service.d.ts +3 -0
  156. package/google/api/routing_pb_service.js +3 -0
  157. package/google/api/service_pb.d.ts +184 -0
  158. package/google/api/service_pb.js +1400 -0
  159. package/google/api/service_pb_service.d.ts +3 -0
  160. package/google/api/service_pb_service.js +3 -0
  161. package/google/api/source_info_pb.d.ts +28 -0
  162. package/google/api/source_info_pb.js +208 -0
  163. package/google/api/source_info_pb_service.d.ts +3 -0
  164. package/google/api/source_info_pb_service.js +3 -0
  165. package/google/api/system_parameter_pb.d.ts +81 -0
  166. package/google/api/system_parameter_pb.js +630 -0
  167. package/google/api/system_parameter_pb_service.d.ts +3 -0
  168. package/google/api/system_parameter_pb_service.js +3 -0
  169. package/google/api/usage_pb.d.ts +66 -0
  170. package/google/api/usage_pb.js +499 -0
  171. package/google/api/usage_pb_service.d.ts +3 -0
  172. package/google/api/usage_pb_service.js +3 -0
  173. package/google/api/visibility_pb.d.ts +64 -0
  174. package/google/api/visibility_pb.js +546 -0
  175. package/google/api/visibility_pb_service.d.ts +3 -0
  176. package/google/api/visibility_pb_service.js +3 -0
  177. package/meta.client_pb.d.ts +167 -0
  178. package/meta.client_pb.js +1266 -0
  179. package/meta.client_pb_service.d.ts +122 -0
  180. package/meta.client_pb_service.js +183 -0
  181. package/meta.spic_config_pb.d.ts +184 -0
  182. package/meta.spic_config_pb.js +1382 -0
  183. package/meta.spic_config_pb_service.d.ts +122 -0
  184. package/meta.spic_config_pb_service.js +183 -0
  185. package/package.json +1 -1
  186. package/platform.activity_log_pb.d.ts +177 -0
  187. package/platform.activity_log_pb.js +1294 -0
  188. package/platform.activity_log_pb_service.d.ts +82 -0
  189. package/platform.activity_log_pb_service.js +101 -0
  190. package/platform.client_pb.d.ts +350 -0
  191. package/platform.client_pb.js +2663 -0
  192. package/platform.client_pb_service.d.ts +158 -0
  193. package/platform.client_pb_service.js +261 -0
  194. package/platform.group_pb.d.ts +195 -0
  195. package/platform.group_pb.js +1476 -0
  196. package/platform.group_pb_service.d.ts +139 -0
  197. package/platform.group_pb_service.js +221 -0
  198. package/platform.local_account_internal_pb.d.ts +125 -0
  199. package/platform.local_account_internal_pb.js +933 -0
  200. package/platform.local_account_internal_pb_service.d.ts +121 -0
  201. package/platform.local_account_internal_pb_service.js +182 -0
  202. package/platform.local_account_pb.d.ts +446 -0
  203. package/platform.local_account_pb.js +3337 -0
  204. package/platform.local_account_pb_service.d.ts +331 -0
  205. package/platform.local_account_pb_service.js +623 -0
  206. package/platform.local_distribution_pb.d.ts +73 -0
  207. package/platform.local_distribution_pb.js +536 -0
  208. package/platform.local_distribution_pb_service.d.ts +63 -0
  209. package/platform.local_distribution_pb_service.js +61 -0
  210. package/platform.location_pb.d.ts +271 -0
  211. package/platform.location_pb.js +2046 -0
  212. package/platform.location_pb_service.d.ts +139 -0
  213. package/platform.location_pb_service.js +221 -0
  214. package/platform.pagination_pb.d.ts +45 -0
  215. package/platform.pagination_pb.js +276 -0
  216. package/platform.pagination_pb_service.d.ts +3 -0
  217. package/platform.pagination_pb_service.js +3 -0
  218. package/spic.admin_alert_pb.d.ts +91 -0
  219. package/spic.admin_alert_pb.js +666 -0
  220. package/spic.admin_alert_pb_service.d.ts +102 -0
  221. package/spic.admin_alert_pb_service.js +142 -0
  222. package/spic.alarm_pb.d.ts +344 -0
  223. package/spic.alarm_pb.js +2622 -0
  224. package/spic.alarm_pb_service.d.ts +101 -0
  225. package/spic.alarm_pb_service.js +141 -0
  226. package/spic.asset_pb.d.ts +652 -0
  227. package/spic.asset_pb.js +4669 -0
  228. package/spic.asset_pb_service.d.ts +197 -0
  229. package/spic.asset_pb_service.js +342 -0
  230. package/spic.cabinet_pb.d.ts +951 -0
  231. package/spic.cabinet_pb.js +6875 -0
  232. package/spic.cabinet_pb_service.d.ts +177 -0
  233. package/spic.cabinet_pb_service.js +301 -0
  234. package/spic.config_pb.d.ts +249 -0
  235. package/spic.config_pb.js +1891 -0
  236. package/spic.config_pb_service.d.ts +120 -0
  237. package/spic.config_pb_service.js +181 -0
  238. package/spic.contractor_pb.d.ts +195 -0
  239. package/spic.contractor_pb.js +1476 -0
  240. package/spic.contractor_pb_service.d.ts +139 -0
  241. package/spic.contractor_pb_service.js +221 -0
  242. package/spic.history_pb.d.ts +142 -0
  243. package/spic.history_pb.js +1130 -0
  244. package/spic.history_pb_service.d.ts +63 -0
  245. package/spic.history_pb_service.js +61 -0
  246. package/spic.open_request_pb.d.ts +237 -0
  247. package/spic.open_request_pb.js +1784 -0
  248. package/spic.open_request_pb_service.d.ts +101 -0
  249. package/spic.open_request_pb_service.js +141 -0
@@ -0,0 +1,1160 @@
1
+ // source: google/api/auth.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
25
+ goog.object.extend(proto, google_api_annotations_pb);
26
+ goog.exportSymbol('proto.google.api.AuthProvider', null, global);
27
+ goog.exportSymbol('proto.google.api.AuthRequirement', null, global);
28
+ goog.exportSymbol('proto.google.api.Authentication', null, global);
29
+ goog.exportSymbol('proto.google.api.AuthenticationRule', null, global);
30
+ goog.exportSymbol('proto.google.api.OAuthRequirements', null, global);
31
+ /**
32
+ * Generated by JsPbCodeGenerator.
33
+ * @param {Array=} opt_data Optional initial data array, typically from a
34
+ * server response, or constructed directly in Javascript. The array is used
35
+ * in place and becomes part of the constructed object. It is not cloned.
36
+ * If no data is provided, the constructed object will be empty, but still
37
+ * valid.
38
+ * @extends {jspb.Message}
39
+ * @constructor
40
+ */
41
+ proto.google.api.Authentication = function(opt_data) {
42
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Authentication.repeatedFields_, null);
43
+ };
44
+ goog.inherits(proto.google.api.Authentication, jspb.Message);
45
+ if (goog.DEBUG && !COMPILED) {
46
+ /**
47
+ * @public
48
+ * @override
49
+ */
50
+ proto.google.api.Authentication.displayName = 'proto.google.api.Authentication';
51
+ }
52
+ /**
53
+ * Generated by JsPbCodeGenerator.
54
+ * @param {Array=} opt_data Optional initial data array, typically from a
55
+ * server response, or constructed directly in Javascript. The array is used
56
+ * in place and becomes part of the constructed object. It is not cloned.
57
+ * If no data is provided, the constructed object will be empty, but still
58
+ * valid.
59
+ * @extends {jspb.Message}
60
+ * @constructor
61
+ */
62
+ proto.google.api.AuthenticationRule = function(opt_data) {
63
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.AuthenticationRule.repeatedFields_, null);
64
+ };
65
+ goog.inherits(proto.google.api.AuthenticationRule, jspb.Message);
66
+ if (goog.DEBUG && !COMPILED) {
67
+ /**
68
+ * @public
69
+ * @override
70
+ */
71
+ proto.google.api.AuthenticationRule.displayName = 'proto.google.api.AuthenticationRule';
72
+ }
73
+ /**
74
+ * Generated by JsPbCodeGenerator.
75
+ * @param {Array=} opt_data Optional initial data array, typically from a
76
+ * server response, or constructed directly in Javascript. The array is used
77
+ * in place and becomes part of the constructed object. It is not cloned.
78
+ * If no data is provided, the constructed object will be empty, but still
79
+ * valid.
80
+ * @extends {jspb.Message}
81
+ * @constructor
82
+ */
83
+ proto.google.api.AuthProvider = function(opt_data) {
84
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
85
+ };
86
+ goog.inherits(proto.google.api.AuthProvider, jspb.Message);
87
+ if (goog.DEBUG && !COMPILED) {
88
+ /**
89
+ * @public
90
+ * @override
91
+ */
92
+ proto.google.api.AuthProvider.displayName = 'proto.google.api.AuthProvider';
93
+ }
94
+ /**
95
+ * Generated by JsPbCodeGenerator.
96
+ * @param {Array=} opt_data Optional initial data array, typically from a
97
+ * server response, or constructed directly in Javascript. The array is used
98
+ * in place and becomes part of the constructed object. It is not cloned.
99
+ * If no data is provided, the constructed object will be empty, but still
100
+ * valid.
101
+ * @extends {jspb.Message}
102
+ * @constructor
103
+ */
104
+ proto.google.api.OAuthRequirements = function(opt_data) {
105
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
106
+ };
107
+ goog.inherits(proto.google.api.OAuthRequirements, jspb.Message);
108
+ if (goog.DEBUG && !COMPILED) {
109
+ /**
110
+ * @public
111
+ * @override
112
+ */
113
+ proto.google.api.OAuthRequirements.displayName = 'proto.google.api.OAuthRequirements';
114
+ }
115
+ /**
116
+ * Generated by JsPbCodeGenerator.
117
+ * @param {Array=} opt_data Optional initial data array, typically from a
118
+ * server response, or constructed directly in Javascript. The array is used
119
+ * in place and becomes part of the constructed object. It is not cloned.
120
+ * If no data is provided, the constructed object will be empty, but still
121
+ * valid.
122
+ * @extends {jspb.Message}
123
+ * @constructor
124
+ */
125
+ proto.google.api.AuthRequirement = function(opt_data) {
126
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
127
+ };
128
+ goog.inherits(proto.google.api.AuthRequirement, jspb.Message);
129
+ if (goog.DEBUG && !COMPILED) {
130
+ /**
131
+ * @public
132
+ * @override
133
+ */
134
+ proto.google.api.AuthRequirement.displayName = 'proto.google.api.AuthRequirement';
135
+ }
136
+
137
+ /**
138
+ * List of repeated fields within this message type.
139
+ * @private {!Array<number>}
140
+ * @const
141
+ */
142
+ proto.google.api.Authentication.repeatedFields_ = [3,4];
143
+
144
+
145
+
146
+ if (jspb.Message.GENERATE_TO_OBJECT) {
147
+ /**
148
+ * Creates an object representation of this proto.
149
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
150
+ * Optional fields that are not set will be set to undefined.
151
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
152
+ * For the list of reserved names please see:
153
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
154
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
155
+ * JSPB instance for transitional soy proto support:
156
+ * http://goto/soy-param-migration
157
+ * @return {!Object}
158
+ */
159
+ proto.google.api.Authentication.prototype.toObject = function(opt_includeInstance) {
160
+ return proto.google.api.Authentication.toObject(opt_includeInstance, this);
161
+ };
162
+
163
+
164
+ /**
165
+ * Static version of the {@see toObject} method.
166
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
167
+ * the JSPB instance for transitional soy proto support:
168
+ * http://goto/soy-param-migration
169
+ * @param {!proto.google.api.Authentication} msg The msg instance to transform.
170
+ * @return {!Object}
171
+ * @suppress {unusedLocalVariables} f is only used for nested messages
172
+ */
173
+ proto.google.api.Authentication.toObject = function(includeInstance, msg) {
174
+ var f, obj = {
175
+ rulesList: jspb.Message.toObjectList(msg.getRulesList(),
176
+ proto.google.api.AuthenticationRule.toObject, includeInstance),
177
+ providersList: jspb.Message.toObjectList(msg.getProvidersList(),
178
+ proto.google.api.AuthProvider.toObject, includeInstance)
179
+ };
180
+
181
+ if (includeInstance) {
182
+ obj.$jspbMessageInstance = msg;
183
+ }
184
+ return obj;
185
+ };
186
+ }
187
+
188
+
189
+ /**
190
+ * Deserializes binary data (in protobuf wire format).
191
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
192
+ * @return {!proto.google.api.Authentication}
193
+ */
194
+ proto.google.api.Authentication.deserializeBinary = function(bytes) {
195
+ var reader = new jspb.BinaryReader(bytes);
196
+ var msg = new proto.google.api.Authentication;
197
+ return proto.google.api.Authentication.deserializeBinaryFromReader(msg, reader);
198
+ };
199
+
200
+
201
+ /**
202
+ * Deserializes binary data (in protobuf wire format) from the
203
+ * given reader into the given message object.
204
+ * @param {!proto.google.api.Authentication} msg The message object to deserialize into.
205
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
206
+ * @return {!proto.google.api.Authentication}
207
+ */
208
+ proto.google.api.Authentication.deserializeBinaryFromReader = function(msg, reader) {
209
+ while (reader.nextField()) {
210
+ if (reader.isEndGroup()) {
211
+ break;
212
+ }
213
+ var field = reader.getFieldNumber();
214
+ switch (field) {
215
+ case 3:
216
+ var value = new proto.google.api.AuthenticationRule;
217
+ reader.readMessage(value,proto.google.api.AuthenticationRule.deserializeBinaryFromReader);
218
+ msg.addRules(value);
219
+ break;
220
+ case 4:
221
+ var value = new proto.google.api.AuthProvider;
222
+ reader.readMessage(value,proto.google.api.AuthProvider.deserializeBinaryFromReader);
223
+ msg.addProviders(value);
224
+ break;
225
+ default:
226
+ reader.skipField();
227
+ break;
228
+ }
229
+ }
230
+ return msg;
231
+ };
232
+
233
+
234
+ /**
235
+ * Serializes the message to binary data (in protobuf wire format).
236
+ * @return {!Uint8Array}
237
+ */
238
+ proto.google.api.Authentication.prototype.serializeBinary = function() {
239
+ var writer = new jspb.BinaryWriter();
240
+ proto.google.api.Authentication.serializeBinaryToWriter(this, writer);
241
+ return writer.getResultBuffer();
242
+ };
243
+
244
+
245
+ /**
246
+ * Serializes the given message to binary data (in protobuf wire
247
+ * format), writing to the given BinaryWriter.
248
+ * @param {!proto.google.api.Authentication} message
249
+ * @param {!jspb.BinaryWriter} writer
250
+ * @suppress {unusedLocalVariables} f is only used for nested messages
251
+ */
252
+ proto.google.api.Authentication.serializeBinaryToWriter = function(message, writer) {
253
+ var f = undefined;
254
+ f = message.getRulesList();
255
+ if (f.length > 0) {
256
+ writer.writeRepeatedMessage(
257
+ 3,
258
+ f,
259
+ proto.google.api.AuthenticationRule.serializeBinaryToWriter
260
+ );
261
+ }
262
+ f = message.getProvidersList();
263
+ if (f.length > 0) {
264
+ writer.writeRepeatedMessage(
265
+ 4,
266
+ f,
267
+ proto.google.api.AuthProvider.serializeBinaryToWriter
268
+ );
269
+ }
270
+ };
271
+
272
+
273
+ /**
274
+ * repeated AuthenticationRule rules = 3;
275
+ * @return {!Array<!proto.google.api.AuthenticationRule>}
276
+ */
277
+ proto.google.api.Authentication.prototype.getRulesList = function() {
278
+ return /** @type{!Array<!proto.google.api.AuthenticationRule>} */ (
279
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthenticationRule, 3));
280
+ };
281
+
282
+
283
+ /**
284
+ * @param {!Array<!proto.google.api.AuthenticationRule>} value
285
+ * @return {!proto.google.api.Authentication} returns this
286
+ */
287
+ proto.google.api.Authentication.prototype.setRulesList = function(value) {
288
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
289
+ };
290
+
291
+
292
+ /**
293
+ * @param {!proto.google.api.AuthenticationRule=} opt_value
294
+ * @param {number=} opt_index
295
+ * @return {!proto.google.api.AuthenticationRule}
296
+ */
297
+ proto.google.api.Authentication.prototype.addRules = function(opt_value, opt_index) {
298
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.AuthenticationRule, opt_index);
299
+ };
300
+
301
+
302
+ /**
303
+ * Clears the list making it empty but non-null.
304
+ * @return {!proto.google.api.Authentication} returns this
305
+ */
306
+ proto.google.api.Authentication.prototype.clearRulesList = function() {
307
+ return this.setRulesList([]);
308
+ };
309
+
310
+
311
+ /**
312
+ * repeated AuthProvider providers = 4;
313
+ * @return {!Array<!proto.google.api.AuthProvider>}
314
+ */
315
+ proto.google.api.Authentication.prototype.getProvidersList = function() {
316
+ return /** @type{!Array<!proto.google.api.AuthProvider>} */ (
317
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthProvider, 4));
318
+ };
319
+
320
+
321
+ /**
322
+ * @param {!Array<!proto.google.api.AuthProvider>} value
323
+ * @return {!proto.google.api.Authentication} returns this
324
+ */
325
+ proto.google.api.Authentication.prototype.setProvidersList = function(value) {
326
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
327
+ };
328
+
329
+
330
+ /**
331
+ * @param {!proto.google.api.AuthProvider=} opt_value
332
+ * @param {number=} opt_index
333
+ * @return {!proto.google.api.AuthProvider}
334
+ */
335
+ proto.google.api.Authentication.prototype.addProviders = function(opt_value, opt_index) {
336
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.AuthProvider, opt_index);
337
+ };
338
+
339
+
340
+ /**
341
+ * Clears the list making it empty but non-null.
342
+ * @return {!proto.google.api.Authentication} returns this
343
+ */
344
+ proto.google.api.Authentication.prototype.clearProvidersList = function() {
345
+ return this.setProvidersList([]);
346
+ };
347
+
348
+
349
+
350
+ /**
351
+ * List of repeated fields within this message type.
352
+ * @private {!Array<number>}
353
+ * @const
354
+ */
355
+ proto.google.api.AuthenticationRule.repeatedFields_ = [7];
356
+
357
+
358
+
359
+ if (jspb.Message.GENERATE_TO_OBJECT) {
360
+ /**
361
+ * Creates an object representation of this proto.
362
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
363
+ * Optional fields that are not set will be set to undefined.
364
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
365
+ * For the list of reserved names please see:
366
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
367
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
368
+ * JSPB instance for transitional soy proto support:
369
+ * http://goto/soy-param-migration
370
+ * @return {!Object}
371
+ */
372
+ proto.google.api.AuthenticationRule.prototype.toObject = function(opt_includeInstance) {
373
+ return proto.google.api.AuthenticationRule.toObject(opt_includeInstance, this);
374
+ };
375
+
376
+
377
+ /**
378
+ * Static version of the {@see toObject} method.
379
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
380
+ * the JSPB instance for transitional soy proto support:
381
+ * http://goto/soy-param-migration
382
+ * @param {!proto.google.api.AuthenticationRule} msg The msg instance to transform.
383
+ * @return {!Object}
384
+ * @suppress {unusedLocalVariables} f is only used for nested messages
385
+ */
386
+ proto.google.api.AuthenticationRule.toObject = function(includeInstance, msg) {
387
+ var f, obj = {
388
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
389
+ oauth: (f = msg.getOauth()) && proto.google.api.OAuthRequirements.toObject(includeInstance, f),
390
+ allowWithoutCredential: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
391
+ requirementsList: jspb.Message.toObjectList(msg.getRequirementsList(),
392
+ proto.google.api.AuthRequirement.toObject, includeInstance)
393
+ };
394
+
395
+ if (includeInstance) {
396
+ obj.$jspbMessageInstance = msg;
397
+ }
398
+ return obj;
399
+ };
400
+ }
401
+
402
+
403
+ /**
404
+ * Deserializes binary data (in protobuf wire format).
405
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
406
+ * @return {!proto.google.api.AuthenticationRule}
407
+ */
408
+ proto.google.api.AuthenticationRule.deserializeBinary = function(bytes) {
409
+ var reader = new jspb.BinaryReader(bytes);
410
+ var msg = new proto.google.api.AuthenticationRule;
411
+ return proto.google.api.AuthenticationRule.deserializeBinaryFromReader(msg, reader);
412
+ };
413
+
414
+
415
+ /**
416
+ * Deserializes binary data (in protobuf wire format) from the
417
+ * given reader into the given message object.
418
+ * @param {!proto.google.api.AuthenticationRule} msg The message object to deserialize into.
419
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
420
+ * @return {!proto.google.api.AuthenticationRule}
421
+ */
422
+ proto.google.api.AuthenticationRule.deserializeBinaryFromReader = function(msg, reader) {
423
+ while (reader.nextField()) {
424
+ if (reader.isEndGroup()) {
425
+ break;
426
+ }
427
+ var field = reader.getFieldNumber();
428
+ switch (field) {
429
+ case 1:
430
+ var value = /** @type {string} */ (reader.readString());
431
+ msg.setSelector(value);
432
+ break;
433
+ case 2:
434
+ var value = new proto.google.api.OAuthRequirements;
435
+ reader.readMessage(value,proto.google.api.OAuthRequirements.deserializeBinaryFromReader);
436
+ msg.setOauth(value);
437
+ break;
438
+ case 5:
439
+ var value = /** @type {boolean} */ (reader.readBool());
440
+ msg.setAllowWithoutCredential(value);
441
+ break;
442
+ case 7:
443
+ var value = new proto.google.api.AuthRequirement;
444
+ reader.readMessage(value,proto.google.api.AuthRequirement.deserializeBinaryFromReader);
445
+ msg.addRequirements(value);
446
+ break;
447
+ default:
448
+ reader.skipField();
449
+ break;
450
+ }
451
+ }
452
+ return msg;
453
+ };
454
+
455
+
456
+ /**
457
+ * Serializes the message to binary data (in protobuf wire format).
458
+ * @return {!Uint8Array}
459
+ */
460
+ proto.google.api.AuthenticationRule.prototype.serializeBinary = function() {
461
+ var writer = new jspb.BinaryWriter();
462
+ proto.google.api.AuthenticationRule.serializeBinaryToWriter(this, writer);
463
+ return writer.getResultBuffer();
464
+ };
465
+
466
+
467
+ /**
468
+ * Serializes the given message to binary data (in protobuf wire
469
+ * format), writing to the given BinaryWriter.
470
+ * @param {!proto.google.api.AuthenticationRule} message
471
+ * @param {!jspb.BinaryWriter} writer
472
+ * @suppress {unusedLocalVariables} f is only used for nested messages
473
+ */
474
+ proto.google.api.AuthenticationRule.serializeBinaryToWriter = function(message, writer) {
475
+ var f = undefined;
476
+ f = message.getSelector();
477
+ if (f.length > 0) {
478
+ writer.writeString(
479
+ 1,
480
+ f
481
+ );
482
+ }
483
+ f = message.getOauth();
484
+ if (f != null) {
485
+ writer.writeMessage(
486
+ 2,
487
+ f,
488
+ proto.google.api.OAuthRequirements.serializeBinaryToWriter
489
+ );
490
+ }
491
+ f = message.getAllowWithoutCredential();
492
+ if (f) {
493
+ writer.writeBool(
494
+ 5,
495
+ f
496
+ );
497
+ }
498
+ f = message.getRequirementsList();
499
+ if (f.length > 0) {
500
+ writer.writeRepeatedMessage(
501
+ 7,
502
+ f,
503
+ proto.google.api.AuthRequirement.serializeBinaryToWriter
504
+ );
505
+ }
506
+ };
507
+
508
+
509
+ /**
510
+ * optional string selector = 1;
511
+ * @return {string}
512
+ */
513
+ proto.google.api.AuthenticationRule.prototype.getSelector = function() {
514
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
515
+ };
516
+
517
+
518
+ /**
519
+ * @param {string} value
520
+ * @return {!proto.google.api.AuthenticationRule} returns this
521
+ */
522
+ proto.google.api.AuthenticationRule.prototype.setSelector = function(value) {
523
+ return jspb.Message.setProto3StringField(this, 1, value);
524
+ };
525
+
526
+
527
+ /**
528
+ * optional OAuthRequirements oauth = 2;
529
+ * @return {?proto.google.api.OAuthRequirements}
530
+ */
531
+ proto.google.api.AuthenticationRule.prototype.getOauth = function() {
532
+ return /** @type{?proto.google.api.OAuthRequirements} */ (
533
+ jspb.Message.getWrapperField(this, proto.google.api.OAuthRequirements, 2));
534
+ };
535
+
536
+
537
+ /**
538
+ * @param {?proto.google.api.OAuthRequirements|undefined} value
539
+ * @return {!proto.google.api.AuthenticationRule} returns this
540
+ */
541
+ proto.google.api.AuthenticationRule.prototype.setOauth = function(value) {
542
+ return jspb.Message.setWrapperField(this, 2, value);
543
+ };
544
+
545
+
546
+ /**
547
+ * Clears the message field making it undefined.
548
+ * @return {!proto.google.api.AuthenticationRule} returns this
549
+ */
550
+ proto.google.api.AuthenticationRule.prototype.clearOauth = function() {
551
+ return this.setOauth(undefined);
552
+ };
553
+
554
+
555
+ /**
556
+ * Returns whether this field is set.
557
+ * @return {boolean}
558
+ */
559
+ proto.google.api.AuthenticationRule.prototype.hasOauth = function() {
560
+ return jspb.Message.getField(this, 2) != null;
561
+ };
562
+
563
+
564
+ /**
565
+ * optional bool allow_without_credential = 5;
566
+ * @return {boolean}
567
+ */
568
+ proto.google.api.AuthenticationRule.prototype.getAllowWithoutCredential = function() {
569
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
570
+ };
571
+
572
+
573
+ /**
574
+ * @param {boolean} value
575
+ * @return {!proto.google.api.AuthenticationRule} returns this
576
+ */
577
+ proto.google.api.AuthenticationRule.prototype.setAllowWithoutCredential = function(value) {
578
+ return jspb.Message.setProto3BooleanField(this, 5, value);
579
+ };
580
+
581
+
582
+ /**
583
+ * repeated AuthRequirement requirements = 7;
584
+ * @return {!Array<!proto.google.api.AuthRequirement>}
585
+ */
586
+ proto.google.api.AuthenticationRule.prototype.getRequirementsList = function() {
587
+ return /** @type{!Array<!proto.google.api.AuthRequirement>} */ (
588
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthRequirement, 7));
589
+ };
590
+
591
+
592
+ /**
593
+ * @param {!Array<!proto.google.api.AuthRequirement>} value
594
+ * @return {!proto.google.api.AuthenticationRule} returns this
595
+ */
596
+ proto.google.api.AuthenticationRule.prototype.setRequirementsList = function(value) {
597
+ return jspb.Message.setRepeatedWrapperField(this, 7, value);
598
+ };
599
+
600
+
601
+ /**
602
+ * @param {!proto.google.api.AuthRequirement=} opt_value
603
+ * @param {number=} opt_index
604
+ * @return {!proto.google.api.AuthRequirement}
605
+ */
606
+ proto.google.api.AuthenticationRule.prototype.addRequirements = function(opt_value, opt_index) {
607
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.google.api.AuthRequirement, opt_index);
608
+ };
609
+
610
+
611
+ /**
612
+ * Clears the list making it empty but non-null.
613
+ * @return {!proto.google.api.AuthenticationRule} returns this
614
+ */
615
+ proto.google.api.AuthenticationRule.prototype.clearRequirementsList = function() {
616
+ return this.setRequirementsList([]);
617
+ };
618
+
619
+
620
+
621
+
622
+
623
+ if (jspb.Message.GENERATE_TO_OBJECT) {
624
+ /**
625
+ * Creates an object representation of this proto.
626
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
627
+ * Optional fields that are not set will be set to undefined.
628
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
629
+ * For the list of reserved names please see:
630
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
631
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
632
+ * JSPB instance for transitional soy proto support:
633
+ * http://goto/soy-param-migration
634
+ * @return {!Object}
635
+ */
636
+ proto.google.api.AuthProvider.prototype.toObject = function(opt_includeInstance) {
637
+ return proto.google.api.AuthProvider.toObject(opt_includeInstance, this);
638
+ };
639
+
640
+
641
+ /**
642
+ * Static version of the {@see toObject} method.
643
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
644
+ * the JSPB instance for transitional soy proto support:
645
+ * http://goto/soy-param-migration
646
+ * @param {!proto.google.api.AuthProvider} msg The msg instance to transform.
647
+ * @return {!Object}
648
+ * @suppress {unusedLocalVariables} f is only used for nested messages
649
+ */
650
+ proto.google.api.AuthProvider.toObject = function(includeInstance, msg) {
651
+ var f, obj = {
652
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
653
+ issuer: jspb.Message.getFieldWithDefault(msg, 2, ""),
654
+ jwksUri: jspb.Message.getFieldWithDefault(msg, 3, ""),
655
+ audiences: jspb.Message.getFieldWithDefault(msg, 4, ""),
656
+ authorizationUrl: jspb.Message.getFieldWithDefault(msg, 5, "")
657
+ };
658
+
659
+ if (includeInstance) {
660
+ obj.$jspbMessageInstance = msg;
661
+ }
662
+ return obj;
663
+ };
664
+ }
665
+
666
+
667
+ /**
668
+ * Deserializes binary data (in protobuf wire format).
669
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
670
+ * @return {!proto.google.api.AuthProvider}
671
+ */
672
+ proto.google.api.AuthProvider.deserializeBinary = function(bytes) {
673
+ var reader = new jspb.BinaryReader(bytes);
674
+ var msg = new proto.google.api.AuthProvider;
675
+ return proto.google.api.AuthProvider.deserializeBinaryFromReader(msg, reader);
676
+ };
677
+
678
+
679
+ /**
680
+ * Deserializes binary data (in protobuf wire format) from the
681
+ * given reader into the given message object.
682
+ * @param {!proto.google.api.AuthProvider} msg The message object to deserialize into.
683
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
684
+ * @return {!proto.google.api.AuthProvider}
685
+ */
686
+ proto.google.api.AuthProvider.deserializeBinaryFromReader = function(msg, reader) {
687
+ while (reader.nextField()) {
688
+ if (reader.isEndGroup()) {
689
+ break;
690
+ }
691
+ var field = reader.getFieldNumber();
692
+ switch (field) {
693
+ case 1:
694
+ var value = /** @type {string} */ (reader.readString());
695
+ msg.setId(value);
696
+ break;
697
+ case 2:
698
+ var value = /** @type {string} */ (reader.readString());
699
+ msg.setIssuer(value);
700
+ break;
701
+ case 3:
702
+ var value = /** @type {string} */ (reader.readString());
703
+ msg.setJwksUri(value);
704
+ break;
705
+ case 4:
706
+ var value = /** @type {string} */ (reader.readString());
707
+ msg.setAudiences(value);
708
+ break;
709
+ case 5:
710
+ var value = /** @type {string} */ (reader.readString());
711
+ msg.setAuthorizationUrl(value);
712
+ break;
713
+ default:
714
+ reader.skipField();
715
+ break;
716
+ }
717
+ }
718
+ return msg;
719
+ };
720
+
721
+
722
+ /**
723
+ * Serializes the message to binary data (in protobuf wire format).
724
+ * @return {!Uint8Array}
725
+ */
726
+ proto.google.api.AuthProvider.prototype.serializeBinary = function() {
727
+ var writer = new jspb.BinaryWriter();
728
+ proto.google.api.AuthProvider.serializeBinaryToWriter(this, writer);
729
+ return writer.getResultBuffer();
730
+ };
731
+
732
+
733
+ /**
734
+ * Serializes the given message to binary data (in protobuf wire
735
+ * format), writing to the given BinaryWriter.
736
+ * @param {!proto.google.api.AuthProvider} message
737
+ * @param {!jspb.BinaryWriter} writer
738
+ * @suppress {unusedLocalVariables} f is only used for nested messages
739
+ */
740
+ proto.google.api.AuthProvider.serializeBinaryToWriter = function(message, writer) {
741
+ var f = undefined;
742
+ f = message.getId();
743
+ if (f.length > 0) {
744
+ writer.writeString(
745
+ 1,
746
+ f
747
+ );
748
+ }
749
+ f = message.getIssuer();
750
+ if (f.length > 0) {
751
+ writer.writeString(
752
+ 2,
753
+ f
754
+ );
755
+ }
756
+ f = message.getJwksUri();
757
+ if (f.length > 0) {
758
+ writer.writeString(
759
+ 3,
760
+ f
761
+ );
762
+ }
763
+ f = message.getAudiences();
764
+ if (f.length > 0) {
765
+ writer.writeString(
766
+ 4,
767
+ f
768
+ );
769
+ }
770
+ f = message.getAuthorizationUrl();
771
+ if (f.length > 0) {
772
+ writer.writeString(
773
+ 5,
774
+ f
775
+ );
776
+ }
777
+ };
778
+
779
+
780
+ /**
781
+ * optional string id = 1;
782
+ * @return {string}
783
+ */
784
+ proto.google.api.AuthProvider.prototype.getId = function() {
785
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
786
+ };
787
+
788
+
789
+ /**
790
+ * @param {string} value
791
+ * @return {!proto.google.api.AuthProvider} returns this
792
+ */
793
+ proto.google.api.AuthProvider.prototype.setId = function(value) {
794
+ return jspb.Message.setProto3StringField(this, 1, value);
795
+ };
796
+
797
+
798
+ /**
799
+ * optional string issuer = 2;
800
+ * @return {string}
801
+ */
802
+ proto.google.api.AuthProvider.prototype.getIssuer = function() {
803
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
804
+ };
805
+
806
+
807
+ /**
808
+ * @param {string} value
809
+ * @return {!proto.google.api.AuthProvider} returns this
810
+ */
811
+ proto.google.api.AuthProvider.prototype.setIssuer = function(value) {
812
+ return jspb.Message.setProto3StringField(this, 2, value);
813
+ };
814
+
815
+
816
+ /**
817
+ * optional string jwks_uri = 3;
818
+ * @return {string}
819
+ */
820
+ proto.google.api.AuthProvider.prototype.getJwksUri = function() {
821
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
822
+ };
823
+
824
+
825
+ /**
826
+ * @param {string} value
827
+ * @return {!proto.google.api.AuthProvider} returns this
828
+ */
829
+ proto.google.api.AuthProvider.prototype.setJwksUri = function(value) {
830
+ return jspb.Message.setProto3StringField(this, 3, value);
831
+ };
832
+
833
+
834
+ /**
835
+ * optional string audiences = 4;
836
+ * @return {string}
837
+ */
838
+ proto.google.api.AuthProvider.prototype.getAudiences = function() {
839
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
840
+ };
841
+
842
+
843
+ /**
844
+ * @param {string} value
845
+ * @return {!proto.google.api.AuthProvider} returns this
846
+ */
847
+ proto.google.api.AuthProvider.prototype.setAudiences = function(value) {
848
+ return jspb.Message.setProto3StringField(this, 4, value);
849
+ };
850
+
851
+
852
+ /**
853
+ * optional string authorization_url = 5;
854
+ * @return {string}
855
+ */
856
+ proto.google.api.AuthProvider.prototype.getAuthorizationUrl = function() {
857
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
858
+ };
859
+
860
+
861
+ /**
862
+ * @param {string} value
863
+ * @return {!proto.google.api.AuthProvider} returns this
864
+ */
865
+ proto.google.api.AuthProvider.prototype.setAuthorizationUrl = function(value) {
866
+ return jspb.Message.setProto3StringField(this, 5, value);
867
+ };
868
+
869
+
870
+
871
+
872
+
873
+ if (jspb.Message.GENERATE_TO_OBJECT) {
874
+ /**
875
+ * Creates an object representation of this proto.
876
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
877
+ * Optional fields that are not set will be set to undefined.
878
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
879
+ * For the list of reserved names please see:
880
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
881
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
882
+ * JSPB instance for transitional soy proto support:
883
+ * http://goto/soy-param-migration
884
+ * @return {!Object}
885
+ */
886
+ proto.google.api.OAuthRequirements.prototype.toObject = function(opt_includeInstance) {
887
+ return proto.google.api.OAuthRequirements.toObject(opt_includeInstance, this);
888
+ };
889
+
890
+
891
+ /**
892
+ * Static version of the {@see toObject} method.
893
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
894
+ * the JSPB instance for transitional soy proto support:
895
+ * http://goto/soy-param-migration
896
+ * @param {!proto.google.api.OAuthRequirements} msg The msg instance to transform.
897
+ * @return {!Object}
898
+ * @suppress {unusedLocalVariables} f is only used for nested messages
899
+ */
900
+ proto.google.api.OAuthRequirements.toObject = function(includeInstance, msg) {
901
+ var f, obj = {
902
+ canonicalScopes: jspb.Message.getFieldWithDefault(msg, 1, "")
903
+ };
904
+
905
+ if (includeInstance) {
906
+ obj.$jspbMessageInstance = msg;
907
+ }
908
+ return obj;
909
+ };
910
+ }
911
+
912
+
913
+ /**
914
+ * Deserializes binary data (in protobuf wire format).
915
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
916
+ * @return {!proto.google.api.OAuthRequirements}
917
+ */
918
+ proto.google.api.OAuthRequirements.deserializeBinary = function(bytes) {
919
+ var reader = new jspb.BinaryReader(bytes);
920
+ var msg = new proto.google.api.OAuthRequirements;
921
+ return proto.google.api.OAuthRequirements.deserializeBinaryFromReader(msg, reader);
922
+ };
923
+
924
+
925
+ /**
926
+ * Deserializes binary data (in protobuf wire format) from the
927
+ * given reader into the given message object.
928
+ * @param {!proto.google.api.OAuthRequirements} msg The message object to deserialize into.
929
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
930
+ * @return {!proto.google.api.OAuthRequirements}
931
+ */
932
+ proto.google.api.OAuthRequirements.deserializeBinaryFromReader = function(msg, reader) {
933
+ while (reader.nextField()) {
934
+ if (reader.isEndGroup()) {
935
+ break;
936
+ }
937
+ var field = reader.getFieldNumber();
938
+ switch (field) {
939
+ case 1:
940
+ var value = /** @type {string} */ (reader.readString());
941
+ msg.setCanonicalScopes(value);
942
+ break;
943
+ default:
944
+ reader.skipField();
945
+ break;
946
+ }
947
+ }
948
+ return msg;
949
+ };
950
+
951
+
952
+ /**
953
+ * Serializes the message to binary data (in protobuf wire format).
954
+ * @return {!Uint8Array}
955
+ */
956
+ proto.google.api.OAuthRequirements.prototype.serializeBinary = function() {
957
+ var writer = new jspb.BinaryWriter();
958
+ proto.google.api.OAuthRequirements.serializeBinaryToWriter(this, writer);
959
+ return writer.getResultBuffer();
960
+ };
961
+
962
+
963
+ /**
964
+ * Serializes the given message to binary data (in protobuf wire
965
+ * format), writing to the given BinaryWriter.
966
+ * @param {!proto.google.api.OAuthRequirements} message
967
+ * @param {!jspb.BinaryWriter} writer
968
+ * @suppress {unusedLocalVariables} f is only used for nested messages
969
+ */
970
+ proto.google.api.OAuthRequirements.serializeBinaryToWriter = function(message, writer) {
971
+ var f = undefined;
972
+ f = message.getCanonicalScopes();
973
+ if (f.length > 0) {
974
+ writer.writeString(
975
+ 1,
976
+ f
977
+ );
978
+ }
979
+ };
980
+
981
+
982
+ /**
983
+ * optional string canonical_scopes = 1;
984
+ * @return {string}
985
+ */
986
+ proto.google.api.OAuthRequirements.prototype.getCanonicalScopes = function() {
987
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
988
+ };
989
+
990
+
991
+ /**
992
+ * @param {string} value
993
+ * @return {!proto.google.api.OAuthRequirements} returns this
994
+ */
995
+ proto.google.api.OAuthRequirements.prototype.setCanonicalScopes = function(value) {
996
+ return jspb.Message.setProto3StringField(this, 1, value);
997
+ };
998
+
999
+
1000
+
1001
+
1002
+
1003
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1004
+ /**
1005
+ * Creates an object representation of this proto.
1006
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1007
+ * Optional fields that are not set will be set to undefined.
1008
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1009
+ * For the list of reserved names please see:
1010
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1011
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1012
+ * JSPB instance for transitional soy proto support:
1013
+ * http://goto/soy-param-migration
1014
+ * @return {!Object}
1015
+ */
1016
+ proto.google.api.AuthRequirement.prototype.toObject = function(opt_includeInstance) {
1017
+ return proto.google.api.AuthRequirement.toObject(opt_includeInstance, this);
1018
+ };
1019
+
1020
+
1021
+ /**
1022
+ * Static version of the {@see toObject} method.
1023
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1024
+ * the JSPB instance for transitional soy proto support:
1025
+ * http://goto/soy-param-migration
1026
+ * @param {!proto.google.api.AuthRequirement} msg The msg instance to transform.
1027
+ * @return {!Object}
1028
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1029
+ */
1030
+ proto.google.api.AuthRequirement.toObject = function(includeInstance, msg) {
1031
+ var f, obj = {
1032
+ providerId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1033
+ audiences: jspb.Message.getFieldWithDefault(msg, 2, "")
1034
+ };
1035
+
1036
+ if (includeInstance) {
1037
+ obj.$jspbMessageInstance = msg;
1038
+ }
1039
+ return obj;
1040
+ };
1041
+ }
1042
+
1043
+
1044
+ /**
1045
+ * Deserializes binary data (in protobuf wire format).
1046
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1047
+ * @return {!proto.google.api.AuthRequirement}
1048
+ */
1049
+ proto.google.api.AuthRequirement.deserializeBinary = function(bytes) {
1050
+ var reader = new jspb.BinaryReader(bytes);
1051
+ var msg = new proto.google.api.AuthRequirement;
1052
+ return proto.google.api.AuthRequirement.deserializeBinaryFromReader(msg, reader);
1053
+ };
1054
+
1055
+
1056
+ /**
1057
+ * Deserializes binary data (in protobuf wire format) from the
1058
+ * given reader into the given message object.
1059
+ * @param {!proto.google.api.AuthRequirement} msg The message object to deserialize into.
1060
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1061
+ * @return {!proto.google.api.AuthRequirement}
1062
+ */
1063
+ proto.google.api.AuthRequirement.deserializeBinaryFromReader = function(msg, reader) {
1064
+ while (reader.nextField()) {
1065
+ if (reader.isEndGroup()) {
1066
+ break;
1067
+ }
1068
+ var field = reader.getFieldNumber();
1069
+ switch (field) {
1070
+ case 1:
1071
+ var value = /** @type {string} */ (reader.readString());
1072
+ msg.setProviderId(value);
1073
+ break;
1074
+ case 2:
1075
+ var value = /** @type {string} */ (reader.readString());
1076
+ msg.setAudiences(value);
1077
+ break;
1078
+ default:
1079
+ reader.skipField();
1080
+ break;
1081
+ }
1082
+ }
1083
+ return msg;
1084
+ };
1085
+
1086
+
1087
+ /**
1088
+ * Serializes the message to binary data (in protobuf wire format).
1089
+ * @return {!Uint8Array}
1090
+ */
1091
+ proto.google.api.AuthRequirement.prototype.serializeBinary = function() {
1092
+ var writer = new jspb.BinaryWriter();
1093
+ proto.google.api.AuthRequirement.serializeBinaryToWriter(this, writer);
1094
+ return writer.getResultBuffer();
1095
+ };
1096
+
1097
+
1098
+ /**
1099
+ * Serializes the given message to binary data (in protobuf wire
1100
+ * format), writing to the given BinaryWriter.
1101
+ * @param {!proto.google.api.AuthRequirement} message
1102
+ * @param {!jspb.BinaryWriter} writer
1103
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1104
+ */
1105
+ proto.google.api.AuthRequirement.serializeBinaryToWriter = function(message, writer) {
1106
+ var f = undefined;
1107
+ f = message.getProviderId();
1108
+ if (f.length > 0) {
1109
+ writer.writeString(
1110
+ 1,
1111
+ f
1112
+ );
1113
+ }
1114
+ f = message.getAudiences();
1115
+ if (f.length > 0) {
1116
+ writer.writeString(
1117
+ 2,
1118
+ f
1119
+ );
1120
+ }
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * optional string provider_id = 1;
1126
+ * @return {string}
1127
+ */
1128
+ proto.google.api.AuthRequirement.prototype.getProviderId = function() {
1129
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1130
+ };
1131
+
1132
+
1133
+ /**
1134
+ * @param {string} value
1135
+ * @return {!proto.google.api.AuthRequirement} returns this
1136
+ */
1137
+ proto.google.api.AuthRequirement.prototype.setProviderId = function(value) {
1138
+ return jspb.Message.setProto3StringField(this, 1, value);
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * optional string audiences = 2;
1144
+ * @return {string}
1145
+ */
1146
+ proto.google.api.AuthRequirement.prototype.getAudiences = function() {
1147
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1148
+ };
1149
+
1150
+
1151
+ /**
1152
+ * @param {string} value
1153
+ * @return {!proto.google.api.AuthRequirement} returns this
1154
+ */
1155
+ proto.google.api.AuthRequirement.prototype.setAudiences = function(value) {
1156
+ return jspb.Message.setProto3StringField(this, 2, value);
1157
+ };
1158
+
1159
+
1160
+ goog.object.extend(exports, proto.google.api);