Skip to content

Commit dc471e3

Browse files
authored
Merge branch 'main' into owl-bot-copy-1c8dac272a1e35241540
2 parents 31f01bb + 5b33724 commit dc471e3

2,288 files changed

Lines changed: 7673 additions & 25539 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.

Core/src/ServiceBuilder.php

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
use Google\Cloud\Speech\SpeechClient as DeprecatedSpeechClient;
3131
use Google\Cloud\Speech\V2\Client\SpeechClient;
3232
use Google\Cloud\Storage\StorageClient;
33-
use Google\Cloud\Trace\TraceClient;
33+
use Google\Cloud\Trace\V2\Client\TraceServiceClient;
3434
use Google\Cloud\Translate\V2\TranslateClient as DeprecatedTranslateClient;
3535
use Google\Cloud\Translate\V3\Client\TranslationServiceClient;
3636
use Google\Cloud\Vision\V1\Client\ImageAnnotatorClient;
@@ -311,22 +311,16 @@ public function storage(array $config = [])
311311
}
312312

313313
/**
314-
* Google Stackdriver Trace allows you to collect latency data from your applications
315-
* and display it in the Google Cloud Platform Console. Find more information at
316-
* [Stackdriver Trace API docs](https://cloud.google.com/trace/docs/).
317-
*
318-
* Example:
319-
* ```
320-
* $trace = $cloud->trace();
321-
* ```
322-
*
323-
* @param array $config [optional] Configuration options. See
324-
* {@see \Google\Cloud\Core\ServiceBuilder::__construct()} for the available options.
325-
* @return TraceClient
314+
* @deprecated
315+
* @see TraceServiceClient
316+
* @throws \BadMethodCallException
326317
*/
327318
public function trace(array $config = [])
328319
{
329-
return $this->createClient(TraceClient::class, 'trace', $config);
320+
throw new \BadMethodCallException(sprintf(
321+
'This method is no longer supported, create %s directly instead.',
322+
TraceServiceClient::class
323+
));
330324
}
331325

332326
/**

Core/src/Testing/Reflection/DescriptionFactory.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ private function lex(string $contents): array
126126

127127
return Utils::pregSplit(
128128
'/\{
129-
# "{@}" is not a valid inline tag. This ensures that we do not treat it as one, but treat it literally.
130-
(?!@\})
129+
# "{@}" and "{@*}" are not a valid inline tags. This ensures that we do not treat them as one, but treat
130+
# them literally.
131+
(?!(?:@\}|@\*\}) )
131132
# We want to capture the whole tag line, but without the inline tag delimiters.
132133
(\@
133134
# Match everything up to the next delimiter.

Core/tests/Snippet/ServiceBuilderTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@
1919

2020
use Google\Cloud\BigQuery\BigQueryClient;
2121
use Google\Cloud\Core\ServiceBuilder;
22-
use Google\Cloud\Datastore\DatastoreClient;
2322
use Google\Cloud\Core\Testing\Snippet\SnippetTestCase;
2423
use Google\Cloud\Firestore\FirestoreClient;
2524
use Google\Cloud\Language\LanguageClient;
2625
use Google\Cloud\Logging\LoggingClient;
2726
use Google\Cloud\PubSub\PubSubClient;
2827
use Google\Cloud\Spanner\SpannerClient;
2928
use Google\Cloud\Storage\StorageClient;
30-
use Google\Cloud\Trace\TraceClient;
3129

3230
/**
3331
* @group root
@@ -57,7 +55,6 @@ public function serviceBuilderMethods()
5755
['pubsub', PubSubClient::class, 'pubsub'],
5856
['spanner', SpannerClient::class, 'spanner', true],
5957
['storage', StorageClient::class, 'storage'],
60-
['trace', TraceClient::class, 'trace'],
6158
];
6259
}
6360

Core/tests/Unit/ServiceBuilderTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ public function serviceProvider()
142142
[
143143
'bigQuery',
144144
BigQueryClient::class
145-
], [
146-
'logging',
147-
LoggingClient::class
148145
], [
149146
'language',
150147
LanguageClient::class

Core/tests/Unit/ServicesNotFoundTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ private static function getApis()
7575
"PubSub",
7676
"Spanner",
7777
"Storage",
78-
"Trace",
7978
"VideoIntelligence",
8079
];
8180
}
@@ -89,7 +88,6 @@ public function serviceBuilderMethods()
8988
['pubsub'],
9089
['spanner'],
9190
['storage'],
92-
['trace'],
9391
];
9492
}
9593

2.63 KB
Binary file not shown.
1.48 KB
Binary file not shown.

DiscoveryEngine/metadata/V1/Assistant.php

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DiscoveryEngine/metadata/V1/AssistantService.php

Lines changed: 1 addition & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
871 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)