From 31821fe4176fab2803b4beeee82a53f218506d5c Mon Sep 17 00:00:00 2001 From: Emmanuel Alejandro Parada Licea Date: Fri, 28 Feb 2025 12:35:51 -0600 Subject: [PATCH 1/7] chore(gae): replicate snippet-bot false negative for go11x/helloworld --- appengine/go11x/helloworld/helloworld.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/appengine/go11x/helloworld/helloworld.go b/appengine/go11x/helloworld/helloworld.go index 810fab1e11..e02ffe544c 100644 --- a/appengine/go11x/helloworld/helloworld.go +++ b/appengine/go11x/helloworld/helloworld.go @@ -17,7 +17,6 @@ // Sample helloworld is an App Engine app. package main -// [START gae_go111_import] import ( "fmt" "log" @@ -25,8 +24,6 @@ import ( "os" ) -// [END gae_go111_import] - // [START gae_go111_main_func] // [START main_func] From 30f91d72c0ab50387f4defcef8d7e2f819756fb1 Mon Sep 17 00:00:00 2001 From: Emmanuel Alejandro Parada Licea Date: Fri, 28 Feb 2025 12:41:41 -0600 Subject: [PATCH 2/7] chore(gae): delete all region tags as a test --- appengine/go11x/helloworld/helloworld.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/appengine/go11x/helloworld/helloworld.go b/appengine/go11x/helloworld/helloworld.go index e02ffe544c..673a218c98 100644 --- a/appengine/go11x/helloworld/helloworld.go +++ b/appengine/go11x/helloworld/helloworld.go @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gae_go111_app] - // Sample helloworld is an App Engine app. package main @@ -24,14 +22,9 @@ import ( "os" ) -// [START gae_go111_main_func] -// [START main_func] - func main() { http.HandleFunc("/", indexHandler) - // [START gae_go111_setting_port] - // [START setting_port] port := os.Getenv("PORT") if port == "" { port = "8080" @@ -42,16 +35,8 @@ func main() { if err := http.ListenAndServe(":"+port, nil); err != nil { log.Fatal(err) } - // [END setting_port] - // [END gae_go111_setting_port] } -// [END main_func] -// [END gae_go111_main_func] - -// [START gae_go111_indexHandler] -// [START indexHandler] - // indexHandler responds to requests with our greeting. func indexHandler(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/" { @@ -60,7 +45,3 @@ func indexHandler(w http.ResponseWriter, r *http.Request) { } fmt.Fprint(w, "Hello, World!") } - -// [END indexHandler] -// [END gae_go111_indexHandler] -// [END gae_go111_app] From eafb90b76ecaa65b4c1979877924f67c9afa1d86 Mon Sep 17 00:00:00 2001 From: Emmanuel Alejandro Parada Licea Date: Fri, 28 Feb 2025 12:49:27 -0600 Subject: [PATCH 3/7] chore(bigtable): delete region tag 'bigtable_writes_aggregate' as a test --- bigtable/writes/write_aggregate.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/bigtable/writes/write_aggregate.go b/bigtable/writes/write_aggregate.go index d6bfc69bec..9453461900 100644 --- a/bigtable/writes/write_aggregate.go +++ b/bigtable/writes/write_aggregate.go @@ -15,7 +15,6 @@ // Package writes contains snippets related to writing to Cloud Bigtable. package writes -// [START bigtable_writes_aggregate] import ( "context" "fmt" @@ -55,5 +54,3 @@ func writeAggregate(w io.Writer, projectID, instanceID string, tableName string) fmt.Fprintf(w, "Successfully wrote row: %s\n", rowKey) return nil } - -// [END bigtable_writes_aggregate] From b7fd40ebdb2966877198eaf10485f8f639b27c89 Mon Sep 17 00:00:00 2001 From: Emmanuel Alejandro Parada Licea Date: Fri, 28 Feb 2025 13:01:06 -0600 Subject: [PATCH 4/7] chore(gae): delete region tag 'gae_cloudsql' as a test --- appengine/go11x/cloudsql/cloudsql.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/appengine/go11x/cloudsql/cloudsql.go b/appengine/go11x/cloudsql/cloudsql.go index c88c0007b1..bf29cb8dfc 100644 --- a/appengine/go11x/cloudsql/cloudsql.go +++ b/appengine/go11x/cloudsql/cloudsql.go @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gae_cloudsql] - // Sample cloudsql demonstrates connection to a Cloud SQL instance from App Engine standard. package main @@ -119,5 +117,3 @@ func mustGetenv(k string) string { } return v } - -// [END gae_cloudsql] From fe43eb1ae8599dc35401aa02d00d8c451034fe0d Mon Sep 17 00:00:00 2001 From: Emmanuel Alejandro Parada Licea Date: Fri, 28 Feb 2025 16:07:07 -0600 Subject: [PATCH 5/7] chore(job): delete all region tags in basic_job_sample.go as a test --- jobs/v3/howto/basic_job_sample.go | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/jobs/v3/howto/basic_job_sample.go b/jobs/v3/howto/basic_job_sample.go index c1fd71a88b..db989f9643 100644 --- a/jobs/v3/howto/basic_job_sample.go +++ b/jobs/v3/howto/basic_job_sample.go @@ -24,8 +24,6 @@ import ( talent "google.golang.org/api/jobs/v3" ) -// [START job_create_job] - // createJob create a job as given. func createJob(w io.Writer, projectID string, jobToCreate *talent.Job) (*talent.Job, error) { ctx := context.Background() @@ -51,10 +49,6 @@ func createJob(w io.Writer, projectID string, jobToCreate *talent.Job) (*talent. return job, err } -// [END job_create_job] - -// [START job_get_job] - // getJob gets a job by name. func getJob(w io.Writer, jobName string) (*talent.Job, error) { ctx := context.Background() @@ -79,10 +73,6 @@ func getJob(w io.Writer, jobName string) (*talent.Job, error) { return job, err } -// [END job_get_job] - -// [START job_update_job] - // updateJob update a job with all fields except name. func updateJob(w io.Writer, jobName string, jobToUpdate *talent.Job) (*talent.Job, error) { ctx := context.Background() @@ -108,10 +98,6 @@ func updateJob(w io.Writer, jobName string, jobToUpdate *talent.Job) (*talent.Jo return job, err } -// [END job_update_job] - -// [START job_update_job_with_field_mask] - // updateJobWithMask updates a job by name with specific fields. // mask is a comma separated list top-level fields of talent.Job. func updateJobWithMask(w io.Writer, jobName string, mask string, jobToUpdate *talent.Job) (*talent.Job, error) { @@ -139,10 +125,6 @@ func updateJobWithMask(w io.Writer, jobName string, mask string, jobToUpdate *ta return job, err } -// [END job_update_job_with_field_mask] - -// [START job_delete_job] - // deleteJob deletes an existing job by name. func deleteJob(w io.Writer, jobName string) error { ctx := context.Background() @@ -164,10 +146,6 @@ func deleteJob(w io.Writer, jobName string) error { return err } -// [END job_delete_job] - -// [START job_list_jobs] - // listJobs lists jobs with a filter, for example // `companyName="projects/my-project/companies/123"`. func listJobs(w io.Writer, projectID, filter string) (*talent.ListJobsResponse, error) { @@ -196,5 +174,3 @@ func listJobs(w io.Writer, projectID, filter string) (*talent.ListJobsResponse, return resp, err } - -// [END job_list_jobs] From 0c8db17758bb91385b9c87ea04d1621f948e65d8 Mon Sep 17 00:00:00 2001 From: Emmanuel Alejandro Parada Licea Date: Fri, 28 Feb 2025 16:24:45 -0600 Subject: [PATCH 6/7] chore(kms): delete region tag 'kms_check_state_import_job' as a test --- kms/check_state_import_job.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/kms/check_state_import_job.go b/kms/check_state_import_job.go index cf2da17a64..408b19bad9 100644 --- a/kms/check_state_import_job.go +++ b/kms/check_state_import_job.go @@ -14,7 +14,6 @@ package kms -// [START kms_check_state_import_job] import ( "context" "fmt" @@ -46,5 +45,3 @@ func checkStateImportJob(w io.Writer, name string) error { fmt.Fprintf(w, "Current state of import job %q: %s\n", result.Name, result.State) return nil } - -// [END kms_check_state_import_job] From 931ada6b6b45712fdead6b04361db4c6c9e19ad1 Mon Sep 17 00:00:00 2001 From: Emmanuel Alejandro Parada Licea Date: Fri, 28 Feb 2025 16:28:38 -0600 Subject: [PATCH 7/7] chore(kms): delete region tag 'vision_face_detection' as a test --- vision/detect/detect.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vision/detect/detect.go b/vision/detect/detect.go index fc766ff788..9422a5e375 100644 --- a/vision/detect/detect.go +++ b/vision/detect/detect.go @@ -32,8 +32,6 @@ func init() { _ = os.Open } -// [START vision_face_detection] - // detectFaces gets faces from the Vision API for an image at the given file path. func detectFaces(w io.Writer, file string) error { ctx := context.Background() @@ -72,8 +70,6 @@ func detectFaces(w io.Writer, file string) error { return nil } -// [END vision_face_detection] - // [START vision_label_detection] // detectLabels gets labels from the Vision API for an image at the given file path.