first commit
This commit is contained in:
		
							
								
								
									
										486
									
								
								api/generated/v1/test.pb.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										486
									
								
								api/generated/v1/test.pb.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,486 @@
 | 
			
		||||
// Code generated by protoc-gen-go. DO NOT EDIT.
 | 
			
		||||
// versions:
 | 
			
		||||
// 	protoc-gen-go v1.36.6
 | 
			
		||||
// 	protoc        v6.30.0
 | 
			
		||||
// source: test.proto
 | 
			
		||||
 | 
			
		||||
package v1
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 | 
			
		||||
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | 
			
		||||
	reflect "reflect"
 | 
			
		||||
	sync "sync"
 | 
			
		||||
	unsafe "unsafe"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	// Verify that this generated code is sufficiently up-to-date.
 | 
			
		||||
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
 | 
			
		||||
	// Verify that runtime/protoimpl is sufficiently up-to-date.
 | 
			
		||||
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type CreateTestRequest struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Data          string                 `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestRequest) Reset() {
 | 
			
		||||
	*x = CreateTestRequest{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[0]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestRequest) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*CreateTestRequest) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestRequest) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[0]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use CreateTestRequest.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*CreateTestRequest) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{0}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestRequest) GetData() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Data
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type CreateTestResponse struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestResponse) Reset() {
 | 
			
		||||
	*x = CreateTestResponse{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[1]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestResponse) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*CreateTestResponse) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestResponse) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[1]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use CreateTestResponse.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*CreateTestResponse) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{1}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestResponse) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type GetTestRequest struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestRequest) Reset() {
 | 
			
		||||
	*x = GetTestRequest{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[2]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestRequest) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*GetTestRequest) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestRequest) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[2]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use GetTestRequest.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*GetTestRequest) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{2}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestRequest) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type GetTestResponse struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	Data          string                 `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestResponse) Reset() {
 | 
			
		||||
	*x = GetTestResponse{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[3]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestResponse) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*GetTestResponse) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestResponse) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[3]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use GetTestResponse.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*GetTestResponse) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{3}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestResponse) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestResponse) GetData() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Data
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type UpdateTestRequest struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	Data          string                 `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestRequest) Reset() {
 | 
			
		||||
	*x = UpdateTestRequest{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[4]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestRequest) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*UpdateTestRequest) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestRequest) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[4]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use UpdateTestRequest.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*UpdateTestRequest) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{4}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestRequest) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestRequest) GetData() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Data
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type UpdateTestResponse struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestResponse) Reset() {
 | 
			
		||||
	*x = UpdateTestResponse{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[5]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestResponse) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*UpdateTestResponse) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestResponse) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[5]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use UpdateTestResponse.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*UpdateTestResponse) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{5}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestResponse) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type DeleteTestRequest struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestRequest) Reset() {
 | 
			
		||||
	*x = DeleteTestRequest{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[6]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestRequest) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*DeleteTestRequest) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestRequest) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[6]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use DeleteTestRequest.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*DeleteTestRequest) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{6}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestRequest) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type DeleteTestResponse struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestResponse) Reset() {
 | 
			
		||||
	*x = DeleteTestResponse{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[7]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestResponse) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*DeleteTestResponse) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestResponse) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[7]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use DeleteTestResponse.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*DeleteTestResponse) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{7}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestResponse) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var File_test_proto protoreflect.FileDescriptor
 | 
			
		||||
 | 
			
		||||
const file_test_proto_rawDesc = "" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"test.proto\x12\x02v1\"'\n" +
 | 
			
		||||
	"\x11CreateTestRequest\x12\x12\n" +
 | 
			
		||||
	"\x04data\x18\x01 \x01(\tR\x04data\"$\n" +
 | 
			
		||||
	"\x12CreateTestResponse\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id\" \n" +
 | 
			
		||||
	"\x0eGetTestRequest\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id\"5\n" +
 | 
			
		||||
	"\x0fGetTestResponse\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
 | 
			
		||||
	"\x04data\x18\x02 \x01(\tR\x04data\"7\n" +
 | 
			
		||||
	"\x11UpdateTestRequest\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
 | 
			
		||||
	"\x04data\x18\x02 \x01(\tR\x04data\"$\n" +
 | 
			
		||||
	"\x12UpdateTestResponse\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id\"#\n" +
 | 
			
		||||
	"\x11DeleteTestRequest\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id\"$\n" +
 | 
			
		||||
	"\x12DeleteTestResponse\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id2\xf8\x01\n" +
 | 
			
		||||
	"\vTestService\x12;\n" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"CreateTest\x12\x15.v1.CreateTestRequest\x1a\x16.v1.CreateTestResponse\x122\n" +
 | 
			
		||||
	"\aGetTest\x12\x12.v1.GetTestRequest\x1a\x13.v1.GetTestResponse\x12;\n" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"UpdateTest\x12\x15.v1.UpdateTestRequest\x1a\x16.v1.UpdateTestResponse\x12;\n" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"DeleteTest\x12\x15.v1.DeleteTestRequest\x1a\x16.v1.DeleteTestResponseB\x14Z\x12./api/generated/v1b\x06proto3"
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
	file_test_proto_rawDescOnce sync.Once
 | 
			
		||||
	file_test_proto_rawDescData []byte
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func file_test_proto_rawDescGZIP() []byte {
 | 
			
		||||
	file_test_proto_rawDescOnce.Do(func() {
 | 
			
		||||
		file_test_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_test_proto_rawDesc), len(file_test_proto_rawDesc)))
 | 
			
		||||
	})
 | 
			
		||||
	return file_test_proto_rawDescData
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
 | 
			
		||||
var file_test_proto_goTypes = []any{
 | 
			
		||||
	(*CreateTestRequest)(nil),  // 0: v1.CreateTestRequest
 | 
			
		||||
	(*CreateTestResponse)(nil), // 1: v1.CreateTestResponse
 | 
			
		||||
	(*GetTestRequest)(nil),     // 2: v1.GetTestRequest
 | 
			
		||||
	(*GetTestResponse)(nil),    // 3: v1.GetTestResponse
 | 
			
		||||
	(*UpdateTestRequest)(nil),  // 4: v1.UpdateTestRequest
 | 
			
		||||
	(*UpdateTestResponse)(nil), // 5: v1.UpdateTestResponse
 | 
			
		||||
	(*DeleteTestRequest)(nil),  // 6: v1.DeleteTestRequest
 | 
			
		||||
	(*DeleteTestResponse)(nil), // 7: v1.DeleteTestResponse
 | 
			
		||||
}
 | 
			
		||||
var file_test_proto_depIdxs = []int32{
 | 
			
		||||
	0, // 0: v1.TestService.CreateTest:input_type -> v1.CreateTestRequest
 | 
			
		||||
	2, // 1: v1.TestService.GetTest:input_type -> v1.GetTestRequest
 | 
			
		||||
	4, // 2: v1.TestService.UpdateTest:input_type -> v1.UpdateTestRequest
 | 
			
		||||
	6, // 3: v1.TestService.DeleteTest:input_type -> v1.DeleteTestRequest
 | 
			
		||||
	1, // 4: v1.TestService.CreateTest:output_type -> v1.CreateTestResponse
 | 
			
		||||
	3, // 5: v1.TestService.GetTest:output_type -> v1.GetTestResponse
 | 
			
		||||
	5, // 6: v1.TestService.UpdateTest:output_type -> v1.UpdateTestResponse
 | 
			
		||||
	7, // 7: v1.TestService.DeleteTest:output_type -> v1.DeleteTestResponse
 | 
			
		||||
	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
 | 
			
		||||
	0, // [0:0] is the sub-list for extension extendee
 | 
			
		||||
	0, // [0:0] is the sub-list for field type_name
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { file_test_proto_init() }
 | 
			
		||||
func file_test_proto_init() {
 | 
			
		||||
	if File_test_proto != nil {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	type x struct{}
 | 
			
		||||
	out := protoimpl.TypeBuilder{
 | 
			
		||||
		File: protoimpl.DescBuilder{
 | 
			
		||||
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 | 
			
		||||
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_test_proto_rawDesc), len(file_test_proto_rawDesc)),
 | 
			
		||||
			NumEnums:      0,
 | 
			
		||||
			NumMessages:   8,
 | 
			
		||||
			NumExtensions: 0,
 | 
			
		||||
			NumServices:   1,
 | 
			
		||||
		},
 | 
			
		||||
		GoTypes:           file_test_proto_goTypes,
 | 
			
		||||
		DependencyIndexes: file_test_proto_depIdxs,
 | 
			
		||||
		MessageInfos:      file_test_proto_msgTypes,
 | 
			
		||||
	}.Build()
 | 
			
		||||
	File_test_proto = out.File
 | 
			
		||||
	file_test_proto_goTypes = nil
 | 
			
		||||
	file_test_proto_depIdxs = nil
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										235
									
								
								api/generated/v1/test_grpc.pb.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										235
									
								
								api/generated/v1/test_grpc.pb.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,235 @@
 | 
			
		||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 | 
			
		||||
// versions:
 | 
			
		||||
// - protoc-gen-go-grpc v1.5.1
 | 
			
		||||
// - protoc             v6.30.0
 | 
			
		||||
// source: test.proto
 | 
			
		||||
 | 
			
		||||
package v1
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	context "context"
 | 
			
		||||
	grpc "google.golang.org/grpc"
 | 
			
		||||
	codes "google.golang.org/grpc/codes"
 | 
			
		||||
	status "google.golang.org/grpc/status"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// This is a compile-time assertion to ensure that this generated file
 | 
			
		||||
// is compatible with the grpc package it is being compiled against.
 | 
			
		||||
// Requires gRPC-Go v1.64.0 or later.
 | 
			
		||||
const _ = grpc.SupportPackageIsVersion9
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	TestService_CreateTest_FullMethodName = "/v1.TestService/CreateTest"
 | 
			
		||||
	TestService_GetTest_FullMethodName    = "/v1.TestService/GetTest"
 | 
			
		||||
	TestService_UpdateTest_FullMethodName = "/v1.TestService/UpdateTest"
 | 
			
		||||
	TestService_DeleteTest_FullMethodName = "/v1.TestService/DeleteTest"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// TestServiceClient is the client API for TestService 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 TestServiceClient interface {
 | 
			
		||||
	CreateTest(ctx context.Context, in *CreateTestRequest, opts ...grpc.CallOption) (*CreateTestResponse, error)
 | 
			
		||||
	GetTest(ctx context.Context, in *GetTestRequest, opts ...grpc.CallOption) (*GetTestResponse, error)
 | 
			
		||||
	UpdateTest(ctx context.Context, in *UpdateTestRequest, opts ...grpc.CallOption) (*UpdateTestResponse, error)
 | 
			
		||||
	DeleteTest(ctx context.Context, in *DeleteTestRequest, opts ...grpc.CallOption) (*DeleteTestResponse, error)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type testServiceClient struct {
 | 
			
		||||
	cc grpc.ClientConnInterface
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient {
 | 
			
		||||
	return &testServiceClient{cc}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *testServiceClient) CreateTest(ctx context.Context, in *CreateTestRequest, opts ...grpc.CallOption) (*CreateTestResponse, error) {
 | 
			
		||||
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
 | 
			
		||||
	out := new(CreateTestResponse)
 | 
			
		||||
	err := c.cc.Invoke(ctx, TestService_CreateTest_FullMethodName, in, out, cOpts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *testServiceClient) GetTest(ctx context.Context, in *GetTestRequest, opts ...grpc.CallOption) (*GetTestResponse, error) {
 | 
			
		||||
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
 | 
			
		||||
	out := new(GetTestResponse)
 | 
			
		||||
	err := c.cc.Invoke(ctx, TestService_GetTest_FullMethodName, in, out, cOpts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *testServiceClient) UpdateTest(ctx context.Context, in *UpdateTestRequest, opts ...grpc.CallOption) (*UpdateTestResponse, error) {
 | 
			
		||||
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
 | 
			
		||||
	out := new(UpdateTestResponse)
 | 
			
		||||
	err := c.cc.Invoke(ctx, TestService_UpdateTest_FullMethodName, in, out, cOpts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *testServiceClient) DeleteTest(ctx context.Context, in *DeleteTestRequest, opts ...grpc.CallOption) (*DeleteTestResponse, error) {
 | 
			
		||||
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
 | 
			
		||||
	out := new(DeleteTestResponse)
 | 
			
		||||
	err := c.cc.Invoke(ctx, TestService_DeleteTest_FullMethodName, in, out, cOpts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TestServiceServer is the server API for TestService service.
 | 
			
		||||
// All implementations must embed UnimplementedTestServiceServer
 | 
			
		||||
// for forward compatibility.
 | 
			
		||||
type TestServiceServer interface {
 | 
			
		||||
	CreateTest(context.Context, *CreateTestRequest) (*CreateTestResponse, error)
 | 
			
		||||
	GetTest(context.Context, *GetTestRequest) (*GetTestResponse, error)
 | 
			
		||||
	UpdateTest(context.Context, *UpdateTestRequest) (*UpdateTestResponse, error)
 | 
			
		||||
	DeleteTest(context.Context, *DeleteTestRequest) (*DeleteTestResponse, error)
 | 
			
		||||
	mustEmbedUnimplementedTestServiceServer()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UnimplementedTestServiceServer 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 UnimplementedTestServiceServer struct{}
 | 
			
		||||
 | 
			
		||||
func (UnimplementedTestServiceServer) CreateTest(context.Context, *CreateTestRequest) (*CreateTestResponse, error) {
 | 
			
		||||
	return nil, status.Errorf(codes.Unimplemented, "method CreateTest not implemented")
 | 
			
		||||
}
 | 
			
		||||
func (UnimplementedTestServiceServer) GetTest(context.Context, *GetTestRequest) (*GetTestResponse, error) {
 | 
			
		||||
	return nil, status.Errorf(codes.Unimplemented, "method GetTest not implemented")
 | 
			
		||||
}
 | 
			
		||||
func (UnimplementedTestServiceServer) UpdateTest(context.Context, *UpdateTestRequest) (*UpdateTestResponse, error) {
 | 
			
		||||
	return nil, status.Errorf(codes.Unimplemented, "method UpdateTest not implemented")
 | 
			
		||||
}
 | 
			
		||||
func (UnimplementedTestServiceServer) DeleteTest(context.Context, *DeleteTestRequest) (*DeleteTestResponse, error) {
 | 
			
		||||
	return nil, status.Errorf(codes.Unimplemented, "method DeleteTest not implemented")
 | 
			
		||||
}
 | 
			
		||||
func (UnimplementedTestServiceServer) mustEmbedUnimplementedTestServiceServer() {}
 | 
			
		||||
func (UnimplementedTestServiceServer) testEmbeddedByValue()                     {}
 | 
			
		||||
 | 
			
		||||
// UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service.
 | 
			
		||||
// Use of this interface is not recommended, as added methods to TestServiceServer will
 | 
			
		||||
// result in compilation errors.
 | 
			
		||||
type UnsafeTestServiceServer interface {
 | 
			
		||||
	mustEmbedUnimplementedTestServiceServer()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer) {
 | 
			
		||||
	// If the following call pancis, it indicates UnimplementedTestServiceServer 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(&TestService_ServiceDesc, srv)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _TestService_CreateTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(CreateTestRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(TestServiceServer).CreateTest(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: TestService_CreateTest_FullMethodName,
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(TestServiceServer).CreateTest(ctx, req.(*CreateTestRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _TestService_GetTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(GetTestRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(TestServiceServer).GetTest(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: TestService_GetTest_FullMethodName,
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(TestServiceServer).GetTest(ctx, req.(*GetTestRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _TestService_UpdateTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(UpdateTestRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(TestServiceServer).UpdateTest(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: TestService_UpdateTest_FullMethodName,
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(TestServiceServer).UpdateTest(ctx, req.(*UpdateTestRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _TestService_DeleteTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(DeleteTestRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(TestServiceServer).DeleteTest(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: TestService_DeleteTest_FullMethodName,
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(TestServiceServer).DeleteTest(ctx, req.(*DeleteTestRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TestService_ServiceDesc is the grpc.ServiceDesc for TestService service.
 | 
			
		||||
// It's only intended for direct use with grpc.RegisterService,
 | 
			
		||||
// and not to be introspected or modified (even as a copy)
 | 
			
		||||
var TestService_ServiceDesc = grpc.ServiceDesc{
 | 
			
		||||
	ServiceName: "v1.TestService",
 | 
			
		||||
	HandlerType: (*TestServiceServer)(nil),
 | 
			
		||||
	Methods: []grpc.MethodDesc{
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "CreateTest",
 | 
			
		||||
			Handler:    _TestService_CreateTest_Handler,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "GetTest",
 | 
			
		||||
			Handler:    _TestService_GetTest_Handler,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "UpdateTest",
 | 
			
		||||
			Handler:    _TestService_UpdateTest_Handler,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "DeleteTest",
 | 
			
		||||
			Handler:    _TestService_DeleteTest_Handler,
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	Streams:  []grpc.StreamDesc{},
 | 
			
		||||
	Metadata: "test.proto",
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user