@@ -605,6 +605,9 @@ export namespace google {
605
605
606
606
/** IndexField arrayConfig */
607
607
arrayConfig ?: ( google . firestore . admin . v1 . Index . IndexField . ArrayConfig | null ) ;
608
+
609
+ /** IndexField vectorConfig */
610
+ vectorConfig ?: ( google . firestore . admin . v1 . Index . IndexField . IVectorConfig | null ) ;
608
611
}
609
612
610
613
/** Represents an IndexField. */
@@ -625,8 +628,11 @@ export namespace google {
625
628
/** IndexField arrayConfig. */
626
629
public arrayConfig ?: ( google . firestore . admin . v1 . Index . IndexField . ArrayConfig | null ) ;
627
630
631
+ /** IndexField vectorConfig. */
632
+ public vectorConfig ?: ( google . firestore . admin . v1 . Index . IndexField . IVectorConfig | null ) ;
633
+
628
634
/** IndexField valueMode. */
629
- public valueMode ?: ( "order" | "arrayConfig" ) ;
635
+ public valueMode ?: ( "order" | "arrayConfig" | "vectorConfig" ) ;
630
636
631
637
/**
632
638
* Creates an IndexField message from a plain object. Also converts values to their respective internal types.
@@ -666,6 +672,108 @@ export namespace google {
666
672
/** ArrayConfig enum. */
667
673
type ArrayConfig =
668
674
"ARRAY_CONFIG_UNSPECIFIED" | "CONTAINS" ;
675
+
676
+ /** Properties of a VectorConfig. */
677
+ interface IVectorConfig {
678
+
679
+ /** VectorConfig dimension */
680
+ dimension ?: ( number | null ) ;
681
+
682
+ /** VectorConfig flat */
683
+ flat ?: ( google . firestore . admin . v1 . Index . IndexField . VectorConfig . IFlatIndex | null ) ;
684
+ }
685
+
686
+ /** Represents a VectorConfig. */
687
+ class VectorConfig implements IVectorConfig {
688
+
689
+ /**
690
+ * Constructs a new VectorConfig.
691
+ * @param [properties] Properties to set
692
+ */
693
+ constructor ( properties ?: google . firestore . admin . v1 . Index . IndexField . IVectorConfig ) ;
694
+
695
+ /** VectorConfig dimension. */
696
+ public dimension : number ;
697
+
698
+ /** VectorConfig flat. */
699
+ public flat ?: ( google . firestore . admin . v1 . Index . IndexField . VectorConfig . IFlatIndex | null ) ;
700
+
701
+ /** VectorConfig type. */
702
+ public type ?: "flat" ;
703
+
704
+ /**
705
+ * Creates a VectorConfig message from a plain object. Also converts values to their respective internal types.
706
+ * @param object Plain object
707
+ * @returns VectorConfig
708
+ */
709
+ public static fromObject ( object : { [ k : string ] : any } ) : google . firestore . admin . v1 . Index . IndexField . VectorConfig ;
710
+
711
+ /**
712
+ * Creates a plain object from a VectorConfig message. Also converts values to other types if specified.
713
+ * @param message VectorConfig
714
+ * @param [options] Conversion options
715
+ * @returns Plain object
716
+ */
717
+ public static toObject ( message : google . firestore . admin . v1 . Index . IndexField . VectorConfig , options ?: $protobuf . IConversionOptions ) : { [ k : string ] : any } ;
718
+
719
+ /**
720
+ * Converts this VectorConfig to JSON.
721
+ * @returns JSON object
722
+ */
723
+ public toJSON ( ) : { [ k : string ] : any } ;
724
+
725
+ /**
726
+ * Gets the default type url for VectorConfig
727
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
728
+ * @returns The default type url
729
+ */
730
+ public static getTypeUrl ( typeUrlPrefix ?: string ) : string ;
731
+ }
732
+
733
+ namespace VectorConfig {
734
+
735
+ /** Properties of a FlatIndex. */
736
+ interface IFlatIndex {
737
+ }
738
+
739
+ /** Represents a FlatIndex. */
740
+ class FlatIndex implements IFlatIndex {
741
+
742
+ /**
743
+ * Constructs a new FlatIndex.
744
+ * @param [properties] Properties to set
745
+ */
746
+ constructor ( properties ?: google . firestore . admin . v1 . Index . IndexField . VectorConfig . IFlatIndex ) ;
747
+
748
+ /**
749
+ * Creates a FlatIndex message from a plain object. Also converts values to their respective internal types.
750
+ * @param object Plain object
751
+ * @returns FlatIndex
752
+ */
753
+ public static fromObject ( object : { [ k : string ] : any } ) : google . firestore . admin . v1 . Index . IndexField . VectorConfig . FlatIndex ;
754
+
755
+ /**
756
+ * Creates a plain object from a FlatIndex message. Also converts values to other types if specified.
757
+ * @param message FlatIndex
758
+ * @param [options] Conversion options
759
+ * @returns Plain object
760
+ */
761
+ public static toObject ( message : google . firestore . admin . v1 . Index . IndexField . VectorConfig . FlatIndex , options ?: $protobuf . IConversionOptions ) : { [ k : string ] : any } ;
762
+
763
+ /**
764
+ * Converts this FlatIndex to JSON.
765
+ * @returns JSON object
766
+ */
767
+ public toJSON ( ) : { [ k : string ] : any } ;
768
+
769
+ /**
770
+ * Gets the default type url for FlatIndex
771
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
772
+ * @returns The default type url
773
+ */
774
+ public static getTypeUrl ( typeUrlPrefix ?: string ) : string ;
775
+ }
776
+ }
669
777
}
670
778
671
779
/** State enum. */
0 commit comments