Skip to content

Commit ea04959

Browse files
chingor13dwsupplee
authored andcommitted
Add synthtool config for remaining clients (#1126)
* Add Debugger synth.py * Copy debugger metadata * Add Bigtable/Bigtable Admin synth script * Add BigQueryDataTransfer synth script * Use public synthtool api for vision * Add Container synth config Add Container synth config * Add Dataproc synth config * Add Dialogflow synth scripts * Add Dlp synth script * Add ErrorReporting synth script * Add Firestore synth script * Add Iot synth script * Add Language synth script * Add Logging synth script * Add Monitoring synth script * Add OsLogin synth script * Add PubSub synth script * Add Redis synth script * Add Spanner synth script * Add Speech synth scripts * Add Trace synth script * Add VideoIntelligence synth script * Fix comments in synth scripts * Remove `@experimenal` tags from VideoIntelligence V1 (GA) * Fix missing documentation in Dlp * Remove OsLogin synth script - being added separately * Address PR comments * Add issue link for Dlp documentation fix * Copy partial veneers for clients without implemented partial veneers
1 parent 25a2c2f commit ea04959

13 files changed

+54
-72
lines changed

src/V2/AgentsClient.php

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
* https://github.com/google/googleapis/blob/master/google/cloud/dialogflow/v2/agent.proto
2222
* and updates to that file get reflected here through a refresh process.
2323
*
24-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
25-
* even though we intend the surface to be stable, we may make backwards incompatible changes
26-
* if necessary.
27-
*
2824
* @experimental
2925
*/
3026

src/V2/ContextsClient.php

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
* https://github.com/google/googleapis/blob/master/google/cloud/dialogflow/v2/context.proto
2222
* and updates to that file get reflected here through a refresh process.
2323
*
24-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
25-
* even though we intend the surface to be stable, we may make backwards incompatible changes
26-
* if necessary.
27-
*
2824
* @experimental
2925
*/
3026

src/V2/EntityTypesClient.php

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
* https://github.com/google/googleapis/blob/master/google/cloud/dialogflow/v2/entity_type.proto
2222
* and updates to that file get reflected here through a refresh process.
2323
*
24-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
25-
* even though we intend the surface to be stable, we may make backwards incompatible changes
26-
* if necessary.
27-
*
2824
* @experimental
2925
*/
3026

src/V2/Gapic/AgentsGapicClient.php

-8
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
* https://github.com/google/googleapis/blob/master/google/cloud/dialogflow/v2/agent.proto
2222
* and updates to that file get reflected here through a refresh process.
2323
*
24-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
25-
* even though we intend the surface to be stable, we may make backwards incompatible changes
26-
* if necessary.
27-
*
2824
* @experimental
2925
*/
3026

@@ -79,10 +75,6 @@
7975
* For more information about agents, see the
8076
* [Dialogflow documentation](https://dialogflow.com/docs/agents).
8177
*
82-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
83-
* even though we intend the surface to be stable, we may make backwards incompatible changes
84-
* if necessary.
85-
*
8678
* This class provides the ability to make remote calls to the backing service through method
8779
* calls that map to API methods. Sample code to get started:
8880
*

src/V2/Gapic/ContextsGapicClient.php

-8
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
* https://github.com/google/googleapis/blob/master/google/cloud/dialogflow/v2/context.proto
2222
* and updates to that file get reflected here through a refresh process.
2323
*
24-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
25-
* even though we intend the surface to be stable, we may make backwards incompatible changes
26-
* if necessary.
27-
*
2824
* @experimental
2925
*/
3026

@@ -68,10 +64,6 @@
6864
* For more information about contexts, see the
6965
* [Dialogflow documentation](https://dialogflow.com/docs/contexts).
7066
*
71-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
72-
* even though we intend the surface to be stable, we may make backwards incompatible changes
73-
* if necessary.
74-
*
7567
* This class provides the ability to make remote calls to the backing service through method
7668
* calls that map to API methods. Sample code to get started:
7769
*

src/V2/Gapic/EntityTypesGapicClient.php

-8
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
* https://github.com/google/googleapis/blob/master/google/cloud/dialogflow/v2/entity_type.proto
2222
* and updates to that file get reflected here through a refresh process.
2323
*
24-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
25-
* even though we intend the surface to be stable, we may make backwards incompatible changes
26-
* if necessary.
27-
*
2824
* @experimental
2925
*/
3026

@@ -89,10 +85,6 @@
8985
* For more information about entity types, see the
9086
* [Dialogflow documentation](https://dialogflow.com/docs/entities).
9187
*
92-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
93-
* even though we intend the surface to be stable, we may make backwards incompatible changes
94-
* if necessary.
95-
*
9688
* This class provides the ability to make remote calls to the backing service through method
9789
* calls that map to API methods. Sample code to get started:
9890
*

src/V2/Gapic/IntentsGapicClient.php

-8
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
* https://github.com/google/googleapis/blob/master/google/cloud/dialogflow/v2/intent.proto
2222
* and updates to that file get reflected here through a refresh process.
2323
*
24-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
25-
* even though we intend the surface to be stable, we may make backwards incompatible changes
26-
* if necessary.
27-
*
2824
* @experimental
2925
*/
3026

@@ -89,10 +85,6 @@
8985
* For more information about intents, see the
9086
* [Dialogflow documentation](https://dialogflow.com/docs/intents).
9187
*
92-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
93-
* even though we intend the surface to be stable, we may make backwards incompatible changes
94-
* if necessary.
95-
*
9688
* This class provides the ability to make remote calls to the backing service through method
9789
* calls that map to API methods. Sample code to get started:
9890
*

src/V2/Gapic/SessionEntityTypesGapicClient.php

-8
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
* https://github.com/google/googleapis/blob/master/google/cloud/dialogflow/v2/session_entity_type.proto
2222
* and updates to that file get reflected here through a refresh process.
2323
*
24-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
25-
* even though we intend the surface to be stable, we may make backwards incompatible changes
26-
* if necessary.
27-
*
2824
* @experimental
2925
*/
3026

@@ -62,10 +58,6 @@
6258
* For more information about entity types, see the
6359
* [Dialogflow documentation](https://dialogflow.com/docs/entities).
6460
*
65-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
66-
* even though we intend the surface to be stable, we may make backwards incompatible changes
67-
* if necessary.
68-
*
6961
* This class provides the ability to make remote calls to the backing service through method
7062
* calls that map to API methods. Sample code to get started:
7163
*

src/V2/Gapic/SessionsGapicClient.php

-8
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
* https://github.com/google/googleapis/blob/master/google/cloud/dialogflow/v2/session.proto
2222
* and updates to that file get reflected here through a refresh process.
2323
*
24-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
25-
* even though we intend the surface to be stable, we may make backwards incompatible changes
26-
* if necessary.
27-
*
2824
* @experimental
2925
*/
3026

@@ -52,10 +48,6 @@
5248
* [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method to determine
5349
* user intent and respond.
5450
*
55-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
56-
* even though we intend the surface to be stable, we may make backwards incompatible changes
57-
* if necessary.
58-
*
5951
* This class provides the ability to make remote calls to the backing service through method
6052
* calls that map to API methods. Sample code to get started:
6153
*

src/V2/IntentsClient.php

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
* https://github.com/google/googleapis/blob/master/google/cloud/dialogflow/v2/intent.proto
2222
* and updates to that file get reflected here through a refresh process.
2323
*
24-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
25-
* even though we intend the surface to be stable, we may make backwards incompatible changes
26-
* if necessary.
27-
*
2824
* @experimental
2925
*/
3026

src/V2/SessionEntityTypesClient.php

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
* https://github.com/google/googleapis/blob/master/google/cloud/dialogflow/v2/session_entity_type.proto
2222
* and updates to that file get reflected here through a refresh process.
2323
*
24-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
25-
* even though we intend the surface to be stable, we may make backwards incompatible changes
26-
* if necessary.
27-
*
2824
* @experimental
2925
*/
3026

src/V2/SessionsClient.php

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
* https://github.com/google/googleapis/blob/master/google/cloud/dialogflow/v2/session.proto
2222
* and updates to that file get reflected here through a refresh process.
2323
*
24-
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
25-
* even though we intend the surface to be stable, we may make backwards incompatible changes
26-
* if necessary.
27-
*
2824
* @experimental
2925
*/
3026

synth.py

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright 2018 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""This script is used to synthesize generated parts of this library."""
16+
17+
import synthtool as s
18+
import synthtool.gcp as gcp
19+
import logging
20+
21+
logging.basicConfig(level=logging.DEBUG)
22+
23+
gapic = gcp.GAPICGenerator()
24+
common = gcp.CommonTemplates()
25+
26+
library = gapic.php_library(
27+
service='dialogflow',
28+
version='v2',
29+
artman_output_name='google-cloud-dialogflow-v2')
30+
31+
# copy all src including partial veneer classes
32+
s.move(library / 'src')
33+
34+
# copy proto files to src also
35+
s.move(library / 'proto/src/Google/Cloud/Dialogflow', 'src/')
36+
s.move(library / 'tests/')
37+
38+
# copy GPBMetadata file to metadata
39+
s.move(library / 'proto/src/GPBMetadata/Google/Cloud/Dialogflow', 'metadata/')
40+
41+
# fix year
42+
s.replace(
43+
'**/Gapic/*GapicClient.php',
44+
r'Copyright \d{4}',
45+
'Copyright 2018')
46+
for client in ['Agents', 'Contexts', 'EntityTypes', 'Intents', 'SessionEntityTypes', 'Sessions']:
47+
s.replace(
48+
f'**/V1/{client}Client.php',
49+
r'Copyright \d{4}',
50+
'Copyright 2018')
51+
s.replace(
52+
'tests/**/V2/*Test.php',
53+
r'Copyright \d{4}',
54+
'Copyright 2018')

0 commit comments

Comments
 (0)