From 939d51a2a84f9d574a34eda40f146e466f490a32 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 10 Dec 2020 16:04:42 +0300 Subject: [PATCH] fix proto Signed-off-by: Vasiliy Tolstov --- errors/errors.pb.go | 21 +++++++++------------ errors/errors.proto | 3 +-- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/errors/errors.pb.go b/errors/errors.pb.go index 6fab7c0..b66a42c 100644 --- a/errors/errors.pb.go +++ b/errors/errors.pb.go @@ -99,17 +99,14 @@ func (x *Error) GetStatus() string { var File_errors_proto protoreflect.FileDescriptor var file_errors_proto_rawDesc = []byte{ - 0x0a, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, - 0x6f, 0x72, 0x67, 0x2e, 0x75, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x6d, 0x69, 0x63, - 0x72, 0x6f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x73, 0x22, 0x5b, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, - 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, - 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x3b, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x0a, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x22, 0x5b, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, + 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -126,7 +123,7 @@ func file_errors_proto_rawDescGZIP() []byte { var file_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_errors_proto_goTypes = []interface{}{ - (*Error)(nil), // 0: org.unistack.micro.server.grpc.errors.Error + (*Error)(nil), // 0: errors.Error } var file_errors_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type diff --git a/errors/errors.proto b/errors/errors.proto index 45b48b8..e9d51ff 100644 --- a/errors/errors.proto +++ b/errors/errors.proto @@ -1,7 +1,6 @@ syntax = "proto3"; -option go_package = ".;errors"; -package org.unistack.micro.server.grpc.errors; +package errors; message Error { string id = 1;