@google-cloud/vectorsearch 0.1.0 → 0.2.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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -2987,6 +2987,7 @@
2987
2987
  * @property {google.cloud.vectorsearch.v1beta.IOutputFields|null} [outputFields] SemanticSearch outputFields
2988
2988
  * @property {google.protobuf.IStruct|null} [filter] SemanticSearch filter
2989
2989
  * @property {number|null} [topK] SemanticSearch topK
2990
+ * @property {google.cloud.vectorsearch.v1beta.ISearchHint|null} [searchHint] SemanticSearch searchHint
2990
2991
  */
2991
2992
 
2992
2993
  /**
@@ -3052,6 +3053,14 @@
3052
3053
  */
3053
3054
  SemanticSearch.prototype.topK = null;
3054
3055
 
3056
+ /**
3057
+ * SemanticSearch searchHint.
3058
+ * @member {google.cloud.vectorsearch.v1beta.ISearchHint|null|undefined} searchHint
3059
+ * @memberof google.cloud.vectorsearch.v1beta.SemanticSearch
3060
+ * @instance
3061
+ */
3062
+ SemanticSearch.prototype.searchHint = null;
3063
+
3055
3064
  // OneOf field names bound to virtual getters and setters
3056
3065
  var $oneOfFields;
3057
3066
 
@@ -3097,6 +3106,8 @@
3097
3106
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.taskType);
3098
3107
  if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
3099
3108
  $root.google.protobuf.Struct.encode(message.filter, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
3109
+ if (message.searchHint != null && Object.hasOwnProperty.call(message, "searchHint"))
3110
+ $root.google.cloud.vectorsearch.v1beta.SearchHint.encode(message.searchHint, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
3100
3111
  return writer;
3101
3112
  };
3102
3113
 
@@ -3157,6 +3168,10 @@
3157
3168
  message.topK = reader.int32();
3158
3169
  break;
3159
3170
  }
3171
+ case 7: {
3172
+ message.searchHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.decode(reader, reader.uint32());
3173
+ break;
3174
+ }
3160
3175
  default:
3161
3176
  reader.skipType(tag & 7);
3162
3177
  break;
@@ -3229,6 +3244,11 @@
3229
3244
  if (!$util.isInteger(message.topK))
3230
3245
  return "topK: integer expected";
3231
3246
  }
3247
+ if (message.searchHint != null && message.hasOwnProperty("searchHint")) {
3248
+ var error = $root.google.cloud.vectorsearch.v1beta.SearchHint.verify(message.searchHint);
3249
+ if (error)
3250
+ return "searchHint." + error;
3251
+ }
3232
3252
  return null;
3233
3253
  };
3234
3254
 
@@ -3304,6 +3324,11 @@
3304
3324
  }
3305
3325
  if (object.topK != null)
3306
3326
  message.topK = object.topK | 0;
3327
+ if (object.searchHint != null) {
3328
+ if (typeof object.searchHint !== "object")
3329
+ throw TypeError(".google.cloud.vectorsearch.v1beta.SemanticSearch.searchHint: object expected");
3330
+ message.searchHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.fromObject(object.searchHint);
3331
+ }
3307
3332
  return message;
3308
3333
  };
3309
3334
 
@@ -3326,6 +3351,7 @@
3326
3351
  object.outputFields = null;
3327
3352
  object.taskType = options.enums === String ? "EMBEDDING_TASK_TYPE_UNSPECIFIED" : 0;
3328
3353
  object.filter = null;
3354
+ object.searchHint = null;
3329
3355
  }
3330
3356
  if (message.searchText != null && message.hasOwnProperty("searchText"))
3331
3357
  object.searchText = message.searchText;
@@ -3342,6 +3368,8 @@
3342
3368
  object.taskType = options.enums === String ? $root.google.cloud.vectorsearch.v1beta.EmbeddingTaskType[message.taskType] === undefined ? message.taskType : $root.google.cloud.vectorsearch.v1beta.EmbeddingTaskType[message.taskType] : message.taskType;
3343
3369
  if (message.filter != null && message.hasOwnProperty("filter"))
3344
3370
  object.filter = $root.google.protobuf.Struct.toObject(message.filter, options);
3371
+ if (message.searchHint != null && message.hasOwnProperty("searchHint"))
3372
+ object.searchHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.toObject(message.searchHint, options);
3345
3373
  return object;
3346
3374
  };
3347
3375
 
@@ -3384,6 +3412,7 @@
3384
3412
  * @property {Array.<string>|null} [dataFieldNames] TextSearch dataFieldNames
3385
3413
  * @property {google.cloud.vectorsearch.v1beta.IOutputFields|null} [outputFields] TextSearch outputFields
3386
3414
  * @property {number|null} [topK] TextSearch topK
3415
+ * @property {google.protobuf.IStruct|null} [filter] TextSearch filter
3387
3416
  */
3388
3417
 
3389
3418
  /**
@@ -3434,6 +3463,14 @@
3434
3463
  */
3435
3464
  TextSearch.prototype.topK = null;
3436
3465
 
3466
+ /**
3467
+ * TextSearch filter.
3468
+ * @member {google.protobuf.IStruct|null|undefined} filter
3469
+ * @memberof google.cloud.vectorsearch.v1beta.TextSearch
3470
+ * @instance
3471
+ */
3472
+ TextSearch.prototype.filter = null;
3473
+
3437
3474
  // OneOf field names bound to virtual getters and setters
3438
3475
  var $oneOfFields;
3439
3476
 
@@ -3476,6 +3513,8 @@
3476
3513
  $root.google.cloud.vectorsearch.v1beta.OutputFields.encode(message.outputFields, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
3477
3514
  if (message.topK != null && Object.hasOwnProperty.call(message, "topK"))
3478
3515
  writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topK);
3516
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
3517
+ $root.google.protobuf.Struct.encode(message.filter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
3479
3518
  return writer;
3480
3519
  };
3481
3520
 
@@ -3530,6 +3569,10 @@
3530
3569
  message.topK = reader.int32();
3531
3570
  break;
3532
3571
  }
3572
+ case 5: {
3573
+ message.filter = $root.google.protobuf.Struct.decode(reader, reader.uint32());
3574
+ break;
3575
+ }
3533
3576
  default:
3534
3577
  reader.skipType(tag & 7);
3535
3578
  break;
@@ -3586,6 +3629,11 @@
3586
3629
  if (!$util.isInteger(message.topK))
3587
3630
  return "topK: integer expected";
3588
3631
  }
3632
+ if (message.filter != null && message.hasOwnProperty("filter")) {
3633
+ var error = $root.google.protobuf.Struct.verify(message.filter);
3634
+ if (error)
3635
+ return "filter." + error;
3636
+ }
3589
3637
  return null;
3590
3638
  };
3591
3639
 
@@ -3617,6 +3665,11 @@
3617
3665
  }
3618
3666
  if (object.topK != null)
3619
3667
  message.topK = object.topK | 0;
3668
+ if (object.filter != null) {
3669
+ if (typeof object.filter !== "object")
3670
+ throw TypeError(".google.cloud.vectorsearch.v1beta.TextSearch.filter: object expected");
3671
+ message.filter = $root.google.protobuf.Struct.fromObject(object.filter);
3672
+ }
3620
3673
  return message;
3621
3674
  };
3622
3675
 
@@ -3638,6 +3691,7 @@
3638
3691
  if (options.defaults) {
3639
3692
  object.searchText = "";
3640
3693
  object.outputFields = null;
3694
+ object.filter = null;
3641
3695
  }
3642
3696
  if (message.searchText != null && message.hasOwnProperty("searchText"))
3643
3697
  object.searchText = message.searchText;
@@ -3653,6 +3707,8 @@
3653
3707
  if (options.oneofs)
3654
3708
  object._topK = "topK";
3655
3709
  }
3710
+ if (message.filter != null && message.hasOwnProperty("filter"))
3711
+ object.filter = $root.google.protobuf.Struct.toObject(message.filter, options);
3656
3712
  return object;
3657
3713
  };
3658
3714
 
@@ -10660,6 +10716,39 @@
10660
10716
  * @variation 2
10661
10717
  */
10662
10718
 
10719
+ /**
10720
+ * Callback as used by {@link google.cloud.vectorsearch.v1beta.VectorSearchService|exportDataObjects}.
10721
+ * @memberof google.cloud.vectorsearch.v1beta.VectorSearchService
10722
+ * @typedef ExportDataObjectsCallback
10723
+ * @type {function}
10724
+ * @param {Error|null} error Error, if any
10725
+ * @param {google.longrunning.Operation} [response] Operation
10726
+ */
10727
+
10728
+ /**
10729
+ * Calls ExportDataObjects.
10730
+ * @function exportDataObjects
10731
+ * @memberof google.cloud.vectorsearch.v1beta.VectorSearchService
10732
+ * @instance
10733
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest} request ExportDataObjectsRequest message or plain object
10734
+ * @param {google.cloud.vectorsearch.v1beta.VectorSearchService.ExportDataObjectsCallback} callback Node-style callback called with the error, if any, and Operation
10735
+ * @returns {undefined}
10736
+ * @variation 1
10737
+ */
10738
+ Object.defineProperty(VectorSearchService.prototype.exportDataObjects = function exportDataObjects(request, callback) {
10739
+ return this.rpcCall(exportDataObjects, $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest, $root.google.longrunning.Operation, request, callback);
10740
+ }, "name", { value: "ExportDataObjects" });
10741
+
10742
+ /**
10743
+ * Calls ExportDataObjects.
10744
+ * @function exportDataObjects
10745
+ * @memberof google.cloud.vectorsearch.v1beta.VectorSearchService
10746
+ * @instance
10747
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest} request ExportDataObjectsRequest message or plain object
10748
+ * @returns {Promise<google.longrunning.Operation>} Promise
10749
+ * @variation 2
10750
+ */
10751
+
10663
10752
  return VectorSearchService;
10664
10753
  })();
10665
10754
 
@@ -15781,6 +15870,7 @@
15781
15870
  * @interface IGcsImportConfig
15782
15871
  * @property {string|null} [contentsUri] GcsImportConfig contentsUri
15783
15872
  * @property {string|null} [errorUri] GcsImportConfig errorUri
15873
+ * @property {string|null} [outputUri] GcsImportConfig outputUri
15784
15874
  */
15785
15875
 
15786
15876
  /**
@@ -15814,6 +15904,14 @@
15814
15904
  */
15815
15905
  GcsImportConfig.prototype.errorUri = "";
15816
15906
 
15907
+ /**
15908
+ * GcsImportConfig outputUri.
15909
+ * @member {string} outputUri
15910
+ * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig
15911
+ * @instance
15912
+ */
15913
+ GcsImportConfig.prototype.outputUri = "";
15914
+
15817
15915
  /**
15818
15916
  * Creates a new GcsImportConfig instance using the specified properties.
15819
15917
  * @function create
@@ -15842,6 +15940,8 @@
15842
15940
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.contentsUri);
15843
15941
  if (message.errorUri != null && Object.hasOwnProperty.call(message, "errorUri"))
15844
15942
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorUri);
15943
+ if (message.outputUri != null && Object.hasOwnProperty.call(message, "outputUri"))
15944
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputUri);
15845
15945
  return writer;
15846
15946
  };
15847
15947
 
@@ -15886,6 +15986,10 @@
15886
15986
  message.errorUri = reader.string();
15887
15987
  break;
15888
15988
  }
15989
+ case 3: {
15990
+ message.outputUri = reader.string();
15991
+ break;
15992
+ }
15889
15993
  default:
15890
15994
  reader.skipType(tag & 7);
15891
15995
  break;
@@ -15927,6 +16031,9 @@
15927
16031
  if (message.errorUri != null && message.hasOwnProperty("errorUri"))
15928
16032
  if (!$util.isString(message.errorUri))
15929
16033
  return "errorUri: string expected";
16034
+ if (message.outputUri != null && message.hasOwnProperty("outputUri"))
16035
+ if (!$util.isString(message.outputUri))
16036
+ return "outputUri: string expected";
15930
16037
  return null;
15931
16038
  };
15932
16039
 
@@ -15946,6 +16053,8 @@
15946
16053
  message.contentsUri = String(object.contentsUri);
15947
16054
  if (object.errorUri != null)
15948
16055
  message.errorUri = String(object.errorUri);
16056
+ if (object.outputUri != null)
16057
+ message.outputUri = String(object.outputUri);
15949
16058
  return message;
15950
16059
  };
15951
16060
 
@@ -15965,11 +16074,14 @@
15965
16074
  if (options.defaults) {
15966
16075
  object.contentsUri = "";
15967
16076
  object.errorUri = "";
16077
+ object.outputUri = "";
15968
16078
  }
15969
16079
  if (message.contentsUri != null && message.hasOwnProperty("contentsUri"))
15970
16080
  object.contentsUri = message.contentsUri;
15971
16081
  if (message.errorUri != null && message.hasOwnProperty("errorUri"))
15972
16082
  object.errorUri = message.errorUri;
16083
+ if (message.outputUri != null && message.hasOwnProperty("outputUri"))
16084
+ object.outputUri = message.outputUri;
15973
16085
  return object;
15974
16086
  };
15975
16087
 
@@ -16528,6 +16640,937 @@
16528
16640
  return ImportDataObjectsResponse;
16529
16641
  })();
16530
16642
 
16643
+ v1beta.ExportDataObjectsRequest = (function() {
16644
+
16645
+ /**
16646
+ * Properties of an ExportDataObjectsRequest.
16647
+ * @memberof google.cloud.vectorsearch.v1beta
16648
+ * @interface IExportDataObjectsRequest
16649
+ * @property {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination|null} [gcsDestination] ExportDataObjectsRequest gcsDestination
16650
+ * @property {string|null} [name] ExportDataObjectsRequest name
16651
+ */
16652
+
16653
+ /**
16654
+ * Constructs a new ExportDataObjectsRequest.
16655
+ * @memberof google.cloud.vectorsearch.v1beta
16656
+ * @classdesc Represents an ExportDataObjectsRequest.
16657
+ * @implements IExportDataObjectsRequest
16658
+ * @constructor
16659
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest=} [properties] Properties to set
16660
+ */
16661
+ function ExportDataObjectsRequest(properties) {
16662
+ if (properties)
16663
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16664
+ if (properties[keys[i]] != null)
16665
+ this[keys[i]] = properties[keys[i]];
16666
+ }
16667
+
16668
+ /**
16669
+ * ExportDataObjectsRequest gcsDestination.
16670
+ * @member {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination|null|undefined} gcsDestination
16671
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16672
+ * @instance
16673
+ */
16674
+ ExportDataObjectsRequest.prototype.gcsDestination = null;
16675
+
16676
+ /**
16677
+ * ExportDataObjectsRequest name.
16678
+ * @member {string} name
16679
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16680
+ * @instance
16681
+ */
16682
+ ExportDataObjectsRequest.prototype.name = "";
16683
+
16684
+ // OneOf field names bound to virtual getters and setters
16685
+ var $oneOfFields;
16686
+
16687
+ /**
16688
+ * ExportDataObjectsRequest destination.
16689
+ * @member {"gcsDestination"|undefined} destination
16690
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16691
+ * @instance
16692
+ */
16693
+ Object.defineProperty(ExportDataObjectsRequest.prototype, "destination", {
16694
+ get: $util.oneOfGetter($oneOfFields = ["gcsDestination"]),
16695
+ set: $util.oneOfSetter($oneOfFields)
16696
+ });
16697
+
16698
+ /**
16699
+ * Creates a new ExportDataObjectsRequest instance using the specified properties.
16700
+ * @function create
16701
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16702
+ * @static
16703
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest=} [properties] Properties to set
16704
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} ExportDataObjectsRequest instance
16705
+ */
16706
+ ExportDataObjectsRequest.create = function create(properties) {
16707
+ return new ExportDataObjectsRequest(properties);
16708
+ };
16709
+
16710
+ /**
16711
+ * Encodes the specified ExportDataObjectsRequest message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.verify|verify} messages.
16712
+ * @function encode
16713
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16714
+ * @static
16715
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest} message ExportDataObjectsRequest message or plain object to encode
16716
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16717
+ * @returns {$protobuf.Writer} Writer
16718
+ */
16719
+ ExportDataObjectsRequest.encode = function encode(message, writer) {
16720
+ if (!writer)
16721
+ writer = $Writer.create();
16722
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
16723
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
16724
+ if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination"))
16725
+ $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.encode(message.gcsDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
16726
+ return writer;
16727
+ };
16728
+
16729
+ /**
16730
+ * Encodes the specified ExportDataObjectsRequest message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.verify|verify} messages.
16731
+ * @function encodeDelimited
16732
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16733
+ * @static
16734
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest} message ExportDataObjectsRequest message or plain object to encode
16735
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16736
+ * @returns {$protobuf.Writer} Writer
16737
+ */
16738
+ ExportDataObjectsRequest.encodeDelimited = function encodeDelimited(message, writer) {
16739
+ return this.encode(message, writer).ldelim();
16740
+ };
16741
+
16742
+ /**
16743
+ * Decodes an ExportDataObjectsRequest message from the specified reader or buffer.
16744
+ * @function decode
16745
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16746
+ * @static
16747
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16748
+ * @param {number} [length] Message length if known beforehand
16749
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} ExportDataObjectsRequest
16750
+ * @throws {Error} If the payload is not a reader or valid buffer
16751
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16752
+ */
16753
+ ExportDataObjectsRequest.decode = function decode(reader, length, error) {
16754
+ if (!(reader instanceof $Reader))
16755
+ reader = $Reader.create(reader);
16756
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest();
16757
+ while (reader.pos < end) {
16758
+ var tag = reader.uint32();
16759
+ if (tag === error)
16760
+ break;
16761
+ switch (tag >>> 3) {
16762
+ case 2: {
16763
+ message.gcsDestination = $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.decode(reader, reader.uint32());
16764
+ break;
16765
+ }
16766
+ case 1: {
16767
+ message.name = reader.string();
16768
+ break;
16769
+ }
16770
+ default:
16771
+ reader.skipType(tag & 7);
16772
+ break;
16773
+ }
16774
+ }
16775
+ return message;
16776
+ };
16777
+
16778
+ /**
16779
+ * Decodes an ExportDataObjectsRequest message from the specified reader or buffer, length delimited.
16780
+ * @function decodeDelimited
16781
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16782
+ * @static
16783
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16784
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} ExportDataObjectsRequest
16785
+ * @throws {Error} If the payload is not a reader or valid buffer
16786
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16787
+ */
16788
+ ExportDataObjectsRequest.decodeDelimited = function decodeDelimited(reader) {
16789
+ if (!(reader instanceof $Reader))
16790
+ reader = new $Reader(reader);
16791
+ return this.decode(reader, reader.uint32());
16792
+ };
16793
+
16794
+ /**
16795
+ * Verifies an ExportDataObjectsRequest message.
16796
+ * @function verify
16797
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16798
+ * @static
16799
+ * @param {Object.<string,*>} message Plain object to verify
16800
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
16801
+ */
16802
+ ExportDataObjectsRequest.verify = function verify(message) {
16803
+ if (typeof message !== "object" || message === null)
16804
+ return "object expected";
16805
+ var properties = {};
16806
+ if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) {
16807
+ properties.destination = 1;
16808
+ {
16809
+ var error = $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.verify(message.gcsDestination);
16810
+ if (error)
16811
+ return "gcsDestination." + error;
16812
+ }
16813
+ }
16814
+ if (message.name != null && message.hasOwnProperty("name"))
16815
+ if (!$util.isString(message.name))
16816
+ return "name: string expected";
16817
+ return null;
16818
+ };
16819
+
16820
+ /**
16821
+ * Creates an ExportDataObjectsRequest message from a plain object. Also converts values to their respective internal types.
16822
+ * @function fromObject
16823
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16824
+ * @static
16825
+ * @param {Object.<string,*>} object Plain object
16826
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} ExportDataObjectsRequest
16827
+ */
16828
+ ExportDataObjectsRequest.fromObject = function fromObject(object) {
16829
+ if (object instanceof $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest)
16830
+ return object;
16831
+ var message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest();
16832
+ if (object.gcsDestination != null) {
16833
+ if (typeof object.gcsDestination !== "object")
16834
+ throw TypeError(".google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.gcsDestination: object expected");
16835
+ message.gcsDestination = $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.fromObject(object.gcsDestination);
16836
+ }
16837
+ if (object.name != null)
16838
+ message.name = String(object.name);
16839
+ return message;
16840
+ };
16841
+
16842
+ /**
16843
+ * Creates a plain object from an ExportDataObjectsRequest message. Also converts values to other types if specified.
16844
+ * @function toObject
16845
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16846
+ * @static
16847
+ * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} message ExportDataObjectsRequest
16848
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
16849
+ * @returns {Object.<string,*>} Plain object
16850
+ */
16851
+ ExportDataObjectsRequest.toObject = function toObject(message, options) {
16852
+ if (!options)
16853
+ options = {};
16854
+ var object = {};
16855
+ if (options.defaults)
16856
+ object.name = "";
16857
+ if (message.name != null && message.hasOwnProperty("name"))
16858
+ object.name = message.name;
16859
+ if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) {
16860
+ object.gcsDestination = $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.toObject(message.gcsDestination, options);
16861
+ if (options.oneofs)
16862
+ object.destination = "gcsDestination";
16863
+ }
16864
+ return object;
16865
+ };
16866
+
16867
+ /**
16868
+ * Converts this ExportDataObjectsRequest to JSON.
16869
+ * @function toJSON
16870
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16871
+ * @instance
16872
+ * @returns {Object.<string,*>} JSON object
16873
+ */
16874
+ ExportDataObjectsRequest.prototype.toJSON = function toJSON() {
16875
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16876
+ };
16877
+
16878
+ /**
16879
+ * Gets the default type url for ExportDataObjectsRequest
16880
+ * @function getTypeUrl
16881
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16882
+ * @static
16883
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
16884
+ * @returns {string} The default type url
16885
+ */
16886
+ ExportDataObjectsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16887
+ if (typeUrlPrefix === undefined) {
16888
+ typeUrlPrefix = "type.googleapis.com";
16889
+ }
16890
+ return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest";
16891
+ };
16892
+
16893
+ ExportDataObjectsRequest.GcsExportDestination = (function() {
16894
+
16895
+ /**
16896
+ * Properties of a GcsExportDestination.
16897
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16898
+ * @interface IGcsExportDestination
16899
+ * @property {string|null} [exportUri] GcsExportDestination exportUri
16900
+ * @property {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format|null} [format] GcsExportDestination format
16901
+ */
16902
+
16903
+ /**
16904
+ * Constructs a new GcsExportDestination.
16905
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest
16906
+ * @classdesc Represents a GcsExportDestination.
16907
+ * @implements IGcsExportDestination
16908
+ * @constructor
16909
+ * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination=} [properties] Properties to set
16910
+ */
16911
+ function GcsExportDestination(properties) {
16912
+ if (properties)
16913
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16914
+ if (properties[keys[i]] != null)
16915
+ this[keys[i]] = properties[keys[i]];
16916
+ }
16917
+
16918
+ /**
16919
+ * GcsExportDestination exportUri.
16920
+ * @member {string} exportUri
16921
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination
16922
+ * @instance
16923
+ */
16924
+ GcsExportDestination.prototype.exportUri = "";
16925
+
16926
+ /**
16927
+ * GcsExportDestination format.
16928
+ * @member {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format} format
16929
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination
16930
+ * @instance
16931
+ */
16932
+ GcsExportDestination.prototype.format = 0;
16933
+
16934
+ /**
16935
+ * Creates a new GcsExportDestination instance using the specified properties.
16936
+ * @function create
16937
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination
16938
+ * @static
16939
+ * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination=} [properties] Properties to set
16940
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination instance
16941
+ */
16942
+ GcsExportDestination.create = function create(properties) {
16943
+ return new GcsExportDestination(properties);
16944
+ };
16945
+
16946
+ /**
16947
+ * Encodes the specified GcsExportDestination message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.verify|verify} messages.
16948
+ * @function encode
16949
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination
16950
+ * @static
16951
+ * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination} message GcsExportDestination message or plain object to encode
16952
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16953
+ * @returns {$protobuf.Writer} Writer
16954
+ */
16955
+ GcsExportDestination.encode = function encode(message, writer) {
16956
+ if (!writer)
16957
+ writer = $Writer.create();
16958
+ if (message.exportUri != null && Object.hasOwnProperty.call(message, "exportUri"))
16959
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportUri);
16960
+ if (message.format != null && Object.hasOwnProperty.call(message, "format"))
16961
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.format);
16962
+ return writer;
16963
+ };
16964
+
16965
+ /**
16966
+ * Encodes the specified GcsExportDestination message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.verify|verify} messages.
16967
+ * @function encodeDelimited
16968
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination
16969
+ * @static
16970
+ * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination} message GcsExportDestination message or plain object to encode
16971
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16972
+ * @returns {$protobuf.Writer} Writer
16973
+ */
16974
+ GcsExportDestination.encodeDelimited = function encodeDelimited(message, writer) {
16975
+ return this.encode(message, writer).ldelim();
16976
+ };
16977
+
16978
+ /**
16979
+ * Decodes a GcsExportDestination message from the specified reader or buffer.
16980
+ * @function decode
16981
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination
16982
+ * @static
16983
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16984
+ * @param {number} [length] Message length if known beforehand
16985
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination
16986
+ * @throws {Error} If the payload is not a reader or valid buffer
16987
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16988
+ */
16989
+ GcsExportDestination.decode = function decode(reader, length, error) {
16990
+ if (!(reader instanceof $Reader))
16991
+ reader = $Reader.create(reader);
16992
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination();
16993
+ while (reader.pos < end) {
16994
+ var tag = reader.uint32();
16995
+ if (tag === error)
16996
+ break;
16997
+ switch (tag >>> 3) {
16998
+ case 1: {
16999
+ message.exportUri = reader.string();
17000
+ break;
17001
+ }
17002
+ case 2: {
17003
+ message.format = reader.int32();
17004
+ break;
17005
+ }
17006
+ default:
17007
+ reader.skipType(tag & 7);
17008
+ break;
17009
+ }
17010
+ }
17011
+ return message;
17012
+ };
17013
+
17014
+ /**
17015
+ * Decodes a GcsExportDestination message from the specified reader or buffer, length delimited.
17016
+ * @function decodeDelimited
17017
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination
17018
+ * @static
17019
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17020
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination
17021
+ * @throws {Error} If the payload is not a reader or valid buffer
17022
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17023
+ */
17024
+ GcsExportDestination.decodeDelimited = function decodeDelimited(reader) {
17025
+ if (!(reader instanceof $Reader))
17026
+ reader = new $Reader(reader);
17027
+ return this.decode(reader, reader.uint32());
17028
+ };
17029
+
17030
+ /**
17031
+ * Verifies a GcsExportDestination message.
17032
+ * @function verify
17033
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination
17034
+ * @static
17035
+ * @param {Object.<string,*>} message Plain object to verify
17036
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17037
+ */
17038
+ GcsExportDestination.verify = function verify(message) {
17039
+ if (typeof message !== "object" || message === null)
17040
+ return "object expected";
17041
+ if (message.exportUri != null && message.hasOwnProperty("exportUri"))
17042
+ if (!$util.isString(message.exportUri))
17043
+ return "exportUri: string expected";
17044
+ if (message.format != null && message.hasOwnProperty("format"))
17045
+ switch (message.format) {
17046
+ default:
17047
+ return "format: enum value expected";
17048
+ case 0:
17049
+ case 1:
17050
+ break;
17051
+ }
17052
+ return null;
17053
+ };
17054
+
17055
+ /**
17056
+ * Creates a GcsExportDestination message from a plain object. Also converts values to their respective internal types.
17057
+ * @function fromObject
17058
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination
17059
+ * @static
17060
+ * @param {Object.<string,*>} object Plain object
17061
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination
17062
+ */
17063
+ GcsExportDestination.fromObject = function fromObject(object) {
17064
+ if (object instanceof $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination)
17065
+ return object;
17066
+ var message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination();
17067
+ if (object.exportUri != null)
17068
+ message.exportUri = String(object.exportUri);
17069
+ switch (object.format) {
17070
+ default:
17071
+ if (typeof object.format === "number") {
17072
+ message.format = object.format;
17073
+ break;
17074
+ }
17075
+ break;
17076
+ case "FORMAT_UNSPECIFIED":
17077
+ case 0:
17078
+ message.format = 0;
17079
+ break;
17080
+ case "JSON":
17081
+ case 1:
17082
+ message.format = 1;
17083
+ break;
17084
+ }
17085
+ return message;
17086
+ };
17087
+
17088
+ /**
17089
+ * Creates a plain object from a GcsExportDestination message. Also converts values to other types if specified.
17090
+ * @function toObject
17091
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination
17092
+ * @static
17093
+ * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} message GcsExportDestination
17094
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17095
+ * @returns {Object.<string,*>} Plain object
17096
+ */
17097
+ GcsExportDestination.toObject = function toObject(message, options) {
17098
+ if (!options)
17099
+ options = {};
17100
+ var object = {};
17101
+ if (options.defaults) {
17102
+ object.exportUri = "";
17103
+ object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0;
17104
+ }
17105
+ if (message.exportUri != null && message.hasOwnProperty("exportUri"))
17106
+ object.exportUri = message.exportUri;
17107
+ if (message.format != null && message.hasOwnProperty("format"))
17108
+ object.format = options.enums === String ? $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format[message.format] === undefined ? message.format : $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format[message.format] : message.format;
17109
+ return object;
17110
+ };
17111
+
17112
+ /**
17113
+ * Converts this GcsExportDestination to JSON.
17114
+ * @function toJSON
17115
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination
17116
+ * @instance
17117
+ * @returns {Object.<string,*>} JSON object
17118
+ */
17119
+ GcsExportDestination.prototype.toJSON = function toJSON() {
17120
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17121
+ };
17122
+
17123
+ /**
17124
+ * Gets the default type url for GcsExportDestination
17125
+ * @function getTypeUrl
17126
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination
17127
+ * @static
17128
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
17129
+ * @returns {string} The default type url
17130
+ */
17131
+ GcsExportDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17132
+ if (typeUrlPrefix === undefined) {
17133
+ typeUrlPrefix = "type.googleapis.com";
17134
+ }
17135
+ return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination";
17136
+ };
17137
+
17138
+ /**
17139
+ * Format enum.
17140
+ * @name google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format
17141
+ * @enum {number}
17142
+ * @property {number} FORMAT_UNSPECIFIED=0 FORMAT_UNSPECIFIED value
17143
+ * @property {number} JSON=1 JSON value
17144
+ */
17145
+ GcsExportDestination.Format = (function() {
17146
+ var valuesById = {}, values = Object.create(valuesById);
17147
+ values[valuesById[0] = "FORMAT_UNSPECIFIED"] = 0;
17148
+ values[valuesById[1] = "JSON"] = 1;
17149
+ return values;
17150
+ })();
17151
+
17152
+ return GcsExportDestination;
17153
+ })();
17154
+
17155
+ return ExportDataObjectsRequest;
17156
+ })();
17157
+
17158
+ v1beta.ExportDataObjectsMetadata = (function() {
17159
+
17160
+ /**
17161
+ * Properties of an ExportDataObjectsMetadata.
17162
+ * @memberof google.cloud.vectorsearch.v1beta
17163
+ * @interface IExportDataObjectsMetadata
17164
+ * @property {google.protobuf.ITimestamp|null} [createTime] ExportDataObjectsMetadata createTime
17165
+ * @property {google.protobuf.ITimestamp|null} [finishTime] ExportDataObjectsMetadata finishTime
17166
+ */
17167
+
17168
+ /**
17169
+ * Constructs a new ExportDataObjectsMetadata.
17170
+ * @memberof google.cloud.vectorsearch.v1beta
17171
+ * @classdesc Represents an ExportDataObjectsMetadata.
17172
+ * @implements IExportDataObjectsMetadata
17173
+ * @constructor
17174
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsMetadata=} [properties] Properties to set
17175
+ */
17176
+ function ExportDataObjectsMetadata(properties) {
17177
+ if (properties)
17178
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17179
+ if (properties[keys[i]] != null)
17180
+ this[keys[i]] = properties[keys[i]];
17181
+ }
17182
+
17183
+ /**
17184
+ * ExportDataObjectsMetadata createTime.
17185
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
17186
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata
17187
+ * @instance
17188
+ */
17189
+ ExportDataObjectsMetadata.prototype.createTime = null;
17190
+
17191
+ /**
17192
+ * ExportDataObjectsMetadata finishTime.
17193
+ * @member {google.protobuf.ITimestamp|null|undefined} finishTime
17194
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata
17195
+ * @instance
17196
+ */
17197
+ ExportDataObjectsMetadata.prototype.finishTime = null;
17198
+
17199
+ /**
17200
+ * Creates a new ExportDataObjectsMetadata instance using the specified properties.
17201
+ * @function create
17202
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata
17203
+ * @static
17204
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsMetadata=} [properties] Properties to set
17205
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} ExportDataObjectsMetadata instance
17206
+ */
17207
+ ExportDataObjectsMetadata.create = function create(properties) {
17208
+ return new ExportDataObjectsMetadata(properties);
17209
+ };
17210
+
17211
+ /**
17212
+ * Encodes the specified ExportDataObjectsMetadata message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.verify|verify} messages.
17213
+ * @function encode
17214
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata
17215
+ * @static
17216
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsMetadata} message ExportDataObjectsMetadata message or plain object to encode
17217
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17218
+ * @returns {$protobuf.Writer} Writer
17219
+ */
17220
+ ExportDataObjectsMetadata.encode = function encode(message, writer) {
17221
+ if (!writer)
17222
+ writer = $Writer.create();
17223
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
17224
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
17225
+ if (message.finishTime != null && Object.hasOwnProperty.call(message, "finishTime"))
17226
+ $root.google.protobuf.Timestamp.encode(message.finishTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
17227
+ return writer;
17228
+ };
17229
+
17230
+ /**
17231
+ * Encodes the specified ExportDataObjectsMetadata message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.verify|verify} messages.
17232
+ * @function encodeDelimited
17233
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata
17234
+ * @static
17235
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsMetadata} message ExportDataObjectsMetadata message or plain object to encode
17236
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17237
+ * @returns {$protobuf.Writer} Writer
17238
+ */
17239
+ ExportDataObjectsMetadata.encodeDelimited = function encodeDelimited(message, writer) {
17240
+ return this.encode(message, writer).ldelim();
17241
+ };
17242
+
17243
+ /**
17244
+ * Decodes an ExportDataObjectsMetadata message from the specified reader or buffer.
17245
+ * @function decode
17246
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata
17247
+ * @static
17248
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17249
+ * @param {number} [length] Message length if known beforehand
17250
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} ExportDataObjectsMetadata
17251
+ * @throws {Error} If the payload is not a reader or valid buffer
17252
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17253
+ */
17254
+ ExportDataObjectsMetadata.decode = function decode(reader, length, error) {
17255
+ if (!(reader instanceof $Reader))
17256
+ reader = $Reader.create(reader);
17257
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata();
17258
+ while (reader.pos < end) {
17259
+ var tag = reader.uint32();
17260
+ if (tag === error)
17261
+ break;
17262
+ switch (tag >>> 3) {
17263
+ case 1: {
17264
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
17265
+ break;
17266
+ }
17267
+ case 2: {
17268
+ message.finishTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
17269
+ break;
17270
+ }
17271
+ default:
17272
+ reader.skipType(tag & 7);
17273
+ break;
17274
+ }
17275
+ }
17276
+ return message;
17277
+ };
17278
+
17279
+ /**
17280
+ * Decodes an ExportDataObjectsMetadata message from the specified reader or buffer, length delimited.
17281
+ * @function decodeDelimited
17282
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata
17283
+ * @static
17284
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17285
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} ExportDataObjectsMetadata
17286
+ * @throws {Error} If the payload is not a reader or valid buffer
17287
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17288
+ */
17289
+ ExportDataObjectsMetadata.decodeDelimited = function decodeDelimited(reader) {
17290
+ if (!(reader instanceof $Reader))
17291
+ reader = new $Reader(reader);
17292
+ return this.decode(reader, reader.uint32());
17293
+ };
17294
+
17295
+ /**
17296
+ * Verifies an ExportDataObjectsMetadata message.
17297
+ * @function verify
17298
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata
17299
+ * @static
17300
+ * @param {Object.<string,*>} message Plain object to verify
17301
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17302
+ */
17303
+ ExportDataObjectsMetadata.verify = function verify(message) {
17304
+ if (typeof message !== "object" || message === null)
17305
+ return "object expected";
17306
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
17307
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
17308
+ if (error)
17309
+ return "createTime." + error;
17310
+ }
17311
+ if (message.finishTime != null && message.hasOwnProperty("finishTime")) {
17312
+ var error = $root.google.protobuf.Timestamp.verify(message.finishTime);
17313
+ if (error)
17314
+ return "finishTime." + error;
17315
+ }
17316
+ return null;
17317
+ };
17318
+
17319
+ /**
17320
+ * Creates an ExportDataObjectsMetadata message from a plain object. Also converts values to their respective internal types.
17321
+ * @function fromObject
17322
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata
17323
+ * @static
17324
+ * @param {Object.<string,*>} object Plain object
17325
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} ExportDataObjectsMetadata
17326
+ */
17327
+ ExportDataObjectsMetadata.fromObject = function fromObject(object) {
17328
+ if (object instanceof $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata)
17329
+ return object;
17330
+ var message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata();
17331
+ if (object.createTime != null) {
17332
+ if (typeof object.createTime !== "object")
17333
+ throw TypeError(".google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.createTime: object expected");
17334
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
17335
+ }
17336
+ if (object.finishTime != null) {
17337
+ if (typeof object.finishTime !== "object")
17338
+ throw TypeError(".google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.finishTime: object expected");
17339
+ message.finishTime = $root.google.protobuf.Timestamp.fromObject(object.finishTime);
17340
+ }
17341
+ return message;
17342
+ };
17343
+
17344
+ /**
17345
+ * Creates a plain object from an ExportDataObjectsMetadata message. Also converts values to other types if specified.
17346
+ * @function toObject
17347
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata
17348
+ * @static
17349
+ * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} message ExportDataObjectsMetadata
17350
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17351
+ * @returns {Object.<string,*>} Plain object
17352
+ */
17353
+ ExportDataObjectsMetadata.toObject = function toObject(message, options) {
17354
+ if (!options)
17355
+ options = {};
17356
+ var object = {};
17357
+ if (options.defaults) {
17358
+ object.createTime = null;
17359
+ object.finishTime = null;
17360
+ }
17361
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
17362
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
17363
+ if (message.finishTime != null && message.hasOwnProperty("finishTime"))
17364
+ object.finishTime = $root.google.protobuf.Timestamp.toObject(message.finishTime, options);
17365
+ return object;
17366
+ };
17367
+
17368
+ /**
17369
+ * Converts this ExportDataObjectsMetadata to JSON.
17370
+ * @function toJSON
17371
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata
17372
+ * @instance
17373
+ * @returns {Object.<string,*>} JSON object
17374
+ */
17375
+ ExportDataObjectsMetadata.prototype.toJSON = function toJSON() {
17376
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17377
+ };
17378
+
17379
+ /**
17380
+ * Gets the default type url for ExportDataObjectsMetadata
17381
+ * @function getTypeUrl
17382
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata
17383
+ * @static
17384
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
17385
+ * @returns {string} The default type url
17386
+ */
17387
+ ExportDataObjectsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17388
+ if (typeUrlPrefix === undefined) {
17389
+ typeUrlPrefix = "type.googleapis.com";
17390
+ }
17391
+ return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata";
17392
+ };
17393
+
17394
+ return ExportDataObjectsMetadata;
17395
+ })();
17396
+
17397
+ v1beta.ExportDataObjectsResponse = (function() {
17398
+
17399
+ /**
17400
+ * Properties of an ExportDataObjectsResponse.
17401
+ * @memberof google.cloud.vectorsearch.v1beta
17402
+ * @interface IExportDataObjectsResponse
17403
+ */
17404
+
17405
+ /**
17406
+ * Constructs a new ExportDataObjectsResponse.
17407
+ * @memberof google.cloud.vectorsearch.v1beta
17408
+ * @classdesc Represents an ExportDataObjectsResponse.
17409
+ * @implements IExportDataObjectsResponse
17410
+ * @constructor
17411
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsResponse=} [properties] Properties to set
17412
+ */
17413
+ function ExportDataObjectsResponse(properties) {
17414
+ if (properties)
17415
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17416
+ if (properties[keys[i]] != null)
17417
+ this[keys[i]] = properties[keys[i]];
17418
+ }
17419
+
17420
+ /**
17421
+ * Creates a new ExportDataObjectsResponse instance using the specified properties.
17422
+ * @function create
17423
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse
17424
+ * @static
17425
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsResponse=} [properties] Properties to set
17426
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} ExportDataObjectsResponse instance
17427
+ */
17428
+ ExportDataObjectsResponse.create = function create(properties) {
17429
+ return new ExportDataObjectsResponse(properties);
17430
+ };
17431
+
17432
+ /**
17433
+ * Encodes the specified ExportDataObjectsResponse message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse.verify|verify} messages.
17434
+ * @function encode
17435
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse
17436
+ * @static
17437
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsResponse} message ExportDataObjectsResponse message or plain object to encode
17438
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17439
+ * @returns {$protobuf.Writer} Writer
17440
+ */
17441
+ ExportDataObjectsResponse.encode = function encode(message, writer) {
17442
+ if (!writer)
17443
+ writer = $Writer.create();
17444
+ return writer;
17445
+ };
17446
+
17447
+ /**
17448
+ * Encodes the specified ExportDataObjectsResponse message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse.verify|verify} messages.
17449
+ * @function encodeDelimited
17450
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse
17451
+ * @static
17452
+ * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsResponse} message ExportDataObjectsResponse message or plain object to encode
17453
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17454
+ * @returns {$protobuf.Writer} Writer
17455
+ */
17456
+ ExportDataObjectsResponse.encodeDelimited = function encodeDelimited(message, writer) {
17457
+ return this.encode(message, writer).ldelim();
17458
+ };
17459
+
17460
+ /**
17461
+ * Decodes an ExportDataObjectsResponse message from the specified reader or buffer.
17462
+ * @function decode
17463
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse
17464
+ * @static
17465
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17466
+ * @param {number} [length] Message length if known beforehand
17467
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} ExportDataObjectsResponse
17468
+ * @throws {Error} If the payload is not a reader or valid buffer
17469
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17470
+ */
17471
+ ExportDataObjectsResponse.decode = function decode(reader, length, error) {
17472
+ if (!(reader instanceof $Reader))
17473
+ reader = $Reader.create(reader);
17474
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse();
17475
+ while (reader.pos < end) {
17476
+ var tag = reader.uint32();
17477
+ if (tag === error)
17478
+ break;
17479
+ switch (tag >>> 3) {
17480
+ default:
17481
+ reader.skipType(tag & 7);
17482
+ break;
17483
+ }
17484
+ }
17485
+ return message;
17486
+ };
17487
+
17488
+ /**
17489
+ * Decodes an ExportDataObjectsResponse message from the specified reader or buffer, length delimited.
17490
+ * @function decodeDelimited
17491
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse
17492
+ * @static
17493
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17494
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} ExportDataObjectsResponse
17495
+ * @throws {Error} If the payload is not a reader or valid buffer
17496
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17497
+ */
17498
+ ExportDataObjectsResponse.decodeDelimited = function decodeDelimited(reader) {
17499
+ if (!(reader instanceof $Reader))
17500
+ reader = new $Reader(reader);
17501
+ return this.decode(reader, reader.uint32());
17502
+ };
17503
+
17504
+ /**
17505
+ * Verifies an ExportDataObjectsResponse message.
17506
+ * @function verify
17507
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse
17508
+ * @static
17509
+ * @param {Object.<string,*>} message Plain object to verify
17510
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17511
+ */
17512
+ ExportDataObjectsResponse.verify = function verify(message) {
17513
+ if (typeof message !== "object" || message === null)
17514
+ return "object expected";
17515
+ return null;
17516
+ };
17517
+
17518
+ /**
17519
+ * Creates an ExportDataObjectsResponse message from a plain object. Also converts values to their respective internal types.
17520
+ * @function fromObject
17521
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse
17522
+ * @static
17523
+ * @param {Object.<string,*>} object Plain object
17524
+ * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} ExportDataObjectsResponse
17525
+ */
17526
+ ExportDataObjectsResponse.fromObject = function fromObject(object) {
17527
+ if (object instanceof $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse)
17528
+ return object;
17529
+ return new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse();
17530
+ };
17531
+
17532
+ /**
17533
+ * Creates a plain object from an ExportDataObjectsResponse message. Also converts values to other types if specified.
17534
+ * @function toObject
17535
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse
17536
+ * @static
17537
+ * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} message ExportDataObjectsResponse
17538
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17539
+ * @returns {Object.<string,*>} Plain object
17540
+ */
17541
+ ExportDataObjectsResponse.toObject = function toObject() {
17542
+ return {};
17543
+ };
17544
+
17545
+ /**
17546
+ * Converts this ExportDataObjectsResponse to JSON.
17547
+ * @function toJSON
17548
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse
17549
+ * @instance
17550
+ * @returns {Object.<string,*>} JSON object
17551
+ */
17552
+ ExportDataObjectsResponse.prototype.toJSON = function toJSON() {
17553
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17554
+ };
17555
+
17556
+ /**
17557
+ * Gets the default type url for ExportDataObjectsResponse
17558
+ * @function getTypeUrl
17559
+ * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse
17560
+ * @static
17561
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
17562
+ * @returns {string} The default type url
17563
+ */
17564
+ ExportDataObjectsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17565
+ if (typeUrlPrefix === undefined) {
17566
+ typeUrlPrefix = "type.googleapis.com";
17567
+ }
17568
+ return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse";
17569
+ };
17570
+
17571
+ return ExportDataObjectsResponse;
17572
+ })();
17573
+
16531
17574
  return v1beta;
16532
17575
  })();
16533
17576