487 lines
13 KiB
Go
Executable File
487 lines
13 KiB
Go
Executable File
// 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
|
|
}
|