@aceplus/smartace-api 1.3.0-alpha.124 → 1.3.0-alpha.125

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/package.json +1 -1
  2. package/auth.account_events_pb.d.ts +0 -5
  3. package/auth.account_events_pb.js +0 -23
  4. package/auth.account_events_pb_service.d.ts +0 -3
  5. package/auth.account_events_pb_service.js +0 -3
  6. package/auth.account_pb.d.ts +0 -521
  7. package/auth.account_pb.js +0 -3953
  8. package/auth.account_pb_service.d.ts +0 -454
  9. package/auth.account_pb_service.js +0 -877
  10. package/auth.app_account_pb.d.ts +0 -157
  11. package/auth.app_account_pb.js +0 -1155
  12. package/auth.app_account_pb_service.d.ts +0 -160
  13. package/auth.app_account_pb_service.js +0 -263
  14. package/auth.app_authn_pb.d.ts +0 -165
  15. package/auth.app_authn_pb.js +0 -1180
  16. package/auth.app_authn_pb_service.d.ts +0 -140
  17. package/auth.app_authn_pb_service.js +0 -222
  18. package/auth.app_distribution_pb.d.ts +0 -174
  19. package/auth.app_distribution_pb.js +0 -1338
  20. package/auth.app_distribution_pb_service.d.ts +0 -120
  21. package/auth.app_distribution_pb_service.js +0 -181
  22. package/auth.authn_pb.d.ts +0 -85
  23. package/auth.authn_pb.js +0 -625
  24. package/auth.authn_pb_service.d.ts +0 -82
  25. package/auth.authn_pb_service.js +0 -101
  26. package/auth.cluster_pb.d.ts +0 -258
  27. package/auth.cluster_pb.js +0 -1929
  28. package/auth.cluster_pb_service.d.ts +0 -139
  29. package/auth.cluster_pb_service.js +0 -221
  30. package/auth.distribution_pb.d.ts +0 -233
  31. package/auth.distribution_pb.js +0 -1785
  32. package/auth.distribution_pb_service.d.ts +0 -82
  33. package/auth.distribution_pb_service.js +0 -101
  34. package/auth.email_pb.d.ts +0 -235
  35. package/auth.email_pb.js +0 -1632
  36. package/auth.email_pb_service.d.ts +0 -102
  37. package/auth.email_pb_service.js +0 -142
  38. package/auth.push_notification_pb.d.ts +0 -187
  39. package/auth.push_notification_pb.js +0 -1289
  40. package/auth.push_notification_pb_service.d.ts +0 -121
  41. package/auth.push_notification_pb_service.js +0 -182
  42. package/auth.sms_pb.d.ts +0 -80
  43. package/auth.sms_pb.js +0 -577
  44. package/auth.sms_pb_service.d.ts +0 -83
  45. package/auth.sms_pb_service.js +0 -102
  46. package/google/api/annotations_pb.d.ts +0 -9
  47. package/google/api/annotations_pb.js +0 -54
  48. package/google/api/annotations_pb_service.d.ts +0 -3
  49. package/google/api/annotations_pb_service.js +0 -3
  50. package/google/api/auth_pb.d.ts +0 -150
  51. package/google/api/auth_pb.js +0 -1160
  52. package/google/api/auth_pb_service.d.ts +0 -3
  53. package/google/api/auth_pb_service.js +0 -3
  54. package/google/api/backend_pb.d.ts +0 -59
  55. package/google/api/backend_pb.js +0 -448
  56. package/google/api/backend_pb_service.d.ts +0 -3
  57. package/google/api/backend_pb_service.js +0 -3
  58. package/google/api/billing_pb.d.ts +0 -54
  59. package/google/api/billing_pb.js +0 -416
  60. package/google/api/billing_pb_service.d.ts +0 -3
  61. package/google/api/billing_pb_service.js +0 -3
  62. package/google/api/client_pb.d.ts +0 -12
  63. package/google/api/client_pb.js +0 -104
  64. package/google/api/client_pb_service.d.ts +0 -3
  65. package/google/api/client_pb_service.js +0 -3
  66. package/google/api/config_change_pb.d.ts +0 -72
  67. package/google/api/config_change_pb.js +0 -489
  68. package/google/api/config_change_pb_service.d.ts +0 -3
  69. package/google/api/config_change_pb_service.js +0 -3
  70. package/google/api/consumer_pb.d.ts +0 -65
  71. package/google/api/consumer_pb.js +0 -430
  72. package/google/api/consumer_pb_service.d.ts +0 -3
  73. package/google/api/consumer_pb_service.js +0 -3
  74. package/google/api/context_pb.d.ts +0 -59
  75. package/google/api/context_pb.js +0 -463
  76. package/google/api/context_pb_service.d.ts +0 -3
  77. package/google/api/context_pb_service.js +0 -3
  78. package/google/api/control_pb.d.ts +0 -25
  79. package/google/api/control_pb.js +0 -176
  80. package/google/api/control_pb_service.d.ts +0 -3
  81. package/google/api/control_pb_service.js +0 -3
  82. package/google/api/distribution_pb.d.ts +0 -235
  83. package/google/api/distribution_pb.js +0 -1805
  84. package/google/api/distribution_pb_service.d.ts +0 -3
  85. package/google/api/distribution_pb_service.js +0 -3
  86. package/google/api/documentation_pb.d.ts +0 -103
  87. package/google/api/documentation_pb.js +0 -803
  88. package/google/api/documentation_pb_service.d.ts +0 -3
  89. package/google/api/documentation_pb_service.js +0 -3
  90. package/google/api/endpoint_pb.d.ts +0 -46
  91. package/google/api/endpoint_pb.js +0 -343
  92. package/google/api/endpoint_pb_service.d.ts +0 -3
  93. package/google/api/endpoint_pb_service.js +0 -3
  94. package/google/api/error_reason_pb.d.ts +0 -40
  95. package/google/api/error_reason_pb.js +0 -61
  96. package/google/api/error_reason_pb_service.d.ts +0 -3
  97. package/google/api/error_reason_pb_service.js +0 -3
  98. package/google/api/field_behavior_pb.d.ts +0 -20
  99. package/google/api/field_behavior_pb.js +0 -66
  100. package/google/api/field_behavior_pb_service.d.ts +0 -3
  101. package/google/api/field_behavior_pb_service.js +0 -3
  102. package/google/api/http_pb.d.ts +0 -136
  103. package/google/api/http_pb.js +0 -1012
  104. package/google/api/http_pb_service.d.ts +0 -3
  105. package/google/api/http_pb_service.js +0 -3
  106. package/google/api/httpbody_pb.d.ts +0 -38
  107. package/google/api/httpbody_pb.js +0 -292
  108. package/google/api/httpbody_pb_service.d.ts +0 -3
  109. package/google/api/httpbody_pb_service.js +0 -3
  110. package/google/api/label_pb.d.ts +0 -41
  111. package/google/api/label_pb.js +0 -246
  112. package/google/api/label_pb_service.d.ts +0 -3
  113. package/google/api/label_pb_service.js +0 -3
  114. package/google/api/launch_stage_pb.d.ts +0 -16
  115. package/google/api/launch_stage_pb.js +0 -37
  116. package/google/api/launch_stage_pb_service.d.ts +0 -3
  117. package/google/api/launch_stage_pb_service.js +0 -3
  118. package/google/api/log_pb.d.ts +0 -40
  119. package/google/api/log_pb.js +0 -298
  120. package/google/api/log_pb_service.d.ts +0 -3
  121. package/google/api/log_pb_service.js +0 -3
  122. package/google/api/logging_pb.d.ts +0 -60
  123. package/google/api/logging_pb.js +0 -469
  124. package/google/api/logging_pb_service.d.ts +0 -3
  125. package/google/api/logging_pb_service.js +0 -3
  126. package/google/api/metric_pb.d.ts +0 -100
  127. package/google/api/metric_pb.js +0 -629
  128. package/google/api/metric_pb_service.d.ts +0 -3
  129. package/google/api/metric_pb_service.js +0 -3
  130. package/google/api/monitored_resource_pb.d.ts +0 -93
  131. package/google/api/monitored_resource_pb.js +0 -723
  132. package/google/api/monitored_resource_pb_service.d.ts +0 -3
  133. package/google/api/monitored_resource_pb_service.js +0 -3
  134. package/google/api/monitoring_pb.d.ts +0 -60
  135. package/google/api/monitoring_pb.js +0 -469
  136. package/google/api/monitoring_pb_service.d.ts +0 -3
  137. package/google/api/monitoring_pb_service.js +0 -3
  138. package/google/api/policy_pb.d.ts +0 -64
  139. package/google/api/policy_pb.js +0 -502
  140. package/google/api/policy_pb_service.d.ts +0 -3
  141. package/google/api/policy_pb_service.js +0 -3
  142. package/google/api/quota_pb.d.ts +0 -112
  143. package/google/api/quota_pb.js +0 -873
  144. package/google/api/quota_pb_service.d.ts +0 -3
  145. package/google/api/quota_pb_service.js +0 -3
  146. package/google/api/resource_pb.d.ts +0 -99
  147. package/google/api/resource_pb.js +0 -684
  148. package/google/api/resource_pb_service.d.ts +0 -3
  149. package/google/api/resource_pb_service.js +0 -3
  150. package/google/api/routing_pb.d.ts +0 -54
  151. package/google/api/routing_pb.js +0 -416
  152. package/google/api/routing_pb_service.d.ts +0 -3
  153. package/google/api/routing_pb_service.js +0 -3
  154. package/google/api/service_pb.d.ts +0 -184
  155. package/google/api/service_pb.js +0 -1400
  156. package/google/api/service_pb_service.d.ts +0 -3
  157. package/google/api/service_pb_service.js +0 -3
  158. package/google/api/source_info_pb.d.ts +0 -28
  159. package/google/api/source_info_pb.js +0 -208
  160. package/google/api/source_info_pb_service.d.ts +0 -3
  161. package/google/api/source_info_pb_service.js +0 -3
  162. package/google/api/system_parameter_pb.d.ts +0 -81
  163. package/google/api/system_parameter_pb.js +0 -630
  164. package/google/api/system_parameter_pb_service.d.ts +0 -3
  165. package/google/api/system_parameter_pb_service.js +0 -3
  166. package/google/api/usage_pb.d.ts +0 -66
  167. package/google/api/usage_pb.js +0 -499
  168. package/google/api/usage_pb_service.d.ts +0 -3
  169. package/google/api/usage_pb_service.js +0 -3
  170. package/google/api/visibility_pb.d.ts +0 -64
  171. package/google/api/visibility_pb.js +0 -546
  172. package/google/api/visibility_pb_service.d.ts +0 -3
  173. package/google/api/visibility_pb_service.js +0 -3
  174. package/platform.activity_log_pb.d.ts +0 -177
  175. package/platform.activity_log_pb.js +0 -1294
  176. package/platform.activity_log_pb_service.d.ts +0 -82
  177. package/platform.activity_log_pb_service.js +0 -101
  178. package/platform.client_pb.d.ts +0 -308
  179. package/platform.client_pb.js +0 -2339
  180. package/platform.client_pb_service.d.ts +0 -158
  181. package/platform.client_pb_service.js +0 -261
  182. package/platform.group_pb.d.ts +0 -195
  183. package/platform.group_pb.js +0 -1476
  184. package/platform.group_pb_service.d.ts +0 -139
  185. package/platform.group_pb_service.js +0 -221
  186. package/platform.local_account_pb.d.ts +0 -315
  187. package/platform.local_account_pb.js +0 -2372
  188. package/platform.local_account_pb_service.d.ts +0 -293
  189. package/platform.local_account_pb_service.js +0 -543
  190. package/platform.local_distribution_pb.d.ts +0 -69
  191. package/platform.local_distribution_pb.js +0 -506
  192. package/platform.local_distribution_pb_service.d.ts +0 -63
  193. package/platform.local_distribution_pb_service.js +0 -61
  194. package/platform.location_pb.d.ts +0 -271
  195. package/platform.location_pb.js +0 -2046
  196. package/platform.location_pb_service.d.ts +0 -139
  197. package/platform.location_pb_service.js +0 -221
  198. package/platform.pagination_pb.d.ts +0 -37
  199. package/platform.pagination_pb.js +0 -266
  200. package/platform.pagination_pb_service.d.ts +0 -3
  201. package/platform.pagination_pb_service.js +0 -3
  202. package/spic.cabinet_pb.d.ts +0 -1296
  203. package/spic.cabinet_pb.js +0 -9667
  204. package/spic.cabinet_pb_service.d.ts +0 -359
  205. package/spic.cabinet_pb_service.js +0 -677
  206. package/spic.contractor_pb.d.ts +0 -195
  207. package/spic.contractor_pb.js +0 -1476
  208. package/spic.contractor_pb_service.d.ts +0 -139
  209. package/spic.contractor_pb_service.js +0 -221
@@ -1,1160 +0,0 @@
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);