Skip to content

Commit 8a752b0

Browse files
committed
chore: discovery docs diff with generator perf
1 parent 1a81689 commit 8a752b0

473 files changed

Lines changed: 23561 additions & 16716 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.librarian/generate-request.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"id": "google-cloud-discoveryengine",
3+
"version": "0.4.0",
4+
"apis": [
5+
{
6+
"path": "google/cloud/discoveryengine/v1",
7+
"service_config": "discoveryengine_v1.yaml"
8+
},
9+
{
10+
"path": "google/cloud/discoveryengine/v1beta",
11+
"service_config": "discoveryengine_v1beta.yaml"
12+
},
13+
{
14+
"path": "google/cloud/discoveryengine/v1alpha",
15+
"service_config": "discoveryengine_v1alpha.yaml"
16+
}
17+
],
18+
"source_roots": [
19+
"packages/google-cloud-discoveryengine"
20+
],
21+
"preserve_regex": [
22+
"packages/google-cloud-discoveryengine/CHANGELOG.md",
23+
"docs/CHANGELOG.md",
24+
"samples/README.txt",
25+
"samples/snippets/README.rst",
26+
"tests/system"
27+
],
28+
"remove_regex": [
29+
"packages/google-cloud-discoveryengine/"
30+
],
31+
"tag_format": "{id}-v{version}"
32+
}

packages/google-cloud-discoveryengine/google/cloud/discoveryengine/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.16.0" # {x-release-please-version}
16+
__version__ = "0.4.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.16.0" # {x-release-please-version}
16+
__version__ = "0.4.0" # {x-release-please-version}

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/services/assistant_service/async_client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ async def sample_stream_assist():
345345
Args:
346346
request (Optional[Union[google.cloud.discoveryengine_v1.types.StreamAssistRequest, dict]]):
347347
The request object. Request for the
348-
[AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
348+
`AssistantService.StreamAssist
349+
<google.cloud.discoveryengine.v1.AssistantService.StreamAssist>`__
349350
method.
350351
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
351352
should be retried.
@@ -358,8 +359,9 @@ async def sample_stream_assist():
358359
Returns:
359360
AsyncIterable[google.cloud.discoveryengine_v1.types.StreamAssistResponse]:
360361
Response for the
361-
[AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
362-
method.
362+
`AssistantService.StreamAssist
363+
<google.cloud.discoveryengine.v1.AssistantService.StreamAssist>`__
364+
method.
363365
364366
"""
365367
# Create or coerce a protobuf request object.

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/services/assistant_service/client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,8 @@ def sample_stream_assist():
880880
Args:
881881
request (Union[google.cloud.discoveryengine_v1.types.StreamAssistRequest, dict]):
882882
The request object. Request for the
883-
[AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
883+
`AssistantService.StreamAssist
884+
<google.cloud.discoveryengine.v1.AssistantService.StreamAssist>`__
884885
method.
885886
retry (google.api_core.retry.Retry): Designation of what errors, if any,
886887
should be retried.
@@ -893,8 +894,9 @@ def sample_stream_assist():
893894
Returns:
894895
Iterable[google.cloud.discoveryengine_v1.types.StreamAssistResponse]:
895896
Response for the
896-
[AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
897-
method.
897+
`AssistantService.StreamAssist
898+
<google.cloud.discoveryengine.v1.AssistantService.StreamAssist>`__
899+
method.
898900
899901
"""
900902
# Create or coerce a protobuf request object.

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/services/assistant_service/transports/base.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ def __init__(
8484
be used for service account credentials.
8585
"""
8686

87-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
88-
8987
# Save the scopes.
9088
self._scopes = scopes
9189
if not hasattr(self, "_ignore_credentials"):
@@ -100,11 +98,16 @@ def __init__(
10098

10199
if credentials_file is not None:
102100
credentials, _ = google.auth.load_credentials_from_file(
103-
credentials_file, **scopes_kwargs, quota_project_id=quota_project_id
101+
credentials_file,
102+
scopes=scopes,
103+
quota_project_id=quota_project_id,
104+
default_scopes=self.AUTH_SCOPES,
104105
)
105106
elif credentials is None and not self._ignore_credentials:
106107
credentials, _ = google.auth.default(
107-
**scopes_kwargs, quota_project_id=quota_project_id
108+
scopes=scopes,
109+
quota_project_id=quota_project_id,
110+
default_scopes=self.AUTH_SCOPES,
108111
)
109112
# Don't apply audience if the credentials file passed from user.
110113
if hasattr(credentials, "with_gdch_audience"):

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/services/assistant_service/transports/rest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ def __call__(
343343
Args:
344344
request (~.assistant_service.StreamAssistRequest):
345345
The request object. Request for the
346-
[AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
346+
`AssistantService.StreamAssist
347+
<google.cloud.discoveryengine.v1.AssistantService.StreamAssist>`__
347348
method.
348349
retry (google.api_core.retry.Retry): Designation of what errors, if any,
349350
should be retried.
@@ -356,7 +357,8 @@ def __call__(
356357
Returns:
357358
~.assistant_service.StreamAssistResponse:
358359
Response for the
359-
[AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
360+
`AssistantService.StreamAssist
361+
<google.cloud.discoveryengine.v1.AssistantService.StreamAssist>`__
360362
method.
361363
362364
"""

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/services/cmek_config_service/async_client.py

Lines changed: 51 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,13 @@ async def sample_update_cmek_config():
379379
380380
Returns:
381381
google.api_core.operation_async.AsyncOperation:
382-
An object representing a long-running operation.
383-
384-
The result type for the operation will be
382+
An object representing a long-running
383+
operation.
384+
The result type for the operation will
385+
be
385386
:class:`google.cloud.discoveryengine_v1.types.CmekConfig`
386-
Configurations used to enable CMEK data encryption with
387-
Cloud KMS keys.
387+
Configurations used to enable CMEK data
388+
encryption with Cloud KMS keys.
388389
389390
"""
390391
# Create or coerce a protobuf request object.
@@ -455,8 +456,8 @@ async def get_cmek_config(
455456
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
456457
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
457458
) -> cmek_config_service.CmekConfig:
458-
r"""Gets the
459-
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig].
459+
r"""Gets the `CmekConfig
460+
<google.cloud.discoveryengine.v1.CmekConfig>`__.
460461
461462
.. code-block:: python
462463
@@ -490,14 +491,17 @@ async def sample_get_cmek_config():
490491
GetCmekConfigRequest method.
491492
name (:class:`str`):
492493
Required. Resource name of
493-
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig],
494-
such as ``projects/*/locations/*/cmekConfig`` or
494+
`CmekConfig
495+
<google.cloud.discoveryengine.v1.CmekConfig>`__,
496+
such as
497+
``projects/*/locations/*/cmekConfig`` or
495498
``projects/*/locations/*/cmekConfigs/*``.
496499
497-
If the caller does not have permission to access the
498-
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig],
499-
regardless of whether or not it exists, a
500-
PERMISSION_DENIED error is returned.
500+
If the caller does not have permission
501+
to access the `CmekConfig
502+
<google.cloud.discoveryengine.v1.CmekConfig>`__,
503+
regardless of whether or not it exists,
504+
a PERMISSION_DENIED error is returned.
501505
502506
This corresponds to the ``name`` field
503507
on the ``request`` instance; if ``request`` is provided, this
@@ -576,8 +580,8 @@ async def list_cmek_configs(
576580
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
577581
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
578582
) -> cmek_config_service.ListCmekConfigsResponse:
579-
r"""Lists all the
580-
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]s with
583+
r"""Lists all the `CmekConfig
584+
<google.cloud.discoveryengine.v1.CmekConfig>`__s with
581585
the project.
582586
583587
.. code-block:: python
@@ -609,17 +613,20 @@ async def sample_list_cmek_configs():
609613
Args:
610614
request (Optional[Union[google.cloud.discoveryengine_v1.types.ListCmekConfigsRequest, dict]]):
611615
The request object. Request message for
612-
[CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1.CmekConfigService.ListCmekConfigs]
616+
`CmekConfigService.ListCmekConfigs
617+
<google.cloud.discoveryengine.v1.CmekConfigService.ListCmekConfigs>`__
613618
method.
614619
parent (:class:`str`):
615-
Required. The parent location resource name, such as
620+
Required. The parent location resource
621+
name, such as
616622
``projects/{project}/locations/{location}``.
617623
618-
If the caller does not have permission to list
619-
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]s
620-
under this location, regardless of whether or not a
621-
CmekConfig exists, a PERMISSION_DENIED error is
622-
returned.
624+
If the caller does not have permission
625+
to list `CmekConfig
626+
<google.cloud.discoveryengine.v1.CmekConfig>`__s
627+
under this location, regardless of
628+
whether or not a CmekConfig exists, a
629+
PERMISSION_DENIED error is returned.
623630
624631
This corresponds to the ``parent`` field
625632
on the ``request`` instance; if ``request`` is provided, this
@@ -635,8 +642,9 @@ async def sample_list_cmek_configs():
635642
Returns:
636643
google.cloud.discoveryengine_v1.types.ListCmekConfigsResponse:
637644
Response message for
638-
[CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1.CmekConfigService.ListCmekConfigs]
639-
method.
645+
`CmekConfigService.ListCmekConfigs
646+
<google.cloud.discoveryengine.v1.CmekConfigService.ListCmekConfigs>`__
647+
method.
640648
641649
"""
642650
# Create or coerce a protobuf request object.
@@ -734,11 +742,13 @@ async def sample_delete_cmek_config():
734742
Args:
735743
request (Optional[Union[google.cloud.discoveryengine_v1.types.DeleteCmekConfigRequest, dict]]):
736744
The request object. Request message for
737-
[CmekConfigService.DeleteCmekConfig][google.cloud.discoveryengine.v1.CmekConfigService.DeleteCmekConfig]
745+
`CmekConfigService.DeleteCmekConfig
746+
<google.cloud.discoveryengine.v1.CmekConfigService.DeleteCmekConfig>`__
738747
method.
739748
name (:class:`str`):
740749
Required. The resource name of the
741-
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]
750+
`CmekConfig
751+
<google.cloud.discoveryengine.v1.CmekConfig>`__
742752
to delete, such as
743753
``projects/{project}/locations/{location}/cmekConfigs/{cmek_config}``.
744754
@@ -755,18 +765,21 @@ async def sample_delete_cmek_config():
755765
756766
Returns:
757767
google.api_core.operation_async.AsyncOperation:
758-
An object representing a long-running operation.
759-
760-
The result type for the operation will be :class:`google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated
761-
empty messages in your APIs. A typical example is to
762-
use it as the request or the response type of an API
763-
method. For instance:
764-
765-
service Foo {
766-
rpc Bar(google.protobuf.Empty) returns
767-
(google.protobuf.Empty);
768-
769-
}
768+
An object representing a long-running
769+
operation.
770+
The result type for the operation will
771+
be
772+
:class:`google.protobuf.empty_pb2.Empty`
773+
A generic empty message that you can
774+
re-use to avoid defining duplicated
775+
empty messages in your APIs. A typical
776+
example is to use it as the request or
777+
the response type of an API method. For
778+
instance:
779+
780+
service Foo {
781+
rpc Bar(google.protobuf.Empty)
782+
returns (google.protobuf.Empty); }
770783
771784
"""
772785
# Create or coerce a protobuf request object.

0 commit comments

Comments
 (0)