From 294e1006b474ff69e9357657685fee9da9e0347e Mon Sep 17 00:00:00 2001 From: sgayangi Date: Thu, 26 Sep 2024 10:08:03 +0530 Subject: [PATCH] Update default version test files --- .../student_default_version/student2.go | 2 +- .../student_default_version.pb.go | 165 ++++++++++-------- .../student_default_version_grpc.pb.go | 125 ++++++------- 3 files changed, 152 insertions(+), 140 deletions(-) diff --git a/test/integration/integration/utils/grpc-code/student_default_version/student2.go b/test/integration/integration/utils/grpc-code/student_default_version/student2.go index 9a56a4b6b..bdc9bbd52 100644 --- a/test/integration/integration/utils/grpc-code/student_default_version/student2.go +++ b/test/integration/integration/utils/grpc-code/student_default_version/student2.go @@ -35,7 +35,7 @@ func (srs StudentResponseSatisfier) IsSatisfactory(response any, expectedRespons } } func GetStudent(conn *grpc.ClientConn) (any, error) { - c := NewStudentServiceClient(conn) + c := NewStudentServiceDefaultVersionClient(conn) ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() r := &StudentRequest{Id: 1234} diff --git a/test/integration/integration/utils/grpc-code/student_default_version/student_default_version.pb.go b/test/integration/integration/utils/grpc-code/student_default_version/student_default_version.pb.go index 7871032d8..e4ce2f3d6 100644 --- a/test/integration/integration/utils/grpc-code/student_default_version/student_default_version.pb.go +++ b/test/integration/integration/utils/grpc-code/student_default_version/student_default_version.pb.go @@ -1,8 +1,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.27.1 // protoc v5.28.0 -// source: student.proto +// source: student_default_version.proto package student_default_version @@ -31,7 +31,7 @@ type StudentRequest struct { func (x *StudentRequest) Reset() { *x = StudentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_student_proto_msgTypes[0] + mi := &file_student_default_version_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -44,7 +44,7 @@ func (x *StudentRequest) String() string { func (*StudentRequest) ProtoMessage() {} func (x *StudentRequest) ProtoReflect() protoreflect.Message { - mi := &file_student_proto_msgTypes[0] + mi := &file_student_default_version_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -57,7 +57,7 @@ func (x *StudentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StudentRequest.ProtoReflect.Descriptor instead. func (*StudentRequest) Descriptor() ([]byte, []int) { - return file_student_proto_rawDescGZIP(), []int{0} + return file_student_default_version_proto_rawDescGZIP(), []int{0} } func (x *StudentRequest) GetId() int32 { @@ -79,7 +79,7 @@ type StudentResponse struct { func (x *StudentResponse) Reset() { *x = StudentResponse{} if protoimpl.UnsafeEnabled { - mi := &file_student_proto_msgTypes[1] + mi := &file_student_default_version_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -92,7 +92,7 @@ func (x *StudentResponse) String() string { func (*StudentResponse) ProtoMessage() {} func (x *StudentResponse) ProtoReflect() protoreflect.Message { - mi := &file_student_proto_msgTypes[1] + mi := &file_student_default_version_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -105,7 +105,7 @@ func (x *StudentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StudentResponse.ProtoReflect.Descriptor instead. func (*StudentResponse) Descriptor() ([]byte, []int) { - return file_student_proto_rawDescGZIP(), []int{1} + return file_student_default_version_proto_rawDescGZIP(), []int{1} } func (x *StudentResponse) GetName() string { @@ -122,78 +122,89 @@ func (x *StudentResponse) GetAge() int32 { return 0 } -var File_student_proto protoreflect.FileDescriptor +var File_student_default_version_proto protoreflect.FileDescriptor -var file_student_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x17, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, - 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x20, 0x0a, 0x0e, 0x53, 0x74, 0x75, 0x64, +var file_student_default_version_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x27, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, + 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x0a, 0x0e, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x22, 0x37, 0x0a, 0x0f, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, - 0x61, 0x67, 0x65, 0x32, 0xbe, 0x03, 0x0a, 0x0e, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x61, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x74, 0x75, - 0x64, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, 0x2e, 0x73, - 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, - 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, + 0x61, 0x67, 0x65, 0x32, 0xd0, 0x04, 0x0a, 0x1c, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x81, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x74, 0x75, 0x64, + 0x65, 0x6e, 0x74, 0x12, 0x37, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, 0x2e, 0x73, 0x74, + 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, + 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x6f, + 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x89, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, + 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x37, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x69, 0x0a, 0x10, 0x47, 0x65, 0x74, - 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x27, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, + 0x2e, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x2e, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x30, 0x01, 0x12, 0x8a, 0x01, 0x0a, 0x11, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x75, + 0x64, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x37, 0x2e, 0x6f, 0x72, 0x67, + 0x2e, 0x61, 0x70, 0x6b, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, 0x2e, 0x73, 0x74, + 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, + 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, + 0x01, 0x12, 0x92, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x64, 0x47, 0x65, 0x74, + 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x37, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x30, 0x01, 0x12, 0x6a, 0x0a, 0x11, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x75, 0x64, - 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x27, 0x2e, 0x6f, 0x72, 0x67, 0x2e, - 0x61, 0x70, 0x6b, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, 0x2e, 0x73, 0x74, 0x75, - 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x75, - 0x64, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, - 0x12, 0x72, 0x0a, 0x17, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x64, 0x47, 0x65, 0x74, 0x53, 0x74, - 0x75, 0x64, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x27, 0x2e, 0x6f, 0x72, - 0x67, 0x2e, 0x61, 0x70, 0x6b, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, 0x2e, 0x73, - 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, - 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x28, 0x01, 0x30, 0x01, 0x42, 0x38, 0x0a, 0x1a, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x6b, 0x2e, - 0x76, 0x31, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x50, 0x01, 0x5a, 0x18, 0x2f, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x40, 0x0a, 0x1a, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, + 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x50, 0x01, 0x5a, 0x20, 0x2f, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, + 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_student_proto_rawDescOnce sync.Once - file_student_proto_rawDescData = file_student_proto_rawDesc + file_student_default_version_proto_rawDescOnce sync.Once + file_student_default_version_proto_rawDescData = file_student_default_version_proto_rawDesc ) -func file_student_proto_rawDescGZIP() []byte { - file_student_proto_rawDescOnce.Do(func() { - file_student_proto_rawDescData = protoimpl.X.CompressGZIP(file_student_proto_rawDescData) +func file_student_default_version_proto_rawDescGZIP() []byte { + file_student_default_version_proto_rawDescOnce.Do(func() { + file_student_default_version_proto_rawDescData = protoimpl.X.CompressGZIP(file_student_default_version_proto_rawDescData) }) - return file_student_proto_rawDescData -} - -var file_student_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_student_proto_goTypes = []any{ - (*StudentRequest)(nil), // 0: org.apk.student_service.StudentRequest - (*StudentResponse)(nil), // 1: org.apk.student_service.StudentResponse -} -var file_student_proto_depIdxs = []int32{ - 0, // 0: org.apk.student_service.StudentService.GetStudent:input_type -> org.apk.student_service.StudentRequest - 0, // 1: org.apk.student_service.StudentService.GetStudentStream:input_type -> org.apk.student_service.StudentRequest - 0, // 2: org.apk.student_service.StudentService.SendStudentStream:input_type -> org.apk.student_service.StudentRequest - 0, // 3: org.apk.student_service.StudentService.SendAndGetStudentStream:input_type -> org.apk.student_service.StudentRequest - 1, // 4: org.apk.student_service.StudentService.GetStudent:output_type -> org.apk.student_service.StudentResponse - 1, // 5: org.apk.student_service.StudentService.GetStudentStream:output_type -> org.apk.student_service.StudentResponse - 1, // 6: org.apk.student_service.StudentService.SendStudentStream:output_type -> org.apk.student_service.StudentResponse - 1, // 7: org.apk.student_service.StudentService.SendAndGetStudentStream:output_type -> org.apk.student_service.StudentResponse + return file_student_default_version_proto_rawDescData +} + +var file_student_default_version_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_student_default_version_proto_goTypes = []interface{}{ + (*StudentRequest)(nil), // 0: org.apk.student_service_default_version.StudentRequest + (*StudentResponse)(nil), // 1: org.apk.student_service_default_version.StudentResponse +} +var file_student_default_version_proto_depIdxs = []int32{ + 0, // 0: org.apk.student_service_default_version.StudentServiceDefaultVersion.GetStudent:input_type -> org.apk.student_service_default_version.StudentRequest + 0, // 1: org.apk.student_service_default_version.StudentServiceDefaultVersion.GetStudentStream:input_type -> org.apk.student_service_default_version.StudentRequest + 0, // 2: org.apk.student_service_default_version.StudentServiceDefaultVersion.SendStudentStream:input_type -> org.apk.student_service_default_version.StudentRequest + 0, // 3: org.apk.student_service_default_version.StudentServiceDefaultVersion.SendAndGetStudentStream:input_type -> org.apk.student_service_default_version.StudentRequest + 1, // 4: org.apk.student_service_default_version.StudentServiceDefaultVersion.GetStudent:output_type -> org.apk.student_service_default_version.StudentResponse + 1, // 5: org.apk.student_service_default_version.StudentServiceDefaultVersion.GetStudentStream:output_type -> org.apk.student_service_default_version.StudentResponse + 1, // 6: org.apk.student_service_default_version.StudentServiceDefaultVersion.SendStudentStream:output_type -> org.apk.student_service_default_version.StudentResponse + 1, // 7: org.apk.student_service_default_version.StudentServiceDefaultVersion.SendAndGetStudentStream:output_type -> org.apk.student_service_default_version.StudentResponse 4, // [4:8] is the sub-list for method output_type 0, // [0:4] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -201,13 +212,13 @@ var file_student_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_student_proto_init() } -func file_student_proto_init() { - if File_student_proto != nil { +func init() { file_student_default_version_proto_init() } +func file_student_default_version_proto_init() { + if File_student_default_version_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_student_proto_msgTypes[0].Exporter = func(v any, i int) any { + file_student_default_version_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StudentRequest); i { case 0: return &v.state @@ -219,7 +230,7 @@ func file_student_proto_init() { return nil } } - file_student_proto_msgTypes[1].Exporter = func(v any, i int) any { + file_student_default_version_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StudentResponse); i { case 0: return &v.state @@ -236,18 +247,18 @@ func file_student_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_student_proto_rawDesc, + RawDescriptor: file_student_default_version_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_student_proto_goTypes, - DependencyIndexes: file_student_proto_depIdxs, - MessageInfos: file_student_proto_msgTypes, + GoTypes: file_student_default_version_proto_goTypes, + DependencyIndexes: file_student_default_version_proto_depIdxs, + MessageInfos: file_student_default_version_proto_msgTypes, }.Build() - File_student_proto = out.File - file_student_proto_rawDesc = nil - file_student_proto_goTypes = nil - file_student_proto_depIdxs = nil + File_student_default_version_proto = out.File + file_student_default_version_proto_rawDesc = nil + file_student_default_version_proto_goTypes = nil + file_student_default_version_proto_depIdxs = nil } diff --git a/test/integration/integration/utils/grpc-code/student_default_version/student_default_version_grpc.pb.go b/test/integration/integration/utils/grpc-code/student_default_version/student_default_version_grpc.pb.go index 6bf5503af..40fdc25ee 100644 --- a/test/integration/integration/utils/grpc-code/student_default_version/student_default_version_grpc.pb.go +++ b/test/integration/integration/utils/grpc-code/student_default_version/student_default_version_grpc.pb.go @@ -2,7 +2,7 @@ // versions: // - protoc-gen-go-grpc v1.5.1 // - protoc v5.28.0 -// source: student.proto +// source: student_default_version.proto package student_default_version @@ -19,43 +19,43 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - StudentService_GetStudent_FullMethodName = "/org.apk.student_service.StudentService/GetStudent" - StudentService_GetStudentStream_FullMethodName = "/org.apk.student_service.StudentService/GetStudentStream" - StudentService_SendStudentStream_FullMethodName = "/org.apk.student_service.StudentService/SendStudentStream" - StudentService_SendAndGetStudentStream_FullMethodName = "/org.apk.student_service.StudentService/SendAndGetStudentStream" + StudentServiceDefaultVersion_GetStudent_FullMethodName = "/org.apk.student_service_default_version.StudentServiceDefaultVersion/GetStudent" + StudentServiceDefaultVersion_GetStudentStream_FullMethodName = "/org.apk.student_service_default_version.StudentServiceDefaultVersion/GetStudentStream" + StudentServiceDefaultVersion_SendStudentStream_FullMethodName = "/org.apk.student_service_default_version.StudentServiceDefaultVersion/SendStudentStream" + StudentServiceDefaultVersion_SendAndGetStudentStream_FullMethodName = "/org.apk.student_service_default_version.StudentServiceDefaultVersion/SendAndGetStudentStream" ) -// StudentServiceClient is the client API for StudentService service. +// StudentServiceDefaultVersionClient is the client API for StudentServiceDefaultVersion service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type StudentServiceClient interface { +type StudentServiceDefaultVersionClient interface { GetStudent(ctx context.Context, in *StudentRequest, opts ...grpc.CallOption) (*StudentResponse, error) GetStudentStream(ctx context.Context, in *StudentRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StudentResponse], error) SendStudentStream(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[StudentRequest, StudentResponse], error) SendAndGetStudentStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[StudentRequest, StudentResponse], error) } -type studentServiceClient struct { +type studentServiceDefaultVersionClient struct { cc grpc.ClientConnInterface } -func NewStudentServiceClient(cc grpc.ClientConnInterface) StudentServiceClient { - return &studentServiceClient{cc} +func NewStudentServiceDefaultVersionClient(cc grpc.ClientConnInterface) StudentServiceDefaultVersionClient { + return &studentServiceDefaultVersionClient{cc} } -func (c *studentServiceClient) GetStudent(ctx context.Context, in *StudentRequest, opts ...grpc.CallOption) (*StudentResponse, error) { +func (c *studentServiceDefaultVersionClient) GetStudent(ctx context.Context, in *StudentRequest, opts ...grpc.CallOption) (*StudentResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StudentResponse) - err := c.cc.Invoke(ctx, StudentService_GetStudent_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, StudentServiceDefaultVersion_GetStudent_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *studentServiceClient) GetStudentStream(ctx context.Context, in *StudentRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StudentResponse], error) { +func (c *studentServiceDefaultVersionClient) GetStudentStream(ctx context.Context, in *StudentRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StudentResponse], error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - stream, err := c.cc.NewStream(ctx, &StudentService_ServiceDesc.Streams[0], StudentService_GetStudentStream_FullMethodName, cOpts...) + stream, err := c.cc.NewStream(ctx, &StudentServiceDefaultVersion_ServiceDesc.Streams[0], StudentServiceDefaultVersion_GetStudentStream_FullMethodName, cOpts...) if err != nil { return nil, err } @@ -70,11 +70,11 @@ func (c *studentServiceClient) GetStudentStream(ctx context.Context, in *Student } // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type StudentService_GetStudentStreamClient = grpc.ServerStreamingClient[StudentResponse] +type StudentServiceDefaultVersion_GetStudentStreamClient = grpc.ServerStreamingClient[StudentResponse] -func (c *studentServiceClient) SendStudentStream(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[StudentRequest, StudentResponse], error) { +func (c *studentServiceDefaultVersionClient) SendStudentStream(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[StudentRequest, StudentResponse], error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - stream, err := c.cc.NewStream(ctx, &StudentService_ServiceDesc.Streams[1], StudentService_SendStudentStream_FullMethodName, cOpts...) + stream, err := c.cc.NewStream(ctx, &StudentServiceDefaultVersion_ServiceDesc.Streams[1], StudentServiceDefaultVersion_SendStudentStream_FullMethodName, cOpts...) if err != nil { return nil, err } @@ -83,11 +83,11 @@ func (c *studentServiceClient) SendStudentStream(ctx context.Context, opts ...gr } // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type StudentService_SendStudentStreamClient = grpc.ClientStreamingClient[StudentRequest, StudentResponse] +type StudentServiceDefaultVersion_SendStudentStreamClient = grpc.ClientStreamingClient[StudentRequest, StudentResponse] -func (c *studentServiceClient) SendAndGetStudentStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[StudentRequest, StudentResponse], error) { +func (c *studentServiceDefaultVersionClient) SendAndGetStudentStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[StudentRequest, StudentResponse], error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - stream, err := c.cc.NewStream(ctx, &StudentService_ServiceDesc.Streams[2], StudentService_SendAndGetStudentStream_FullMethodName, cOpts...) + stream, err := c.cc.NewStream(ctx, &StudentServiceDefaultVersion_ServiceDesc.Streams[2], StudentServiceDefaultVersion_SendAndGetStudentStream_FullMethodName, cOpts...) if err != nil { return nil, err } @@ -96,131 +96,132 @@ func (c *studentServiceClient) SendAndGetStudentStream(ctx context.Context, opts } // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type StudentService_SendAndGetStudentStreamClient = grpc.BidiStreamingClient[StudentRequest, StudentResponse] +type StudentServiceDefaultVersion_SendAndGetStudentStreamClient = grpc.BidiStreamingClient[StudentRequest, StudentResponse] -// StudentServiceServer is the server API for StudentService service. -// All implementations must embed UnimplementedStudentServiceServer +// StudentServiceDefaultVersionServer is the server API for StudentServiceDefaultVersion service. +// All implementations must embed UnimplementedStudentServiceDefaultVersionServer // for forward compatibility. -type StudentServiceServer interface { +type StudentServiceDefaultVersionServer interface { GetStudent(context.Context, *StudentRequest) (*StudentResponse, error) GetStudentStream(*StudentRequest, grpc.ServerStreamingServer[StudentResponse]) error SendStudentStream(grpc.ClientStreamingServer[StudentRequest, StudentResponse]) error SendAndGetStudentStream(grpc.BidiStreamingServer[StudentRequest, StudentResponse]) error - mustEmbedUnimplementedStudentServiceServer() + mustEmbedUnimplementedStudentServiceDefaultVersionServer() } -// UnimplementedStudentServiceServer must be embedded to have +// UnimplementedStudentServiceDefaultVersionServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. -type UnimplementedStudentServiceServer struct{} +type UnimplementedStudentServiceDefaultVersionServer struct{} -func (UnimplementedStudentServiceServer) GetStudent(context.Context, *StudentRequest) (*StudentResponse, error) { +func (UnimplementedStudentServiceDefaultVersionServer) GetStudent(context.Context, *StudentRequest) (*StudentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetStudent not implemented") } -func (UnimplementedStudentServiceServer) GetStudentStream(*StudentRequest, grpc.ServerStreamingServer[StudentResponse]) error { +func (UnimplementedStudentServiceDefaultVersionServer) GetStudentStream(*StudentRequest, grpc.ServerStreamingServer[StudentResponse]) error { return status.Errorf(codes.Unimplemented, "method GetStudentStream not implemented") } -func (UnimplementedStudentServiceServer) SendStudentStream(grpc.ClientStreamingServer[StudentRequest, StudentResponse]) error { +func (UnimplementedStudentServiceDefaultVersionServer) SendStudentStream(grpc.ClientStreamingServer[StudentRequest, StudentResponse]) error { return status.Errorf(codes.Unimplemented, "method SendStudentStream not implemented") } -func (UnimplementedStudentServiceServer) SendAndGetStudentStream(grpc.BidiStreamingServer[StudentRequest, StudentResponse]) error { +func (UnimplementedStudentServiceDefaultVersionServer) SendAndGetStudentStream(grpc.BidiStreamingServer[StudentRequest, StudentResponse]) error { return status.Errorf(codes.Unimplemented, "method SendAndGetStudentStream not implemented") } -func (UnimplementedStudentServiceServer) mustEmbedUnimplementedStudentServiceServer() {} -func (UnimplementedStudentServiceServer) testEmbeddedByValue() {} +func (UnimplementedStudentServiceDefaultVersionServer) mustEmbedUnimplementedStudentServiceDefaultVersionServer() { +} +func (UnimplementedStudentServiceDefaultVersionServer) testEmbeddedByValue() {} -// UnsafeStudentServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to StudentServiceServer will +// UnsafeStudentServiceDefaultVersionServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to StudentServiceDefaultVersionServer will // result in compilation errors. -type UnsafeStudentServiceServer interface { - mustEmbedUnimplementedStudentServiceServer() +type UnsafeStudentServiceDefaultVersionServer interface { + mustEmbedUnimplementedStudentServiceDefaultVersionServer() } -func RegisterStudentServiceServer(s grpc.ServiceRegistrar, srv StudentServiceServer) { - // If the following call pancis, it indicates UnimplementedStudentServiceServer was +func RegisterStudentServiceDefaultVersionServer(s grpc.ServiceRegistrar, srv StudentServiceDefaultVersionServer) { + // If the following call pancis, it indicates UnimplementedStudentServiceDefaultVersionServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } - s.RegisterService(&StudentService_ServiceDesc, srv) + s.RegisterService(&StudentServiceDefaultVersion_ServiceDesc, srv) } -func _StudentService_GetStudent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _StudentServiceDefaultVersion_GetStudent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(StudentRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(StudentServiceServer).GetStudent(ctx, in) + return srv.(StudentServiceDefaultVersionServer).GetStudent(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: StudentService_GetStudent_FullMethodName, + FullMethod: StudentServiceDefaultVersion_GetStudent_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StudentServiceServer).GetStudent(ctx, req.(*StudentRequest)) + return srv.(StudentServiceDefaultVersionServer).GetStudent(ctx, req.(*StudentRequest)) } return interceptor(ctx, in, info, handler) } -func _StudentService_GetStudentStream_Handler(srv interface{}, stream grpc.ServerStream) error { +func _StudentServiceDefaultVersion_GetStudentStream_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(StudentRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(StudentServiceServer).GetStudentStream(m, &grpc.GenericServerStream[StudentRequest, StudentResponse]{ServerStream: stream}) + return srv.(StudentServiceDefaultVersionServer).GetStudentStream(m, &grpc.GenericServerStream[StudentRequest, StudentResponse]{ServerStream: stream}) } // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type StudentService_GetStudentStreamServer = grpc.ServerStreamingServer[StudentResponse] +type StudentServiceDefaultVersion_GetStudentStreamServer = grpc.ServerStreamingServer[StudentResponse] -func _StudentService_SendStudentStream_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(StudentServiceServer).SendStudentStream(&grpc.GenericServerStream[StudentRequest, StudentResponse]{ServerStream: stream}) +func _StudentServiceDefaultVersion_SendStudentStream_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(StudentServiceDefaultVersionServer).SendStudentStream(&grpc.GenericServerStream[StudentRequest, StudentResponse]{ServerStream: stream}) } // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type StudentService_SendStudentStreamServer = grpc.ClientStreamingServer[StudentRequest, StudentResponse] +type StudentServiceDefaultVersion_SendStudentStreamServer = grpc.ClientStreamingServer[StudentRequest, StudentResponse] -func _StudentService_SendAndGetStudentStream_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(StudentServiceServer).SendAndGetStudentStream(&grpc.GenericServerStream[StudentRequest, StudentResponse]{ServerStream: stream}) +func _StudentServiceDefaultVersion_SendAndGetStudentStream_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(StudentServiceDefaultVersionServer).SendAndGetStudentStream(&grpc.GenericServerStream[StudentRequest, StudentResponse]{ServerStream: stream}) } // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type StudentService_SendAndGetStudentStreamServer = grpc.BidiStreamingServer[StudentRequest, StudentResponse] +type StudentServiceDefaultVersion_SendAndGetStudentStreamServer = grpc.BidiStreamingServer[StudentRequest, StudentResponse] -// StudentService_ServiceDesc is the grpc.ServiceDesc for StudentService service. +// StudentServiceDefaultVersion_ServiceDesc is the grpc.ServiceDesc for StudentServiceDefaultVersion service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) -var StudentService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "org.apk.student_service.StudentService", - HandlerType: (*StudentServiceServer)(nil), +var StudentServiceDefaultVersion_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "org.apk.student_service_default_version.StudentServiceDefaultVersion", + HandlerType: (*StudentServiceDefaultVersionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStudent", - Handler: _StudentService_GetStudent_Handler, + Handler: _StudentServiceDefaultVersion_GetStudent_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetStudentStream", - Handler: _StudentService_GetStudentStream_Handler, + Handler: _StudentServiceDefaultVersion_GetStudentStream_Handler, ServerStreams: true, }, { StreamName: "SendStudentStream", - Handler: _StudentService_SendStudentStream_Handler, + Handler: _StudentServiceDefaultVersion_SendStudentStream_Handler, ClientStreams: true, }, { StreamName: "SendAndGetStudentStream", - Handler: _StudentService_SendAndGetStudentStream_Handler, + Handler: _StudentServiceDefaultVersion_SendAndGetStudentStream_Handler, ServerStreams: true, ClientStreams: true, }, }, - Metadata: "student.proto", + Metadata: "student_default_version.proto", }