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