@aceplus/smartace-api 2.13.0-alpha.2 → 2.13.0-jan-auth-refactor.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/package.json +1 -1
  2. package/auth.account_pb.d.ts +0 -704
  3. package/auth.account_pb.js +0 -5239
  4. package/auth.account_pb_service.d.ts +0 -511
  5. package/auth.account_pb_service.js +0 -997
  6. package/auth.account_two_factor_pb.d.ts +0 -159
  7. package/auth.account_two_factor_pb.js +0 -1184
  8. package/auth.account_two_factor_pb_service.d.ts +0 -121
  9. package/auth.account_two_factor_pb_service.js +0 -182
  10. package/auth.app_account_pb.d.ts +0 -156
  11. package/auth.app_account_pb.js +0 -1153
  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 -172
  15. package/auth.app_authn_pb.js +0 -1233
  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 -94
  23. package/auth.authn_pb.js +0 -636
  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 -277
  35. package/auth.email_pb.js +0 -1960
  36. package/auth.email_pb_service.d.ts +0 -121
  37. package/auth.email_pb_service.js +0 -182
  38. package/auth.firmware_pb.d.ts +0 -256
  39. package/auth.firmware_pb.js +0 -1997
  40. package/auth.firmware_pb_service.d.ts +0 -120
  41. package/auth.firmware_pb_service.js +0 -181
  42. package/auth.push_notification_pb.d.ts +0 -187
  43. package/auth.push_notification_pb.js +0 -1289
  44. package/auth.push_notification_pb_service.d.ts +0 -121
  45. package/auth.push_notification_pb_service.js +0 -182
  46. package/auth.sms_pb.d.ts +0 -79
  47. package/auth.sms_pb.js +0 -575
  48. package/auth.sms_pb_service.d.ts +0 -83
  49. package/auth.sms_pb_service.js +0 -102
  50. package/google/api/annotations_pb.d.ts +0 -9
  51. package/google/api/annotations_pb.js +0 -54
  52. package/google/api/annotations_pb_service.d.ts +0 -3
  53. package/google/api/annotations_pb_service.js +0 -3
  54. package/google/api/auth_pb.d.ts +0 -150
  55. package/google/api/auth_pb.js +0 -1160
  56. package/google/api/auth_pb_service.d.ts +0 -3
  57. package/google/api/auth_pb_service.js +0 -3
  58. package/google/api/backend_pb.d.ts +0 -59
  59. package/google/api/backend_pb.js +0 -448
  60. package/google/api/backend_pb_service.d.ts +0 -3
  61. package/google/api/backend_pb_service.js +0 -3
  62. package/google/api/billing_pb.d.ts +0 -54
  63. package/google/api/billing_pb.js +0 -416
  64. package/google/api/billing_pb_service.d.ts +0 -3
  65. package/google/api/billing_pb_service.js +0 -3
  66. package/google/api/client_pb.d.ts +0 -12
  67. package/google/api/client_pb.js +0 -104
  68. package/google/api/client_pb_service.d.ts +0 -3
  69. package/google/api/client_pb_service.js +0 -3
  70. package/google/api/config_change_pb.d.ts +0 -72
  71. package/google/api/config_change_pb.js +0 -489
  72. package/google/api/config_change_pb_service.d.ts +0 -3
  73. package/google/api/config_change_pb_service.js +0 -3
  74. package/google/api/consumer_pb.d.ts +0 -65
  75. package/google/api/consumer_pb.js +0 -430
  76. package/google/api/consumer_pb_service.d.ts +0 -3
  77. package/google/api/consumer_pb_service.js +0 -3
  78. package/google/api/context_pb.d.ts +0 -59
  79. package/google/api/context_pb.js +0 -463
  80. package/google/api/context_pb_service.d.ts +0 -3
  81. package/google/api/context_pb_service.js +0 -3
  82. package/google/api/control_pb.d.ts +0 -25
  83. package/google/api/control_pb.js +0 -176
  84. package/google/api/control_pb_service.d.ts +0 -3
  85. package/google/api/control_pb_service.js +0 -3
  86. package/google/api/distribution_pb.d.ts +0 -235
  87. package/google/api/distribution_pb.js +0 -1805
  88. package/google/api/distribution_pb_service.d.ts +0 -3
  89. package/google/api/distribution_pb_service.js +0 -3
  90. package/google/api/documentation_pb.d.ts +0 -103
  91. package/google/api/documentation_pb.js +0 -803
  92. package/google/api/documentation_pb_service.d.ts +0 -3
  93. package/google/api/documentation_pb_service.js +0 -3
  94. package/google/api/endpoint_pb.d.ts +0 -46
  95. package/google/api/endpoint_pb.js +0 -343
  96. package/google/api/endpoint_pb_service.d.ts +0 -3
  97. package/google/api/endpoint_pb_service.js +0 -3
  98. package/google/api/error_reason_pb.d.ts +0 -40
  99. package/google/api/error_reason_pb.js +0 -61
  100. package/google/api/error_reason_pb_service.d.ts +0 -3
  101. package/google/api/error_reason_pb_service.js +0 -3
  102. package/google/api/field_behavior_pb.d.ts +0 -20
  103. package/google/api/field_behavior_pb.js +0 -66
  104. package/google/api/field_behavior_pb_service.d.ts +0 -3
  105. package/google/api/field_behavior_pb_service.js +0 -3
  106. package/google/api/http_pb.d.ts +0 -136
  107. package/google/api/http_pb.js +0 -1012
  108. package/google/api/http_pb_service.d.ts +0 -3
  109. package/google/api/http_pb_service.js +0 -3
  110. package/google/api/httpbody_pb.d.ts +0 -38
  111. package/google/api/httpbody_pb.js +0 -292
  112. package/google/api/httpbody_pb_service.d.ts +0 -3
  113. package/google/api/httpbody_pb_service.js +0 -3
  114. package/google/api/label_pb.d.ts +0 -41
  115. package/google/api/label_pb.js +0 -246
  116. package/google/api/label_pb_service.d.ts +0 -3
  117. package/google/api/label_pb_service.js +0 -3
  118. package/google/api/launch_stage_pb.d.ts +0 -16
  119. package/google/api/launch_stage_pb.js +0 -37
  120. package/google/api/launch_stage_pb_service.d.ts +0 -3
  121. package/google/api/launch_stage_pb_service.js +0 -3
  122. package/google/api/log_pb.d.ts +0 -40
  123. package/google/api/log_pb.js +0 -298
  124. package/google/api/log_pb_service.d.ts +0 -3
  125. package/google/api/log_pb_service.js +0 -3
  126. package/google/api/logging_pb.d.ts +0 -60
  127. package/google/api/logging_pb.js +0 -469
  128. package/google/api/logging_pb_service.d.ts +0 -3
  129. package/google/api/logging_pb_service.js +0 -3
  130. package/google/api/metric_pb.d.ts +0 -100
  131. package/google/api/metric_pb.js +0 -629
  132. package/google/api/metric_pb_service.d.ts +0 -3
  133. package/google/api/metric_pb_service.js +0 -3
  134. package/google/api/monitored_resource_pb.d.ts +0 -93
  135. package/google/api/monitored_resource_pb.js +0 -723
  136. package/google/api/monitored_resource_pb_service.d.ts +0 -3
  137. package/google/api/monitored_resource_pb_service.js +0 -3
  138. package/google/api/monitoring_pb.d.ts +0 -60
  139. package/google/api/monitoring_pb.js +0 -469
  140. package/google/api/monitoring_pb_service.d.ts +0 -3
  141. package/google/api/monitoring_pb_service.js +0 -3
  142. package/google/api/policy_pb.d.ts +0 -64
  143. package/google/api/policy_pb.js +0 -502
  144. package/google/api/policy_pb_service.d.ts +0 -3
  145. package/google/api/policy_pb_service.js +0 -3
  146. package/google/api/quota_pb.d.ts +0 -112
  147. package/google/api/quota_pb.js +0 -873
  148. package/google/api/quota_pb_service.d.ts +0 -3
  149. package/google/api/quota_pb_service.js +0 -3
  150. package/google/api/resource_pb.d.ts +0 -99
  151. package/google/api/resource_pb.js +0 -684
  152. package/google/api/resource_pb_service.d.ts +0 -3
  153. package/google/api/resource_pb_service.js +0 -3
  154. package/google/api/routing_pb.d.ts +0 -54
  155. package/google/api/routing_pb.js +0 -416
  156. package/google/api/routing_pb_service.d.ts +0 -3
  157. package/google/api/routing_pb_service.js +0 -3
  158. package/google/api/service_pb.d.ts +0 -184
  159. package/google/api/service_pb.js +0 -1400
  160. package/google/api/service_pb_service.d.ts +0 -3
  161. package/google/api/service_pb_service.js +0 -3
  162. package/google/api/source_info_pb.d.ts +0 -28
  163. package/google/api/source_info_pb.js +0 -208
  164. package/google/api/source_info_pb_service.d.ts +0 -3
  165. package/google/api/source_info_pb_service.js +0 -3
  166. package/google/api/system_parameter_pb.d.ts +0 -81
  167. package/google/api/system_parameter_pb.js +0 -630
  168. package/google/api/system_parameter_pb_service.d.ts +0 -3
  169. package/google/api/system_parameter_pb_service.js +0 -3
  170. package/google/api/usage_pb.d.ts +0 -66
  171. package/google/api/usage_pb.js +0 -499
  172. package/google/api/usage_pb_service.d.ts +0 -3
  173. package/google/api/usage_pb_service.js +0 -3
  174. package/google/api/visibility_pb.d.ts +0 -64
  175. package/google/api/visibility_pb.js +0 -546
  176. package/google/api/visibility_pb_service.d.ts +0 -3
  177. package/google/api/visibility_pb_service.js +0 -3
  178. package/meta.client_pb.d.ts +0 -168
  179. package/meta.client_pb.js +0 -1268
  180. package/meta.client_pb_service.d.ts +0 -122
  181. package/meta.client_pb_service.js +0 -183
  182. package/meta.spic_config_pb.d.ts +0 -251
  183. package/meta.spic_config_pb.js +0 -1820
  184. package/meta.spic_config_pb_service.d.ts +0 -141
  185. package/meta.spic_config_pb_service.js +0 -223
  186. package/platform.activity_log_pb.d.ts +0 -177
  187. package/platform.activity_log_pb.js +0 -1294
  188. package/platform.activity_log_pb_service.d.ts +0 -82
  189. package/platform.activity_log_pb_service.js +0 -101
  190. package/platform.client_pb.d.ts +0 -350
  191. package/platform.client_pb.js +0 -2663
  192. package/platform.client_pb_service.d.ts +0 -158
  193. package/platform.client_pb_service.js +0 -261
  194. package/platform.group_pb.d.ts +0 -195
  195. package/platform.group_pb.js +0 -1476
  196. package/platform.group_pb_service.d.ts +0 -139
  197. package/platform.group_pb_service.js +0 -221
  198. package/platform.local_account_pb.d.ts +0 -434
  199. package/platform.local_account_pb.js +0 -3318
  200. package/platform.local_account_pb_service.d.ts +0 -388
  201. package/platform.local_account_pb_service.js +0 -743
  202. package/platform.local_distribution_pb.d.ts +0 -69
  203. package/platform.local_distribution_pb.js +0 -506
  204. package/platform.local_distribution_pb_service.d.ts +0 -63
  205. package/platform.local_distribution_pb_service.js +0 -61
  206. package/platform.location_pb.d.ts +0 -271
  207. package/platform.location_pb.js +0 -2046
  208. package/platform.location_pb_service.d.ts +0 -139
  209. package/platform.location_pb_service.js +0 -221
  210. package/platform.pagination_pb.d.ts +0 -45
  211. package/platform.pagination_pb.js +0 -276
  212. package/platform.pagination_pb_service.d.ts +0 -3
  213. package/platform.pagination_pb_service.js +0 -3
  214. package/spic.cabinet_pb.d.ts +0 -1320
  215. package/spic.cabinet_pb.js +0 -9833
  216. package/spic.cabinet_pb_service.d.ts +0 -359
  217. package/spic.cabinet_pb_service.js +0 -677
  218. package/spic.config_pb.d.ts +0 -249
  219. package/spic.config_pb.js +0 -1891
  220. package/spic.config_pb_service.d.ts +0 -120
  221. package/spic.config_pb_service.js +0 -181
  222. package/spic.contractor_pb.d.ts +0 -195
  223. package/spic.contractor_pb.js +0 -1476
  224. package/spic.contractor_pb_service.d.ts +0 -139
  225. package/spic.contractor_pb_service.js +0 -221
@@ -1,1805 +0,0 @@
1
- // source: google/api/distribution.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_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
25
- goog.object.extend(proto, google_protobuf_any_pb);
26
- var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
27
- goog.object.extend(proto, google_protobuf_timestamp_pb);
28
- goog.exportSymbol('proto.google.api.Distribution', null, global);
29
- goog.exportSymbol('proto.google.api.Distribution.BucketOptions', null, global);
30
- goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Explicit', null, global);
31
- goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Exponential', null, global);
32
- goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Linear', null, global);
33
- goog.exportSymbol('proto.google.api.Distribution.BucketOptions.OptionsCase', null, global);
34
- goog.exportSymbol('proto.google.api.Distribution.Exemplar', null, global);
35
- goog.exportSymbol('proto.google.api.Distribution.Range', null, global);
36
- /**
37
- * Generated by JsPbCodeGenerator.
38
- * @param {Array=} opt_data Optional initial data array, typically from a
39
- * server response, or constructed directly in Javascript. The array is used
40
- * in place and becomes part of the constructed object. It is not cloned.
41
- * If no data is provided, the constructed object will be empty, but still
42
- * valid.
43
- * @extends {jspb.Message}
44
- * @constructor
45
- */
46
- proto.google.api.Distribution = function(opt_data) {
47
- jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.repeatedFields_, null);
48
- };
49
- goog.inherits(proto.google.api.Distribution, jspb.Message);
50
- if (goog.DEBUG && !COMPILED) {
51
- /**
52
- * @public
53
- * @override
54
- */
55
- proto.google.api.Distribution.displayName = 'proto.google.api.Distribution';
56
- }
57
- /**
58
- * Generated by JsPbCodeGenerator.
59
- * @param {Array=} opt_data Optional initial data array, typically from a
60
- * server response, or constructed directly in Javascript. The array is used
61
- * in place and becomes part of the constructed object. It is not cloned.
62
- * If no data is provided, the constructed object will be empty, but still
63
- * valid.
64
- * @extends {jspb.Message}
65
- * @constructor
66
- */
67
- proto.google.api.Distribution.Range = function(opt_data) {
68
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
69
- };
70
- goog.inherits(proto.google.api.Distribution.Range, jspb.Message);
71
- if (goog.DEBUG && !COMPILED) {
72
- /**
73
- * @public
74
- * @override
75
- */
76
- proto.google.api.Distribution.Range.displayName = 'proto.google.api.Distribution.Range';
77
- }
78
- /**
79
- * Generated by JsPbCodeGenerator.
80
- * @param {Array=} opt_data Optional initial data array, typically from a
81
- * server response, or constructed directly in Javascript. The array is used
82
- * in place and becomes part of the constructed object. It is not cloned.
83
- * If no data is provided, the constructed object will be empty, but still
84
- * valid.
85
- * @extends {jspb.Message}
86
- * @constructor
87
- */
88
- proto.google.api.Distribution.BucketOptions = function(opt_data) {
89
- jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.Distribution.BucketOptions.oneofGroups_);
90
- };
91
- goog.inherits(proto.google.api.Distribution.BucketOptions, jspb.Message);
92
- if (goog.DEBUG && !COMPILED) {
93
- /**
94
- * @public
95
- * @override
96
- */
97
- proto.google.api.Distribution.BucketOptions.displayName = 'proto.google.api.Distribution.BucketOptions';
98
- }
99
- /**
100
- * Generated by JsPbCodeGenerator.
101
- * @param {Array=} opt_data Optional initial data array, typically from a
102
- * server response, or constructed directly in Javascript. The array is used
103
- * in place and becomes part of the constructed object. It is not cloned.
104
- * If no data is provided, the constructed object will be empty, but still
105
- * valid.
106
- * @extends {jspb.Message}
107
- * @constructor
108
- */
109
- proto.google.api.Distribution.BucketOptions.Linear = function(opt_data) {
110
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
111
- };
112
- goog.inherits(proto.google.api.Distribution.BucketOptions.Linear, jspb.Message);
113
- if (goog.DEBUG && !COMPILED) {
114
- /**
115
- * @public
116
- * @override
117
- */
118
- proto.google.api.Distribution.BucketOptions.Linear.displayName = 'proto.google.api.Distribution.BucketOptions.Linear';
119
- }
120
- /**
121
- * Generated by JsPbCodeGenerator.
122
- * @param {Array=} opt_data Optional initial data array, typically from a
123
- * server response, or constructed directly in Javascript. The array is used
124
- * in place and becomes part of the constructed object. It is not cloned.
125
- * If no data is provided, the constructed object will be empty, but still
126
- * valid.
127
- * @extends {jspb.Message}
128
- * @constructor
129
- */
130
- proto.google.api.Distribution.BucketOptions.Exponential = function(opt_data) {
131
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
132
- };
133
- goog.inherits(proto.google.api.Distribution.BucketOptions.Exponential, jspb.Message);
134
- if (goog.DEBUG && !COMPILED) {
135
- /**
136
- * @public
137
- * @override
138
- */
139
- proto.google.api.Distribution.BucketOptions.Exponential.displayName = 'proto.google.api.Distribution.BucketOptions.Exponential';
140
- }
141
- /**
142
- * Generated by JsPbCodeGenerator.
143
- * @param {Array=} opt_data Optional initial data array, typically from a
144
- * server response, or constructed directly in Javascript. The array is used
145
- * in place and becomes part of the constructed object. It is not cloned.
146
- * If no data is provided, the constructed object will be empty, but still
147
- * valid.
148
- * @extends {jspb.Message}
149
- * @constructor
150
- */
151
- proto.google.api.Distribution.BucketOptions.Explicit = function(opt_data) {
152
- jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.BucketOptions.Explicit.repeatedFields_, null);
153
- };
154
- goog.inherits(proto.google.api.Distribution.BucketOptions.Explicit, jspb.Message);
155
- if (goog.DEBUG && !COMPILED) {
156
- /**
157
- * @public
158
- * @override
159
- */
160
- proto.google.api.Distribution.BucketOptions.Explicit.displayName = 'proto.google.api.Distribution.BucketOptions.Explicit';
161
- }
162
- /**
163
- * Generated by JsPbCodeGenerator.
164
- * @param {Array=} opt_data Optional initial data array, typically from a
165
- * server response, or constructed directly in Javascript. The array is used
166
- * in place and becomes part of the constructed object. It is not cloned.
167
- * If no data is provided, the constructed object will be empty, but still
168
- * valid.
169
- * @extends {jspb.Message}
170
- * @constructor
171
- */
172
- proto.google.api.Distribution.Exemplar = function(opt_data) {
173
- jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.Exemplar.repeatedFields_, null);
174
- };
175
- goog.inherits(proto.google.api.Distribution.Exemplar, jspb.Message);
176
- if (goog.DEBUG && !COMPILED) {
177
- /**
178
- * @public
179
- * @override
180
- */
181
- proto.google.api.Distribution.Exemplar.displayName = 'proto.google.api.Distribution.Exemplar';
182
- }
183
-
184
- /**
185
- * List of repeated fields within this message type.
186
- * @private {!Array<number>}
187
- * @const
188
- */
189
- proto.google.api.Distribution.repeatedFields_ = [7,10];
190
-
191
-
192
-
193
- if (jspb.Message.GENERATE_TO_OBJECT) {
194
- /**
195
- * Creates an object representation of this proto.
196
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
197
- * Optional fields that are not set will be set to undefined.
198
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
199
- * For the list of reserved names please see:
200
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
201
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
202
- * JSPB instance for transitional soy proto support:
203
- * http://goto/soy-param-migration
204
- * @return {!Object}
205
- */
206
- proto.google.api.Distribution.prototype.toObject = function(opt_includeInstance) {
207
- return proto.google.api.Distribution.toObject(opt_includeInstance, this);
208
- };
209
-
210
-
211
- /**
212
- * Static version of the {@see toObject} method.
213
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
214
- * the JSPB instance for transitional soy proto support:
215
- * http://goto/soy-param-migration
216
- * @param {!proto.google.api.Distribution} msg The msg instance to transform.
217
- * @return {!Object}
218
- * @suppress {unusedLocalVariables} f is only used for nested messages
219
- */
220
- proto.google.api.Distribution.toObject = function(includeInstance, msg) {
221
- var f, obj = {
222
- count: jspb.Message.getFieldWithDefault(msg, 1, 0),
223
- mean: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
224
- sumOfSquaredDeviation: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
225
- range: (f = msg.getRange()) && proto.google.api.Distribution.Range.toObject(includeInstance, f),
226
- bucketOptions: (f = msg.getBucketOptions()) && proto.google.api.Distribution.BucketOptions.toObject(includeInstance, f),
227
- bucketCountsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
228
- exemplarsList: jspb.Message.toObjectList(msg.getExemplarsList(),
229
- proto.google.api.Distribution.Exemplar.toObject, includeInstance)
230
- };
231
-
232
- if (includeInstance) {
233
- obj.$jspbMessageInstance = msg;
234
- }
235
- return obj;
236
- };
237
- }
238
-
239
-
240
- /**
241
- * Deserializes binary data (in protobuf wire format).
242
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
243
- * @return {!proto.google.api.Distribution}
244
- */
245
- proto.google.api.Distribution.deserializeBinary = function(bytes) {
246
- var reader = new jspb.BinaryReader(bytes);
247
- var msg = new proto.google.api.Distribution;
248
- return proto.google.api.Distribution.deserializeBinaryFromReader(msg, reader);
249
- };
250
-
251
-
252
- /**
253
- * Deserializes binary data (in protobuf wire format) from the
254
- * given reader into the given message object.
255
- * @param {!proto.google.api.Distribution} msg The message object to deserialize into.
256
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
257
- * @return {!proto.google.api.Distribution}
258
- */
259
- proto.google.api.Distribution.deserializeBinaryFromReader = function(msg, reader) {
260
- while (reader.nextField()) {
261
- if (reader.isEndGroup()) {
262
- break;
263
- }
264
- var field = reader.getFieldNumber();
265
- switch (field) {
266
- case 1:
267
- var value = /** @type {number} */ (reader.readInt64());
268
- msg.setCount(value);
269
- break;
270
- case 2:
271
- var value = /** @type {number} */ (reader.readDouble());
272
- msg.setMean(value);
273
- break;
274
- case 3:
275
- var value = /** @type {number} */ (reader.readDouble());
276
- msg.setSumOfSquaredDeviation(value);
277
- break;
278
- case 4:
279
- var value = new proto.google.api.Distribution.Range;
280
- reader.readMessage(value,proto.google.api.Distribution.Range.deserializeBinaryFromReader);
281
- msg.setRange(value);
282
- break;
283
- case 6:
284
- var value = new proto.google.api.Distribution.BucketOptions;
285
- reader.readMessage(value,proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader);
286
- msg.setBucketOptions(value);
287
- break;
288
- case 7:
289
- var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]);
290
- for (var i = 0; i < values.length; i++) {
291
- msg.addBucketCounts(values[i]);
292
- }
293
- break;
294
- case 10:
295
- var value = new proto.google.api.Distribution.Exemplar;
296
- reader.readMessage(value,proto.google.api.Distribution.Exemplar.deserializeBinaryFromReader);
297
- msg.addExemplars(value);
298
- break;
299
- default:
300
- reader.skipField();
301
- break;
302
- }
303
- }
304
- return msg;
305
- };
306
-
307
-
308
- /**
309
- * Serializes the message to binary data (in protobuf wire format).
310
- * @return {!Uint8Array}
311
- */
312
- proto.google.api.Distribution.prototype.serializeBinary = function() {
313
- var writer = new jspb.BinaryWriter();
314
- proto.google.api.Distribution.serializeBinaryToWriter(this, writer);
315
- return writer.getResultBuffer();
316
- };
317
-
318
-
319
- /**
320
- * Serializes the given message to binary data (in protobuf wire
321
- * format), writing to the given BinaryWriter.
322
- * @param {!proto.google.api.Distribution} message
323
- * @param {!jspb.BinaryWriter} writer
324
- * @suppress {unusedLocalVariables} f is only used for nested messages
325
- */
326
- proto.google.api.Distribution.serializeBinaryToWriter = function(message, writer) {
327
- var f = undefined;
328
- f = message.getCount();
329
- if (f !== 0) {
330
- writer.writeInt64(
331
- 1,
332
- f
333
- );
334
- }
335
- f = message.getMean();
336
- if (f !== 0.0) {
337
- writer.writeDouble(
338
- 2,
339
- f
340
- );
341
- }
342
- f = message.getSumOfSquaredDeviation();
343
- if (f !== 0.0) {
344
- writer.writeDouble(
345
- 3,
346
- f
347
- );
348
- }
349
- f = message.getRange();
350
- if (f != null) {
351
- writer.writeMessage(
352
- 4,
353
- f,
354
- proto.google.api.Distribution.Range.serializeBinaryToWriter
355
- );
356
- }
357
- f = message.getBucketOptions();
358
- if (f != null) {
359
- writer.writeMessage(
360
- 6,
361
- f,
362
- proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter
363
- );
364
- }
365
- f = message.getBucketCountsList();
366
- if (f.length > 0) {
367
- writer.writePackedInt64(
368
- 7,
369
- f
370
- );
371
- }
372
- f = message.getExemplarsList();
373
- if (f.length > 0) {
374
- writer.writeRepeatedMessage(
375
- 10,
376
- f,
377
- proto.google.api.Distribution.Exemplar.serializeBinaryToWriter
378
- );
379
- }
380
- };
381
-
382
-
383
-
384
-
385
-
386
- if (jspb.Message.GENERATE_TO_OBJECT) {
387
- /**
388
- * Creates an object representation of this proto.
389
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
390
- * Optional fields that are not set will be set to undefined.
391
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
392
- * For the list of reserved names please see:
393
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
394
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
395
- * JSPB instance for transitional soy proto support:
396
- * http://goto/soy-param-migration
397
- * @return {!Object}
398
- */
399
- proto.google.api.Distribution.Range.prototype.toObject = function(opt_includeInstance) {
400
- return proto.google.api.Distribution.Range.toObject(opt_includeInstance, this);
401
- };
402
-
403
-
404
- /**
405
- * Static version of the {@see toObject} method.
406
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
407
- * the JSPB instance for transitional soy proto support:
408
- * http://goto/soy-param-migration
409
- * @param {!proto.google.api.Distribution.Range} msg The msg instance to transform.
410
- * @return {!Object}
411
- * @suppress {unusedLocalVariables} f is only used for nested messages
412
- */
413
- proto.google.api.Distribution.Range.toObject = function(includeInstance, msg) {
414
- var f, obj = {
415
- min: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
416
- max: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
417
- };
418
-
419
- if (includeInstance) {
420
- obj.$jspbMessageInstance = msg;
421
- }
422
- return obj;
423
- };
424
- }
425
-
426
-
427
- /**
428
- * Deserializes binary data (in protobuf wire format).
429
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
430
- * @return {!proto.google.api.Distribution.Range}
431
- */
432
- proto.google.api.Distribution.Range.deserializeBinary = function(bytes) {
433
- var reader = new jspb.BinaryReader(bytes);
434
- var msg = new proto.google.api.Distribution.Range;
435
- return proto.google.api.Distribution.Range.deserializeBinaryFromReader(msg, reader);
436
- };
437
-
438
-
439
- /**
440
- * Deserializes binary data (in protobuf wire format) from the
441
- * given reader into the given message object.
442
- * @param {!proto.google.api.Distribution.Range} msg The message object to deserialize into.
443
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
444
- * @return {!proto.google.api.Distribution.Range}
445
- */
446
- proto.google.api.Distribution.Range.deserializeBinaryFromReader = function(msg, reader) {
447
- while (reader.nextField()) {
448
- if (reader.isEndGroup()) {
449
- break;
450
- }
451
- var field = reader.getFieldNumber();
452
- switch (field) {
453
- case 1:
454
- var value = /** @type {number} */ (reader.readDouble());
455
- msg.setMin(value);
456
- break;
457
- case 2:
458
- var value = /** @type {number} */ (reader.readDouble());
459
- msg.setMax(value);
460
- break;
461
- default:
462
- reader.skipField();
463
- break;
464
- }
465
- }
466
- return msg;
467
- };
468
-
469
-
470
- /**
471
- * Serializes the message to binary data (in protobuf wire format).
472
- * @return {!Uint8Array}
473
- */
474
- proto.google.api.Distribution.Range.prototype.serializeBinary = function() {
475
- var writer = new jspb.BinaryWriter();
476
- proto.google.api.Distribution.Range.serializeBinaryToWriter(this, writer);
477
- return writer.getResultBuffer();
478
- };
479
-
480
-
481
- /**
482
- * Serializes the given message to binary data (in protobuf wire
483
- * format), writing to the given BinaryWriter.
484
- * @param {!proto.google.api.Distribution.Range} message
485
- * @param {!jspb.BinaryWriter} writer
486
- * @suppress {unusedLocalVariables} f is only used for nested messages
487
- */
488
- proto.google.api.Distribution.Range.serializeBinaryToWriter = function(message, writer) {
489
- var f = undefined;
490
- f = message.getMin();
491
- if (f !== 0.0) {
492
- writer.writeDouble(
493
- 1,
494
- f
495
- );
496
- }
497
- f = message.getMax();
498
- if (f !== 0.0) {
499
- writer.writeDouble(
500
- 2,
501
- f
502
- );
503
- }
504
- };
505
-
506
-
507
- /**
508
- * optional double min = 1;
509
- * @return {number}
510
- */
511
- proto.google.api.Distribution.Range.prototype.getMin = function() {
512
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
513
- };
514
-
515
-
516
- /**
517
- * @param {number} value
518
- * @return {!proto.google.api.Distribution.Range} returns this
519
- */
520
- proto.google.api.Distribution.Range.prototype.setMin = function(value) {
521
- return jspb.Message.setProto3FloatField(this, 1, value);
522
- };
523
-
524
-
525
- /**
526
- * optional double max = 2;
527
- * @return {number}
528
- */
529
- proto.google.api.Distribution.Range.prototype.getMax = function() {
530
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
531
- };
532
-
533
-
534
- /**
535
- * @param {number} value
536
- * @return {!proto.google.api.Distribution.Range} returns this
537
- */
538
- proto.google.api.Distribution.Range.prototype.setMax = function(value) {
539
- return jspb.Message.setProto3FloatField(this, 2, value);
540
- };
541
-
542
-
543
-
544
- /**
545
- * Oneof group definitions for this message. Each group defines the field
546
- * numbers belonging to that group. When of these fields' value is set, all
547
- * other fields in the group are cleared. During deserialization, if multiple
548
- * fields are encountered for a group, only the last value seen will be kept.
549
- * @private {!Array<!Array<number>>}
550
- * @const
551
- */
552
- proto.google.api.Distribution.BucketOptions.oneofGroups_ = [[1,2,3]];
553
-
554
- /**
555
- * @enum {number}
556
- */
557
- proto.google.api.Distribution.BucketOptions.OptionsCase = {
558
- OPTIONS_NOT_SET: 0,
559
- LINEAR_BUCKETS: 1,
560
- EXPONENTIAL_BUCKETS: 2,
561
- EXPLICIT_BUCKETS: 3
562
- };
563
-
564
- /**
565
- * @return {proto.google.api.Distribution.BucketOptions.OptionsCase}
566
- */
567
- proto.google.api.Distribution.BucketOptions.prototype.getOptionsCase = function() {
568
- return /** @type {proto.google.api.Distribution.BucketOptions.OptionsCase} */(jspb.Message.computeOneofCase(this, proto.google.api.Distribution.BucketOptions.oneofGroups_[0]));
569
- };
570
-
571
-
572
-
573
- if (jspb.Message.GENERATE_TO_OBJECT) {
574
- /**
575
- * Creates an object representation of this proto.
576
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
577
- * Optional fields that are not set will be set to undefined.
578
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
579
- * For the list of reserved names please see:
580
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
581
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
582
- * JSPB instance for transitional soy proto support:
583
- * http://goto/soy-param-migration
584
- * @return {!Object}
585
- */
586
- proto.google.api.Distribution.BucketOptions.prototype.toObject = function(opt_includeInstance) {
587
- return proto.google.api.Distribution.BucketOptions.toObject(opt_includeInstance, this);
588
- };
589
-
590
-
591
- /**
592
- * Static version of the {@see toObject} method.
593
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
594
- * the JSPB instance for transitional soy proto support:
595
- * http://goto/soy-param-migration
596
- * @param {!proto.google.api.Distribution.BucketOptions} msg The msg instance to transform.
597
- * @return {!Object}
598
- * @suppress {unusedLocalVariables} f is only used for nested messages
599
- */
600
- proto.google.api.Distribution.BucketOptions.toObject = function(includeInstance, msg) {
601
- var f, obj = {
602
- linearBuckets: (f = msg.getLinearBuckets()) && proto.google.api.Distribution.BucketOptions.Linear.toObject(includeInstance, f),
603
- exponentialBuckets: (f = msg.getExponentialBuckets()) && proto.google.api.Distribution.BucketOptions.Exponential.toObject(includeInstance, f),
604
- explicitBuckets: (f = msg.getExplicitBuckets()) && proto.google.api.Distribution.BucketOptions.Explicit.toObject(includeInstance, f)
605
- };
606
-
607
- if (includeInstance) {
608
- obj.$jspbMessageInstance = msg;
609
- }
610
- return obj;
611
- };
612
- }
613
-
614
-
615
- /**
616
- * Deserializes binary data (in protobuf wire format).
617
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
618
- * @return {!proto.google.api.Distribution.BucketOptions}
619
- */
620
- proto.google.api.Distribution.BucketOptions.deserializeBinary = function(bytes) {
621
- var reader = new jspb.BinaryReader(bytes);
622
- var msg = new proto.google.api.Distribution.BucketOptions;
623
- return proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader(msg, reader);
624
- };
625
-
626
-
627
- /**
628
- * Deserializes binary data (in protobuf wire format) from the
629
- * given reader into the given message object.
630
- * @param {!proto.google.api.Distribution.BucketOptions} msg The message object to deserialize into.
631
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
632
- * @return {!proto.google.api.Distribution.BucketOptions}
633
- */
634
- proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader = function(msg, reader) {
635
- while (reader.nextField()) {
636
- if (reader.isEndGroup()) {
637
- break;
638
- }
639
- var field = reader.getFieldNumber();
640
- switch (field) {
641
- case 1:
642
- var value = new proto.google.api.Distribution.BucketOptions.Linear;
643
- reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader);
644
- msg.setLinearBuckets(value);
645
- break;
646
- case 2:
647
- var value = new proto.google.api.Distribution.BucketOptions.Exponential;
648
- reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader);
649
- msg.setExponentialBuckets(value);
650
- break;
651
- case 3:
652
- var value = new proto.google.api.Distribution.BucketOptions.Explicit;
653
- reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader);
654
- msg.setExplicitBuckets(value);
655
- break;
656
- default:
657
- reader.skipField();
658
- break;
659
- }
660
- }
661
- return msg;
662
- };
663
-
664
-
665
- /**
666
- * Serializes the message to binary data (in protobuf wire format).
667
- * @return {!Uint8Array}
668
- */
669
- proto.google.api.Distribution.BucketOptions.prototype.serializeBinary = function() {
670
- var writer = new jspb.BinaryWriter();
671
- proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter(this, writer);
672
- return writer.getResultBuffer();
673
- };
674
-
675
-
676
- /**
677
- * Serializes the given message to binary data (in protobuf wire
678
- * format), writing to the given BinaryWriter.
679
- * @param {!proto.google.api.Distribution.BucketOptions} message
680
- * @param {!jspb.BinaryWriter} writer
681
- * @suppress {unusedLocalVariables} f is only used for nested messages
682
- */
683
- proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter = function(message, writer) {
684
- var f = undefined;
685
- f = message.getLinearBuckets();
686
- if (f != null) {
687
- writer.writeMessage(
688
- 1,
689
- f,
690
- proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter
691
- );
692
- }
693
- f = message.getExponentialBuckets();
694
- if (f != null) {
695
- writer.writeMessage(
696
- 2,
697
- f,
698
- proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter
699
- );
700
- }
701
- f = message.getExplicitBuckets();
702
- if (f != null) {
703
- writer.writeMessage(
704
- 3,
705
- f,
706
- proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter
707
- );
708
- }
709
- };
710
-
711
-
712
-
713
-
714
-
715
- if (jspb.Message.GENERATE_TO_OBJECT) {
716
- /**
717
- * Creates an object representation of this proto.
718
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
719
- * Optional fields that are not set will be set to undefined.
720
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
721
- * For the list of reserved names please see:
722
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
723
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
724
- * JSPB instance for transitional soy proto support:
725
- * http://goto/soy-param-migration
726
- * @return {!Object}
727
- */
728
- proto.google.api.Distribution.BucketOptions.Linear.prototype.toObject = function(opt_includeInstance) {
729
- return proto.google.api.Distribution.BucketOptions.Linear.toObject(opt_includeInstance, this);
730
- };
731
-
732
-
733
- /**
734
- * Static version of the {@see toObject} method.
735
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
736
- * the JSPB instance for transitional soy proto support:
737
- * http://goto/soy-param-migration
738
- * @param {!proto.google.api.Distribution.BucketOptions.Linear} msg The msg instance to transform.
739
- * @return {!Object}
740
- * @suppress {unusedLocalVariables} f is only used for nested messages
741
- */
742
- proto.google.api.Distribution.BucketOptions.Linear.toObject = function(includeInstance, msg) {
743
- var f, obj = {
744
- numFiniteBuckets: jspb.Message.getFieldWithDefault(msg, 1, 0),
745
- width: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
746
- offset: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
747
- };
748
-
749
- if (includeInstance) {
750
- obj.$jspbMessageInstance = msg;
751
- }
752
- return obj;
753
- };
754
- }
755
-
756
-
757
- /**
758
- * Deserializes binary data (in protobuf wire format).
759
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
760
- * @return {!proto.google.api.Distribution.BucketOptions.Linear}
761
- */
762
- proto.google.api.Distribution.BucketOptions.Linear.deserializeBinary = function(bytes) {
763
- var reader = new jspb.BinaryReader(bytes);
764
- var msg = new proto.google.api.Distribution.BucketOptions.Linear;
765
- return proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader(msg, reader);
766
- };
767
-
768
-
769
- /**
770
- * Deserializes binary data (in protobuf wire format) from the
771
- * given reader into the given message object.
772
- * @param {!proto.google.api.Distribution.BucketOptions.Linear} msg The message object to deserialize into.
773
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
774
- * @return {!proto.google.api.Distribution.BucketOptions.Linear}
775
- */
776
- proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader = function(msg, reader) {
777
- while (reader.nextField()) {
778
- if (reader.isEndGroup()) {
779
- break;
780
- }
781
- var field = reader.getFieldNumber();
782
- switch (field) {
783
- case 1:
784
- var value = /** @type {number} */ (reader.readInt32());
785
- msg.setNumFiniteBuckets(value);
786
- break;
787
- case 2:
788
- var value = /** @type {number} */ (reader.readDouble());
789
- msg.setWidth(value);
790
- break;
791
- case 3:
792
- var value = /** @type {number} */ (reader.readDouble());
793
- msg.setOffset(value);
794
- break;
795
- default:
796
- reader.skipField();
797
- break;
798
- }
799
- }
800
- return msg;
801
- };
802
-
803
-
804
- /**
805
- * Serializes the message to binary data (in protobuf wire format).
806
- * @return {!Uint8Array}
807
- */
808
- proto.google.api.Distribution.BucketOptions.Linear.prototype.serializeBinary = function() {
809
- var writer = new jspb.BinaryWriter();
810
- proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter(this, writer);
811
- return writer.getResultBuffer();
812
- };
813
-
814
-
815
- /**
816
- * Serializes the given message to binary data (in protobuf wire
817
- * format), writing to the given BinaryWriter.
818
- * @param {!proto.google.api.Distribution.BucketOptions.Linear} message
819
- * @param {!jspb.BinaryWriter} writer
820
- * @suppress {unusedLocalVariables} f is only used for nested messages
821
- */
822
- proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter = function(message, writer) {
823
- var f = undefined;
824
- f = message.getNumFiniteBuckets();
825
- if (f !== 0) {
826
- writer.writeInt32(
827
- 1,
828
- f
829
- );
830
- }
831
- f = message.getWidth();
832
- if (f !== 0.0) {
833
- writer.writeDouble(
834
- 2,
835
- f
836
- );
837
- }
838
- f = message.getOffset();
839
- if (f !== 0.0) {
840
- writer.writeDouble(
841
- 3,
842
- f
843
- );
844
- }
845
- };
846
-
847
-
848
- /**
849
- * optional int32 num_finite_buckets = 1;
850
- * @return {number}
851
- */
852
- proto.google.api.Distribution.BucketOptions.Linear.prototype.getNumFiniteBuckets = function() {
853
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
854
- };
855
-
856
-
857
- /**
858
- * @param {number} value
859
- * @return {!proto.google.api.Distribution.BucketOptions.Linear} returns this
860
- */
861
- proto.google.api.Distribution.BucketOptions.Linear.prototype.setNumFiniteBuckets = function(value) {
862
- return jspb.Message.setProto3IntField(this, 1, value);
863
- };
864
-
865
-
866
- /**
867
- * optional double width = 2;
868
- * @return {number}
869
- */
870
- proto.google.api.Distribution.BucketOptions.Linear.prototype.getWidth = function() {
871
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
872
- };
873
-
874
-
875
- /**
876
- * @param {number} value
877
- * @return {!proto.google.api.Distribution.BucketOptions.Linear} returns this
878
- */
879
- proto.google.api.Distribution.BucketOptions.Linear.prototype.setWidth = function(value) {
880
- return jspb.Message.setProto3FloatField(this, 2, value);
881
- };
882
-
883
-
884
- /**
885
- * optional double offset = 3;
886
- * @return {number}
887
- */
888
- proto.google.api.Distribution.BucketOptions.Linear.prototype.getOffset = function() {
889
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
890
- };
891
-
892
-
893
- /**
894
- * @param {number} value
895
- * @return {!proto.google.api.Distribution.BucketOptions.Linear} returns this
896
- */
897
- proto.google.api.Distribution.BucketOptions.Linear.prototype.setOffset = function(value) {
898
- return jspb.Message.setProto3FloatField(this, 3, value);
899
- };
900
-
901
-
902
-
903
-
904
-
905
- if (jspb.Message.GENERATE_TO_OBJECT) {
906
- /**
907
- * Creates an object representation of this proto.
908
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
909
- * Optional fields that are not set will be set to undefined.
910
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
911
- * For the list of reserved names please see:
912
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
913
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
914
- * JSPB instance for transitional soy proto support:
915
- * http://goto/soy-param-migration
916
- * @return {!Object}
917
- */
918
- proto.google.api.Distribution.BucketOptions.Exponential.prototype.toObject = function(opt_includeInstance) {
919
- return proto.google.api.Distribution.BucketOptions.Exponential.toObject(opt_includeInstance, this);
920
- };
921
-
922
-
923
- /**
924
- * Static version of the {@see toObject} method.
925
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
926
- * the JSPB instance for transitional soy proto support:
927
- * http://goto/soy-param-migration
928
- * @param {!proto.google.api.Distribution.BucketOptions.Exponential} msg The msg instance to transform.
929
- * @return {!Object}
930
- * @suppress {unusedLocalVariables} f is only used for nested messages
931
- */
932
- proto.google.api.Distribution.BucketOptions.Exponential.toObject = function(includeInstance, msg) {
933
- var f, obj = {
934
- numFiniteBuckets: jspb.Message.getFieldWithDefault(msg, 1, 0),
935
- growthFactor: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
936
- scale: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
937
- };
938
-
939
- if (includeInstance) {
940
- obj.$jspbMessageInstance = msg;
941
- }
942
- return obj;
943
- };
944
- }
945
-
946
-
947
- /**
948
- * Deserializes binary data (in protobuf wire format).
949
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
950
- * @return {!proto.google.api.Distribution.BucketOptions.Exponential}
951
- */
952
- proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinary = function(bytes) {
953
- var reader = new jspb.BinaryReader(bytes);
954
- var msg = new proto.google.api.Distribution.BucketOptions.Exponential;
955
- return proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader(msg, reader);
956
- };
957
-
958
-
959
- /**
960
- * Deserializes binary data (in protobuf wire format) from the
961
- * given reader into the given message object.
962
- * @param {!proto.google.api.Distribution.BucketOptions.Exponential} msg The message object to deserialize into.
963
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
964
- * @return {!proto.google.api.Distribution.BucketOptions.Exponential}
965
- */
966
- proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader = function(msg, reader) {
967
- while (reader.nextField()) {
968
- if (reader.isEndGroup()) {
969
- break;
970
- }
971
- var field = reader.getFieldNumber();
972
- switch (field) {
973
- case 1:
974
- var value = /** @type {number} */ (reader.readInt32());
975
- msg.setNumFiniteBuckets(value);
976
- break;
977
- case 2:
978
- var value = /** @type {number} */ (reader.readDouble());
979
- msg.setGrowthFactor(value);
980
- break;
981
- case 3:
982
- var value = /** @type {number} */ (reader.readDouble());
983
- msg.setScale(value);
984
- break;
985
- default:
986
- reader.skipField();
987
- break;
988
- }
989
- }
990
- return msg;
991
- };
992
-
993
-
994
- /**
995
- * Serializes the message to binary data (in protobuf wire format).
996
- * @return {!Uint8Array}
997
- */
998
- proto.google.api.Distribution.BucketOptions.Exponential.prototype.serializeBinary = function() {
999
- var writer = new jspb.BinaryWriter();
1000
- proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter(this, writer);
1001
- return writer.getResultBuffer();
1002
- };
1003
-
1004
-
1005
- /**
1006
- * Serializes the given message to binary data (in protobuf wire
1007
- * format), writing to the given BinaryWriter.
1008
- * @param {!proto.google.api.Distribution.BucketOptions.Exponential} message
1009
- * @param {!jspb.BinaryWriter} writer
1010
- * @suppress {unusedLocalVariables} f is only used for nested messages
1011
- */
1012
- proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter = function(message, writer) {
1013
- var f = undefined;
1014
- f = message.getNumFiniteBuckets();
1015
- if (f !== 0) {
1016
- writer.writeInt32(
1017
- 1,
1018
- f
1019
- );
1020
- }
1021
- f = message.getGrowthFactor();
1022
- if (f !== 0.0) {
1023
- writer.writeDouble(
1024
- 2,
1025
- f
1026
- );
1027
- }
1028
- f = message.getScale();
1029
- if (f !== 0.0) {
1030
- writer.writeDouble(
1031
- 3,
1032
- f
1033
- );
1034
- }
1035
- };
1036
-
1037
-
1038
- /**
1039
- * optional int32 num_finite_buckets = 1;
1040
- * @return {number}
1041
- */
1042
- proto.google.api.Distribution.BucketOptions.Exponential.prototype.getNumFiniteBuckets = function() {
1043
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1044
- };
1045
-
1046
-
1047
- /**
1048
- * @param {number} value
1049
- * @return {!proto.google.api.Distribution.BucketOptions.Exponential} returns this
1050
- */
1051
- proto.google.api.Distribution.BucketOptions.Exponential.prototype.setNumFiniteBuckets = function(value) {
1052
- return jspb.Message.setProto3IntField(this, 1, value);
1053
- };
1054
-
1055
-
1056
- /**
1057
- * optional double growth_factor = 2;
1058
- * @return {number}
1059
- */
1060
- proto.google.api.Distribution.BucketOptions.Exponential.prototype.getGrowthFactor = function() {
1061
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
1062
- };
1063
-
1064
-
1065
- /**
1066
- * @param {number} value
1067
- * @return {!proto.google.api.Distribution.BucketOptions.Exponential} returns this
1068
- */
1069
- proto.google.api.Distribution.BucketOptions.Exponential.prototype.setGrowthFactor = function(value) {
1070
- return jspb.Message.setProto3FloatField(this, 2, value);
1071
- };
1072
-
1073
-
1074
- /**
1075
- * optional double scale = 3;
1076
- * @return {number}
1077
- */
1078
- proto.google.api.Distribution.BucketOptions.Exponential.prototype.getScale = function() {
1079
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
1080
- };
1081
-
1082
-
1083
- /**
1084
- * @param {number} value
1085
- * @return {!proto.google.api.Distribution.BucketOptions.Exponential} returns this
1086
- */
1087
- proto.google.api.Distribution.BucketOptions.Exponential.prototype.setScale = function(value) {
1088
- return jspb.Message.setProto3FloatField(this, 3, value);
1089
- };
1090
-
1091
-
1092
-
1093
- /**
1094
- * List of repeated fields within this message type.
1095
- * @private {!Array<number>}
1096
- * @const
1097
- */
1098
- proto.google.api.Distribution.BucketOptions.Explicit.repeatedFields_ = [1];
1099
-
1100
-
1101
-
1102
- if (jspb.Message.GENERATE_TO_OBJECT) {
1103
- /**
1104
- * Creates an object representation of this proto.
1105
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1106
- * Optional fields that are not set will be set to undefined.
1107
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1108
- * For the list of reserved names please see:
1109
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1110
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1111
- * JSPB instance for transitional soy proto support:
1112
- * http://goto/soy-param-migration
1113
- * @return {!Object}
1114
- */
1115
- proto.google.api.Distribution.BucketOptions.Explicit.prototype.toObject = function(opt_includeInstance) {
1116
- return proto.google.api.Distribution.BucketOptions.Explicit.toObject(opt_includeInstance, this);
1117
- };
1118
-
1119
-
1120
- /**
1121
- * Static version of the {@see toObject} method.
1122
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1123
- * the JSPB instance for transitional soy proto support:
1124
- * http://goto/soy-param-migration
1125
- * @param {!proto.google.api.Distribution.BucketOptions.Explicit} msg The msg instance to transform.
1126
- * @return {!Object}
1127
- * @suppress {unusedLocalVariables} f is only used for nested messages
1128
- */
1129
- proto.google.api.Distribution.BucketOptions.Explicit.toObject = function(includeInstance, msg) {
1130
- var f, obj = {
1131
- boundsList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f
1132
- };
1133
-
1134
- if (includeInstance) {
1135
- obj.$jspbMessageInstance = msg;
1136
- }
1137
- return obj;
1138
- };
1139
- }
1140
-
1141
-
1142
- /**
1143
- * Deserializes binary data (in protobuf wire format).
1144
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1145
- * @return {!proto.google.api.Distribution.BucketOptions.Explicit}
1146
- */
1147
- proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinary = function(bytes) {
1148
- var reader = new jspb.BinaryReader(bytes);
1149
- var msg = new proto.google.api.Distribution.BucketOptions.Explicit;
1150
- return proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader(msg, reader);
1151
- };
1152
-
1153
-
1154
- /**
1155
- * Deserializes binary data (in protobuf wire format) from the
1156
- * given reader into the given message object.
1157
- * @param {!proto.google.api.Distribution.BucketOptions.Explicit} msg The message object to deserialize into.
1158
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1159
- * @return {!proto.google.api.Distribution.BucketOptions.Explicit}
1160
- */
1161
- proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader = function(msg, reader) {
1162
- while (reader.nextField()) {
1163
- if (reader.isEndGroup()) {
1164
- break;
1165
- }
1166
- var field = reader.getFieldNumber();
1167
- switch (field) {
1168
- case 1:
1169
- var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
1170
- for (var i = 0; i < values.length; i++) {
1171
- msg.addBounds(values[i]);
1172
- }
1173
- break;
1174
- default:
1175
- reader.skipField();
1176
- break;
1177
- }
1178
- }
1179
- return msg;
1180
- };
1181
-
1182
-
1183
- /**
1184
- * Serializes the message to binary data (in protobuf wire format).
1185
- * @return {!Uint8Array}
1186
- */
1187
- proto.google.api.Distribution.BucketOptions.Explicit.prototype.serializeBinary = function() {
1188
- var writer = new jspb.BinaryWriter();
1189
- proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter(this, writer);
1190
- return writer.getResultBuffer();
1191
- };
1192
-
1193
-
1194
- /**
1195
- * Serializes the given message to binary data (in protobuf wire
1196
- * format), writing to the given BinaryWriter.
1197
- * @param {!proto.google.api.Distribution.BucketOptions.Explicit} message
1198
- * @param {!jspb.BinaryWriter} writer
1199
- * @suppress {unusedLocalVariables} f is only used for nested messages
1200
- */
1201
- proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter = function(message, writer) {
1202
- var f = undefined;
1203
- f = message.getBoundsList();
1204
- if (f.length > 0) {
1205
- writer.writePackedDouble(
1206
- 1,
1207
- f
1208
- );
1209
- }
1210
- };
1211
-
1212
-
1213
- /**
1214
- * repeated double bounds = 1;
1215
- * @return {!Array<number>}
1216
- */
1217
- proto.google.api.Distribution.BucketOptions.Explicit.prototype.getBoundsList = function() {
1218
- return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 1));
1219
- };
1220
-
1221
-
1222
- /**
1223
- * @param {!Array<number>} value
1224
- * @return {!proto.google.api.Distribution.BucketOptions.Explicit} returns this
1225
- */
1226
- proto.google.api.Distribution.BucketOptions.Explicit.prototype.setBoundsList = function(value) {
1227
- return jspb.Message.setField(this, 1, value || []);
1228
- };
1229
-
1230
-
1231
- /**
1232
- * @param {number} value
1233
- * @param {number=} opt_index
1234
- * @return {!proto.google.api.Distribution.BucketOptions.Explicit} returns this
1235
- */
1236
- proto.google.api.Distribution.BucketOptions.Explicit.prototype.addBounds = function(value, opt_index) {
1237
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1238
- };
1239
-
1240
-
1241
- /**
1242
- * Clears the list making it empty but non-null.
1243
- * @return {!proto.google.api.Distribution.BucketOptions.Explicit} returns this
1244
- */
1245
- proto.google.api.Distribution.BucketOptions.Explicit.prototype.clearBoundsList = function() {
1246
- return this.setBoundsList([]);
1247
- };
1248
-
1249
-
1250
- /**
1251
- * optional Linear linear_buckets = 1;
1252
- * @return {?proto.google.api.Distribution.BucketOptions.Linear}
1253
- */
1254
- proto.google.api.Distribution.BucketOptions.prototype.getLinearBuckets = function() {
1255
- return /** @type{?proto.google.api.Distribution.BucketOptions.Linear} */ (
1256
- jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Linear, 1));
1257
- };
1258
-
1259
-
1260
- /**
1261
- * @param {?proto.google.api.Distribution.BucketOptions.Linear|undefined} value
1262
- * @return {!proto.google.api.Distribution.BucketOptions} returns this
1263
- */
1264
- proto.google.api.Distribution.BucketOptions.prototype.setLinearBuckets = function(value) {
1265
- return jspb.Message.setOneofWrapperField(this, 1, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value);
1266
- };
1267
-
1268
-
1269
- /**
1270
- * Clears the message field making it undefined.
1271
- * @return {!proto.google.api.Distribution.BucketOptions} returns this
1272
- */
1273
- proto.google.api.Distribution.BucketOptions.prototype.clearLinearBuckets = function() {
1274
- return this.setLinearBuckets(undefined);
1275
- };
1276
-
1277
-
1278
- /**
1279
- * Returns whether this field is set.
1280
- * @return {boolean}
1281
- */
1282
- proto.google.api.Distribution.BucketOptions.prototype.hasLinearBuckets = function() {
1283
- return jspb.Message.getField(this, 1) != null;
1284
- };
1285
-
1286
-
1287
- /**
1288
- * optional Exponential exponential_buckets = 2;
1289
- * @return {?proto.google.api.Distribution.BucketOptions.Exponential}
1290
- */
1291
- proto.google.api.Distribution.BucketOptions.prototype.getExponentialBuckets = function() {
1292
- return /** @type{?proto.google.api.Distribution.BucketOptions.Exponential} */ (
1293
- jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Exponential, 2));
1294
- };
1295
-
1296
-
1297
- /**
1298
- * @param {?proto.google.api.Distribution.BucketOptions.Exponential|undefined} value
1299
- * @return {!proto.google.api.Distribution.BucketOptions} returns this
1300
- */
1301
- proto.google.api.Distribution.BucketOptions.prototype.setExponentialBuckets = function(value) {
1302
- return jspb.Message.setOneofWrapperField(this, 2, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value);
1303
- };
1304
-
1305
-
1306
- /**
1307
- * Clears the message field making it undefined.
1308
- * @return {!proto.google.api.Distribution.BucketOptions} returns this
1309
- */
1310
- proto.google.api.Distribution.BucketOptions.prototype.clearExponentialBuckets = function() {
1311
- return this.setExponentialBuckets(undefined);
1312
- };
1313
-
1314
-
1315
- /**
1316
- * Returns whether this field is set.
1317
- * @return {boolean}
1318
- */
1319
- proto.google.api.Distribution.BucketOptions.prototype.hasExponentialBuckets = function() {
1320
- return jspb.Message.getField(this, 2) != null;
1321
- };
1322
-
1323
-
1324
- /**
1325
- * optional Explicit explicit_buckets = 3;
1326
- * @return {?proto.google.api.Distribution.BucketOptions.Explicit}
1327
- */
1328
- proto.google.api.Distribution.BucketOptions.prototype.getExplicitBuckets = function() {
1329
- return /** @type{?proto.google.api.Distribution.BucketOptions.Explicit} */ (
1330
- jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Explicit, 3));
1331
- };
1332
-
1333
-
1334
- /**
1335
- * @param {?proto.google.api.Distribution.BucketOptions.Explicit|undefined} value
1336
- * @return {!proto.google.api.Distribution.BucketOptions} returns this
1337
- */
1338
- proto.google.api.Distribution.BucketOptions.prototype.setExplicitBuckets = function(value) {
1339
- return jspb.Message.setOneofWrapperField(this, 3, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value);
1340
- };
1341
-
1342
-
1343
- /**
1344
- * Clears the message field making it undefined.
1345
- * @return {!proto.google.api.Distribution.BucketOptions} returns this
1346
- */
1347
- proto.google.api.Distribution.BucketOptions.prototype.clearExplicitBuckets = function() {
1348
- return this.setExplicitBuckets(undefined);
1349
- };
1350
-
1351
-
1352
- /**
1353
- * Returns whether this field is set.
1354
- * @return {boolean}
1355
- */
1356
- proto.google.api.Distribution.BucketOptions.prototype.hasExplicitBuckets = function() {
1357
- return jspb.Message.getField(this, 3) != null;
1358
- };
1359
-
1360
-
1361
-
1362
- /**
1363
- * List of repeated fields within this message type.
1364
- * @private {!Array<number>}
1365
- * @const
1366
- */
1367
- proto.google.api.Distribution.Exemplar.repeatedFields_ = [3];
1368
-
1369
-
1370
-
1371
- if (jspb.Message.GENERATE_TO_OBJECT) {
1372
- /**
1373
- * Creates an object representation of this proto.
1374
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1375
- * Optional fields that are not set will be set to undefined.
1376
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1377
- * For the list of reserved names please see:
1378
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1379
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1380
- * JSPB instance for transitional soy proto support:
1381
- * http://goto/soy-param-migration
1382
- * @return {!Object}
1383
- */
1384
- proto.google.api.Distribution.Exemplar.prototype.toObject = function(opt_includeInstance) {
1385
- return proto.google.api.Distribution.Exemplar.toObject(opt_includeInstance, this);
1386
- };
1387
-
1388
-
1389
- /**
1390
- * Static version of the {@see toObject} method.
1391
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1392
- * the JSPB instance for transitional soy proto support:
1393
- * http://goto/soy-param-migration
1394
- * @param {!proto.google.api.Distribution.Exemplar} msg The msg instance to transform.
1395
- * @return {!Object}
1396
- * @suppress {unusedLocalVariables} f is only used for nested messages
1397
- */
1398
- proto.google.api.Distribution.Exemplar.toObject = function(includeInstance, msg) {
1399
- var f, obj = {
1400
- value: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
1401
- timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1402
- attachmentsList: jspb.Message.toObjectList(msg.getAttachmentsList(),
1403
- google_protobuf_any_pb.Any.toObject, includeInstance)
1404
- };
1405
-
1406
- if (includeInstance) {
1407
- obj.$jspbMessageInstance = msg;
1408
- }
1409
- return obj;
1410
- };
1411
- }
1412
-
1413
-
1414
- /**
1415
- * Deserializes binary data (in protobuf wire format).
1416
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1417
- * @return {!proto.google.api.Distribution.Exemplar}
1418
- */
1419
- proto.google.api.Distribution.Exemplar.deserializeBinary = function(bytes) {
1420
- var reader = new jspb.BinaryReader(bytes);
1421
- var msg = new proto.google.api.Distribution.Exemplar;
1422
- return proto.google.api.Distribution.Exemplar.deserializeBinaryFromReader(msg, reader);
1423
- };
1424
-
1425
-
1426
- /**
1427
- * Deserializes binary data (in protobuf wire format) from the
1428
- * given reader into the given message object.
1429
- * @param {!proto.google.api.Distribution.Exemplar} msg The message object to deserialize into.
1430
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1431
- * @return {!proto.google.api.Distribution.Exemplar}
1432
- */
1433
- proto.google.api.Distribution.Exemplar.deserializeBinaryFromReader = function(msg, reader) {
1434
- while (reader.nextField()) {
1435
- if (reader.isEndGroup()) {
1436
- break;
1437
- }
1438
- var field = reader.getFieldNumber();
1439
- switch (field) {
1440
- case 1:
1441
- var value = /** @type {number} */ (reader.readDouble());
1442
- msg.setValue(value);
1443
- break;
1444
- case 2:
1445
- var value = new google_protobuf_timestamp_pb.Timestamp;
1446
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1447
- msg.setTimestamp(value);
1448
- break;
1449
- case 3:
1450
- var value = new google_protobuf_any_pb.Any;
1451
- reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
1452
- msg.addAttachments(value);
1453
- break;
1454
- default:
1455
- reader.skipField();
1456
- break;
1457
- }
1458
- }
1459
- return msg;
1460
- };
1461
-
1462
-
1463
- /**
1464
- * Serializes the message to binary data (in protobuf wire format).
1465
- * @return {!Uint8Array}
1466
- */
1467
- proto.google.api.Distribution.Exemplar.prototype.serializeBinary = function() {
1468
- var writer = new jspb.BinaryWriter();
1469
- proto.google.api.Distribution.Exemplar.serializeBinaryToWriter(this, writer);
1470
- return writer.getResultBuffer();
1471
- };
1472
-
1473
-
1474
- /**
1475
- * Serializes the given message to binary data (in protobuf wire
1476
- * format), writing to the given BinaryWriter.
1477
- * @param {!proto.google.api.Distribution.Exemplar} message
1478
- * @param {!jspb.BinaryWriter} writer
1479
- * @suppress {unusedLocalVariables} f is only used for nested messages
1480
- */
1481
- proto.google.api.Distribution.Exemplar.serializeBinaryToWriter = function(message, writer) {
1482
- var f = undefined;
1483
- f = message.getValue();
1484
- if (f !== 0.0) {
1485
- writer.writeDouble(
1486
- 1,
1487
- f
1488
- );
1489
- }
1490
- f = message.getTimestamp();
1491
- if (f != null) {
1492
- writer.writeMessage(
1493
- 2,
1494
- f,
1495
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1496
- );
1497
- }
1498
- f = message.getAttachmentsList();
1499
- if (f.length > 0) {
1500
- writer.writeRepeatedMessage(
1501
- 3,
1502
- f,
1503
- google_protobuf_any_pb.Any.serializeBinaryToWriter
1504
- );
1505
- }
1506
- };
1507
-
1508
-
1509
- /**
1510
- * optional double value = 1;
1511
- * @return {number}
1512
- */
1513
- proto.google.api.Distribution.Exemplar.prototype.getValue = function() {
1514
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
1515
- };
1516
-
1517
-
1518
- /**
1519
- * @param {number} value
1520
- * @return {!proto.google.api.Distribution.Exemplar} returns this
1521
- */
1522
- proto.google.api.Distribution.Exemplar.prototype.setValue = function(value) {
1523
- return jspb.Message.setProto3FloatField(this, 1, value);
1524
- };
1525
-
1526
-
1527
- /**
1528
- * optional google.protobuf.Timestamp timestamp = 2;
1529
- * @return {?proto.google.protobuf.Timestamp}
1530
- */
1531
- proto.google.api.Distribution.Exemplar.prototype.getTimestamp = function() {
1532
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1533
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
1534
- };
1535
-
1536
-
1537
- /**
1538
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1539
- * @return {!proto.google.api.Distribution.Exemplar} returns this
1540
- */
1541
- proto.google.api.Distribution.Exemplar.prototype.setTimestamp = function(value) {
1542
- return jspb.Message.setWrapperField(this, 2, value);
1543
- };
1544
-
1545
-
1546
- /**
1547
- * Clears the message field making it undefined.
1548
- * @return {!proto.google.api.Distribution.Exemplar} returns this
1549
- */
1550
- proto.google.api.Distribution.Exemplar.prototype.clearTimestamp = function() {
1551
- return this.setTimestamp(undefined);
1552
- };
1553
-
1554
-
1555
- /**
1556
- * Returns whether this field is set.
1557
- * @return {boolean}
1558
- */
1559
- proto.google.api.Distribution.Exemplar.prototype.hasTimestamp = function() {
1560
- return jspb.Message.getField(this, 2) != null;
1561
- };
1562
-
1563
-
1564
- /**
1565
- * repeated google.protobuf.Any attachments = 3;
1566
- * @return {!Array<!proto.google.protobuf.Any>}
1567
- */
1568
- proto.google.api.Distribution.Exemplar.prototype.getAttachmentsList = function() {
1569
- return /** @type{!Array<!proto.google.protobuf.Any>} */ (
1570
- jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 3));
1571
- };
1572
-
1573
-
1574
- /**
1575
- * @param {!Array<!proto.google.protobuf.Any>} value
1576
- * @return {!proto.google.api.Distribution.Exemplar} returns this
1577
- */
1578
- proto.google.api.Distribution.Exemplar.prototype.setAttachmentsList = function(value) {
1579
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
1580
- };
1581
-
1582
-
1583
- /**
1584
- * @param {!proto.google.protobuf.Any=} opt_value
1585
- * @param {number=} opt_index
1586
- * @return {!proto.google.protobuf.Any}
1587
- */
1588
- proto.google.api.Distribution.Exemplar.prototype.addAttachments = function(opt_value, opt_index) {
1589
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Any, opt_index);
1590
- };
1591
-
1592
-
1593
- /**
1594
- * Clears the list making it empty but non-null.
1595
- * @return {!proto.google.api.Distribution.Exemplar} returns this
1596
- */
1597
- proto.google.api.Distribution.Exemplar.prototype.clearAttachmentsList = function() {
1598
- return this.setAttachmentsList([]);
1599
- };
1600
-
1601
-
1602
- /**
1603
- * optional int64 count = 1;
1604
- * @return {number}
1605
- */
1606
- proto.google.api.Distribution.prototype.getCount = function() {
1607
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1608
- };
1609
-
1610
-
1611
- /**
1612
- * @param {number} value
1613
- * @return {!proto.google.api.Distribution} returns this
1614
- */
1615
- proto.google.api.Distribution.prototype.setCount = function(value) {
1616
- return jspb.Message.setProto3IntField(this, 1, value);
1617
- };
1618
-
1619
-
1620
- /**
1621
- * optional double mean = 2;
1622
- * @return {number}
1623
- */
1624
- proto.google.api.Distribution.prototype.getMean = function() {
1625
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
1626
- };
1627
-
1628
-
1629
- /**
1630
- * @param {number} value
1631
- * @return {!proto.google.api.Distribution} returns this
1632
- */
1633
- proto.google.api.Distribution.prototype.setMean = function(value) {
1634
- return jspb.Message.setProto3FloatField(this, 2, value);
1635
- };
1636
-
1637
-
1638
- /**
1639
- * optional double sum_of_squared_deviation = 3;
1640
- * @return {number}
1641
- */
1642
- proto.google.api.Distribution.prototype.getSumOfSquaredDeviation = function() {
1643
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
1644
- };
1645
-
1646
-
1647
- /**
1648
- * @param {number} value
1649
- * @return {!proto.google.api.Distribution} returns this
1650
- */
1651
- proto.google.api.Distribution.prototype.setSumOfSquaredDeviation = function(value) {
1652
- return jspb.Message.setProto3FloatField(this, 3, value);
1653
- };
1654
-
1655
-
1656
- /**
1657
- * optional Range range = 4;
1658
- * @return {?proto.google.api.Distribution.Range}
1659
- */
1660
- proto.google.api.Distribution.prototype.getRange = function() {
1661
- return /** @type{?proto.google.api.Distribution.Range} */ (
1662
- jspb.Message.getWrapperField(this, proto.google.api.Distribution.Range, 4));
1663
- };
1664
-
1665
-
1666
- /**
1667
- * @param {?proto.google.api.Distribution.Range|undefined} value
1668
- * @return {!proto.google.api.Distribution} returns this
1669
- */
1670
- proto.google.api.Distribution.prototype.setRange = function(value) {
1671
- return jspb.Message.setWrapperField(this, 4, value);
1672
- };
1673
-
1674
-
1675
- /**
1676
- * Clears the message field making it undefined.
1677
- * @return {!proto.google.api.Distribution} returns this
1678
- */
1679
- proto.google.api.Distribution.prototype.clearRange = function() {
1680
- return this.setRange(undefined);
1681
- };
1682
-
1683
-
1684
- /**
1685
- * Returns whether this field is set.
1686
- * @return {boolean}
1687
- */
1688
- proto.google.api.Distribution.prototype.hasRange = function() {
1689
- return jspb.Message.getField(this, 4) != null;
1690
- };
1691
-
1692
-
1693
- /**
1694
- * optional BucketOptions bucket_options = 6;
1695
- * @return {?proto.google.api.Distribution.BucketOptions}
1696
- */
1697
- proto.google.api.Distribution.prototype.getBucketOptions = function() {
1698
- return /** @type{?proto.google.api.Distribution.BucketOptions} */ (
1699
- jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions, 6));
1700
- };
1701
-
1702
-
1703
- /**
1704
- * @param {?proto.google.api.Distribution.BucketOptions|undefined} value
1705
- * @return {!proto.google.api.Distribution} returns this
1706
- */
1707
- proto.google.api.Distribution.prototype.setBucketOptions = function(value) {
1708
- return jspb.Message.setWrapperField(this, 6, value);
1709
- };
1710
-
1711
-
1712
- /**
1713
- * Clears the message field making it undefined.
1714
- * @return {!proto.google.api.Distribution} returns this
1715
- */
1716
- proto.google.api.Distribution.prototype.clearBucketOptions = function() {
1717
- return this.setBucketOptions(undefined);
1718
- };
1719
-
1720
-
1721
- /**
1722
- * Returns whether this field is set.
1723
- * @return {boolean}
1724
- */
1725
- proto.google.api.Distribution.prototype.hasBucketOptions = function() {
1726
- return jspb.Message.getField(this, 6) != null;
1727
- };
1728
-
1729
-
1730
- /**
1731
- * repeated int64 bucket_counts = 7;
1732
- * @return {!Array<number>}
1733
- */
1734
- proto.google.api.Distribution.prototype.getBucketCountsList = function() {
1735
- return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 7));
1736
- };
1737
-
1738
-
1739
- /**
1740
- * @param {!Array<number>} value
1741
- * @return {!proto.google.api.Distribution} returns this
1742
- */
1743
- proto.google.api.Distribution.prototype.setBucketCountsList = function(value) {
1744
- return jspb.Message.setField(this, 7, value || []);
1745
- };
1746
-
1747
-
1748
- /**
1749
- * @param {number} value
1750
- * @param {number=} opt_index
1751
- * @return {!proto.google.api.Distribution} returns this
1752
- */
1753
- proto.google.api.Distribution.prototype.addBucketCounts = function(value, opt_index) {
1754
- return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
1755
- };
1756
-
1757
-
1758
- /**
1759
- * Clears the list making it empty but non-null.
1760
- * @return {!proto.google.api.Distribution} returns this
1761
- */
1762
- proto.google.api.Distribution.prototype.clearBucketCountsList = function() {
1763
- return this.setBucketCountsList([]);
1764
- };
1765
-
1766
-
1767
- /**
1768
- * repeated Exemplar exemplars = 10;
1769
- * @return {!Array<!proto.google.api.Distribution.Exemplar>}
1770
- */
1771
- proto.google.api.Distribution.prototype.getExemplarsList = function() {
1772
- return /** @type{!Array<!proto.google.api.Distribution.Exemplar>} */ (
1773
- jspb.Message.getRepeatedWrapperField(this, proto.google.api.Distribution.Exemplar, 10));
1774
- };
1775
-
1776
-
1777
- /**
1778
- * @param {!Array<!proto.google.api.Distribution.Exemplar>} value
1779
- * @return {!proto.google.api.Distribution} returns this
1780
- */
1781
- proto.google.api.Distribution.prototype.setExemplarsList = function(value) {
1782
- return jspb.Message.setRepeatedWrapperField(this, 10, value);
1783
- };
1784
-
1785
-
1786
- /**
1787
- * @param {!proto.google.api.Distribution.Exemplar=} opt_value
1788
- * @param {number=} opt_index
1789
- * @return {!proto.google.api.Distribution.Exemplar}
1790
- */
1791
- proto.google.api.Distribution.prototype.addExemplars = function(opt_value, opt_index) {
1792
- return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.google.api.Distribution.Exemplar, opt_index);
1793
- };
1794
-
1795
-
1796
- /**
1797
- * Clears the list making it empty but non-null.
1798
- * @return {!proto.google.api.Distribution} returns this
1799
- */
1800
- proto.google.api.Distribution.prototype.clearExemplarsList = function() {
1801
- return this.setExemplarsList([]);
1802
- };
1803
-
1804
-
1805
- goog.object.extend(exports, proto.google.api);