340 lines
12 KiB
Go
340 lines
12 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: service_ns_question_option.proto
|
|
|
|
package pb
|
|
|
|
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 CreateNSQuestionOptionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
ValuesJSON []byte `protobuf:"bytes,2,opt,name=valuesJSON,proto3" json:"valuesJSON,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateNSQuestionOptionRequest) Reset() {
|
|
*x = CreateNSQuestionOptionRequest{}
|
|
mi := &file_service_ns_question_option_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateNSQuestionOptionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateNSQuestionOptionRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateNSQuestionOptionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ns_question_option_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 CreateNSQuestionOptionRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateNSQuestionOptionRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_ns_question_option_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateNSQuestionOptionRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateNSQuestionOptionRequest) GetValuesJSON() []byte {
|
|
if x != nil {
|
|
return x.ValuesJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateNSQuestionOptionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NsQuestionOptionId int64 `protobuf:"varint,1,opt,name=nsQuestionOptionId,proto3" json:"nsQuestionOptionId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateNSQuestionOptionResponse) Reset() {
|
|
*x = CreateNSQuestionOptionResponse{}
|
|
mi := &file_service_ns_question_option_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateNSQuestionOptionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateNSQuestionOptionResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateNSQuestionOptionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ns_question_option_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 CreateNSQuestionOptionResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateNSQuestionOptionResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_ns_question_option_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateNSQuestionOptionResponse) GetNsQuestionOptionId() int64 {
|
|
if x != nil {
|
|
return x.NsQuestionOptionId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 读取选项
|
|
type FindNSQuestionOptionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NsQuestionOptionId int64 `protobuf:"varint,1,opt,name=nsQuestionOptionId,proto3" json:"nsQuestionOptionId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindNSQuestionOptionRequest) Reset() {
|
|
*x = FindNSQuestionOptionRequest{}
|
|
mi := &file_service_ns_question_option_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindNSQuestionOptionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindNSQuestionOptionRequest) ProtoMessage() {}
|
|
|
|
func (x *FindNSQuestionOptionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ns_question_option_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 FindNSQuestionOptionRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindNSQuestionOptionRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_ns_question_option_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *FindNSQuestionOptionRequest) GetNsQuestionOptionId() int64 {
|
|
if x != nil {
|
|
return x.NsQuestionOptionId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindNSQuestionOptionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NsQuestionOption *NSQuestionOption `protobuf:"bytes,1,opt,name=nsQuestionOption,proto3" json:"nsQuestionOption,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindNSQuestionOptionResponse) Reset() {
|
|
*x = FindNSQuestionOptionResponse{}
|
|
mi := &file_service_ns_question_option_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindNSQuestionOptionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindNSQuestionOptionResponse) ProtoMessage() {}
|
|
|
|
func (x *FindNSQuestionOptionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ns_question_option_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 FindNSQuestionOptionResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindNSQuestionOptionResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_ns_question_option_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *FindNSQuestionOptionResponse) GetNsQuestionOption() *NSQuestionOption {
|
|
if x != nil {
|
|
return x.NsQuestionOption
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 删除选项
|
|
type DeleteNSQuestionOptionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NsQuestionOptionId int64 `protobuf:"varint,1,opt,name=nsQuestionOptionId,proto3" json:"nsQuestionOptionId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteNSQuestionOptionRequest) Reset() {
|
|
*x = DeleteNSQuestionOptionRequest{}
|
|
mi := &file_service_ns_question_option_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteNSQuestionOptionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteNSQuestionOptionRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteNSQuestionOptionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ns_question_option_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 DeleteNSQuestionOptionRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteNSQuestionOptionRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_ns_question_option_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *DeleteNSQuestionOptionRequest) GetNsQuestionOptionId() int64 {
|
|
if x != nil {
|
|
return x.NsQuestionOptionId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_service_ns_question_option_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_ns_question_option_proto_rawDesc = "" +
|
|
"\n" +
|
|
" service_ns_question_option.proto\x12\x02pb\x1a\x19models/rpc_messages.proto\x1a%models/model_ns_question_option.proto\"S\n" +
|
|
"\x1dCreateNSQuestionOptionRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n" +
|
|
"\n" +
|
|
"valuesJSON\x18\x02 \x01(\fR\n" +
|
|
"valuesJSON\"P\n" +
|
|
"\x1eCreateNSQuestionOptionResponse\x12.\n" +
|
|
"\x12nsQuestionOptionId\x18\x01 \x01(\x03R\x12nsQuestionOptionId\"M\n" +
|
|
"\x1bFindNSQuestionOptionRequest\x12.\n" +
|
|
"\x12nsQuestionOptionId\x18\x01 \x01(\x03R\x12nsQuestionOptionId\"`\n" +
|
|
"\x1cFindNSQuestionOptionResponse\x12@\n" +
|
|
"\x10nsQuestionOption\x18\x01 \x01(\v2\x14.pb.NSQuestionOptionR\x10nsQuestionOption\"O\n" +
|
|
"\x1dDeleteNSQuestionOptionRequest\x12.\n" +
|
|
"\x12nsQuestionOptionId\x18\x01 \x01(\x03R\x12nsQuestionOptionId2\xa2\x02\n" +
|
|
"\x17NSQuestionOptionService\x12_\n" +
|
|
"\x16createNSQuestionOption\x12!.pb.CreateNSQuestionOptionRequest\x1a\".pb.CreateNSQuestionOptionResponse\x12Y\n" +
|
|
"\x14findNSQuestionOption\x12\x1f.pb.FindNSQuestionOptionRequest\x1a .pb.FindNSQuestionOptionResponse\x12K\n" +
|
|
"\x16deleteNSQuestionOption\x12!.pb.DeleteNSQuestionOptionRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_ns_question_option_proto_rawDescOnce sync.Once
|
|
file_service_ns_question_option_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_ns_question_option_proto_rawDescGZIP() []byte {
|
|
file_service_ns_question_option_proto_rawDescOnce.Do(func() {
|
|
file_service_ns_question_option_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_ns_question_option_proto_rawDesc), len(file_service_ns_question_option_proto_rawDesc)))
|
|
})
|
|
return file_service_ns_question_option_proto_rawDescData
|
|
}
|
|
|
|
var file_service_ns_question_option_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
var file_service_ns_question_option_proto_goTypes = []any{
|
|
(*CreateNSQuestionOptionRequest)(nil), // 0: pb.CreateNSQuestionOptionRequest
|
|
(*CreateNSQuestionOptionResponse)(nil), // 1: pb.CreateNSQuestionOptionResponse
|
|
(*FindNSQuestionOptionRequest)(nil), // 2: pb.FindNSQuestionOptionRequest
|
|
(*FindNSQuestionOptionResponse)(nil), // 3: pb.FindNSQuestionOptionResponse
|
|
(*DeleteNSQuestionOptionRequest)(nil), // 4: pb.DeleteNSQuestionOptionRequest
|
|
(*NSQuestionOption)(nil), // 5: pb.NSQuestionOption
|
|
(*RPCSuccess)(nil), // 6: pb.RPCSuccess
|
|
}
|
|
var file_service_ns_question_option_proto_depIdxs = []int32{
|
|
5, // 0: pb.FindNSQuestionOptionResponse.nsQuestionOption:type_name -> pb.NSQuestionOption
|
|
0, // 1: pb.NSQuestionOptionService.createNSQuestionOption:input_type -> pb.CreateNSQuestionOptionRequest
|
|
2, // 2: pb.NSQuestionOptionService.findNSQuestionOption:input_type -> pb.FindNSQuestionOptionRequest
|
|
4, // 3: pb.NSQuestionOptionService.deleteNSQuestionOption:input_type -> pb.DeleteNSQuestionOptionRequest
|
|
1, // 4: pb.NSQuestionOptionService.createNSQuestionOption:output_type -> pb.CreateNSQuestionOptionResponse
|
|
3, // 5: pb.NSQuestionOptionService.findNSQuestionOption:output_type -> pb.FindNSQuestionOptionResponse
|
|
6, // 6: pb.NSQuestionOptionService.deleteNSQuestionOption:output_type -> pb.RPCSuccess
|
|
4, // [4:7] is the sub-list for method output_type
|
|
1, // [1:4] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_service_ns_question_option_proto_init() }
|
|
func file_service_ns_question_option_proto_init() {
|
|
if File_service_ns_question_option_proto != nil {
|
|
return
|
|
}
|
|
file_models_rpc_messages_proto_init()
|
|
file_models_model_ns_question_option_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_ns_question_option_proto_rawDesc), len(file_service_ns_question_option_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 5,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_ns_question_option_proto_goTypes,
|
|
DependencyIndexes: file_service_ns_question_option_proto_depIdxs,
|
|
MessageInfos: file_service_ns_question_option_proto_msgTypes,
|
|
}.Build()
|
|
File_service_ns_question_option_proto = out.File
|
|
file_service_ns_question_option_proto_goTypes = nil
|
|
file_service_ns_question_option_proto_depIdxs = nil
|
|
}
|