Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleCloudPlatform/golang-samples
/ functions
Functions
5,023 in github.com/GoogleCloudPlatform/golang-samples
⨍
Functions
5,023
◇
Types & classes
329
Function
TestWithContext
(t *testing.T)
docs/appengine/tools/unittest/aetest.go:24
Function
TestWithdrawLowBal
[END gae_unittest_utility_example_2] [START datastore_example_1]
docs/appengine/tools/unittest/aetest2.go:58
Function
TestWordCount
(t *testing.T)
dataflow/flex-templates/wordcount/wordcount_test.go:27
Function
TestWriteTelemetry
(t *testing.T)
opentelemetry/instrumentation/app/main_test.go:40
Function
TestWriteTraces
(t *testing.T)
opentelemetry/trace/main_test.go:29
Function
TestWrites
(t *testing.T)
bigtable/writes/writes_test.go:31
Function
Test_controlledGenerationResponseSchema6
(t *testing.T)
vertexai/controlled-generation/controlledgen_schema_test.go:26
Function
Test_controlledGenerationResponseSchemaEnum
(t *testing.T)
vertexai/controlled-generation/controlledgen_schema_test.go:56
Function
Test_countTokens
(t *testing.T)
vertexai/token-count/tokencount_test.go:26
Function
Test_countTokensMultimodal
(t *testing.T)
vertexai/token-count/tokencount_test.go:78
Function
Test_functionCalling
(t *testing.T)
vertexai/function-calling/functioncalling_test.go:25
Function
Test_functionCallsChat
(t *testing.T)
vertexai/function-calling/functioncalling_test.go:50
Function
Test_generateContent
(t *testing.T)
vertexai/stream-multimodality-basic/streammultimodalitybasic_test.go:24
Function
Test_generateContent
(t *testing.T)
vertexai/stream-text-basic/streamtextbasic_test.go:24
Function
Test_generateMultimodalContent
(t *testing.T)
vertexai/multimodal-video-with-audio/multimodalvideoaudio_test.go:25
Function
Test_parallelFunctionCalling
(t *testing.T)
vertexai/function-calling/functioncalling_test.go:63
Function
Test_tryGemini
(t *testing.T)
vertexai/snippets/try_gemini_test.go:24
Function
Timeout
Timeout sleeps for 2 minutes and may time out before finishing.
functions/tips/timeout.go:34
Method
UnmarshalJSON
(b []byte)
monitoring/alert/alert.go:158
Method
UnmarshalJSON
(b []byte)
monitoring/alert/alert.go:171
Method
UpdateBook
UpdateBook updates the entry for a given book.
getting-started/bookshelf/db_firestore.go:94
Method
UpdateBook
UpdateBook updates the entry for a given book.
getting-started/bookshelf/db_memory.go:94
Function
UpdateRegionalSecret
updateSecret updates the metadata about an existing secret.
secretmanager/regional_samples/update_regional_secret.go:30
Function
UpdateRegionalSecretWithAlias
updateSecret updates the alias map on an existing secret.
secretmanager/regional_samples/update_regional_secret_with_alias.go:30
Function
UpdateRegionalSecretWithEtag
updateSecretWithEtag updates the metadata about an existing secret.
secretmanager/regional_samples/update_regional_secret_with_etag.go:30
Method
Validate
Validate confirms required properties are set.
internal/cloudrunci/platform.go:49
Method
Validate
Validate confirms required properties are set.
internal/cloudrunci/platform.go:87
Method
Validate
Validate confirms required properties are set.
internal/cloudrunci/platform.go:115
Method
WaitForKeyVersionReady
WaitForKeyVersionReady waits for the given key version to no longer be in the pending_generation state.
kms/kms_helpers_test.go:335
Method
WaitForNet
WaitForNet waits for the host to come live. After a 30s timeout, it will call t.Fatal
getting-started/bookshelf/internal/webtest/webtest.go:47
Method
XXX_DiscardUnknown
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:55
Method
XXX_DiscardUnknown
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:95
Method
XXX_DiscardUnknown
()
run/grpc-ping/pkg/api/v1/message.pb.go:55
Method
XXX_DiscardUnknown
()
run/grpc-ping/pkg/api/v1/message.pb.go:96
Method
XXX_DiscardUnknown
()
run/grpc-ping/pkg/api/v1/message.pb.go:149
Method
XXX_DiscardUnknown
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:55
Method
XXX_DiscardUnknown
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:94
Method
XXX_Marshal
(b []byte, deterministic bool)
profiler/shakesapp/shakesapp/shakesapp.pb.go:46
Method
XXX_Marshal
(b []byte, deterministic bool)
profiler/shakesapp/shakesapp/shakesapp.pb.go:86
Method
XXX_Marshal
(b []byte, deterministic bool)
run/grpc-ping/pkg/api/v1/message.pb.go:46
Method
XXX_Marshal
(b []byte, deterministic bool)
run/grpc-ping/pkg/api/v1/message.pb.go:87
Method
XXX_Marshal
(b []byte, deterministic bool)
run/grpc-ping/pkg/api/v1/message.pb.go:140
Method
XXX_Marshal
(b []byte, deterministic bool)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:46
Method
XXX_Marshal
(b []byte, deterministic bool)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:85
Method
XXX_Merge
(src proto.Message)
profiler/shakesapp/shakesapp/shakesapp.pb.go:49
Method
XXX_Merge
(src proto.Message)
profiler/shakesapp/shakesapp/shakesapp.pb.go:89
Method
XXX_Merge
(src proto.Message)
run/grpc-ping/pkg/api/v1/message.pb.go:49
Method
XXX_Merge
(src proto.Message)
run/grpc-ping/pkg/api/v1/message.pb.go:90
Method
XXX_Merge
(src proto.Message)
run/grpc-ping/pkg/api/v1/message.pb.go:143
Method
XXX_Merge
(src proto.Message)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:49
Method
XXX_Merge
(src proto.Message)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:88
Method
XXX_Size
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:52
Method
XXX_Size
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:92
Method
XXX_Size
()
run/grpc-ping/pkg/api/v1/message.pb.go:52
Method
XXX_Size
()
run/grpc-ping/pkg/api/v1/message.pb.go:93
Method
XXX_Size
()
run/grpc-ping/pkg/api/v1/message.pb.go:146
Method
XXX_Size
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:52
Method
XXX_Size
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:91
Method
XXX_Unmarshal
(b []byte)
profiler/shakesapp/shakesapp/shakesapp.pb.go:43
Method
XXX_Unmarshal
(b []byte)
profiler/shakesapp/shakesapp/shakesapp.pb.go:83
Method
XXX_Unmarshal
(b []byte)
run/grpc-ping/pkg/api/v1/message.pb.go:43
Method
XXX_Unmarshal
(b []byte)
run/grpc-ping/pkg/api/v1/message.pb.go:84
Method
XXX_Unmarshal
(b []byte)
run/grpc-ping/pkg/api/v1/message.pb.go:137
Method
XXX_Unmarshal
(b []byte)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:43
Method
XXX_Unmarshal
(b []byte)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:82
Function
_Greeter_SayHello_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:110
Function
_PingService_SendUpstream_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
run/grpc-ping/pkg/api/v1/message.pb.go:271
Function
_PingService_Send_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
run/grpc-ping/pkg/api/v1/message.pb.go:253
Function
_ShakespeareService_GetMatchCount_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
profiler/shakesapp/shakesapp/shakesapp.pb.go:181
Function
_TimeService_StreamTime_Handler
(srv interface{}, stream grpc.ServerStream)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:203
Function
addAndDropDatabaseRole
(ctx context.Context, w io.Writer, adminClient *database.DatabaseAdminClient, db string)
spanner/spanner_snippets/snippet.go:716
Function
addAndDropDatabaseRole
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_add_and_drop_database_role.go:27
Function
addCommitTimestamp
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_add_timestamp_column.go:28
Method
addFormHandler
addFormHandler displays a form that captures details of a new book to add to the database.
getting-started/bookshelf/main.go:149
Function
addIndex
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_index.go:28
Function
addJsonBColumn
addJsonBColumn creates a column in the database of type JSONB
spanner/spanner_snippets/spanner/pg_spanner_add_jsonb_column.go:30
Function
addJsonColumn
addJsonColumn creates a column in the database of type JSON
spanner/spanner_snippets/spanner/spanner_add_json_column.go:30
Function
addNewColumn
[END spanner_read_data] [START spanner_add_column]
spanner/spanner_snippets/snippet.go:187
Function
addNewColumn
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_add_column.go:28
Function
addNumericColumn
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_add_numeric_column.go:28
Function
addProtoColumn
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_add_proto_column.go:30
Function
addSplitpoints
Adds split points to table and index AddSplitPoins API - https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1#DatabaseAdminClient.AddSp
spanner/spanner_snippets/spanner/spanner_database_add_split_points.go:34
Function
addStoringIndex
[END spanner_read_data_with_index] [START spanner_create_storing_index]
spanner/spanner_snippets/snippet.go:281
Function
addStoringIndex
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_storing_index.go:28
Function
addTaskHandler
(_ http.ResponseWriter, r *http.Request)
docs/appengine/taskqueue/pull/taskqueue_pull.go:24
Function
alterSequence
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_alter_sequence.go:30
Function
alterTableWithForeignKeyDeleteCascade
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_alter_table_with_foreign_key_delete_cascade.go:28
Function
analyzeEntitiesFromGCS
[START language_entities_gcs]
language/snippets/snippet.go:30
Function
analyzeSentimentFromGCS
[END language_entities_gcs] [START language_sentiment_gcs]
language/snippets/snippet.go:46
Function
analyzeSyntaxFromGCS
[END language_sentiment_gcs] [START language_syntax_gcs]
language/snippets/snippet.go:61
Function
apiKey
apiKey shows how to use an API key to authenticate.
auth/overview/api_key.go:29
Function
areYouReadyHandler
(w http.ResponseWriter, r *http.Request)
run/service-health/main.go:311
Function
authInfoHandler
[START endpoints_auth_info_backend] authInfoHandler reads authentication info provided by the Endpoints proxy.
endpoints/getting-started/app.go:93
Function
batchTranslateTextWithGlossaryAndModel
batchTranslateTextWithGlossaryAndModel translates a large volume of text in asynchronous batch mode.
translate/v3/batch_translate_text_with_glossary_and_model.go:29
Function
batchTranslateTextWithModel
batchTranslateTextWithModel translates a large volume of text in asynchronous batch mode.
translate/v3/batch_translate_text_with_model.go:29
Function
batchWrite
batchWrite demonstrates writing mutations to a Spanner database through BatchWrite API - https://pkg.go.dev/cloud.google.com/go/spanner#Client.BatchWr
spanner/spanner_snippets/spanner/spanner_batch_write.go:31
Function
cancelBackup
(ctx context.Context, w io.Writer, db, backupID string)
spanner/spanner_snippets/spanner/spanner_cancel_backup_create.go:34
Function
captureGFELatencyMetric
[END spanner_opentelemetry_usage] [START spanner_opentelemetry_gfe_metric] GFE_Latency and other Spanner metrics are automatically collected when Open
spanner/opentelemetry/spanner_opentelemetry_usage.go:117
Function
captureQueryStatsMetric
[END spanner_opentelemetry_gfe_metric] [START spanner_opentelemetry_capture_query_stats_metric]
spanner/opentelemetry/spanner_opentelemetry_usage.go:140
Function
caseEditorServiceRender
(t *testing.T)
run/testing/markdown_preview_editor.e2e_test.go:83
← previous
next →
4,201–4,300 of 5,023, ranked by callers