diff --git a/pkg/api/grpcpb/build.sh b/pkg/api/grpcpb/build.sh index f3e7a09077..c1ad524887 100755 --- a/pkg/api/grpcpb/build.sh +++ b/pkg/api/grpcpb/build.sh @@ -10,3 +10,6 @@ for proto in *.proto ; do --go-grpc_opt=paths=source_relative --go-grpc_out . \ ${proto} done + +# Format generated files +gofumpt -w -- *.pb.go diff --git a/pkg/api/grpcpb/noop.pb.go b/pkg/api/grpcpb/noop.pb.go index 82accbba59..39a2eb4c87 100644 --- a/pkg/api/grpcpb/noop.pb.go +++ b/pkg/api/grpcpb/noop.pb.go @@ -7,11 +7,12 @@ package grpcpb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -134,11 +135,14 @@ func file_noop_proto_rawDescGZIP() []byte { return file_noop_proto_rawDescData } -var file_noop_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_noop_proto_goTypes = []any{ - (*NoopRequest)(nil), // 0: io.podman.v1.NoopRequest - (*NoopResponse)(nil), // 1: io.podman.v1.NoopResponse -} +var ( + file_noop_proto_msgTypes = make([]protoimpl.MessageInfo, 2) + file_noop_proto_goTypes = []any{ + (*NoopRequest)(nil), // 0: io.podman.v1.NoopRequest + (*NoopResponse)(nil), // 1: io.podman.v1.NoopResponse + } +) + var file_noop_proto_depIdxs = []int32{ 0, // 0: io.podman.v1.Noop.Noop:input_type -> io.podman.v1.NoopRequest 1, // 1: io.podman.v1.Noop.Noop:output_type -> io.podman.v1.NoopResponse diff --git a/pkg/api/grpcpb/noop_grpc.pb.go b/pkg/api/grpcpb/noop_grpc.pb.go index fefbae8885..ae5f80ec5e 100644 --- a/pkg/api/grpcpb/noop_grpc.pb.go +++ b/pkg/api/grpcpb/noop_grpc.pb.go @@ -8,6 +8,7 @@ package grpcpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -51,7 +52,7 @@ func (c *noopClient) Noop(ctx context.Context, in *NoopRequest, opts ...grpc.Cal // All implementations must embed UnimplementedNoopServer // for forward compatibility. type NoopServer interface { - Noop(context.Context, *NoopRequest) (*NoopResponse, error) + Noop(ctx context.Context, in *NoopRequest) (*NoopResponse, error) mustEmbedUnimplementedNoopServer() } @@ -62,7 +63,7 @@ type NoopServer interface { // pointer dereference when methods are called. type UnimplementedNoopServer struct{} -func (UnimplementedNoopServer) Noop(context.Context, *NoopRequest) (*NoopResponse, error) { +func (UnimplementedNoopServer) Noop(ctx context.Context, in *NoopRequest) (*NoopResponse, error) { return nil, status.Error(codes.Unimplemented, "method Noop not implemented") } func (UnimplementedNoopServer) mustEmbedUnimplementedNoopServer() {}