Skip to content

Commit

Permalink
chore(pubsub): rewrite v2 files with new package
Browse files Browse the repository at this point in the history
  • Loading branch information
hongalex committed Dec 14, 2024
1 parent 1e89977 commit 1bb3d36
Show file tree
Hide file tree
Showing 41 changed files with 376 additions and 122 deletions.
Empty file added pubsub/MIGRATING.md
Empty file.
46 changes: 46 additions & 0 deletions pubsub/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
module cloud.google.com/go/pubsub

go 1.21

require (
cloud.google.com/go v0.116.0
cloud.google.com/go/iam v1.2.2
cloud.google.com/go/kms v1.20.1
github.com/google/go-cmp v0.6.0
github.com/google/uuid v1.6.0
github.com/googleapis/gax-go/v2 v2.14.0
go.einride.tech/aip v0.68.0
go.opencensus.io v0.24.0
go.opentelemetry.io/otel v1.29.0
go.opentelemetry.io/otel/sdk v1.29.0
go.opentelemetry.io/otel/trace v1.29.0
golang.org/x/oauth2 v0.24.0
golang.org/x/sync v0.10.0
golang.org/x/time v0.8.0
google.golang.org/api v0.211.0
google.golang.org/genproto v0.0.0-20241118233622-e639e219e697
google.golang.org/genproto/googleapis/api v0.0.0-20241118233622-e639e219e697
google.golang.org/grpc v1.67.1
google.golang.org/protobuf v1.35.2
)

require (
cloud.google.com/go/auth v0.12.1 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.6 // indirect
cloud.google.com/go/compute/metadata v0.5.2 // indirect
cloud.google.com/go/longrunning v0.6.2 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/google/s2a-go v0.1.8 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
go.opentelemetry.io/otel/metric v1.29.0 // indirect
golang.org/x/crypto v0.30.0 // indirect
golang.org/x/net v0.32.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/text v0.21.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241206012308-a4fef0638583 // indirect
)
174 changes: 174 additions & 0 deletions pubsub/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pubsub/v2/apiv1/auxiliary.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pubsub/v2/apiv1/auxiliary_go123.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions pubsub/v2/apiv1/info.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package pubsub

// SetGoogleClientInfo sets the name and version of the application in
// the `x-goog-api-client` header passed on each request. Also passes any
// provided key-value pairs. Intended for use by Google-written clients.
//
// Internal use only.
func (tc *TopicAdminClient) SetGoogleClientInfo(keyval ...string) {
tc.setGoogleClientInfo(keyval...)
}

// SetGoogleClientInfo sets the name and version of the application in
// the `x-goog-api-client` header passed on each request. Also passes any
// provided key-value pairs. Intended for use by Google-written clients.
//
// Internal use only.
func (sc *SubscriptionAdminClient) SetGoogleClientInfo(keyval ...string) {
sc.setGoogleClientInfo(keyval...)
}
2 changes: 1 addition & 1 deletion pubsub/v2/apiv1/schema_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pubsub/v2/apiv1/schema_client_example_go123_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions pubsub/v2/apiv1/schema_client_example_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pubsub/v2/apiv1/subscription_admin_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1bb3d36

Please sign in to comment.