MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/golang-samples / functions

Functions5,023 in github.com/GoogleCloudPlatform/golang-samples

FunctiondropColumn
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_drop_column.go:26
FunctiondropForeignKeyDeleteCascade
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_drop_foreign_key_constraint_delete_cascade.go:28
FunctiondropSequence
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_drop_sequence.go:29
FunctionechoHandler
echoHandler reads a JSON object from the body, and writes it back out.
endpoints/getting-started/app.go:59
MethodeditFormHandler
editFormHandler displays a form that allows the user to edit the details of a given book.
getting-started/bookshelf/main.go:155
FunctionenableFineGrainedAccess
(w io.Writer, db string, iamMember string, databaseRole string, title string)
spanner/spanner_snippets/spanner/spanner_enable_fine_grained_access.go:29
FunctionenableOpenTelemetryMetricsAndTraces
(w io.Writer, db string)
spanner/opentelemetry/spanner_opentelemetry_usage.go:41
FunctionencapsulateMLKEM
encapsulateMLKEM demonstrates how to encapsulate a shared secret using an ML-KEM-768 public key from Cloud KMS.
kms/encapsulate_mlkem.go:31
FunctionenvServiceAccount
envServiceAccount shows how to use an environment-provided service account to authenticate.
auth/overview/env_service_account.go:26
Functionexample
[END gae_go_datastore_interface]
docs/appengine/datastore/queries/queries.go:59
Functionexample
()
docs/appengine/datastore/projectionqueries/projectionqueries.go:30
Functionexample
[END gae_datastore_uses_for_transactions_2]
docs/appengine/datastore/transactions/transactions.go:103
Functionexample
()
docs/appengine/datastore/entities/entities.go:32
Functionexample
()
docs/appengine/datastore/consistency/consistency.go:31
Functionexample
[END gae_tasks_within_transactions]
docs/appengine/taskqueue/taskqueue.go:48
Functionexample
()
docs/appengine/taskqueue/push/defer.go:23
Functionexample10
()
docs/appengine/datastore/queries/queries.go:159
Functionexample11
()
docs/appengine/datastore/queries/queries.go:172
Functionexample12
()
docs/appengine/datastore/queries/queries.go:182
Functionexample13
()
docs/appengine/datastore/queries/queries.go:191
Functionexample14
()
docs/appengine/datastore/queries/queries.go:201
Functionexample15
()
docs/appengine/datastore/queries/queries.go:210
Functionexample16
()
docs/appengine/datastore/queries/queries.go:221
Functionexample17
()
docs/appengine/datastore/queries/queries.go:242
Functionexample18
()
docs/appengine/datastore/queries/queries.go:261
Functionexample19
()
docs/appengine/datastore/queries/queries.go:277
Functionexample2
()
docs/appengine/datastore/queries/queries.go:68
Functionexample2
()
docs/appengine/datastore/projectionqueries/projectionqueries.go:37
Functionexample2
()
docs/appengine/datastore/entities/entities.go:47
Functionexample2
()
docs/appengine/datastore/consistency/consistency.go:46
Functionexample20
()
docs/appengine/datastore/queries/queries.go:282
Functionexample21
()
docs/appengine/datastore/queries/queries.go:323
Functionexample22
()
docs/appengine/datastore/queries/queries.go:332
Functionexample23
()
docs/appengine/datastore/queries/queries.go:341
Functionexample3
()
docs/appengine/datastore/queries/queries.go:75
Functionexample3
()
docs/appengine/datastore/projectionqueries/projectionqueries.go:58
Functionexample3
()
docs/appengine/datastore/entities/entities.go:54
Functionexample4
()
docs/appengine/datastore/queries/queries.go:84
Functionexample4
()
docs/appengine/datastore/projectionqueries/projectionqueries.go:78
Functionexample4
()
docs/appengine/datastore/entities/entities.go:63
Functionexample5
()
docs/appengine/datastore/queries/queries.go:95
Functionexample5
()
docs/appengine/datastore/entities/entities.go:73
Functionexample6
()
docs/appengine/datastore/queries/queries.go:102
Functionexample6
()
docs/appengine/datastore/entities/entities.go:87
Functionexample7
()
docs/appengine/datastore/queries/queries.go:134
Functionexample7
()
docs/appengine/datastore/entities/entities.go:102
Functionexample8
()
docs/appengine/datastore/queries/queries.go:141
Functionexample8
()
docs/appengine/datastore/entities/entities.go:115
Functionexample9
()
docs/appengine/datastore/queries/queries.go:150
Functionexplicit
[END auth_cloud_implicit] [START auth_cloud_explicit] explicit reads credentials from the specified path.
auth/snippets.go:72
FunctionexplicitContent
(w io.Writer, file string)
videointelligence/video_analyze/video_analyze.go:127
FunctionexplicitDefault
[END auth_cloud_explicit] [START auth_cloud_explicit_compute_engine] [START auth_cloud_explicit_app_engine] explicitDefault finds the default credenti
auth/snippets.go:103
FunctionexportDICOMInstance
exportDICOMInstance exports DICOM objects to GCS.
healthcare/dicom_export.go:27
Functionf
(ctx context.Context)
docs/appengine/datastore/entities/overview.go:32
Functionf
(ctx context.Context)
docs/appengine/datastore/indexes/indexes.go:39
FunctionfilterComposingChain
[END bigtable_filters_modify_strip_value] [START bigtable_filters_composing_chain]
bigtable/filters/filters.go:136
FunctionfilterComposingCondition
[END bigtable_filters_composing_interleave] [START bigtable_filters_composing_condition]
bigtable/filters/filters.go:150
FunctionfilterComposingInterleave
[END bigtable_filters_composing_chain] [START bigtable_filters_composing_interleave]
bigtable/filters/filters.go:143
FunctionfilterLimitBlockAll
[END bigtable_filters_limit_timestamp_range] [START bigtable_filters_limit_block_all]
bigtable/filters/filters.go:114
FunctionfilterLimitCellsPerCol
[END bigtable_filters_limit_row_regex] [START bigtable_filters_limit_cells_per_col]
bigtable/filters/filters.go:48
FunctionfilterLimitCellsPerRow
[END bigtable_filters_limit_cells_per_col] [START bigtable_filters_limit_cells_per_row]
bigtable/filters/filters.go:55
FunctionfilterLimitCellsPerRowOffset
[END bigtable_filters_limit_cells_per_row] [START bigtable_filters_limit_cells_per_row_offset]
bigtable/filters/filters.go:62
FunctionfilterLimitColFamilyRegex
[END bigtable_filters_limit_cells_per_row_offset] [START bigtable_filters_limit_col_family_regex]
bigtable/filters/filters.go:69
FunctionfilterLimitColQualifierRegex
[END bigtable_filters_limit_col_family_regex] [START bigtable_filters_limit_col_qualifier_regex]
bigtable/filters/filters.go:76
FunctionfilterLimitColRange
[END bigtable_filters_limit_col_qualifier_regex] [START bigtable_filters_limit_col_range]
bigtable/filters/filters.go:83
FunctionfilterLimitPassAll
[END bigtable_filters_limit_block_all] [START bigtable_filters_limit_pass_all]
bigtable/filters/filters.go:121
FunctionfilterLimitRowRegex
[END bigtable_filters_limit_row_sample] [START bigtable_filters_limit_row_regex]
bigtable/filters/filters.go:41
FunctionfilterLimitTimestampRange
[END bigtable_filters_limit_value_regex] [START bigtable_filters_limit_timestamp_range]
bigtable/filters/filters.go:104
FunctionfilterLimitValueRange
[END bigtable_filters_limit_col_range] [START bigtable_filters_limit_value_range]
bigtable/filters/filters.go:90
FunctionfilterLimitValueRegex
[END bigtable_filters_limit_value_range] [START bigtable_filters_limit_value_regex]
bigtable/filters/filters.go:97
FunctionfilterModifyStripValue
[END bigtable_filters_limit_pass_all] [START bigtable_filters_modify_strip_value]
bigtable/filters/filters.go:128
FunctionformHandler
(w http.ResponseWriter, r *http.Request)
appengine_flexible/storage/storage.go:89
FunctionformHandler
(w http.ResponseWriter, r *http.Request)
appengine_flexible/go115_and_earlier/storage/storage.go:89
FunctionformatFn
formatFn is a DoFn that formats a word and its count as a string.
dataflow/flex-templates/wordcount/wordcount.go:90
FunctiongenerateBatchEmbeddings
generateBatchEmbeddings shows how to run a batch embeddings prediction job.
genai/batch_prediction/batchpredict_embeddings_with_gcs.go:30
FunctiongenerateBatchPredict
generateBatchPredict runs a batch prediction job using GCS input/output.
genai/batch_prediction/batchpredict_with_gcs.go:30
FunctiongenerateBatchPredictWithBQ
generateBatchPredictWithBQ shows how to run a batch prediction job with BigQuery input/output.
genai/batch_prediction/batchpredict_with_bq.go:30
FunctiongenerateCannyCtrlTypeWithText
generateCannyCtrlTypeWithText demonstrates how to generate an image using a canny ctrl type.
genai/image_generation/imggen_canny_ctrl_type_with_txt_img.go:29
FunctiongenerateContentWithApiKey
generateContent shows how to use Vertex AI Express mode with an API key.
genai/express_mode/expressmode_with_api_key.go:30
FunctiongenerateLiveAudioConversation
generateLiveAudioConversation demonstrates two-way audio interaction with a Gemini model using live streaming.
genai/live/live_conversation_audio_with_audio.go:33
FunctiongenerateLiveAudioWithText
generateLiveAudioWithText demonstrates using a live Gemini model that performs live audio with text and handles responses.
genai/live/live_audio_with_txt.go:30
FunctiongenerateLiveCodeExecWithTxt
generateLiveCodeExecWithTxt demonstrates using a live Gemini model that performs code exec with text calls and handles responses.
genai/live/live_code_exec_with_txt.go:29
FunctiongenerateLiveFuncCallWithTxt
generateLiveFuncCallWithTxt demonstrates using a live Gemini model that performs function calls and handles responses.
genai/live/live_func_call_with_txt.go:29
FunctiongenerateLiveRAGWithText
generateLiveRAGWithText demonstrates how to use the Live API with a Vertex RAG Store. It sends a question to the model and retrieves grounded answers
genai/live/live_ground_ragengine_with_txt.go:30
FunctiongenerateLiveTextWithAudio
generateLiveTextWithAudio demonstrates sending audio to a live session and receiving text output. It sends the audio as a Blob inside a genai.LiveReal
genai/live/live_text_with_audio.go:31
FunctiongenerateLiveTranscribeWithAudio
generateLiveTranscribeWithAudio demonstrates using a live Gemini model that performs live transcribe with audio and handles responses.
genai/live/live_transcribe_with_audio.go:29
FunctiongenerateLiveWithText
generateLiveWithText demonstrates using a live Gemini model that performs live with text and handles responses.
genai/live/live_with_txt.go:29
FunctiongenerateRawReferWithText
generateRawReferWithText demonstrates subject & control reference customization.
genai/image_generation/imggen_raw_refer_with_txt_img.go:29
FunctiongenerateScribbleCtrlTypeWithText
generateScribbleCtrlTypeWithText demonstrates how to generate an image using a scribble ctrl type.
genai/image_generation/imggen_scribble_ctrl_type_with_txt_img.go:29
FunctiongenerateSignedCookie
(w io.Writer)
cdn/signedcookies/sign_cookie.go:72
FunctiongenerateSignedURLs
(w io.Writer)
cdn/signedurls/signurl.go:98
FunctiongenerateStructuredOutputWithTxt
generateStructuredOutputWithTxt demonstrates calling the model via an OpenAPI-style endpoint (base_url + api_key) and parsing JSON output into a Go st
genai/live/live_structured_ouput_with_txt.go:39
FunctiongenerateStyleRefWithText
generateStyleRefWithText demonstrates how to generate an image using a style reference.
genai/image_generation/imggen_styleref_with_txt_img.go:29
FunctiongenerateSubjRefCtrlReferWithText
generateSubjRefCtrlReferWithText demonstrates subject & control reference customization.
genai/image_generation/imggen_subj_refer_ctrl_refer_with_txt_imgs.go:29
FunctiongenerateVideoFromImage
generateVideoFromImage shows how to gen video from img.
genai/video_generation/video_gen_with_img.go:29
FunctiongenerateVideoWithText
generateVideoWithText shows how to gen video from text.
genai/video_generation/video_gen_with_txt.go:29
FunctiongenerateWithGoogleVAIS
generateWithGoogleVAIS shows how to generate text using VAIS Search.
genai/tools/tools_vais_search_with_txt.go:28
FunctiongenerateWithMultiImg
generateWithMultiImg shows how to generate text using multiple image inputs.
genai/text_generation/textgen_with_multi_img.go:29
FunctiongetBackupSchedule
(w io.Writer, dbName string, scheduleId string)
spanner/spanner_snippets/spanner/spanner_get_backup_schedule.go:28
FunctiongetDICOMIAMPolicy
getDICOMIAMPolicy gets the DICOM store's IAM policy.
healthcare/dicom_iam_get.go:27
← previousnext →4,401–4,500 of 5,023, ranked by callers