Skip to content

Commit 0215dd6

Browse files
authored
fix: replace use of github.com/golang/protobuf/proto where possible (#1557)
This is basically b9f8777 but removing changes that were from generated files. Updates: #1525
1 parent 7fcd903 commit 0215dd6

15 files changed

+15
-15
lines changed

server/services/echo_service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"testing"
2525
"time"
2626

27-
"github.com/golang/protobuf/proto"
2827
"github.com/golang/protobuf/ptypes"
2928
durpb "github.com/golang/protobuf/ptypes/duration"
3029
pb "github.com/googleapis/gapic-showcase/server/genproto"
@@ -34,6 +33,7 @@ import (
3433
"google.golang.org/grpc/codes"
3534
"google.golang.org/grpc/metadata"
3635
"google.golang.org/grpc/status"
36+
"google.golang.org/protobuf/proto"
3737
durationpb "google.golang.org/protobuf/types/known/durationpb"
3838
)
3939

server/services/iam_policy_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import (
1919
"sync"
2020

2121
iampb "cloud.google.com/go/iam/apiv1/iampb"
22-
"github.com/golang/protobuf/proto"
2322
"google.golang.org/grpc/codes"
2423
"google.golang.org/grpc/status"
24+
"google.golang.org/protobuf/proto"
2525
)
2626

2727
var missingResource error = status.Error(codes.InvalidArgument, "Missing required argument: resource")

server/services/identity_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ import (
1919
"fmt"
2020
"sync"
2121

22-
"github.com/golang/protobuf/proto"
2322
"github.com/golang/protobuf/ptypes"
2423
"github.com/golang/protobuf/ptypes/empty"
2524
"github.com/googleapis/gapic-showcase/server"
2625
pb "github.com/googleapis/gapic-showcase/server/genproto"
2726
"google.golang.org/grpc/codes"
2827
"google.golang.org/grpc/status"
28+
"google.golang.org/protobuf/proto"
2929
)
3030

3131
// NewIdentityServer returns a new instance of showcase identity server.

server/services/identity_service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ import (
2020
"strings"
2121
"testing"
2222

23-
"github.com/golang/protobuf/proto"
2423
"github.com/google/go-cmp/cmp"
2524
"github.com/googleapis/gapic-showcase/server"
2625
pb "github.com/googleapis/gapic-showcase/server/genproto"
2726
"google.golang.org/grpc/codes"
2827
"google.golang.org/grpc/status"
28+
"google.golang.org/protobuf/proto"
2929
"google.golang.org/protobuf/types/known/fieldmaskpb"
3030
)
3131

server/services/messaging_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ import (
2525
"time"
2626

2727
"cloud.google.com/go/longrunning/autogen/longrunningpb"
28-
"github.com/golang/protobuf/proto"
2928
"github.com/golang/protobuf/ptypes"
3029
"github.com/golang/protobuf/ptypes/empty"
3130
"github.com/googleapis/gapic-showcase/server"
3231
pb "github.com/googleapis/gapic-showcase/server/genproto"
3332
errdetails "google.golang.org/genproto/googleapis/rpc/errdetails"
3433
"google.golang.org/grpc/codes"
3534
"google.golang.org/grpc/status"
35+
"google.golang.org/protobuf/proto"
3636
)
3737

3838
// NewMessagingServer returns an instance of a messaging server.

server/services/messaging_service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"testing"
2525
"time"
2626

27-
"github.com/golang/protobuf/proto"
2827
"github.com/golang/protobuf/ptypes"
2928
"github.com/golang/protobuf/ptypes/timestamp"
3029
"github.com/google/go-cmp/cmp"
@@ -33,6 +32,7 @@ import (
3332
"golang.org/x/sync/errgroup"
3433
"google.golang.org/grpc/codes"
3534
"google.golang.org/grpc/status"
35+
"google.golang.org/protobuf/proto"
3636
"google.golang.org/protobuf/types/known/fieldmaskpb"
3737
)
3838

server/services/operations_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ import (
2323
"time"
2424

2525
lropb "cloud.google.com/go/longrunning/autogen/longrunningpb"
26-
"github.com/golang/protobuf/proto"
2726
"github.com/golang/protobuf/ptypes"
2827
"github.com/golang/protobuf/ptypes/empty"
2928
"github.com/googleapis/gapic-showcase/server"
3029
pb "github.com/googleapis/gapic-showcase/server/genproto"
3130
"google.golang.org/grpc/codes"
3231
"google.golang.org/grpc/status"
32+
"google.golang.org/protobuf/proto"
3333
)
3434

3535
// NewOperationsServer returns a new OperationsServer for the Showcase API.

server/services/operations_service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ import (
2222
"time"
2323

2424
lropb "cloud.google.com/go/longrunning/autogen/longrunningpb"
25-
"github.com/golang/protobuf/proto"
2625
"github.com/golang/protobuf/ptypes"
2726
"github.com/googleapis/gapic-showcase/server"
2827
pb "github.com/googleapis/gapic-showcase/server/genproto"
2928
"google.golang.org/grpc/codes"
3029
"google.golang.org/grpc/status"
30+
"google.golang.org/protobuf/proto"
3131
)
3232

3333
func TestGetOperation_wait(t *testing.T) {

server/services/testing_service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ import (
1919
"encoding/base64"
2020
"testing"
2121

22-
"github.com/golang/protobuf/proto"
2322
"github.com/golang/protobuf/ptypes/empty"
2423
"github.com/googleapis/gapic-showcase/server"
2524
pb "github.com/googleapis/gapic-showcase/server/genproto"
2625
"google.golang.org/grpc/codes"
2726
"google.golang.org/grpc/status"
27+
"google.golang.org/protobuf/proto"
2828
)
2929

3030
func Test_Session_lifecycle(t *testing.T) {

server/session_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import (
1818
"context"
1919
"testing"
2020

21-
"github.com/golang/protobuf/proto"
2221
pb "github.com/googleapis/gapic-showcase/server/genproto"
2322
"google.golang.org/grpc"
23+
"google.golang.org/protobuf/proto"
2424
)
2525

2626
func TestSessionProto(t *testing.T) {

0 commit comments

Comments
 (0)