Skip to content

Commit

Permalink
chore: remove all uses of github.com/golang/protobuf (googleapis#9744)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyoss authored Apr 15, 2024
1 parent daf3745 commit c188071
Show file tree
Hide file tree
Showing 139 changed files with 10,967 additions and 3,037 deletions.
10 changes: 5 additions & 5 deletions bigtable/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -705,12 +705,12 @@ func newSnapshotInfo(snapshot *btapb.Snapshot) (*SnapshotInfo, error) {
if err := snapshot.CreateTime.CheckValid(); err != nil {
return nil, fmt.Errorf("invalid createTime: %w", err)
}
createTime := snapshot.CreateTime.AsTime()
createTime := snapshot.GetCreateTime().AsTime()

if err := snapshot.DeleteTime.CheckValid(); err != nil {
return nil, fmt.Errorf("invalid deleteTime: %v", err)
}
deleteTime := snapshot.DeleteTime.AsTime()
deleteTime := snapshot.GetDeleteTime().AsTime()

return &SnapshotInfo{
Name: name,
Expand Down Expand Up @@ -2057,17 +2057,17 @@ func newBackupInfo(backup *btapb.Backup) (*BackupInfo, error) {
if err := backup.StartTime.CheckValid(); err != nil {
return nil, fmt.Errorf("invalid startTime: %v", err)
}
startTime := backup.StartTime.AsTime()
startTime := backup.GetStartTime().AsTime()

if err := backup.EndTime.CheckValid(); err != nil {
return nil, fmt.Errorf("invalid endTime: %v", err)
}
endTime := backup.EndTime.AsTime()
endTime := backup.GetEndTime().AsTime()

if err := backup.ExpireTime.CheckValid(); err != nil {
return nil, fmt.Errorf("invalid expireTime: %v", err)
}
expireTime := backup.ExpireTime.AsTime()
expireTime := backup.GetExpireTime().AsTime()
encryptionInfo := newEncryptionInfo(backup.EncryptionInfo)
bi := BackupInfo{
Name: name,
Expand Down
2 changes: 1 addition & 1 deletion cloudbuild/apiv1/cloud_build_client.go

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

2 changes: 1 addition & 1 deletion cloudbuild/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ go 1.19
require (
cloud.google.com/go/iam v1.1.7
cloud.google.com/go/longrunning v0.5.6
github.com/golang/protobuf v1.5.4
github.com/googleapis/gax-go/v2 v2.12.3
google.golang.org/api v0.172.0
google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9
Expand All @@ -22,6 +21,7 @@ require (
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
go.opencensus.io v0.24.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion datastore/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ go 1.19
require (
cloud.google.com/go v0.112.2
cloud.google.com/go/longrunning v0.5.6
github.com/golang/protobuf v1.5.4
github.com/google/go-cmp v0.6.0
github.com/googleapis/gax-go/v2 v2.12.3
google.golang.org/api v0.172.0
Expand All @@ -22,6 +21,7 @@ require (
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
go.opencensus.io v0.24.0 // indirect
Expand Down
Loading

0 comments on commit c188071

Please sign in to comment.