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
Method
Close
()
compute/reservations/mock_shared_project.go:48
Method
Close
()
compute/reservations/mock_shared_project.go:55
Method
CommandFlags
CommandFlags retrieves the common gcloud flags for targeting the full managed platform in a given region.
internal/cloudrunci/platform.go:57
Method
CommandFlags
CommandFlags retrieves the common gcloud flags for targeting a GKE cluster.
internal/cloudrunci/platform.go:98
Method
CommandFlags
CommandFlags retrieves the common gcloud flags for targeting a Kubernetes cluster.
internal/cloudrunci/platform.go:126
Function
ConditionalDeleteFHIRResource
ConditionalDeleteFHIRResource conditionally deletes an FHIR resource.
healthcare/internal/fhir-resource-conditional-delete/fhir_resource_conditional_delete.go:38
Function
ConditionalPatchFHIRResource
ConditionalPatchFHIRResource conditionally patches an FHIR resource.
healthcare/internal/fhir-resource-conditional-patch/fhir_resource_conditional_patch.go:41
Function
ConditionalUpdateFHIRResource
ConditionalUpdateFHIRResource conditionally updates an FHIR resource.
healthcare/internal/fhir-resource-conditional-update/fhir_resource_conditional_update.go:40
Method
Create
( ctx context.Context, model string, src *genai.BatchJobSource, config *genai.CreateBatchJobConfig, )
genai/batch_prediction/batchprediction_examples_test.go:108
Method
Create
( ctx context.Context, model string, src *genai.BatchJobSource, config *genai.CreateBatchJobConfig, )
genai/batch_prediction/batchprediction_examples_test.go:195
Function
CreateRegionalSecret
createSecret creates a new secret with the given name. A secret is a logical wrapper around a collection of secret versions. Secret versions hold the
secretmanager/regional_samples/create_regional_secret.go:31
Method
Delete
(context.Context, *computepb.DeleteReservationRequest, ...gax.CallOption)
compute/reservations/mock_shared_project.go:43
Method
Delete
(context.Context, *computepb.DeleteInstanceRequest, ...gax.CallOption)
compute/reservations/mock_shared_project.go:49
Method
DeleteBook
DeleteBook removes a given book by its ID.
getting-started/bookshelf/db_firestore.go:86
Method
DeleteBook
DeleteBook removes a given book by its ID.
getting-started/bookshelf/db_memory.go:78
Function
DeleteRegionalSecret
deleteSecret deletes the secret with the given name and all of its versions.
secretmanager/regional_samples/delete_regional_secret.go:28
Function
DeleteRegionalSecretWithEtag
deleteSecretWithEtag deletes the secret with the given name and all of its versions.
secretmanager/regional_samples/delete_regional_secret_with_etag.go:28
Method
Deployed
Deployed reports whether the application has been deployed.
internal/aeintegrate/aeintegrate.go:96
Method
Descriptor
Deprecated: Use SampleStruct.ProtoReflect.Descriptor instead.
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:81
Method
Descriptor
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:39
Method
Descriptor
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:79
Method
Descriptor
Deprecated: Use SingerInfo.ProtoReflect.Descriptor instead.
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:130
Method
Descriptor
()
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:50
Method
Descriptor
()
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:60
Method
Descriptor
Deprecated: Use State.ProtoReflect.Descriptor instead.
internal/pubsub/schemas/us-states.pb.go:80
Method
Descriptor
()
run/grpc-ping/pkg/api/v1/message.pb.go:39
Method
Descriptor
()
run/grpc-ping/pkg/api/v1/message.pb.go:80
Method
Descriptor
()
run/grpc-ping/pkg/api/v1/message.pb.go:133
Method
Descriptor
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:39
Method
Descriptor
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:78
Function
DestroyRegionalSecretVersion
destroySecretVersion destroys the given secret version, making the payload irrecoverable. Other secrets versions are unaffected.
secretmanager/regional_samples/destroy_regional_secret_version.go:29
Function
DestroyRegionalSecretVersionWithEtag
destroySecretVersionWithEtag destroys the given secret version, making the payload irrecoverable. Other secrets versions are unaffected.
secretmanager/regional_samples/destroy_regional_secret_version_with_etag.go:29
Method
DialContext
DialContext adheres to the mssql.Dialer interface.
cloudsql/sqlserver/database-sql/connect_connector.go:37
Function
DisableRegionalSecretVersion
disableSecretVersion disables the given secret version. Future requests will throw an error until the secret version is enabled. Other secrets version
secretmanager/regional_samples/disable_regional_secret_version.go:30
Function
DisableRegionalSecretVersionWithEtag
disableSecretVersionWithEtag disables the given secret version. Future requests will throw an error until the secret version is enabled. Other secrets
secretmanager/regional_samples/disable_regional_secret_version_with_etag.go:30
Method
EditImage
( ctx context.Context, model string, prompt string, referenceImages []genai.ReferenceImage, config *genai
genai/image_generation/image_generation_examples_test.go:30
Method
EditImage
( ctx context.Context, model string, prompt string, referenceImages []genai.ReferenceImage, config *genai
genai/image_generation/image_generation_examples_test.go:171
Method
EditImage
( ctx context.Context, model string, prompt string, referenceImages []genai.ReferenceImage, config *genai
genai/image_generation/image_generation_examples_test.go:244
Method
EditImage
( ctx context.Context, model string, prompt string, referenceImages []genai.ReferenceImage, config *genai
genai/image_generation/image_generation_examples_test.go:328
Function
EnableRegionalSecretVersion
enableSecretVersion enables the given secret version, enabling it to be accessed after previously being disabled. Other secrets versions are unaffecte
secretmanager/regional_samples/enable_regional_secret_version.go:30
Function
EnableRegionalSecretVersionWithEtag
enableSecretVersionWithEtag enables the given secret version, enabling it to be accessed after previously being disabled. Other secrets versions are u
secretmanager/regional_samples/enable_regional_secret_version_with_etag.go:30
Method
Enum
()
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:64
Method
EnumDescriptor
Deprecated: Use Genre.Descriptor instead.
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:87
Function
ExampleService_Build
ExampleService_Build shows how to build once, deploy many.
internal/cloudrunci/example_test.go:30
Function
ExampleService_NewRequest
ExampleService_Request shows how to run a customized HTTP request.
internal/cloudrunci/example_test.go:67
Function
ExampleService_Request
ExampleService_Request shows how to send an HTTP request to a service using defaults.
internal/cloudrunci/example_test.go:51
Method
GenerateVideos
( ctx context.Context, model string, prompt string, image *genai.Image, config *genai.GenerateVideosConfi
genai/video_generation/video_generation_examples_test.go:117
Method
Get
()
healthcare/internal/fhir-resource-conditional-delete/fhir_resource_conditional_delete.go:35
Method
Get
()
healthcare/internal/fhir-resource-conditional-patch/fhir_resource_conditional_patch.go:38
Method
Get
()
healthcare/internal/fhir-resource-conditional-update/fhir_resource_conditional_update.go:37
Method
Get
( ctx context.Context, name string, _ interface{}, )
genai/batch_prediction/batchprediction_examples_test.go:120
Method
Get
( ctx context.Context, name string, _ interface{}, )
genai/batch_prediction/batchprediction_examples_test.go:208
Method
GetBignumericCol
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:219
Method
GetBirthDate
()
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:141
Method
GetBook
Book retrieves a book by its ID.
getting-started/bookshelf/db_firestore.go:63
Method
GetBook
GetBook retrieves a book by its ID.
getting-started/bookshelf/db_memory.go:53
Method
GetBoolCol
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:156
Method
GetBytesCol
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:163
Method
GetDateCol
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:191
Method
GetDatetimeCol
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:198
Method
GetFloat64Col
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:170
Method
GetGenre
()
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:155
Method
GetGeographyCol
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:205
Method
GetInt64Col
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:177
Method
GetInt64List
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:240
Method
GetMatchCount
GetMatchCount implements a server for ShakespeareService.
profiler/shakesapp/shakesapp/server.go:46
Method
GetMatchCount
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:61
Method
GetMatchCount
(ctx context.Context, in *ShakespeareRequest, opts ...grpc.CallOption)
profiler/shakesapp/shakesapp/shakesapp.pb.go:154
Method
GetMatchCount
Accepts a query string and returns the number of lines containing that.
profiler/shakesapp/shakesapp/shakesapp.pb.go:166
Method
GetMatchCount
(ctx context.Context, req *ShakespeareRequest)
profiler/shakesapp/shakesapp/shakesapp.pb.go:173
Method
GetMessage
()
run/grpc-ping/pkg/api/v1/message.pb.go:61
Method
GetMessages
Gets messages from app memory
getting-started/devflowapp/services/services_mock.go:27
Method
GetMessages
Gets messages from a SQL database
getting-started/devflowapp/services/services.go:46
Method
GetNationality
()
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:148
Method
GetNumericCol
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:212
Function
GetOrUpdate
(ctx context.Context, id, addr, phone string)
docs/appengine/datastore/transactions/transactions.go:86
Method
GetPostAbbr
()
internal/pubsub/schemas/us-states.pb.go:91
Method
GetQuery
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:101
Function
GetRegionalSecret
getSecret gets information about the given secret. This only returns metadata about the secret container, not any secret material.
secretmanager/regional_samples/get_regional_secret.go:30
Function
GetRegionalSecretVersion
getSecretVersion gets information about the given secret version. It does not include the payload data.
secretmanager/regional_samples/get_regional_secret_version.go:30
Method
GetRowNum
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:261
Method
GetSingerId
()
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:134
Method
GetStringCol
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:184
Method
GetStructCol
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:247
Method
GetStructList
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:254
Method
GetSubIntCol
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:85
Method
GetTimeCol
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:226
Method
GetTimestampCol
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:233
Method
GetVideosOperation
( ctx context.Context, op *genai.GenerateVideosOperation, _ *genai.GetOperationConfig, )
genai/video_generation/video_generation_examples_test.go:131
Function
HTTPError
HTTPError describes how errors are handled in an HTTP function.
functions/tips/error.go:32
Function
HandleWebhookRequest
HandleWebhookRequest handles WebhookRequest and sends the WebhookResponse.
dialogflow/basic_webhook/webhook.go:97
Function
HelloAnalytics
HelloAnalytics handles Firebase Mobile Analytics log events.
functions/console_snippets/google_analytics/google_analytics.go:44
Function
HelloAuth
HelloAuth is triggered by Firestore Auth events.
functions/firebase/auth.go:36
Function
HelloAuth
HelloAuth handles changes to Firebase Auth user objects.
functions/console_snippets/firebase_auth/firebase_auth.go:34
Function
HelloFirestore
HelloFirestore is triggered by a change to a Firestore document.
functions/firebase/hello/firestore.go:50
Function
HelloFirestore
HelloFirestore is triggered by a change to a Firestore document.
functions/console_snippets/firestore/firestore.go:48
Function
HelloGCS
HelloGCS prints a message when a file is changed in a Cloud Storage bucket.
functions/console_snippets/gcs/gcs.go:30
Function
HelloLogging
HelloLogging logs messages.
functions/helloworld/hello_logging.go:33
Function
HelloPubSub
HelloPubSub consumes a Pub/Sub message.
functions/console_snippets/pubsub/pubsub.go:31
Function
HelloRTDB
HelloRTDB handles changes to a Firebase RTDB.
functions/console_snippets/firebase_rtdb/firebase_rtdb.go:36
← previous
next →
2,801–2,900 of 5,023, ranked by callers