// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v6.30.1 // source: question.proto package survey 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 BySurveyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` SurveyId string `protobuf:"bytes,1,opt,name=survey_id,json=surveyId,proto3" json:"survey_id,omitempty"` QuestionIds []string `protobuf:"bytes,2,rep,name=question_ids,json=questionIds,proto3" json:"question_ids,omitempty"` // 按顺序排列的问题ID unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *BySurveyRequest) Reset() { *x = BySurveyRequest{} mi := &file_question_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *BySurveyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*BySurveyRequest) ProtoMessage() {} func (x *BySurveyRequest) ProtoReflect() protoreflect.Message { mi := &file_question_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 BySurveyRequest.ProtoReflect.Descriptor instead. func (*BySurveyRequest) Descriptor() ([]byte, []int) { return file_question_proto_rawDescGZIP(), []int{0} } func (x *BySurveyRequest) GetSurveyId() string { if x != nil { return x.SurveyId } return "" } func (x *BySurveyRequest) GetQuestionIds() []string { if x != nil { return x.QuestionIds } return nil } type ListQuestionReply struct { state protoimpl.MessageState `protogen:"open.v1"` Data []*QuestionItem `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListQuestionReply) Reset() { *x = ListQuestionReply{} mi := &file_question_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListQuestionReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListQuestionReply) ProtoMessage() {} func (x *ListQuestionReply) ProtoReflect() protoreflect.Message { mi := &file_question_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 ListQuestionReply.ProtoReflect.Descriptor instead. func (*ListQuestionReply) Descriptor() ([]byte, []int) { return file_question_proto_rawDescGZIP(), []int{1} } func (x *ListQuestionReply) GetData() []*QuestionItem { if x != nil { return x.Data } return nil } func (x *ListQuestionReply) GetCount() int64 { if x != nil { return x.Count } return 0 } var File_question_proto protoreflect.FileDescriptor const file_question_proto_rawDesc = "" + "\n" + "\x0equestion.proto\x12\x06survey\x1a\fblocks.proto\"Q\n" + "\x0fBySurveyRequest\x12\x1b\n" + "\tsurvey_id\x18\x01 \x01(\tR\bsurveyId\x12!\n" + "\fquestion_ids\x18\x02 \x03(\tR\vquestionIds\"S\n" + "\x11ListQuestionReply\x12(\n" + "\x04data\x18\x01 \x03(\v2\x14.survey.QuestionItemR\x04data\x12\x14\n" + "\x05count\x18\x02 \x01(\x03R\x05count2\xa0\x02\n" + "\bQuestion\x120\n" + "\x03Add\x12\x14.survey.QuestionItem\x1a\x13.survey.StatusReply\x123\n" + "\x06Update\x12\x14.survey.QuestionItem\x1a\x13.survey.StatusReply\x123\n" + "\x06Delete\x12\x14.survey.IdentRequest\x1a\x13.survey.StatusReply\x128\n" + "\x05Fetch\x12\x14.survey.FetchRequest\x1a\x19.survey.ListQuestionReply\x12>\n" + "\bBySurvey\x12\x17.survey.BySurveyRequest\x1a\x19.survey.ListQuestionReplyB\n" + "Z\b.;surveyb\x06proto3" var ( file_question_proto_rawDescOnce sync.Once file_question_proto_rawDescData []byte ) func file_question_proto_rawDescGZIP() []byte { file_question_proto_rawDescOnce.Do(func() { file_question_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_question_proto_rawDesc), len(file_question_proto_rawDesc))) }) return file_question_proto_rawDescData } var file_question_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_question_proto_goTypes = []any{ (*BySurveyRequest)(nil), // 0: survey.BySurveyRequest (*ListQuestionReply)(nil), // 1: survey.ListQuestionReply (*QuestionItem)(nil), // 2: survey.QuestionItem (*IdentRequest)(nil), // 3: survey.IdentRequest (*FetchRequest)(nil), // 4: survey.FetchRequest (*StatusReply)(nil), // 5: survey.StatusReply } var file_question_proto_depIdxs = []int32{ 2, // 0: survey.ListQuestionReply.data:type_name -> survey.QuestionItem 2, // 1: survey.Question.Add:input_type -> survey.QuestionItem 2, // 2: survey.Question.Update:input_type -> survey.QuestionItem 3, // 3: survey.Question.Delete:input_type -> survey.IdentRequest 4, // 4: survey.Question.Fetch:input_type -> survey.FetchRequest 0, // 5: survey.Question.BySurvey:input_type -> survey.BySurveyRequest 5, // 6: survey.Question.Add:output_type -> survey.StatusReply 5, // 7: survey.Question.Update:output_type -> survey.StatusReply 5, // 8: survey.Question.Delete:output_type -> survey.StatusReply 1, // 9: survey.Question.Fetch:output_type -> survey.ListQuestionReply 1, // 10: survey.Question.BySurvey:output_type -> survey.ListQuestionReply 6, // [6:11] is the sub-list for method output_type 1, // [1:6] 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_question_proto_init() } func file_question_proto_init() { if File_question_proto != nil { return } file_blocks_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_question_proto_rawDesc), len(file_question_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 1, }, GoTypes: file_question_proto_goTypes, DependencyIndexes: file_question_proto_depIdxs, MessageInfos: file_question_proto_msgTypes, }.Build() File_question_proto = out.File file_question_proto_goTypes = nil file_question_proto_depIdxs = nil }