@google-cloud/vectorsearch 0.4.0 → 0.5.0
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.
- package/README.md +1 -0
- package/build/protos/google/cloud/vectorsearch/v1/vectorsearch_service.proto +66 -0
- package/build/protos/protos.d.ts +436 -0
- package/build/protos/protos.js +964 -0
- package/build/protos/protos.json +96 -0
- package/build/src/v1/gapic_metadata.json +10 -0
- package/build/src/v1/vector_search_service_client.d.ts +41 -0
- package/build/src/v1/vector_search_service_client.js +53 -2
- package/build/src/v1/vector_search_service_client.js.map +1 -1
- package/build/src/v1/vector_search_service_client_config.json +4 -0
- package/package.json +1 -1
package/build/protos/protos.js
CHANGED
|
@@ -10096,6 +10096,39 @@
|
|
|
10096
10096
|
* @variation 2
|
|
10097
10097
|
*/
|
|
10098
10098
|
|
|
10099
|
+
/**
|
|
10100
|
+
* Callback as used by {@link google.cloud.vectorsearch.v1.VectorSearchService|exportDataObjects}.
|
|
10101
|
+
* @memberof google.cloud.vectorsearch.v1.VectorSearchService
|
|
10102
|
+
* @typedef ExportDataObjectsCallback
|
|
10103
|
+
* @type {function}
|
|
10104
|
+
* @param {Error|null} error Error, if any
|
|
10105
|
+
* @param {google.longrunning.Operation} [response] Operation
|
|
10106
|
+
*/
|
|
10107
|
+
|
|
10108
|
+
/**
|
|
10109
|
+
* Calls ExportDataObjects.
|
|
10110
|
+
* @function exportDataObjects
|
|
10111
|
+
* @memberof google.cloud.vectorsearch.v1.VectorSearchService
|
|
10112
|
+
* @instance
|
|
10113
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsRequest} request ExportDataObjectsRequest message or plain object
|
|
10114
|
+
* @param {google.cloud.vectorsearch.v1.VectorSearchService.ExportDataObjectsCallback} callback Node-style callback called with the error, if any, and Operation
|
|
10115
|
+
* @returns {undefined}
|
|
10116
|
+
* @variation 1
|
|
10117
|
+
*/
|
|
10118
|
+
Object.defineProperty(VectorSearchService.prototype.exportDataObjects = function exportDataObjects(request, callback) {
|
|
10119
|
+
return this.rpcCall(exportDataObjects, $root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest, $root.google.longrunning.Operation, request, callback);
|
|
10120
|
+
}, "name", { value: "ExportDataObjects" });
|
|
10121
|
+
|
|
10122
|
+
/**
|
|
10123
|
+
* Calls ExportDataObjects.
|
|
10124
|
+
* @function exportDataObjects
|
|
10125
|
+
* @memberof google.cloud.vectorsearch.v1.VectorSearchService
|
|
10126
|
+
* @instance
|
|
10127
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsRequest} request ExportDataObjectsRequest message or plain object
|
|
10128
|
+
* @returns {Promise<google.longrunning.Operation>} Promise
|
|
10129
|
+
* @variation 2
|
|
10130
|
+
*/
|
|
10131
|
+
|
|
10099
10132
|
return VectorSearchService;
|
|
10100
10133
|
})();
|
|
10101
10134
|
|
|
@@ -16051,6 +16084,937 @@
|
|
|
16051
16084
|
return ImportDataObjectsResponse;
|
|
16052
16085
|
})();
|
|
16053
16086
|
|
|
16087
|
+
v1.ExportDataObjectsRequest = (function() {
|
|
16088
|
+
|
|
16089
|
+
/**
|
|
16090
|
+
* Properties of an ExportDataObjectsRequest.
|
|
16091
|
+
* @memberof google.cloud.vectorsearch.v1
|
|
16092
|
+
* @interface IExportDataObjectsRequest
|
|
16093
|
+
* @property {google.cloud.vectorsearch.v1.ExportDataObjectsRequest.IGcsExportDestination|null} [gcsDestination] ExportDataObjectsRequest gcsDestination
|
|
16094
|
+
* @property {string|null} [name] ExportDataObjectsRequest name
|
|
16095
|
+
*/
|
|
16096
|
+
|
|
16097
|
+
/**
|
|
16098
|
+
* Constructs a new ExportDataObjectsRequest.
|
|
16099
|
+
* @memberof google.cloud.vectorsearch.v1
|
|
16100
|
+
* @classdesc Represents an ExportDataObjectsRequest.
|
|
16101
|
+
* @implements IExportDataObjectsRequest
|
|
16102
|
+
* @constructor
|
|
16103
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsRequest=} [properties] Properties to set
|
|
16104
|
+
*/
|
|
16105
|
+
function ExportDataObjectsRequest(properties) {
|
|
16106
|
+
if (properties)
|
|
16107
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16108
|
+
if (properties[keys[i]] != null)
|
|
16109
|
+
this[keys[i]] = properties[keys[i]];
|
|
16110
|
+
}
|
|
16111
|
+
|
|
16112
|
+
/**
|
|
16113
|
+
* ExportDataObjectsRequest gcsDestination.
|
|
16114
|
+
* @member {google.cloud.vectorsearch.v1.ExportDataObjectsRequest.IGcsExportDestination|null|undefined} gcsDestination
|
|
16115
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16116
|
+
* @instance
|
|
16117
|
+
*/
|
|
16118
|
+
ExportDataObjectsRequest.prototype.gcsDestination = null;
|
|
16119
|
+
|
|
16120
|
+
/**
|
|
16121
|
+
* ExportDataObjectsRequest name.
|
|
16122
|
+
* @member {string} name
|
|
16123
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16124
|
+
* @instance
|
|
16125
|
+
*/
|
|
16126
|
+
ExportDataObjectsRequest.prototype.name = "";
|
|
16127
|
+
|
|
16128
|
+
// OneOf field names bound to virtual getters and setters
|
|
16129
|
+
var $oneOfFields;
|
|
16130
|
+
|
|
16131
|
+
/**
|
|
16132
|
+
* ExportDataObjectsRequest destination.
|
|
16133
|
+
* @member {"gcsDestination"|undefined} destination
|
|
16134
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16135
|
+
* @instance
|
|
16136
|
+
*/
|
|
16137
|
+
Object.defineProperty(ExportDataObjectsRequest.prototype, "destination", {
|
|
16138
|
+
get: $util.oneOfGetter($oneOfFields = ["gcsDestination"]),
|
|
16139
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
16140
|
+
});
|
|
16141
|
+
|
|
16142
|
+
/**
|
|
16143
|
+
* Creates a new ExportDataObjectsRequest instance using the specified properties.
|
|
16144
|
+
* @function create
|
|
16145
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16146
|
+
* @static
|
|
16147
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsRequest=} [properties] Properties to set
|
|
16148
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsRequest} ExportDataObjectsRequest instance
|
|
16149
|
+
*/
|
|
16150
|
+
ExportDataObjectsRequest.create = function create(properties) {
|
|
16151
|
+
return new ExportDataObjectsRequest(properties);
|
|
16152
|
+
};
|
|
16153
|
+
|
|
16154
|
+
/**
|
|
16155
|
+
* Encodes the specified ExportDataObjectsRequest message. Does not implicitly {@link google.cloud.vectorsearch.v1.ExportDataObjectsRequest.verify|verify} messages.
|
|
16156
|
+
* @function encode
|
|
16157
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16158
|
+
* @static
|
|
16159
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsRequest} message ExportDataObjectsRequest message or plain object to encode
|
|
16160
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16161
|
+
* @returns {$protobuf.Writer} Writer
|
|
16162
|
+
*/
|
|
16163
|
+
ExportDataObjectsRequest.encode = function encode(message, writer) {
|
|
16164
|
+
if (!writer)
|
|
16165
|
+
writer = $Writer.create();
|
|
16166
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
16167
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
16168
|
+
if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination"))
|
|
16169
|
+
$root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.encode(message.gcsDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
16170
|
+
return writer;
|
|
16171
|
+
};
|
|
16172
|
+
|
|
16173
|
+
/**
|
|
16174
|
+
* Encodes the specified ExportDataObjectsRequest message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1.ExportDataObjectsRequest.verify|verify} messages.
|
|
16175
|
+
* @function encodeDelimited
|
|
16176
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16177
|
+
* @static
|
|
16178
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsRequest} message ExportDataObjectsRequest message or plain object to encode
|
|
16179
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16180
|
+
* @returns {$protobuf.Writer} Writer
|
|
16181
|
+
*/
|
|
16182
|
+
ExportDataObjectsRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16183
|
+
return this.encode(message, writer).ldelim();
|
|
16184
|
+
};
|
|
16185
|
+
|
|
16186
|
+
/**
|
|
16187
|
+
* Decodes an ExportDataObjectsRequest message from the specified reader or buffer.
|
|
16188
|
+
* @function decode
|
|
16189
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16190
|
+
* @static
|
|
16191
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16192
|
+
* @param {number} [length] Message length if known beforehand
|
|
16193
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsRequest} ExportDataObjectsRequest
|
|
16194
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16195
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16196
|
+
*/
|
|
16197
|
+
ExportDataObjectsRequest.decode = function decode(reader, length, error) {
|
|
16198
|
+
if (!(reader instanceof $Reader))
|
|
16199
|
+
reader = $Reader.create(reader);
|
|
16200
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest();
|
|
16201
|
+
while (reader.pos < end) {
|
|
16202
|
+
var tag = reader.uint32();
|
|
16203
|
+
if (tag === error)
|
|
16204
|
+
break;
|
|
16205
|
+
switch (tag >>> 3) {
|
|
16206
|
+
case 2: {
|
|
16207
|
+
message.gcsDestination = $root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.decode(reader, reader.uint32());
|
|
16208
|
+
break;
|
|
16209
|
+
}
|
|
16210
|
+
case 1: {
|
|
16211
|
+
message.name = reader.string();
|
|
16212
|
+
break;
|
|
16213
|
+
}
|
|
16214
|
+
default:
|
|
16215
|
+
reader.skipType(tag & 7);
|
|
16216
|
+
break;
|
|
16217
|
+
}
|
|
16218
|
+
}
|
|
16219
|
+
return message;
|
|
16220
|
+
};
|
|
16221
|
+
|
|
16222
|
+
/**
|
|
16223
|
+
* Decodes an ExportDataObjectsRequest message from the specified reader or buffer, length delimited.
|
|
16224
|
+
* @function decodeDelimited
|
|
16225
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16226
|
+
* @static
|
|
16227
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16228
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsRequest} ExportDataObjectsRequest
|
|
16229
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16230
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16231
|
+
*/
|
|
16232
|
+
ExportDataObjectsRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
16233
|
+
if (!(reader instanceof $Reader))
|
|
16234
|
+
reader = new $Reader(reader);
|
|
16235
|
+
return this.decode(reader, reader.uint32());
|
|
16236
|
+
};
|
|
16237
|
+
|
|
16238
|
+
/**
|
|
16239
|
+
* Verifies an ExportDataObjectsRequest message.
|
|
16240
|
+
* @function verify
|
|
16241
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16242
|
+
* @static
|
|
16243
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
16244
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16245
|
+
*/
|
|
16246
|
+
ExportDataObjectsRequest.verify = function verify(message) {
|
|
16247
|
+
if (typeof message !== "object" || message === null)
|
|
16248
|
+
return "object expected";
|
|
16249
|
+
var properties = {};
|
|
16250
|
+
if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) {
|
|
16251
|
+
properties.destination = 1;
|
|
16252
|
+
{
|
|
16253
|
+
var error = $root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.verify(message.gcsDestination);
|
|
16254
|
+
if (error)
|
|
16255
|
+
return "gcsDestination." + error;
|
|
16256
|
+
}
|
|
16257
|
+
}
|
|
16258
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
16259
|
+
if (!$util.isString(message.name))
|
|
16260
|
+
return "name: string expected";
|
|
16261
|
+
return null;
|
|
16262
|
+
};
|
|
16263
|
+
|
|
16264
|
+
/**
|
|
16265
|
+
* Creates an ExportDataObjectsRequest message from a plain object. Also converts values to their respective internal types.
|
|
16266
|
+
* @function fromObject
|
|
16267
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16268
|
+
* @static
|
|
16269
|
+
* @param {Object.<string,*>} object Plain object
|
|
16270
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsRequest} ExportDataObjectsRequest
|
|
16271
|
+
*/
|
|
16272
|
+
ExportDataObjectsRequest.fromObject = function fromObject(object) {
|
|
16273
|
+
if (object instanceof $root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest)
|
|
16274
|
+
return object;
|
|
16275
|
+
var message = new $root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest();
|
|
16276
|
+
if (object.gcsDestination != null) {
|
|
16277
|
+
if (typeof object.gcsDestination !== "object")
|
|
16278
|
+
throw TypeError(".google.cloud.vectorsearch.v1.ExportDataObjectsRequest.gcsDestination: object expected");
|
|
16279
|
+
message.gcsDestination = $root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.fromObject(object.gcsDestination);
|
|
16280
|
+
}
|
|
16281
|
+
if (object.name != null)
|
|
16282
|
+
message.name = String(object.name);
|
|
16283
|
+
return message;
|
|
16284
|
+
};
|
|
16285
|
+
|
|
16286
|
+
/**
|
|
16287
|
+
* Creates a plain object from an ExportDataObjectsRequest message. Also converts values to other types if specified.
|
|
16288
|
+
* @function toObject
|
|
16289
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16290
|
+
* @static
|
|
16291
|
+
* @param {google.cloud.vectorsearch.v1.ExportDataObjectsRequest} message ExportDataObjectsRequest
|
|
16292
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16293
|
+
* @returns {Object.<string,*>} Plain object
|
|
16294
|
+
*/
|
|
16295
|
+
ExportDataObjectsRequest.toObject = function toObject(message, options) {
|
|
16296
|
+
if (!options)
|
|
16297
|
+
options = {};
|
|
16298
|
+
var object = {};
|
|
16299
|
+
if (options.defaults)
|
|
16300
|
+
object.name = "";
|
|
16301
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
16302
|
+
object.name = message.name;
|
|
16303
|
+
if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) {
|
|
16304
|
+
object.gcsDestination = $root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.toObject(message.gcsDestination, options);
|
|
16305
|
+
if (options.oneofs)
|
|
16306
|
+
object.destination = "gcsDestination";
|
|
16307
|
+
}
|
|
16308
|
+
return object;
|
|
16309
|
+
};
|
|
16310
|
+
|
|
16311
|
+
/**
|
|
16312
|
+
* Converts this ExportDataObjectsRequest to JSON.
|
|
16313
|
+
* @function toJSON
|
|
16314
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16315
|
+
* @instance
|
|
16316
|
+
* @returns {Object.<string,*>} JSON object
|
|
16317
|
+
*/
|
|
16318
|
+
ExportDataObjectsRequest.prototype.toJSON = function toJSON() {
|
|
16319
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16320
|
+
};
|
|
16321
|
+
|
|
16322
|
+
/**
|
|
16323
|
+
* Gets the default type url for ExportDataObjectsRequest
|
|
16324
|
+
* @function getTypeUrl
|
|
16325
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16326
|
+
* @static
|
|
16327
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
16328
|
+
* @returns {string} The default type url
|
|
16329
|
+
*/
|
|
16330
|
+
ExportDataObjectsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
16331
|
+
if (typeUrlPrefix === undefined) {
|
|
16332
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
16333
|
+
}
|
|
16334
|
+
return typeUrlPrefix + "/google.cloud.vectorsearch.v1.ExportDataObjectsRequest";
|
|
16335
|
+
};
|
|
16336
|
+
|
|
16337
|
+
ExportDataObjectsRequest.GcsExportDestination = (function() {
|
|
16338
|
+
|
|
16339
|
+
/**
|
|
16340
|
+
* Properties of a GcsExportDestination.
|
|
16341
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16342
|
+
* @interface IGcsExportDestination
|
|
16343
|
+
* @property {string|null} [exportUri] GcsExportDestination exportUri
|
|
16344
|
+
* @property {google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.Format|null} [format] GcsExportDestination format
|
|
16345
|
+
*/
|
|
16346
|
+
|
|
16347
|
+
/**
|
|
16348
|
+
* Constructs a new GcsExportDestination.
|
|
16349
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest
|
|
16350
|
+
* @classdesc Represents a GcsExportDestination.
|
|
16351
|
+
* @implements IGcsExportDestination
|
|
16352
|
+
* @constructor
|
|
16353
|
+
* @param {google.cloud.vectorsearch.v1.ExportDataObjectsRequest.IGcsExportDestination=} [properties] Properties to set
|
|
16354
|
+
*/
|
|
16355
|
+
function GcsExportDestination(properties) {
|
|
16356
|
+
if (properties)
|
|
16357
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16358
|
+
if (properties[keys[i]] != null)
|
|
16359
|
+
this[keys[i]] = properties[keys[i]];
|
|
16360
|
+
}
|
|
16361
|
+
|
|
16362
|
+
/**
|
|
16363
|
+
* GcsExportDestination exportUri.
|
|
16364
|
+
* @member {string} exportUri
|
|
16365
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination
|
|
16366
|
+
* @instance
|
|
16367
|
+
*/
|
|
16368
|
+
GcsExportDestination.prototype.exportUri = "";
|
|
16369
|
+
|
|
16370
|
+
/**
|
|
16371
|
+
* GcsExportDestination format.
|
|
16372
|
+
* @member {google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.Format} format
|
|
16373
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination
|
|
16374
|
+
* @instance
|
|
16375
|
+
*/
|
|
16376
|
+
GcsExportDestination.prototype.format = 0;
|
|
16377
|
+
|
|
16378
|
+
/**
|
|
16379
|
+
* Creates a new GcsExportDestination instance using the specified properties.
|
|
16380
|
+
* @function create
|
|
16381
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination
|
|
16382
|
+
* @static
|
|
16383
|
+
* @param {google.cloud.vectorsearch.v1.ExportDataObjectsRequest.IGcsExportDestination=} [properties] Properties to set
|
|
16384
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination instance
|
|
16385
|
+
*/
|
|
16386
|
+
GcsExportDestination.create = function create(properties) {
|
|
16387
|
+
return new GcsExportDestination(properties);
|
|
16388
|
+
};
|
|
16389
|
+
|
|
16390
|
+
/**
|
|
16391
|
+
* Encodes the specified GcsExportDestination message. Does not implicitly {@link google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.verify|verify} messages.
|
|
16392
|
+
* @function encode
|
|
16393
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination
|
|
16394
|
+
* @static
|
|
16395
|
+
* @param {google.cloud.vectorsearch.v1.ExportDataObjectsRequest.IGcsExportDestination} message GcsExportDestination message or plain object to encode
|
|
16396
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16397
|
+
* @returns {$protobuf.Writer} Writer
|
|
16398
|
+
*/
|
|
16399
|
+
GcsExportDestination.encode = function encode(message, writer) {
|
|
16400
|
+
if (!writer)
|
|
16401
|
+
writer = $Writer.create();
|
|
16402
|
+
if (message.exportUri != null && Object.hasOwnProperty.call(message, "exportUri"))
|
|
16403
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportUri);
|
|
16404
|
+
if (message.format != null && Object.hasOwnProperty.call(message, "format"))
|
|
16405
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.format);
|
|
16406
|
+
return writer;
|
|
16407
|
+
};
|
|
16408
|
+
|
|
16409
|
+
/**
|
|
16410
|
+
* Encodes the specified GcsExportDestination message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.verify|verify} messages.
|
|
16411
|
+
* @function encodeDelimited
|
|
16412
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination
|
|
16413
|
+
* @static
|
|
16414
|
+
* @param {google.cloud.vectorsearch.v1.ExportDataObjectsRequest.IGcsExportDestination} message GcsExportDestination message or plain object to encode
|
|
16415
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16416
|
+
* @returns {$protobuf.Writer} Writer
|
|
16417
|
+
*/
|
|
16418
|
+
GcsExportDestination.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16419
|
+
return this.encode(message, writer).ldelim();
|
|
16420
|
+
};
|
|
16421
|
+
|
|
16422
|
+
/**
|
|
16423
|
+
* Decodes a GcsExportDestination message from the specified reader or buffer.
|
|
16424
|
+
* @function decode
|
|
16425
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination
|
|
16426
|
+
* @static
|
|
16427
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16428
|
+
* @param {number} [length] Message length if known beforehand
|
|
16429
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination
|
|
16430
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16431
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16432
|
+
*/
|
|
16433
|
+
GcsExportDestination.decode = function decode(reader, length, error) {
|
|
16434
|
+
if (!(reader instanceof $Reader))
|
|
16435
|
+
reader = $Reader.create(reader);
|
|
16436
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination();
|
|
16437
|
+
while (reader.pos < end) {
|
|
16438
|
+
var tag = reader.uint32();
|
|
16439
|
+
if (tag === error)
|
|
16440
|
+
break;
|
|
16441
|
+
switch (tag >>> 3) {
|
|
16442
|
+
case 1: {
|
|
16443
|
+
message.exportUri = reader.string();
|
|
16444
|
+
break;
|
|
16445
|
+
}
|
|
16446
|
+
case 2: {
|
|
16447
|
+
message.format = reader.int32();
|
|
16448
|
+
break;
|
|
16449
|
+
}
|
|
16450
|
+
default:
|
|
16451
|
+
reader.skipType(tag & 7);
|
|
16452
|
+
break;
|
|
16453
|
+
}
|
|
16454
|
+
}
|
|
16455
|
+
return message;
|
|
16456
|
+
};
|
|
16457
|
+
|
|
16458
|
+
/**
|
|
16459
|
+
* Decodes a GcsExportDestination message from the specified reader or buffer, length delimited.
|
|
16460
|
+
* @function decodeDelimited
|
|
16461
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination
|
|
16462
|
+
* @static
|
|
16463
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16464
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination
|
|
16465
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16466
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16467
|
+
*/
|
|
16468
|
+
GcsExportDestination.decodeDelimited = function decodeDelimited(reader) {
|
|
16469
|
+
if (!(reader instanceof $Reader))
|
|
16470
|
+
reader = new $Reader(reader);
|
|
16471
|
+
return this.decode(reader, reader.uint32());
|
|
16472
|
+
};
|
|
16473
|
+
|
|
16474
|
+
/**
|
|
16475
|
+
* Verifies a GcsExportDestination message.
|
|
16476
|
+
* @function verify
|
|
16477
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination
|
|
16478
|
+
* @static
|
|
16479
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
16480
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16481
|
+
*/
|
|
16482
|
+
GcsExportDestination.verify = function verify(message) {
|
|
16483
|
+
if (typeof message !== "object" || message === null)
|
|
16484
|
+
return "object expected";
|
|
16485
|
+
if (message.exportUri != null && message.hasOwnProperty("exportUri"))
|
|
16486
|
+
if (!$util.isString(message.exportUri))
|
|
16487
|
+
return "exportUri: string expected";
|
|
16488
|
+
if (message.format != null && message.hasOwnProperty("format"))
|
|
16489
|
+
switch (message.format) {
|
|
16490
|
+
default:
|
|
16491
|
+
return "format: enum value expected";
|
|
16492
|
+
case 0:
|
|
16493
|
+
case 2:
|
|
16494
|
+
break;
|
|
16495
|
+
}
|
|
16496
|
+
return null;
|
|
16497
|
+
};
|
|
16498
|
+
|
|
16499
|
+
/**
|
|
16500
|
+
* Creates a GcsExportDestination message from a plain object. Also converts values to their respective internal types.
|
|
16501
|
+
* @function fromObject
|
|
16502
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination
|
|
16503
|
+
* @static
|
|
16504
|
+
* @param {Object.<string,*>} object Plain object
|
|
16505
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination
|
|
16506
|
+
*/
|
|
16507
|
+
GcsExportDestination.fromObject = function fromObject(object) {
|
|
16508
|
+
if (object instanceof $root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination)
|
|
16509
|
+
return object;
|
|
16510
|
+
var message = new $root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination();
|
|
16511
|
+
if (object.exportUri != null)
|
|
16512
|
+
message.exportUri = String(object.exportUri);
|
|
16513
|
+
switch (object.format) {
|
|
16514
|
+
default:
|
|
16515
|
+
if (typeof object.format === "number") {
|
|
16516
|
+
message.format = object.format;
|
|
16517
|
+
break;
|
|
16518
|
+
}
|
|
16519
|
+
break;
|
|
16520
|
+
case "FORMAT_UNSPECIFIED":
|
|
16521
|
+
case 0:
|
|
16522
|
+
message.format = 0;
|
|
16523
|
+
break;
|
|
16524
|
+
case "JSONL":
|
|
16525
|
+
case 2:
|
|
16526
|
+
message.format = 2;
|
|
16527
|
+
break;
|
|
16528
|
+
}
|
|
16529
|
+
return message;
|
|
16530
|
+
};
|
|
16531
|
+
|
|
16532
|
+
/**
|
|
16533
|
+
* Creates a plain object from a GcsExportDestination message. Also converts values to other types if specified.
|
|
16534
|
+
* @function toObject
|
|
16535
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination
|
|
16536
|
+
* @static
|
|
16537
|
+
* @param {google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination} message GcsExportDestination
|
|
16538
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16539
|
+
* @returns {Object.<string,*>} Plain object
|
|
16540
|
+
*/
|
|
16541
|
+
GcsExportDestination.toObject = function toObject(message, options) {
|
|
16542
|
+
if (!options)
|
|
16543
|
+
options = {};
|
|
16544
|
+
var object = {};
|
|
16545
|
+
if (options.defaults) {
|
|
16546
|
+
object.exportUri = "";
|
|
16547
|
+
object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0;
|
|
16548
|
+
}
|
|
16549
|
+
if (message.exportUri != null && message.hasOwnProperty("exportUri"))
|
|
16550
|
+
object.exportUri = message.exportUri;
|
|
16551
|
+
if (message.format != null && message.hasOwnProperty("format"))
|
|
16552
|
+
object.format = options.enums === String ? $root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.Format[message.format] === undefined ? message.format : $root.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.Format[message.format] : message.format;
|
|
16553
|
+
return object;
|
|
16554
|
+
};
|
|
16555
|
+
|
|
16556
|
+
/**
|
|
16557
|
+
* Converts this GcsExportDestination to JSON.
|
|
16558
|
+
* @function toJSON
|
|
16559
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination
|
|
16560
|
+
* @instance
|
|
16561
|
+
* @returns {Object.<string,*>} JSON object
|
|
16562
|
+
*/
|
|
16563
|
+
GcsExportDestination.prototype.toJSON = function toJSON() {
|
|
16564
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16565
|
+
};
|
|
16566
|
+
|
|
16567
|
+
/**
|
|
16568
|
+
* Gets the default type url for GcsExportDestination
|
|
16569
|
+
* @function getTypeUrl
|
|
16570
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination
|
|
16571
|
+
* @static
|
|
16572
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
16573
|
+
* @returns {string} The default type url
|
|
16574
|
+
*/
|
|
16575
|
+
GcsExportDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
16576
|
+
if (typeUrlPrefix === undefined) {
|
|
16577
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
16578
|
+
}
|
|
16579
|
+
return typeUrlPrefix + "/google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination";
|
|
16580
|
+
};
|
|
16581
|
+
|
|
16582
|
+
/**
|
|
16583
|
+
* Format enum.
|
|
16584
|
+
* @name google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.Format
|
|
16585
|
+
* @enum {number}
|
|
16586
|
+
* @property {number} FORMAT_UNSPECIFIED=0 FORMAT_UNSPECIFIED value
|
|
16587
|
+
* @property {number} JSONL=2 JSONL value
|
|
16588
|
+
*/
|
|
16589
|
+
GcsExportDestination.Format = (function() {
|
|
16590
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
16591
|
+
values[valuesById[0] = "FORMAT_UNSPECIFIED"] = 0;
|
|
16592
|
+
values[valuesById[2] = "JSONL"] = 2;
|
|
16593
|
+
return values;
|
|
16594
|
+
})();
|
|
16595
|
+
|
|
16596
|
+
return GcsExportDestination;
|
|
16597
|
+
})();
|
|
16598
|
+
|
|
16599
|
+
return ExportDataObjectsRequest;
|
|
16600
|
+
})();
|
|
16601
|
+
|
|
16602
|
+
v1.ExportDataObjectsMetadata = (function() {
|
|
16603
|
+
|
|
16604
|
+
/**
|
|
16605
|
+
* Properties of an ExportDataObjectsMetadata.
|
|
16606
|
+
* @memberof google.cloud.vectorsearch.v1
|
|
16607
|
+
* @interface IExportDataObjectsMetadata
|
|
16608
|
+
* @property {google.protobuf.ITimestamp|null} [createTime] ExportDataObjectsMetadata createTime
|
|
16609
|
+
* @property {google.protobuf.ITimestamp|null} [finishTime] ExportDataObjectsMetadata finishTime
|
|
16610
|
+
*/
|
|
16611
|
+
|
|
16612
|
+
/**
|
|
16613
|
+
* Constructs a new ExportDataObjectsMetadata.
|
|
16614
|
+
* @memberof google.cloud.vectorsearch.v1
|
|
16615
|
+
* @classdesc Represents an ExportDataObjectsMetadata.
|
|
16616
|
+
* @implements IExportDataObjectsMetadata
|
|
16617
|
+
* @constructor
|
|
16618
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsMetadata=} [properties] Properties to set
|
|
16619
|
+
*/
|
|
16620
|
+
function ExportDataObjectsMetadata(properties) {
|
|
16621
|
+
if (properties)
|
|
16622
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16623
|
+
if (properties[keys[i]] != null)
|
|
16624
|
+
this[keys[i]] = properties[keys[i]];
|
|
16625
|
+
}
|
|
16626
|
+
|
|
16627
|
+
/**
|
|
16628
|
+
* ExportDataObjectsMetadata createTime.
|
|
16629
|
+
* @member {google.protobuf.ITimestamp|null|undefined} createTime
|
|
16630
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsMetadata
|
|
16631
|
+
* @instance
|
|
16632
|
+
*/
|
|
16633
|
+
ExportDataObjectsMetadata.prototype.createTime = null;
|
|
16634
|
+
|
|
16635
|
+
/**
|
|
16636
|
+
* ExportDataObjectsMetadata finishTime.
|
|
16637
|
+
* @member {google.protobuf.ITimestamp|null|undefined} finishTime
|
|
16638
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsMetadata
|
|
16639
|
+
* @instance
|
|
16640
|
+
*/
|
|
16641
|
+
ExportDataObjectsMetadata.prototype.finishTime = null;
|
|
16642
|
+
|
|
16643
|
+
/**
|
|
16644
|
+
* Creates a new ExportDataObjectsMetadata instance using the specified properties.
|
|
16645
|
+
* @function create
|
|
16646
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsMetadata
|
|
16647
|
+
* @static
|
|
16648
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsMetadata=} [properties] Properties to set
|
|
16649
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsMetadata} ExportDataObjectsMetadata instance
|
|
16650
|
+
*/
|
|
16651
|
+
ExportDataObjectsMetadata.create = function create(properties) {
|
|
16652
|
+
return new ExportDataObjectsMetadata(properties);
|
|
16653
|
+
};
|
|
16654
|
+
|
|
16655
|
+
/**
|
|
16656
|
+
* Encodes the specified ExportDataObjectsMetadata message. Does not implicitly {@link google.cloud.vectorsearch.v1.ExportDataObjectsMetadata.verify|verify} messages.
|
|
16657
|
+
* @function encode
|
|
16658
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsMetadata
|
|
16659
|
+
* @static
|
|
16660
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsMetadata} message ExportDataObjectsMetadata message or plain object to encode
|
|
16661
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16662
|
+
* @returns {$protobuf.Writer} Writer
|
|
16663
|
+
*/
|
|
16664
|
+
ExportDataObjectsMetadata.encode = function encode(message, writer) {
|
|
16665
|
+
if (!writer)
|
|
16666
|
+
writer = $Writer.create();
|
|
16667
|
+
if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
|
|
16668
|
+
$root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
16669
|
+
if (message.finishTime != null && Object.hasOwnProperty.call(message, "finishTime"))
|
|
16670
|
+
$root.google.protobuf.Timestamp.encode(message.finishTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
16671
|
+
return writer;
|
|
16672
|
+
};
|
|
16673
|
+
|
|
16674
|
+
/**
|
|
16675
|
+
* Encodes the specified ExportDataObjectsMetadata message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1.ExportDataObjectsMetadata.verify|verify} messages.
|
|
16676
|
+
* @function encodeDelimited
|
|
16677
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsMetadata
|
|
16678
|
+
* @static
|
|
16679
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsMetadata} message ExportDataObjectsMetadata message or plain object to encode
|
|
16680
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16681
|
+
* @returns {$protobuf.Writer} Writer
|
|
16682
|
+
*/
|
|
16683
|
+
ExportDataObjectsMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16684
|
+
return this.encode(message, writer).ldelim();
|
|
16685
|
+
};
|
|
16686
|
+
|
|
16687
|
+
/**
|
|
16688
|
+
* Decodes an ExportDataObjectsMetadata message from the specified reader or buffer.
|
|
16689
|
+
* @function decode
|
|
16690
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsMetadata
|
|
16691
|
+
* @static
|
|
16692
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16693
|
+
* @param {number} [length] Message length if known beforehand
|
|
16694
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsMetadata} ExportDataObjectsMetadata
|
|
16695
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16696
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16697
|
+
*/
|
|
16698
|
+
ExportDataObjectsMetadata.decode = function decode(reader, length, error) {
|
|
16699
|
+
if (!(reader instanceof $Reader))
|
|
16700
|
+
reader = $Reader.create(reader);
|
|
16701
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1.ExportDataObjectsMetadata();
|
|
16702
|
+
while (reader.pos < end) {
|
|
16703
|
+
var tag = reader.uint32();
|
|
16704
|
+
if (tag === error)
|
|
16705
|
+
break;
|
|
16706
|
+
switch (tag >>> 3) {
|
|
16707
|
+
case 1: {
|
|
16708
|
+
message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
16709
|
+
break;
|
|
16710
|
+
}
|
|
16711
|
+
case 2: {
|
|
16712
|
+
message.finishTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
16713
|
+
break;
|
|
16714
|
+
}
|
|
16715
|
+
default:
|
|
16716
|
+
reader.skipType(tag & 7);
|
|
16717
|
+
break;
|
|
16718
|
+
}
|
|
16719
|
+
}
|
|
16720
|
+
return message;
|
|
16721
|
+
};
|
|
16722
|
+
|
|
16723
|
+
/**
|
|
16724
|
+
* Decodes an ExportDataObjectsMetadata message from the specified reader or buffer, length delimited.
|
|
16725
|
+
* @function decodeDelimited
|
|
16726
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsMetadata
|
|
16727
|
+
* @static
|
|
16728
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16729
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsMetadata} ExportDataObjectsMetadata
|
|
16730
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16731
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16732
|
+
*/
|
|
16733
|
+
ExportDataObjectsMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
16734
|
+
if (!(reader instanceof $Reader))
|
|
16735
|
+
reader = new $Reader(reader);
|
|
16736
|
+
return this.decode(reader, reader.uint32());
|
|
16737
|
+
};
|
|
16738
|
+
|
|
16739
|
+
/**
|
|
16740
|
+
* Verifies an ExportDataObjectsMetadata message.
|
|
16741
|
+
* @function verify
|
|
16742
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsMetadata
|
|
16743
|
+
* @static
|
|
16744
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
16745
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16746
|
+
*/
|
|
16747
|
+
ExportDataObjectsMetadata.verify = function verify(message) {
|
|
16748
|
+
if (typeof message !== "object" || message === null)
|
|
16749
|
+
return "object expected";
|
|
16750
|
+
if (message.createTime != null && message.hasOwnProperty("createTime")) {
|
|
16751
|
+
var error = $root.google.protobuf.Timestamp.verify(message.createTime);
|
|
16752
|
+
if (error)
|
|
16753
|
+
return "createTime." + error;
|
|
16754
|
+
}
|
|
16755
|
+
if (message.finishTime != null && message.hasOwnProperty("finishTime")) {
|
|
16756
|
+
var error = $root.google.protobuf.Timestamp.verify(message.finishTime);
|
|
16757
|
+
if (error)
|
|
16758
|
+
return "finishTime." + error;
|
|
16759
|
+
}
|
|
16760
|
+
return null;
|
|
16761
|
+
};
|
|
16762
|
+
|
|
16763
|
+
/**
|
|
16764
|
+
* Creates an ExportDataObjectsMetadata message from a plain object. Also converts values to their respective internal types.
|
|
16765
|
+
* @function fromObject
|
|
16766
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsMetadata
|
|
16767
|
+
* @static
|
|
16768
|
+
* @param {Object.<string,*>} object Plain object
|
|
16769
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsMetadata} ExportDataObjectsMetadata
|
|
16770
|
+
*/
|
|
16771
|
+
ExportDataObjectsMetadata.fromObject = function fromObject(object) {
|
|
16772
|
+
if (object instanceof $root.google.cloud.vectorsearch.v1.ExportDataObjectsMetadata)
|
|
16773
|
+
return object;
|
|
16774
|
+
var message = new $root.google.cloud.vectorsearch.v1.ExportDataObjectsMetadata();
|
|
16775
|
+
if (object.createTime != null) {
|
|
16776
|
+
if (typeof object.createTime !== "object")
|
|
16777
|
+
throw TypeError(".google.cloud.vectorsearch.v1.ExportDataObjectsMetadata.createTime: object expected");
|
|
16778
|
+
message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
|
|
16779
|
+
}
|
|
16780
|
+
if (object.finishTime != null) {
|
|
16781
|
+
if (typeof object.finishTime !== "object")
|
|
16782
|
+
throw TypeError(".google.cloud.vectorsearch.v1.ExportDataObjectsMetadata.finishTime: object expected");
|
|
16783
|
+
message.finishTime = $root.google.protobuf.Timestamp.fromObject(object.finishTime);
|
|
16784
|
+
}
|
|
16785
|
+
return message;
|
|
16786
|
+
};
|
|
16787
|
+
|
|
16788
|
+
/**
|
|
16789
|
+
* Creates a plain object from an ExportDataObjectsMetadata message. Also converts values to other types if specified.
|
|
16790
|
+
* @function toObject
|
|
16791
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsMetadata
|
|
16792
|
+
* @static
|
|
16793
|
+
* @param {google.cloud.vectorsearch.v1.ExportDataObjectsMetadata} message ExportDataObjectsMetadata
|
|
16794
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16795
|
+
* @returns {Object.<string,*>} Plain object
|
|
16796
|
+
*/
|
|
16797
|
+
ExportDataObjectsMetadata.toObject = function toObject(message, options) {
|
|
16798
|
+
if (!options)
|
|
16799
|
+
options = {};
|
|
16800
|
+
var object = {};
|
|
16801
|
+
if (options.defaults) {
|
|
16802
|
+
object.createTime = null;
|
|
16803
|
+
object.finishTime = null;
|
|
16804
|
+
}
|
|
16805
|
+
if (message.createTime != null && message.hasOwnProperty("createTime"))
|
|
16806
|
+
object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
|
|
16807
|
+
if (message.finishTime != null && message.hasOwnProperty("finishTime"))
|
|
16808
|
+
object.finishTime = $root.google.protobuf.Timestamp.toObject(message.finishTime, options);
|
|
16809
|
+
return object;
|
|
16810
|
+
};
|
|
16811
|
+
|
|
16812
|
+
/**
|
|
16813
|
+
* Converts this ExportDataObjectsMetadata to JSON.
|
|
16814
|
+
* @function toJSON
|
|
16815
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsMetadata
|
|
16816
|
+
* @instance
|
|
16817
|
+
* @returns {Object.<string,*>} JSON object
|
|
16818
|
+
*/
|
|
16819
|
+
ExportDataObjectsMetadata.prototype.toJSON = function toJSON() {
|
|
16820
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16821
|
+
};
|
|
16822
|
+
|
|
16823
|
+
/**
|
|
16824
|
+
* Gets the default type url for ExportDataObjectsMetadata
|
|
16825
|
+
* @function getTypeUrl
|
|
16826
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsMetadata
|
|
16827
|
+
* @static
|
|
16828
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
16829
|
+
* @returns {string} The default type url
|
|
16830
|
+
*/
|
|
16831
|
+
ExportDataObjectsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
16832
|
+
if (typeUrlPrefix === undefined) {
|
|
16833
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
16834
|
+
}
|
|
16835
|
+
return typeUrlPrefix + "/google.cloud.vectorsearch.v1.ExportDataObjectsMetadata";
|
|
16836
|
+
};
|
|
16837
|
+
|
|
16838
|
+
return ExportDataObjectsMetadata;
|
|
16839
|
+
})();
|
|
16840
|
+
|
|
16841
|
+
v1.ExportDataObjectsResponse = (function() {
|
|
16842
|
+
|
|
16843
|
+
/**
|
|
16844
|
+
* Properties of an ExportDataObjectsResponse.
|
|
16845
|
+
* @memberof google.cloud.vectorsearch.v1
|
|
16846
|
+
* @interface IExportDataObjectsResponse
|
|
16847
|
+
*/
|
|
16848
|
+
|
|
16849
|
+
/**
|
|
16850
|
+
* Constructs a new ExportDataObjectsResponse.
|
|
16851
|
+
* @memberof google.cloud.vectorsearch.v1
|
|
16852
|
+
* @classdesc Represents an ExportDataObjectsResponse.
|
|
16853
|
+
* @implements IExportDataObjectsResponse
|
|
16854
|
+
* @constructor
|
|
16855
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsResponse=} [properties] Properties to set
|
|
16856
|
+
*/
|
|
16857
|
+
function ExportDataObjectsResponse(properties) {
|
|
16858
|
+
if (properties)
|
|
16859
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16860
|
+
if (properties[keys[i]] != null)
|
|
16861
|
+
this[keys[i]] = properties[keys[i]];
|
|
16862
|
+
}
|
|
16863
|
+
|
|
16864
|
+
/**
|
|
16865
|
+
* Creates a new ExportDataObjectsResponse instance using the specified properties.
|
|
16866
|
+
* @function create
|
|
16867
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsResponse
|
|
16868
|
+
* @static
|
|
16869
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsResponse=} [properties] Properties to set
|
|
16870
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsResponse} ExportDataObjectsResponse instance
|
|
16871
|
+
*/
|
|
16872
|
+
ExportDataObjectsResponse.create = function create(properties) {
|
|
16873
|
+
return new ExportDataObjectsResponse(properties);
|
|
16874
|
+
};
|
|
16875
|
+
|
|
16876
|
+
/**
|
|
16877
|
+
* Encodes the specified ExportDataObjectsResponse message. Does not implicitly {@link google.cloud.vectorsearch.v1.ExportDataObjectsResponse.verify|verify} messages.
|
|
16878
|
+
* @function encode
|
|
16879
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsResponse
|
|
16880
|
+
* @static
|
|
16881
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsResponse} message ExportDataObjectsResponse message or plain object to encode
|
|
16882
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16883
|
+
* @returns {$protobuf.Writer} Writer
|
|
16884
|
+
*/
|
|
16885
|
+
ExportDataObjectsResponse.encode = function encode(message, writer) {
|
|
16886
|
+
if (!writer)
|
|
16887
|
+
writer = $Writer.create();
|
|
16888
|
+
return writer;
|
|
16889
|
+
};
|
|
16890
|
+
|
|
16891
|
+
/**
|
|
16892
|
+
* Encodes the specified ExportDataObjectsResponse message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1.ExportDataObjectsResponse.verify|verify} messages.
|
|
16893
|
+
* @function encodeDelimited
|
|
16894
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsResponse
|
|
16895
|
+
* @static
|
|
16896
|
+
* @param {google.cloud.vectorsearch.v1.IExportDataObjectsResponse} message ExportDataObjectsResponse message or plain object to encode
|
|
16897
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16898
|
+
* @returns {$protobuf.Writer} Writer
|
|
16899
|
+
*/
|
|
16900
|
+
ExportDataObjectsResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16901
|
+
return this.encode(message, writer).ldelim();
|
|
16902
|
+
};
|
|
16903
|
+
|
|
16904
|
+
/**
|
|
16905
|
+
* Decodes an ExportDataObjectsResponse message from the specified reader or buffer.
|
|
16906
|
+
* @function decode
|
|
16907
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsResponse
|
|
16908
|
+
* @static
|
|
16909
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16910
|
+
* @param {number} [length] Message length if known beforehand
|
|
16911
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsResponse} ExportDataObjectsResponse
|
|
16912
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16913
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16914
|
+
*/
|
|
16915
|
+
ExportDataObjectsResponse.decode = function decode(reader, length, error) {
|
|
16916
|
+
if (!(reader instanceof $Reader))
|
|
16917
|
+
reader = $Reader.create(reader);
|
|
16918
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1.ExportDataObjectsResponse();
|
|
16919
|
+
while (reader.pos < end) {
|
|
16920
|
+
var tag = reader.uint32();
|
|
16921
|
+
if (tag === error)
|
|
16922
|
+
break;
|
|
16923
|
+
switch (tag >>> 3) {
|
|
16924
|
+
default:
|
|
16925
|
+
reader.skipType(tag & 7);
|
|
16926
|
+
break;
|
|
16927
|
+
}
|
|
16928
|
+
}
|
|
16929
|
+
return message;
|
|
16930
|
+
};
|
|
16931
|
+
|
|
16932
|
+
/**
|
|
16933
|
+
* Decodes an ExportDataObjectsResponse message from the specified reader or buffer, length delimited.
|
|
16934
|
+
* @function decodeDelimited
|
|
16935
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsResponse
|
|
16936
|
+
* @static
|
|
16937
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16938
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsResponse} ExportDataObjectsResponse
|
|
16939
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16940
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16941
|
+
*/
|
|
16942
|
+
ExportDataObjectsResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
16943
|
+
if (!(reader instanceof $Reader))
|
|
16944
|
+
reader = new $Reader(reader);
|
|
16945
|
+
return this.decode(reader, reader.uint32());
|
|
16946
|
+
};
|
|
16947
|
+
|
|
16948
|
+
/**
|
|
16949
|
+
* Verifies an ExportDataObjectsResponse message.
|
|
16950
|
+
* @function verify
|
|
16951
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsResponse
|
|
16952
|
+
* @static
|
|
16953
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
16954
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16955
|
+
*/
|
|
16956
|
+
ExportDataObjectsResponse.verify = function verify(message) {
|
|
16957
|
+
if (typeof message !== "object" || message === null)
|
|
16958
|
+
return "object expected";
|
|
16959
|
+
return null;
|
|
16960
|
+
};
|
|
16961
|
+
|
|
16962
|
+
/**
|
|
16963
|
+
* Creates an ExportDataObjectsResponse message from a plain object. Also converts values to their respective internal types.
|
|
16964
|
+
* @function fromObject
|
|
16965
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsResponse
|
|
16966
|
+
* @static
|
|
16967
|
+
* @param {Object.<string,*>} object Plain object
|
|
16968
|
+
* @returns {google.cloud.vectorsearch.v1.ExportDataObjectsResponse} ExportDataObjectsResponse
|
|
16969
|
+
*/
|
|
16970
|
+
ExportDataObjectsResponse.fromObject = function fromObject(object) {
|
|
16971
|
+
if (object instanceof $root.google.cloud.vectorsearch.v1.ExportDataObjectsResponse)
|
|
16972
|
+
return object;
|
|
16973
|
+
return new $root.google.cloud.vectorsearch.v1.ExportDataObjectsResponse();
|
|
16974
|
+
};
|
|
16975
|
+
|
|
16976
|
+
/**
|
|
16977
|
+
* Creates a plain object from an ExportDataObjectsResponse message. Also converts values to other types if specified.
|
|
16978
|
+
* @function toObject
|
|
16979
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsResponse
|
|
16980
|
+
* @static
|
|
16981
|
+
* @param {google.cloud.vectorsearch.v1.ExportDataObjectsResponse} message ExportDataObjectsResponse
|
|
16982
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16983
|
+
* @returns {Object.<string,*>} Plain object
|
|
16984
|
+
*/
|
|
16985
|
+
ExportDataObjectsResponse.toObject = function toObject() {
|
|
16986
|
+
return {};
|
|
16987
|
+
};
|
|
16988
|
+
|
|
16989
|
+
/**
|
|
16990
|
+
* Converts this ExportDataObjectsResponse to JSON.
|
|
16991
|
+
* @function toJSON
|
|
16992
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsResponse
|
|
16993
|
+
* @instance
|
|
16994
|
+
* @returns {Object.<string,*>} JSON object
|
|
16995
|
+
*/
|
|
16996
|
+
ExportDataObjectsResponse.prototype.toJSON = function toJSON() {
|
|
16997
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16998
|
+
};
|
|
16999
|
+
|
|
17000
|
+
/**
|
|
17001
|
+
* Gets the default type url for ExportDataObjectsResponse
|
|
17002
|
+
* @function getTypeUrl
|
|
17003
|
+
* @memberof google.cloud.vectorsearch.v1.ExportDataObjectsResponse
|
|
17004
|
+
* @static
|
|
17005
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
17006
|
+
* @returns {string} The default type url
|
|
17007
|
+
*/
|
|
17008
|
+
ExportDataObjectsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17009
|
+
if (typeUrlPrefix === undefined) {
|
|
17010
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17011
|
+
}
|
|
17012
|
+
return typeUrlPrefix + "/google.cloud.vectorsearch.v1.ExportDataObjectsResponse";
|
|
17013
|
+
};
|
|
17014
|
+
|
|
17015
|
+
return ExportDataObjectsResponse;
|
|
17016
|
+
})();
|
|
17017
|
+
|
|
16054
17018
|
v1.DedicatedInfrastructure = (function() {
|
|
16055
17019
|
|
|
16056
17020
|
/**
|