@google-cloud/discoveryengine 2.4.0 → 2.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.
@@ -1385,6 +1385,17 @@
1385
1385
  "options": {
1386
1386
  "(google.api.field_behavior)": "OPTIONAL"
1387
1387
  }
1388
+ },
1389
+ "rankingExpression": {
1390
+ "type": "string",
1391
+ "id": 26
1392
+ },
1393
+ "rankingExpressionBackend": {
1394
+ "type": "RankingExpressionBackend",
1395
+ "id": 53,
1396
+ "options": {
1397
+ "(google.api.field_behavior)": "OPTIONAL"
1398
+ }
1388
1399
  }
1389
1400
  },
1390
1401
  "nested": {
@@ -1848,6 +1859,23 @@
1848
1859
  "MEDIUM": 3,
1849
1860
  "HIGH": 4
1850
1861
  }
1862
+ },
1863
+ "RankingExpressionBackend": {
1864
+ "values": {
1865
+ "RANKING_EXPRESSION_BACKEND_UNSPECIFIED": 0,
1866
+ "RANK_BY_EMBEDDING": 3,
1867
+ "RANK_BY_FORMULA": 4
1868
+ },
1869
+ "reserved": [
1870
+ [
1871
+ 1,
1872
+ 1
1873
+ ],
1874
+ [
1875
+ 2,
1876
+ 2
1877
+ ]
1878
+ ]
1851
1879
  }
1852
1880
  }
1853
1881
  },
@@ -1923,6 +1951,153 @@
1923
1951
  "options": {
1924
1952
  "(google.api.field_behavior)": "OUTPUT_ONLY"
1925
1953
  }
1954
+ },
1955
+ "rankSignals": {
1956
+ "type": "RankSignals",
1957
+ "id": 7,
1958
+ "options": {
1959
+ "(google.api.field_behavior)": "OPTIONAL"
1960
+ }
1961
+ }
1962
+ },
1963
+ "nested": {
1964
+ "RankSignals": {
1965
+ "oneofs": {
1966
+ "_keywordSimilarityScore": {
1967
+ "oneof": [
1968
+ "keywordSimilarityScore"
1969
+ ]
1970
+ },
1971
+ "_relevanceScore": {
1972
+ "oneof": [
1973
+ "relevanceScore"
1974
+ ]
1975
+ },
1976
+ "_semanticSimilarityScore": {
1977
+ "oneof": [
1978
+ "semanticSimilarityScore"
1979
+ ]
1980
+ },
1981
+ "_pctrRank": {
1982
+ "oneof": [
1983
+ "pctrRank"
1984
+ ]
1985
+ },
1986
+ "_topicalityRank": {
1987
+ "oneof": [
1988
+ "topicalityRank"
1989
+ ]
1990
+ },
1991
+ "_documentAge": {
1992
+ "oneof": [
1993
+ "documentAge"
1994
+ ]
1995
+ },
1996
+ "_boostingFactor": {
1997
+ "oneof": [
1998
+ "boostingFactor"
1999
+ ]
2000
+ }
2001
+ },
2002
+ "fields": {
2003
+ "keywordSimilarityScore": {
2004
+ "type": "float",
2005
+ "id": 1,
2006
+ "options": {
2007
+ "(google.api.field_behavior)": "OPTIONAL",
2008
+ "proto3_optional": true
2009
+ }
2010
+ },
2011
+ "relevanceScore": {
2012
+ "type": "float",
2013
+ "id": 2,
2014
+ "options": {
2015
+ "(google.api.field_behavior)": "OPTIONAL",
2016
+ "proto3_optional": true
2017
+ }
2018
+ },
2019
+ "semanticSimilarityScore": {
2020
+ "type": "float",
2021
+ "id": 3,
2022
+ "options": {
2023
+ "(google.api.field_behavior)": "OPTIONAL",
2024
+ "proto3_optional": true
2025
+ }
2026
+ },
2027
+ "pctrRank": {
2028
+ "type": "float",
2029
+ "id": 4,
2030
+ "options": {
2031
+ "(google.api.field_behavior)": "OPTIONAL",
2032
+ "proto3_optional": true
2033
+ }
2034
+ },
2035
+ "topicalityRank": {
2036
+ "type": "float",
2037
+ "id": 6,
2038
+ "options": {
2039
+ "(google.api.field_behavior)": "OPTIONAL",
2040
+ "proto3_optional": true
2041
+ }
2042
+ },
2043
+ "documentAge": {
2044
+ "type": "float",
2045
+ "id": 7,
2046
+ "options": {
2047
+ "(google.api.field_behavior)": "OPTIONAL",
2048
+ "proto3_optional": true
2049
+ }
2050
+ },
2051
+ "boostingFactor": {
2052
+ "type": "float",
2053
+ "id": 8,
2054
+ "options": {
2055
+ "(google.api.field_behavior)": "OPTIONAL",
2056
+ "proto3_optional": true
2057
+ }
2058
+ },
2059
+ "defaultRank": {
2060
+ "type": "float",
2061
+ "id": 32,
2062
+ "options": {
2063
+ "(google.api.field_behavior)": "OPTIONAL"
2064
+ }
2065
+ },
2066
+ "customSignals": {
2067
+ "rule": "repeated",
2068
+ "type": "CustomSignal",
2069
+ "id": 33,
2070
+ "options": {
2071
+ "(google.api.field_behavior)": "OPTIONAL"
2072
+ }
2073
+ }
2074
+ },
2075
+ "reserved": [
2076
+ [
2077
+ 5,
2078
+ 5
2079
+ ]
2080
+ ],
2081
+ "nested": {
2082
+ "CustomSignal": {
2083
+ "fields": {
2084
+ "name": {
2085
+ "type": "string",
2086
+ "id": 1,
2087
+ "options": {
2088
+ "(google.api.field_behavior)": "OPTIONAL"
2089
+ }
2090
+ },
2091
+ "value": {
2092
+ "type": "float",
2093
+ "id": 2,
2094
+ "options": {
2095
+ "(google.api.field_behavior)": "OPTIONAL"
2096
+ }
2097
+ }
2098
+ }
2099
+ }
2100
+ }
1926
2101
  }
1927
2102
  }
1928
2103
  },
@@ -15968,6 +16143,13 @@
15968
16143
  "type": "string",
15969
16144
  "id": 26
15970
16145
  },
16146
+ "rankingExpressionBackend": {
16147
+ "type": "RankingExpressionBackend",
16148
+ "id": 53,
16149
+ "options": {
16150
+ "(google.api.field_behavior)": "OPTIONAL"
16151
+ }
16152
+ },
15971
16153
  "safeSearch": {
15972
16154
  "type": "bool",
15973
16155
  "id": 20
@@ -16455,6 +16637,23 @@
16455
16637
  "MEDIUM": 3,
16456
16638
  "HIGH": 4
16457
16639
  }
16640
+ },
16641
+ "RankingExpressionBackend": {
16642
+ "values": {
16643
+ "RANKING_EXPRESSION_BACKEND_UNSPECIFIED": 0,
16644
+ "RANK_BY_EMBEDDING": 3,
16645
+ "RANK_BY_FORMULA": 4
16646
+ },
16647
+ "reserved": [
16648
+ [
16649
+ 1,
16650
+ 1
16651
+ ],
16652
+ [
16653
+ 2,
16654
+ 2
16655
+ ]
16656
+ ]
16458
16657
  }
16459
16658
  }
16460
16659
  },
@@ -16545,6 +16744,153 @@
16545
16744
  "keyType": "string",
16546
16745
  "type": "DoubleList",
16547
16746
  "id": 4
16747
+ },
16748
+ "rankSignals": {
16749
+ "type": "RankSignals",
16750
+ "id": 7,
16751
+ "options": {
16752
+ "(google.api.field_behavior)": "OPTIONAL"
16753
+ }
16754
+ }
16755
+ },
16756
+ "nested": {
16757
+ "RankSignals": {
16758
+ "oneofs": {
16759
+ "_keywordSimilarityScore": {
16760
+ "oneof": [
16761
+ "keywordSimilarityScore"
16762
+ ]
16763
+ },
16764
+ "_relevanceScore": {
16765
+ "oneof": [
16766
+ "relevanceScore"
16767
+ ]
16768
+ },
16769
+ "_semanticSimilarityScore": {
16770
+ "oneof": [
16771
+ "semanticSimilarityScore"
16772
+ ]
16773
+ },
16774
+ "_pctrRank": {
16775
+ "oneof": [
16776
+ "pctrRank"
16777
+ ]
16778
+ },
16779
+ "_topicalityRank": {
16780
+ "oneof": [
16781
+ "topicalityRank"
16782
+ ]
16783
+ },
16784
+ "_documentAge": {
16785
+ "oneof": [
16786
+ "documentAge"
16787
+ ]
16788
+ },
16789
+ "_boostingFactor": {
16790
+ "oneof": [
16791
+ "boostingFactor"
16792
+ ]
16793
+ }
16794
+ },
16795
+ "fields": {
16796
+ "keywordSimilarityScore": {
16797
+ "type": "float",
16798
+ "id": 1,
16799
+ "options": {
16800
+ "(google.api.field_behavior)": "OPTIONAL",
16801
+ "proto3_optional": true
16802
+ }
16803
+ },
16804
+ "relevanceScore": {
16805
+ "type": "float",
16806
+ "id": 2,
16807
+ "options": {
16808
+ "(google.api.field_behavior)": "OPTIONAL",
16809
+ "proto3_optional": true
16810
+ }
16811
+ },
16812
+ "semanticSimilarityScore": {
16813
+ "type": "float",
16814
+ "id": 3,
16815
+ "options": {
16816
+ "(google.api.field_behavior)": "OPTIONAL",
16817
+ "proto3_optional": true
16818
+ }
16819
+ },
16820
+ "pctrRank": {
16821
+ "type": "float",
16822
+ "id": 4,
16823
+ "options": {
16824
+ "(google.api.field_behavior)": "OPTIONAL",
16825
+ "proto3_optional": true
16826
+ }
16827
+ },
16828
+ "topicalityRank": {
16829
+ "type": "float",
16830
+ "id": 6,
16831
+ "options": {
16832
+ "(google.api.field_behavior)": "OPTIONAL",
16833
+ "proto3_optional": true
16834
+ }
16835
+ },
16836
+ "documentAge": {
16837
+ "type": "float",
16838
+ "id": 7,
16839
+ "options": {
16840
+ "(google.api.field_behavior)": "OPTIONAL",
16841
+ "proto3_optional": true
16842
+ }
16843
+ },
16844
+ "boostingFactor": {
16845
+ "type": "float",
16846
+ "id": 8,
16847
+ "options": {
16848
+ "(google.api.field_behavior)": "OPTIONAL",
16849
+ "proto3_optional": true
16850
+ }
16851
+ },
16852
+ "defaultRank": {
16853
+ "type": "float",
16854
+ "id": 32,
16855
+ "options": {
16856
+ "(google.api.field_behavior)": "OPTIONAL"
16857
+ }
16858
+ },
16859
+ "customSignals": {
16860
+ "rule": "repeated",
16861
+ "type": "CustomSignal",
16862
+ "id": 33,
16863
+ "options": {
16864
+ "(google.api.field_behavior)": "OPTIONAL"
16865
+ }
16866
+ }
16867
+ },
16868
+ "reserved": [
16869
+ [
16870
+ 5,
16871
+ 5
16872
+ ]
16873
+ ],
16874
+ "nested": {
16875
+ "CustomSignal": {
16876
+ "fields": {
16877
+ "name": {
16878
+ "type": "string",
16879
+ "id": 1,
16880
+ "options": {
16881
+ "(google.api.field_behavior)": "OPTIONAL"
16882
+ }
16883
+ },
16884
+ "value": {
16885
+ "type": "float",
16886
+ "id": 2,
16887
+ "options": {
16888
+ "(google.api.field_behavior)": "OPTIONAL"
16889
+ }
16890
+ }
16891
+ }
16892
+ }
16893
+ }
16548
16894
  }
16549
16895
  }
16550
16896
  },
@@ -27685,6 +28031,13 @@
27685
28031
  "type": "string",
27686
28032
  "id": 26
27687
28033
  },
28034
+ "rankingExpressionBackend": {
28035
+ "type": "RankingExpressionBackend",
28036
+ "id": 53,
28037
+ "options": {
28038
+ "(google.api.field_behavior)": "OPTIONAL"
28039
+ }
28040
+ },
27688
28041
  "safeSearch": {
27689
28042
  "type": "bool",
27690
28043
  "id": 20
@@ -28203,6 +28556,23 @@
28203
28556
  "MEDIUM": 3,
28204
28557
  "HIGH": 4
28205
28558
  }
28559
+ },
28560
+ "RankingExpressionBackend": {
28561
+ "values": {
28562
+ "RANKING_EXPRESSION_BACKEND_UNSPECIFIED": 0,
28563
+ "RANK_BY_EMBEDDING": 3,
28564
+ "RANK_BY_FORMULA": 4
28565
+ },
28566
+ "reserved": [
28567
+ [
28568
+ 1,
28569
+ 1
28570
+ ],
28571
+ [
28572
+ 2,
28573
+ 2
28574
+ ]
28575
+ ]
28206
28576
  }
28207
28577
  }
28208
28578
  },
@@ -28293,6 +28663,153 @@
28293
28663
  "keyType": "string",
28294
28664
  "type": "DoubleList",
28295
28665
  "id": 4
28666
+ },
28667
+ "rankSignals": {
28668
+ "type": "RankSignals",
28669
+ "id": 7,
28670
+ "options": {
28671
+ "(google.api.field_behavior)": "OPTIONAL"
28672
+ }
28673
+ }
28674
+ },
28675
+ "nested": {
28676
+ "RankSignals": {
28677
+ "oneofs": {
28678
+ "_keywordSimilarityScore": {
28679
+ "oneof": [
28680
+ "keywordSimilarityScore"
28681
+ ]
28682
+ },
28683
+ "_relevanceScore": {
28684
+ "oneof": [
28685
+ "relevanceScore"
28686
+ ]
28687
+ },
28688
+ "_semanticSimilarityScore": {
28689
+ "oneof": [
28690
+ "semanticSimilarityScore"
28691
+ ]
28692
+ },
28693
+ "_pctrRank": {
28694
+ "oneof": [
28695
+ "pctrRank"
28696
+ ]
28697
+ },
28698
+ "_topicalityRank": {
28699
+ "oneof": [
28700
+ "topicalityRank"
28701
+ ]
28702
+ },
28703
+ "_documentAge": {
28704
+ "oneof": [
28705
+ "documentAge"
28706
+ ]
28707
+ },
28708
+ "_boostingFactor": {
28709
+ "oneof": [
28710
+ "boostingFactor"
28711
+ ]
28712
+ }
28713
+ },
28714
+ "fields": {
28715
+ "keywordSimilarityScore": {
28716
+ "type": "float",
28717
+ "id": 1,
28718
+ "options": {
28719
+ "(google.api.field_behavior)": "OPTIONAL",
28720
+ "proto3_optional": true
28721
+ }
28722
+ },
28723
+ "relevanceScore": {
28724
+ "type": "float",
28725
+ "id": 2,
28726
+ "options": {
28727
+ "(google.api.field_behavior)": "OPTIONAL",
28728
+ "proto3_optional": true
28729
+ }
28730
+ },
28731
+ "semanticSimilarityScore": {
28732
+ "type": "float",
28733
+ "id": 3,
28734
+ "options": {
28735
+ "(google.api.field_behavior)": "OPTIONAL",
28736
+ "proto3_optional": true
28737
+ }
28738
+ },
28739
+ "pctrRank": {
28740
+ "type": "float",
28741
+ "id": 4,
28742
+ "options": {
28743
+ "(google.api.field_behavior)": "OPTIONAL",
28744
+ "proto3_optional": true
28745
+ }
28746
+ },
28747
+ "topicalityRank": {
28748
+ "type": "float",
28749
+ "id": 6,
28750
+ "options": {
28751
+ "(google.api.field_behavior)": "OPTIONAL",
28752
+ "proto3_optional": true
28753
+ }
28754
+ },
28755
+ "documentAge": {
28756
+ "type": "float",
28757
+ "id": 7,
28758
+ "options": {
28759
+ "(google.api.field_behavior)": "OPTIONAL",
28760
+ "proto3_optional": true
28761
+ }
28762
+ },
28763
+ "boostingFactor": {
28764
+ "type": "float",
28765
+ "id": 8,
28766
+ "options": {
28767
+ "(google.api.field_behavior)": "OPTIONAL",
28768
+ "proto3_optional": true
28769
+ }
28770
+ },
28771
+ "defaultRank": {
28772
+ "type": "float",
28773
+ "id": 32,
28774
+ "options": {
28775
+ "(google.api.field_behavior)": "OPTIONAL"
28776
+ }
28777
+ },
28778
+ "customSignals": {
28779
+ "rule": "repeated",
28780
+ "type": "CustomSignal",
28781
+ "id": 33,
28782
+ "options": {
28783
+ "(google.api.field_behavior)": "OPTIONAL"
28784
+ }
28785
+ }
28786
+ },
28787
+ "reserved": [
28788
+ [
28789
+ 5,
28790
+ 5
28791
+ ]
28792
+ ],
28793
+ "nested": {
28794
+ "CustomSignal": {
28795
+ "fields": {
28796
+ "name": {
28797
+ "type": "string",
28798
+ "id": 1,
28799
+ "options": {
28800
+ "(google.api.field_behavior)": "OPTIONAL"
28801
+ }
28802
+ },
28803
+ "value": {
28804
+ "type": "float",
28805
+ "id": 2,
28806
+ "options": {
28807
+ "(google.api.field_behavior)": "OPTIONAL"
28808
+ }
28809
+ }
28810
+ }
28811
+ }
28812
+ }
28296
28813
  }
28297
28814
  }
28298
28815
  },
@@ -485,7 +485,7 @@ class IdentityMappingStoreServiceClient {
485
485
  options.otherArgs = options.otherArgs || {};
486
486
  options.otherArgs.headers = options.otherArgs.headers || {};
487
487
  options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
488
- 'identity_mapping_store': request.identityMappingStore ?? '',
488
+ 'identity_mapping_store': request.identityMappingStore?.toString() ?? '',
489
489
  });
490
490
  this.initialize().catch(err => { throw err; });
491
491
  const wrappedCallback = callback
@@ -533,7 +533,7 @@ class IdentityMappingStoreServiceClient {
533
533
  options.otherArgs = options.otherArgs || {};
534
534
  options.otherArgs.headers = options.otherArgs.headers || {};
535
535
  options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
536
- 'identity_mapping_store': request.identityMappingStore ?? '',
536
+ 'identity_mapping_store': request.identityMappingStore?.toString() ?? '',
537
537
  });
538
538
  this.initialize().catch(err => { throw err; });
539
539
  const wrappedCallback = callback
@@ -581,7 +581,7 @@ class IdentityMappingStoreServiceClient {
581
581
  options.otherArgs = options.otherArgs || {};
582
582
  options.otherArgs.headers = options.otherArgs.headers || {};
583
583
  options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
584
- 'identity_mapping_store': request.identityMappingStore ?? '',
584
+ 'identity_mapping_store': request.identityMappingStore?.toString() ?? '',
585
585
  });
586
586
  this.initialize().catch(err => { throw err; });
587
587
  const wrappedCallback = callback
@@ -634,7 +634,7 @@ class IdentityMappingStoreServiceClient {
634
634
  options.otherArgs = options.otherArgs || {};
635
635
  options.otherArgs.headers = options.otherArgs.headers || {};
636
636
  options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
637
- 'identity_mapping_store': request.identityMappingStore ?? '',
637
+ 'identity_mapping_store': request.identityMappingStore?.toString() ?? '',
638
638
  });
639
639
  const defaultCallSettings = this._defaults['listIdentityMappings'];
640
640
  const callSettings = defaultCallSettings.merge(options);
@@ -681,7 +681,7 @@ class IdentityMappingStoreServiceClient {
681
681
  options.otherArgs = options.otherArgs || {};
682
682
  options.otherArgs.headers = options.otherArgs.headers || {};
683
683
  options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
684
- 'identity_mapping_store': request.identityMappingStore ?? '',
684
+ 'identity_mapping_store': request.identityMappingStore?.toString() ?? '',
685
685
  });
686
686
  const defaultCallSettings = this._defaults['listIdentityMappings'];
687
687
  const callSettings = defaultCallSettings.merge(options);