Skip to content

Commit

Permalink
feat: [google-cloud-retail] add conversational search (#13135)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

BEGIN_COMMIT_OVERRIDE
feat: add tile navigation
docs: keep the API doc up-to-date with recent changes
feat: add conversational search
END_COMMIT_OVERRIDE



PiperOrigin-RevId: 683821729

Source-Link:
googleapis/googleapis@8692273

Source-Link:
googleapis/googleapis-gen@02b9449
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJldGFpbC8uT3dsQm90LnlhbWwiLCJoIjoiMDJiOTQ0OTk3MzhhNDFhNTYyZjE1Mjc2MmRhYzM1Nzc3MzVhZGJjZiJ9

BEGIN_NESTED_COMMIT
feat: [google-cloud-retail] add conversational search
feat: add tile navigation
docs: keep the API doc up-to-date with recent changes

PiperOrigin-RevId: 683821686

Source-Link:
googleapis/googleapis@d01eb46

Source-Link:
googleapis/googleapis-gen@1db3459
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJldGFpbC8uT3dsQm90LnlhbWwiLCJoIjoiMWRiMzQ1OWYzZGZhOTM0N2E1ODExZDcyYjEyZTE3MTRkYTc1ZWQ5MyJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat: [google-cloud-retail] add conversational search
feat: add tile navigation
docs: keep the API doc up-to-date with recent changes

PiperOrigin-RevId: 683821659

Source-Link:
googleapis/googleapis@c24e836

Source-Link:
googleapis/googleapis-gen@5d6e6b6
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJldGFpbC8uT3dsQm90LnlhbWwiLCJoIjoiNWQ2ZTZiNmU3MzRlMjU0MDlkYzc0ZTcxMTJkZjBjNzY0ZmRmYzM3NSJ9
END_NESTED_COMMIT

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people authored Oct 9, 2024
1 parent 0cb6b1e commit b704404
Show file tree
Hide file tree
Showing 161 changed files with 55,015 additions and 917 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
GenerativeQuestionService
-------------------------------------------

.. automodule:: google.cloud.retail_v2.services.generative_question_service
:members:
:inherited-members:
1 change: 1 addition & 0 deletions packages/google-cloud-retail/docs/retail_v2/services_.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Services for Google Cloud Retail v2 API
catalog_service
completion_service
control_service
generative_question_service
model_service
prediction_service
product_service
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
GenerativeQuestionService
-------------------------------------------

.. automodule:: google.cloud.retail_v2alpha.services.generative_question_service
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Services for Google Cloud Retail v2alpha API
catalog_service
completion_service
control_service
generative_question_service
merchant_center_account_link_service
model_service
prediction_service
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
GenerativeQuestionService
-------------------------------------------

.. automodule:: google.cloud.retail_v2beta.services.generative_question_service
:members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ProjectService
--------------------------------

.. automodule:: google.cloud.retail_v2beta.services.project_service
:members:
:inherited-members:
2 changes: 2 additions & 0 deletions packages/google-cloud-retail/docs/retail_v2beta/services_.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ Services for Google Cloud Retail v2beta API
catalog_service
completion_service
control_service
generative_question_service
model_service
prediction_service
product_service
project_service
search_service
serving_config_service
user_event_service
36 changes: 36 additions & 0 deletions packages/google-cloud-retail/google/cloud/retail/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
ControlServiceAsyncClient,
)
from google.cloud.retail_v2.services.control_service.client import ControlServiceClient
from google.cloud.retail_v2.services.generative_question_service.async_client import (
GenerativeQuestionServiceAsyncClient,
)
from google.cloud.retail_v2.services.generative_question_service.client import (
GenerativeQuestionServiceClient,
)
from google.cloud.retail_v2.services.model_service.async_client import (
ModelServiceAsyncClient,
)
Expand Down Expand Up @@ -131,6 +137,19 @@
OutputConfig,
OutputResult,
)
from google.cloud.retail_v2.types.generative_question import (
GenerativeQuestionConfig,
GenerativeQuestionsFeatureConfig,
)
from google.cloud.retail_v2.types.generative_question_service import (
BatchUpdateGenerativeQuestionConfigsRequest,
BatchUpdateGenerativeQuestionConfigsResponse,
GetGenerativeQuestionsFeatureConfigRequest,
ListGenerativeQuestionConfigsRequest,
ListGenerativeQuestionConfigsResponse,
UpdateGenerativeQuestionConfigRequest,
UpdateGenerativeQuestionsFeatureConfigRequest,
)
from google.cloud.retail_v2.types.import_config import (
BigQuerySource,
CompletionDataInputConfig,
Expand Down Expand Up @@ -203,8 +222,11 @@
)
from google.cloud.retail_v2.types.search_service import (
ExperimentInfo,
ProductAttributeInterval,
ProductAttributeValue,
SearchRequest,
SearchResponse,
Tile,
)
from google.cloud.retail_v2.types.serving_config import ServingConfig
from google.cloud.retail_v2.types.serving_config_service import (
Expand Down Expand Up @@ -240,6 +262,8 @@
"CompletionServiceAsyncClient",
"ControlServiceClient",
"ControlServiceAsyncClient",
"GenerativeQuestionServiceClient",
"GenerativeQuestionServiceAsyncClient",
"ModelServiceClient",
"ModelServiceAsyncClient",
"PredictionServiceClient",
Expand Down Expand Up @@ -303,6 +327,15 @@
"GcsOutputResult",
"OutputConfig",
"OutputResult",
"GenerativeQuestionConfig",
"GenerativeQuestionsFeatureConfig",
"BatchUpdateGenerativeQuestionConfigsRequest",
"BatchUpdateGenerativeQuestionConfigsResponse",
"GetGenerativeQuestionsFeatureConfigRequest",
"ListGenerativeQuestionConfigsRequest",
"ListGenerativeQuestionConfigsResponse",
"UpdateGenerativeQuestionConfigRequest",
"UpdateGenerativeQuestionsFeatureConfigRequest",
"BigQuerySource",
"CompletionDataInputConfig",
"GcsSource",
Expand Down Expand Up @@ -364,8 +397,11 @@
"PurgeUserEventsRequest",
"PurgeUserEventsResponse",
"ExperimentInfo",
"ProductAttributeInterval",
"ProductAttributeValue",
"SearchRequest",
"SearchResponse",
"Tile",
"ServingConfig",
"AddControlRequest",
"CreateServingConfigRequest",
Expand Down
40 changes: 39 additions & 1 deletion packages/google-cloud-retail/google/cloud/retail_v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
CompletionServiceClient,
)
from .services.control_service import ControlServiceAsyncClient, ControlServiceClient
from .services.generative_question_service import (
GenerativeQuestionServiceAsyncClient,
GenerativeQuestionServiceClient,
)
from .services.model_service import ModelServiceAsyncClient, ModelServiceClient
from .services.prediction_service import (
PredictionServiceAsyncClient,
Expand Down Expand Up @@ -103,6 +107,19 @@
OutputConfig,
OutputResult,
)
from .types.generative_question import (
GenerativeQuestionConfig,
GenerativeQuestionsFeatureConfig,
)
from .types.generative_question_service import (
BatchUpdateGenerativeQuestionConfigsRequest,
BatchUpdateGenerativeQuestionConfigsResponse,
GetGenerativeQuestionsFeatureConfigRequest,
ListGenerativeQuestionConfigsRequest,
ListGenerativeQuestionConfigsResponse,
UpdateGenerativeQuestionConfigRequest,
UpdateGenerativeQuestionsFeatureConfigRequest,
)
from .types.import_config import (
BigQuerySource,
CompletionDataInputConfig,
Expand Down Expand Up @@ -170,7 +187,14 @@
PurgeUserEventsRequest,
PurgeUserEventsResponse,
)
from .types.search_service import ExperimentInfo, SearchRequest, SearchResponse
from .types.search_service import (
ExperimentInfo,
ProductAttributeInterval,
ProductAttributeValue,
SearchRequest,
SearchResponse,
Tile,
)
from .types.serving_config import ServingConfig
from .types.serving_config_service import (
AddControlRequest,
Expand Down Expand Up @@ -201,6 +225,7 @@
"CatalogServiceAsyncClient",
"CompletionServiceAsyncClient",
"ControlServiceAsyncClient",
"GenerativeQuestionServiceAsyncClient",
"ModelServiceAsyncClient",
"PredictionServiceAsyncClient",
"ProductServiceAsyncClient",
Expand All @@ -219,6 +244,8 @@
"AttributeConfigLevel",
"AttributesConfig",
"Audience",
"BatchUpdateGenerativeQuestionConfigsRequest",
"BatchUpdateGenerativeQuestionConfigsResponse",
"BigQueryOutputResult",
"BigQuerySource",
"Catalog",
Expand Down Expand Up @@ -253,11 +280,15 @@
"FulfillmentInfo",
"GcsOutputResult",
"GcsSource",
"GenerativeQuestionConfig",
"GenerativeQuestionServiceClient",
"GenerativeQuestionsFeatureConfig",
"GetAttributesConfigRequest",
"GetCompletionConfigRequest",
"GetControlRequest",
"GetDefaultBranchRequest",
"GetDefaultBranchResponse",
"GetGenerativeQuestionsFeatureConfigRequest",
"GetModelRequest",
"GetProductRequest",
"GetServingConfigRequest",
Expand All @@ -275,6 +306,8 @@
"ListCatalogsResponse",
"ListControlsRequest",
"ListControlsResponse",
"ListGenerativeQuestionConfigsRequest",
"ListGenerativeQuestionConfigsResponse",
"ListModelsRequest",
"ListModelsResponse",
"ListProductsRequest",
Expand All @@ -292,6 +325,8 @@
"PredictionServiceClient",
"PriceInfo",
"Product",
"ProductAttributeInterval",
"ProductAttributeValue",
"ProductDetail",
"ProductInlineSource",
"ProductInputConfig",
Expand Down Expand Up @@ -332,13 +367,16 @@
"SetInventoryRequest",
"SetInventoryResponse",
"SolutionType",
"Tile",
"TuneModelMetadata",
"TuneModelRequest",
"TuneModelResponse",
"UpdateAttributesConfigRequest",
"UpdateCatalogRequest",
"UpdateCompletionConfigRequest",
"UpdateControlRequest",
"UpdateGenerativeQuestionConfigRequest",
"UpdateGenerativeQuestionsFeatureConfigRequest",
"UpdateModelRequest",
"UpdateProductRequest",
"UpdateServingConfigRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,100 @@
}
}
},
"GenerativeQuestionService": {
"clients": {
"grpc": {
"libraryClient": "GenerativeQuestionServiceClient",
"rpcs": {
"BatchUpdateGenerativeQuestionConfigs": {
"methods": [
"batch_update_generative_question_configs"
]
},
"GetGenerativeQuestionsFeatureConfig": {
"methods": [
"get_generative_questions_feature_config"
]
},
"ListGenerativeQuestionConfigs": {
"methods": [
"list_generative_question_configs"
]
},
"UpdateGenerativeQuestionConfig": {
"methods": [
"update_generative_question_config"
]
},
"UpdateGenerativeQuestionsFeatureConfig": {
"methods": [
"update_generative_questions_feature_config"
]
}
}
},
"grpc-async": {
"libraryClient": "GenerativeQuestionServiceAsyncClient",
"rpcs": {
"BatchUpdateGenerativeQuestionConfigs": {
"methods": [
"batch_update_generative_question_configs"
]
},
"GetGenerativeQuestionsFeatureConfig": {
"methods": [
"get_generative_questions_feature_config"
]
},
"ListGenerativeQuestionConfigs": {
"methods": [
"list_generative_question_configs"
]
},
"UpdateGenerativeQuestionConfig": {
"methods": [
"update_generative_question_config"
]
},
"UpdateGenerativeQuestionsFeatureConfig": {
"methods": [
"update_generative_questions_feature_config"
]
}
}
},
"rest": {
"libraryClient": "GenerativeQuestionServiceClient",
"rpcs": {
"BatchUpdateGenerativeQuestionConfigs": {
"methods": [
"batch_update_generative_question_configs"
]
},
"GetGenerativeQuestionsFeatureConfig": {
"methods": [
"get_generative_questions_feature_config"
]
},
"ListGenerativeQuestionConfigs": {
"methods": [
"list_generative_question_configs"
]
},
"UpdateGenerativeQuestionConfig": {
"methods": [
"update_generative_question_config"
]
},
"UpdateGenerativeQuestionsFeatureConfig": {
"methods": [
"update_generative_questions_feature_config"
]
}
}
}
}
},
"ModelService": {
"clients": {
"grpc": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .async_client import GenerativeQuestionServiceAsyncClient
from .client import GenerativeQuestionServiceClient

__all__ = (
"GenerativeQuestionServiceClient",
"GenerativeQuestionServiceAsyncClient",
)
Loading

0 comments on commit b704404

Please sign in to comment.