// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v6.30.1
// source: report.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 SurveyStats struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	SurveyId      string                 `protobuf:"bytes,1,opt,name=survey_id,json=surveyId,proto3" json:"survey_id,omitempty"`
	ResponseCount int32                  `protobuf:"varint,2,opt,name=response_count,json=responseCount,proto3" json:"response_count,omitempty"`
	QuestionStats map[string]int64       `protobuf:"bytes,3,rep,name=question_stats,json=questionStats,proto3" json:"question_stats,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` // key为question_id
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *SurveyStats) Reset() {
	*x = SurveyStats{}
	mi := &file_report_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *SurveyStats) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*SurveyStats) ProtoMessage() {}

func (x *SurveyStats) ProtoReflect() protoreflect.Message {
	mi := &file_report_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 SurveyStats.ProtoReflect.Descriptor instead.
func (*SurveyStats) Descriptor() ([]byte, []int) {
	return file_report_proto_rawDescGZIP(), []int{0}
}

func (x *SurveyStats) GetSurveyId() string {
	if x != nil {
		return x.SurveyId
	}
	return ""
}

func (x *SurveyStats) GetResponseCount() int32 {
	if x != nil {
		return x.ResponseCount
	}
	return 0
}

func (x *SurveyStats) GetQuestionStats() map[string]int64 {
	if x != nil {
		return x.QuestionStats
	}
	return nil
}

var File_report_proto protoreflect.FileDescriptor

const file_report_proto_rawDesc = "" +
	"\n" +
	"\freport.proto\x12\x06survey\x1a\fblocks.proto\"\xe2\x01\n" +
	"\vSurveyStats\x12\x1b\n" +
	"\tsurvey_id\x18\x01 \x01(\tR\bsurveyId\x12%\n" +
	"\x0eresponse_count\x18\x02 \x01(\x05R\rresponseCount\x12M\n" +
	"\x0equestion_stats\x18\x03 \x03(\v2&.survey.SurveyStats.QuestionStatsEntryR\rquestionStats\x1a@\n" +
	"\x12QuestionStatsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x012E\n" +
	"\x06Report\x12;\n" +
	"\x0eGetSurveyStats\x12\x14.survey.IdentRequest\x1a\x13.survey.SurveyStatsB\n" +
	"Z\b.;surveyb\x06proto3"

var (
	file_report_proto_rawDescOnce sync.Once
	file_report_proto_rawDescData []byte
)

func file_report_proto_rawDescGZIP() []byte {
	file_report_proto_rawDescOnce.Do(func() {
		file_report_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_report_proto_rawDesc), len(file_report_proto_rawDesc)))
	})
	return file_report_proto_rawDescData
}

var file_report_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_report_proto_goTypes = []any{
	(*SurveyStats)(nil),  // 0: survey.SurveyStats
	nil,                  // 1: survey.SurveyStats.QuestionStatsEntry
	(*IdentRequest)(nil), // 2: survey.IdentRequest
}
var file_report_proto_depIdxs = []int32{
	1, // 0: survey.SurveyStats.question_stats:type_name -> survey.SurveyStats.QuestionStatsEntry
	2, // 1: survey.Report.GetSurveyStats:input_type -> survey.IdentRequest
	0, // 2: survey.Report.GetSurveyStats:output_type -> survey.SurveyStats
	2, // [2:3] is the sub-list for method output_type
	1, // [1:2] 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_report_proto_init() }
func file_report_proto_init() {
	if File_report_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_report_proto_rawDesc), len(file_report_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_report_proto_goTypes,
		DependencyIndexes: file_report_proto_depIdxs,
		MessageInfos:      file_report_proto_msgTypes,
	}.Build()
	File_report_proto = out.File
	file_report_proto_goTypes = nil
	file_report_proto_depIdxs = nil
}