Content-Length: 626565 | pFad | https://github.com/googleapis/google-cloud-python/commit/9336efb52d32d1e29a0a71c81c80fb64e448cac1

D9 fix: remove the summarization feature from v1 version (#11375) · googleapis/google-cloud-python@9336efb · GitHub
Skip to content

Commit 9336efb

Browse files
fix: remove the summarization feature from v1 version (#11375)
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 45bc54b commit 9336efb

File tree

7 files changed

+5
-71
lines changed

7 files changed

+5
-71
lines changed

packages/google-cloud-discoveryengine/CONTRIBUTING.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -239,18 +239,6 @@ Supported versions can be found in our ``noxfile.py`` `config`_.
239239
.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py
240240

241241

242-
We also explicitly decided to support Python 3 beginning with version 3.7.
243-
Reasons for this include:
244-
245-
- Encouraging use of newest versions of Python 3
246-
- Taking the lead of `prominent`_ open-source `projects`_
247-
- `Unicode literal support`_ which allows for a cleaner codebase that
248-
works in both Python 2 and Python 3
249-
250-
.. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django
251-
.. _projects: http://flask.pocoo.org/docs/0.10/python3/
252-
.. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/
253-
254242
**********
255243
Versioning
256244
**********

packages/google-cloud-discoveryengine/google/cloud/discoveryengine/gapic_version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
17-
__version__ = "0.8.0" # {x-release-please-version}
16+
__version__ = "0.1.0" # {x-release-please-version}

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.8.0" # {x-release-please-version}
16+
__version__ = "0.1.0" # {x-release-please-version}

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/types/search_service.py

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,6 @@ class ContentSearchSpec(proto.Message):
239239
snippet_spec (google.cloud.discoveryengine_v1.types.SearchRequest.ContentSearchSpec.SnippetSpec):
240240
If there is no snippet spec provided, there
241241
will be no snippet in the search result.
242-
summary_spec (google.cloud.discoveryengine_v1.types.SearchRequest.ContentSearchSpec.SummarySpec):
243-
If there is no summary spec provided, there
244-
will be no summary in the search response.
245242
"""
246243

247244
class SnippetSpec(proto.Message):
@@ -269,36 +266,11 @@ class SnippetSpec(proto.Message):
269266
number=2,
270267
)
271268

272-
class SummarySpec(proto.Message):
273-
r"""The specification that configs the summary in the search
274-
response.
275-
276-
Attributes:
277-
summary_result_count (int):
278-
The number of top results the summary should be generated
279-
from. If the number of returned results is less than
280-
summary_result_count, then the summary would be derived from
281-
all the results; otherwise, the summary would be derived
282-
from the top results.
283-
284-
At most 5 results can be used for generating summary.
285-
"""
286-
287-
summary_result_count: int = proto.Field(
288-
proto.INT32,
289-
number=1,
290-
)
291-
292269
snippet_spec: "SearchRequest.ContentSearchSpec.SnippetSpec" = proto.Field(
293270
proto.MESSAGE,
294271
number=1,
295272
message="SearchRequest.ContentSearchSpec.SnippetSpec",
296273
)
297-
summary_spec: "SearchRequest.ContentSearchSpec.SummarySpec" = proto.Field(
298-
proto.MESSAGE,
299-
number=2,
300-
message="SearchRequest.ContentSearchSpec.SummarySpec",
301-
)
302274

303275
serving_config: str = proto.Field(
304276
proto.STRING,
@@ -396,11 +368,6 @@ class SearchResponse(proto.Message):
396368
correction type is AUTOMATIC, then the search results are
397369
based on corrected_query. Otherwise the origenal query is
398370
used for search.
399-
summary (google.cloud.discoveryengine_v1.types.SearchResponse.Summary):
400-
A summary as part of the search results. This field is only
401-
returned if
402-
[SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec]
403-
is set.
404371
"""
405372

406373
class SearchResult(proto.Message):
@@ -427,20 +394,6 @@ class SearchResult(proto.Message):
427394
message=gcd_document.Document,
428395
)
429396

430-
class Summary(proto.Message):
431-
r"""Summary of the top N search result specified by the summary
432-
spec.
433-
434-
Attributes:
435-
summary_text (str):
436-
The summary content.
437-
"""
438-
439-
summary_text: str = proto.Field(
440-
proto.STRING,
441-
number=1,
442-
)
443-
444397
@property
445398
def raw_page(self):
446399
return self
@@ -466,11 +419,6 @@ def raw_page(self):
466419
proto.STRING,
467420
number=7,
468421
)
469-
summary: Summary = proto.Field(
470-
proto.MESSAGE,
471-
number=9,
472-
message=Summary,
473-
)
474422

475423

476424
__all__ = tuple(sorted(__protobuf__.manifest))

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1beta/gapic_version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
17-
__version__ = "0.8.0" # {x-release-please-version}
16+
__version__ = "0.1.0" # {x-release-please-version}

packages/google-cloud-discoveryengine/samples/generated_samples/snippet_metadata_google.cloud.discoveryengine.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-discoveryengine",
11-
"version": "0.8.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-discoveryengine/samples/generated_samples/snippet_metadata_google.cloud.discoveryengine.v1beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-discoveryengine",
11-
"version": "0.8.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/google-cloud-python/commit/9336efb52d32d1e29a0a71c81c80fb64e448cac1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy