diff --git a/examples/examplepb/a_bit_of_everything.pb.go b/examples/examplepb/a_bit_of_everything.pb.go index 0cc2f023fc1..794eef7455c 100644 --- a/examples/examplepb/a_bit_of_everything.pb.go +++ b/examples/examplepb/a_bit_of_everything.pb.go @@ -8,7 +8,7 @@ import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "github.com/gengo/grpc-gateway/third_party/googleapis/google/api" -import google_protobuf1 "github.com/golang/protobuf/ptypes/empty" +import google_protobuf1 "google/protobuf" import gengo_grpc_gateway_examples_sub "github.com/gengo/grpc-gateway/examples/sub" import sub2 "github.com/gengo/grpc-gateway/examples/sub2" diff --git a/examples/examplepb/a_bit_of_everything.pb.gw.go b/examples/examplepb/a_bit_of_everything.pb.gw.go index ae91750b167..29230e22a06 100644 --- a/examples/examplepb/a_bit_of_everything.pb.gw.go +++ b/examples/examplepb/a_bit_of_everything.pb.gw.go @@ -10,6 +10,7 @@ It translates gRPC into RESTful JSON APIs. package examplepb import ( + "google/protobuf" "io" "net/http" @@ -18,7 +19,6 @@ import ( "github.com/gengo/grpc-gateway/runtime" "github.com/gengo/grpc-gateway/utilities" "github.com/golang/protobuf/proto" - "github.com/golang/protobuf/ptypes/empty" "golang.org/x/net/context" "google.golang.org/grpc" "google.golang.org/grpc/codes" @@ -406,7 +406,7 @@ func request_ABitOfEverythingService_DeepPathEcho_0(ctx context.Context, marshal } func request_ABitOfEverythingService_Timeout_0(ctx context.Context, marshaler runtime.Marshaler, client ABitOfEverythingServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty + var protoReq google_protobuf.Empty var metadata runtime.ServerMetadata msg, err := client.Timeout(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) diff --git a/examples/examplepb/stream.pb.go b/examples/examplepb/stream.pb.go index 9c9688f8a1d..4ded68bee0f 100644 --- a/examples/examplepb/stream.pb.go +++ b/examples/examplepb/stream.pb.go @@ -8,7 +8,7 @@ import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "github.com/gengo/grpc-gateway/third_party/googleapis/google/api" -import google_protobuf1 "github.com/golang/protobuf/ptypes/empty" +import google_protobuf1 "google/protobuf" import gengo_grpc_gateway_examples_sub "github.com/gengo/grpc-gateway/examples/sub" import ( diff --git a/examples/examplepb/stream.pb.gw.go b/examples/examplepb/stream.pb.gw.go index c6fcebe55ab..76fc7a87fb5 100644 --- a/examples/examplepb/stream.pb.gw.go +++ b/examples/examplepb/stream.pb.gw.go @@ -10,6 +10,7 @@ It translates gRPC into RESTful JSON APIs. package examplepb import ( + "google/protobuf" "io" "net/http" @@ -17,7 +18,6 @@ import ( "github.com/gengo/grpc-gateway/runtime" "github.com/gengo/grpc-gateway/utilities" "github.com/golang/protobuf/proto" - "github.com/golang/protobuf/ptypes/empty" "golang.org/x/net/context" "google.golang.org/grpc" "google.golang.org/grpc/codes" @@ -71,7 +71,7 @@ func request_StreamService_BulkCreate_0(ctx context.Context, marshaler runtime.M } func request_StreamService_List_0(ctx context.Context, marshaler runtime.Marshaler, client StreamServiceClient, req *http.Request, pathParams map[string]string) (StreamService_ListClient, runtime.ServerMetadata, error) { - var protoReq empty.Empty + var protoReq google_protobuf.Empty var metadata runtime.ServerMetadata stream, err := client.List(ctx, &protoReq)