Skip to content

Commit 0e57d72

Browse files
committed
Merge branch 'master' into use-multiphp-container
2 parents 1d6dde6 + e3a32af commit 0e57d72

File tree

187 files changed

+203
-12
lines changed

Some content is hidden

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

187 files changed

+203
-12
lines changed

.github/.blunderbuss.yml renamed to .github/blunderbuss.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ assign_issues_by:
99
- 'api: cloudsql'
1010
to:
1111
- GoogleCloudPlatform/infra-db-dpes
12+
- labels:
13+
- 'api: cloudiot'
14+
to:
15+
- laszlokorossy
1216

1317
assign_prs_by:
1418
- labels:
@@ -21,3 +25,7 @@ assign_prs_by:
2125
- 'api: cloudsql'
2226
to:
2327
- GoogleCloudPlatform/infra-db-dpes
28+
- labels:
29+
- 'api: cloudiot'
30+
to:
31+
- laszlokorossy

asset/src/batch_get_assets_history.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ function batch_get_assets_history(string $projectId, array $assetNames)
3737
}
3838
# [END asset_quickstart_batch_get_assets_history]
3939

40+
// The following 2 lines are only needed to run the samples
4041
require_once __DIR__ . '/../../testing/sample_helpers.php';
4142
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

asset/src/export_assets.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ function export_assets(string $projectId, string $dumpFilePath)
5050
}
5151
# [END asset_quickstart_export_assets]
5252

53+
// The following 2 lines are only needed to run the samples
5354
require_once __DIR__ . '/../../testing/sample_helpers.php';
5455
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

asset/src/search_all_iam_policies.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function search_all_iam_policies(
4949
}
5050
// [END asset_quickstart_search_all_iam_policies]
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

asset/src/search_all_resources.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ function search_all_resources(
5555
}
5656
// [END asset_quickstart_search_all_resources]
5757

58+
// The following 2 lines are only needed to run the samples
5859
require_once __DIR__ . '/../../testing/sample_helpers.php';
5960
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_api_explicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function auth_api_explicit($projectId, $serviceAccountPath)
4949
}
5050
# [END auth_api_explicit]
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_api_implicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function auth_api_implicit($projectId)
4848
}
4949
# [END auth_api_implicit]
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_cloud_explicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function auth_cloud_explicit($projectId, $serviceAccountPath)
4949
}
5050
# [END auth_cloud_explicit]
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_cloud_implicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function auth_cloud_implicit($projectId)
4848
}
4949
# [END auth_cloud_implicit]
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_http_explicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,6 @@ function auth_http_explicit($projectId, $serviceAccountPath)
6666
}
6767
# [END auth_http_explicit]
6868

69+
// The following 2 lines are only needed to run the samples
6970
require_once __DIR__ . '/../../testing/sample_helpers.php';
7071
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_http_implicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ function auth_http_implicit($projectId)
6262
}
6363
# [END auth_http_implicit]
6464

65+
// The following 2 lines are only needed to run the samples
6566
require_once __DIR__ . '/../../testing/sample_helpers.php';
6667
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

compute/cloud-client/instances/src/set_usage_export_bucket.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@
3636

3737
# [START compute_usage_report_set]
3838
/**
39-
* Set Compute Engine usage export bucket for the Cloud Project.
39+
* Set Compute Engine usage export bucket for the Cloud project.
4040
* This sample presents how to interpret the default value for the report name prefix parameter.
4141
* Example:
4242
* ```
43-
* set_usage_export_bucket($projectId, $bucketName, $reportPrefixName);
43+
* set_usage_export_bucket($projectId, $bucketName, $reportNamePrefix);
4444
* ```
4545
*
4646
* @param string $projectId Your Google Cloud project ID.
47-
* @param string $bucketName Google Cloud Storage Bucket used to store Compute Engine usage reports.
47+
* @param string $bucketName Google Cloud Storage bucket used to store Compute Engine usage reports.
4848
* An existing Google Cloud Storage bucket is required.
49-
* @param string $reportPrefixName Prefix of the usage report name which defaults to an empty string
49+
* @param string $reportNamePrefix Prefix of the usage report name which defaults to an empty string
5050
* to showcase default values behavior.
5151
*
5252
* @return \Google\Cloud\Compute\V1\Operation
@@ -56,15 +56,15 @@
5656
function set_usage_export_bucket(
5757
string $projectId,
5858
string $bucketName,
59-
string $reportPrefixName = ''
59+
string $reportNamePrefix = ''
6060
) {
6161
// Initialize UsageExportLocation object with provided bucket name and no report name prefix.
6262
$usageExportLocation = new UsageExportLocation(array(
6363
"bucket_name" => $bucketName,
64-
"report_name_prefix" => $reportPrefixName
64+
"report_name_prefix" => $reportNamePrefix
6565
));
6666

67-
if (strlen($reportPrefixName) == 0) {
67+
if (strlen($reportNamePrefix) == 0) {
6868
// Sending empty value for report_name_prefix results in the next usage report
6969
// being generated with the default prefix value "usage_gce".
7070
// See https://cloud.google.com/compute/docs/reference/rest/v1/projects/setUsageExportBucket
@@ -80,7 +80,7 @@ function set_usage_export_bucket(
8080

8181
# [START compute_usage_report_get]
8282
/**
83-
* Retrieve Compute Engine usage export bucket for the Cloud Project.
83+
* Retrieve Compute Engine usage export bucket for the Cloud project.
8484
* Replaces the empty value returned by the API with the default value used
8585
* to generate report file names.
8686
* Example:
@@ -96,11 +96,11 @@ function set_usage_export_bucket(
9696
*/
9797
function get_usage_export_bucket(string $projectId)
9898
{
99-
// Get the usage setting for the project from the server.
99+
// Get the usage export location for the project from the server.
100100
$projectsClient = new ProjectsClient();
101101
$projectResponse = $projectsClient->get($projectId);
102102

103-
// Construct proper values to be displayed, taking into account default values behavior.
103+
// Replace the empty value returned by the API with the default value used to generate report file names.
104104
if ($projectResponse->hasUsageExportLocation()) {
105105
$responseUsageExportLocation = $projectResponse->getUsageExportLocation();
106106

dialogflow/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"google/cloud-dialogflow": "^0.21",
3+
"google/cloud-dialogflow": "^0.22",
44
"symfony/console": "^5.0"
55
},
66
"autoload": {

firestore/src/data_batch_writes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ function data_batch_writes(string $projectId): void
6363
printf('Batch write successfully completed.' . PHP_EOL);
6464
}
6565

66+
// The following 2 lines are only needed to run the samples
6667
require_once __DIR__ . '/../../testing/sample_helpers.php';
6768
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_delete_collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@ function data_delete_collection(string $projectId, string $collectionName, int $
5353
# [END firestore_data_delete_collection]
5454
# [END fs_delete_collection]
5555

56+
// The following 2 lines are only needed to run the samples
5657
require_once __DIR__ . '/../../testing/sample_helpers.php';
5758
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_delete_doc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ function data_delete_doc(string $projectId): void
4444
printf('Deleted the DC document in the cities collection.' . PHP_EOL);
4545
}
4646

47+
// The following 2 lines are only needed to run the samples
4748
require_once __DIR__ . '/../../testing/sample_helpers.php';
4849
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_delete_field.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function data_delete_field(string $projectId): void
4848
printf('Deleted the capital field from the BJ document in the cities collection.' . PHP_EOL);
4949
}
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_get_all_documents.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@ function data_get_all_documents(string $projectId): void
5353
# [END fs_get_all_docs]
5454
}
5555

56+
// The following 2 lines are only needed to run the samples
5657
require_once __DIR__ . '/../../testing/sample_helpers.php';
5758
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_get_as_map.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ function data_get_as_map(string $projectId): void
5151
# [END fs_get_document]
5252
}
5353

54+
// The following 2 lines are only needed to run the samples
5455
require_once __DIR__ . '/../../testing/sample_helpers.php';
5556
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_get_dataset.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,6 @@ function data_get_dataset(string $projectId): void
7979
# [END fs_retrieve_create_examples]
8080
}
8181

82+
// The following 2 lines are only needed to run the samples
8283
require_once __DIR__ . '/../../testing/sample_helpers.php';
8384
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_get_sub_collections.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function data_get_sub_collections(string $projectId): void
4747
# [END fs_get_collections]
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_query.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,6 @@ function data_query(string $projectId): void
5454
# [END fs_get_multiple_docs]
5555
}
5656

57+
// The following 2 lines are only needed to run the samples
5758
require_once __DIR__ . '/../../testing/sample_helpers.php';
5859
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_reference_collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ function data_reference_collection(string $projectId): void
4444
printf('Retrieved collection: %s' . PHP_EOL, $collection->name());
4545
}
4646

47+
// The following 2 lines are only needed to run the samples
4748
require_once __DIR__ . '/../../testing/sample_helpers.php';
4849
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_reference_document.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ function data_reference_document(string $projectId): void
4444
printf('Retrieved document: %s' . PHP_EOL, $document->name());
4545
}
4646

47+
// The following 2 lines are only needed to run the samples
4748
require_once __DIR__ . '/../../testing/sample_helpers.php';
4849
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_reference_document_path.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ function data_reference_document_path(string $projectId): void
4444
printf('Retrieved document from path: %s' . PHP_EOL, $document->name());
4545
}
4646

47+
// The following 2 lines are only needed to run the samples
4748
require_once __DIR__ . '/../../testing/sample_helpers.php';
4849
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_reference_subcollection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function data_reference_subcollection(string $projectId): void
4848
printf('Retrieved document from subcollection: %s' . PHP_EOL, $document->name());
4949
}
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_array_operations.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ function data_set_array_operations(string $projectId): void
5555
printf('Updated the regions field of the DC document in the cities collection.' . PHP_EOL);
5656
}
5757

58+
// The following 2 lines are only needed to run the samples
5859
require_once __DIR__ . '/../../testing/sample_helpers.php';
5960
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_doc_upsert.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function data_set_doc_upsert(string $projectId): void
4747
printf('Set document data by merging it into the existing BJ document in the cities collection.' . PHP_EOL);
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_field.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function data_set_field(string $projectId): void
4747
printf('Updated the capital field of the DC document in the cities collection.' . PHP_EOL);
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_from_map.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function data_set_from_map(string $projectId): void
4949
printf('Set data for the LA document in the cities collection.' . PHP_EOL);
5050
}
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_from_map_nested.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ function data_set_from_map_nested(string $projectId): void
5858
# [END fs_add_doc_data_types]
5959
}
6060

61+
// The following 2 lines are only needed to run the samples
6162
require_once __DIR__ . '/../../testing/sample_helpers.php';
6263
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_id_random_collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function data_set_id_random_collection(string $projectId): void
4848
# [END fs_add_doc_data_with_auto_id]
4949
}
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_id_random_document_ref.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function data_set_id_random_document_ref(string $projectId): void
4949
# [END fs_add_doc_data_after_auto_id]
5050
}
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_id_specified.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function data_set_id_specified(string $projectId): void
4848
printf('Added document with ID: new-city-id' . PHP_EOL);
4949
}
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_nested_fields.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,6 @@ function data_set_nested_fields(string $projectId): void
5757
printf('Updated the age and favorite color fields of the frank document in the users collection.' . PHP_EOL);
5858
}
5959

60+
// The following 2 lines are only needed to run the samples
6061
require_once __DIR__ . '/../../testing/sample_helpers.php';
6162
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_numeric_increment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ function data_set_numeric_increment(string $projectId): void
5050
printf('Updated the population of the DC document in the cities collection.' . PHP_EOL);
5151
}
5252

53+
// The following 2 lines are only needed to run the samples
5354
require_once __DIR__ . '/../../testing/sample_helpers.php';
5455
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_server_timestamp.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,6 @@ function data_set_server_timestamp(string $projectId): void
5252
printf('Updated the timestamp field of the some-id document in the objects collection.' . PHP_EOL);
5353
}
5454

55+
// The following 2 lines are only needed to run the samples
5556
require_once __DIR__ . '/../../testing/sample_helpers.php';
5657
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_collection_group_dataset.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,6 @@ function query_collection_group_dataset(string $projectId): void
8585
# [END fs_collection_group_query_data_setup]
8686
}
8787

88+
// The following 2 lines are only needed to run the samples
8889
require_once __DIR__ . '/../../testing/sample_helpers.php';
8990
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_collection_group_filter_eq.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function query_collection_group_filter_eq(string $projectId): void
4747
# [END fs_collection_group_query]
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_cursor_end_at_field_value_single.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ function query_cursor_end_at_field_value_single(string $projectId): void
5050
}
5151
}
5252

53+
// The following 2 lines are only needed to run the samples
5354
require_once __DIR__ . '/../../testing/sample_helpers.php';
5455
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_cursor_pagination.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@ function query_cursor_pagination(string $projectId): void
5959
}
6060
}
6161

62+
// The following 2 lines are only needed to run the samples
6263
require_once __DIR__ . '/../../testing/sample_helpers.php';
6364
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_cursor_start_at_document.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@ function query_cursor_start_at_document(string $projectId): void
5353
}
5454
}
5555

56+
// The following 2 lines are only needed to run the samples
5657
require_once __DIR__ . '/../../testing/sample_helpers.php';
5758
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_cursor_start_at_field_value_multi.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ function query_cursor_start_at_field_value_multi(string $projectId): void
6363
}
6464
}
6565

66+
// The following 2 lines are only needed to run the samples
6667
require_once __DIR__ . '/../../testing/sample_helpers.php';
6768
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_cursor_start_at_field_value_single.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ function query_cursor_start_at_field_value_single(string $projectId): void
5050
}
5151
}
5252

53+
// The following 2 lines are only needed to run the samples
5354
require_once __DIR__ . '/../../testing/sample_helpers.php';
5455
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_array_contains.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function query_filter_array_contains(string $projectId): void
4747
}
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_array_contains_any.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function query_filter_array_contains_any(string $projectId): void
4747
}
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_compound_multi_eq.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function query_filter_compound_multi_eq(string $projectId): void
4949
}
5050
}
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

0 commit comments

Comments
 (0)