ok
This commit is contained in:
154
pb/survey.pb.go
Normal file
154
pb/survey.pb.go
Normal file
@@ -0,0 +1,154 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.6
|
||||
// protoc v6.30.1
|
||||
// source: survey.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 ListSurveyReply struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Data []*SurveyItem `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 *ListSurveyReply) Reset() {
|
||||
*x = ListSurveyReply{}
|
||||
mi := &file_survey_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListSurveyReply) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListSurveyReply) ProtoMessage() {}
|
||||
|
||||
func (x *ListSurveyReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_survey_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 ListSurveyReply.ProtoReflect.Descriptor instead.
|
||||
func (*ListSurveyReply) Descriptor() ([]byte, []int) {
|
||||
return file_survey_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *ListSurveyReply) GetData() []*SurveyItem {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ListSurveyReply) GetCount() int64 {
|
||||
if x != nil {
|
||||
return x.Count
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_survey_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_survey_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\fsurvey.proto\x12\x06survey\x1a\fblocks.proto\"O\n" +
|
||||
"\x0fListSurveyReply\x12&\n" +
|
||||
"\x04data\x18\x01 \x03(\v2\x12.survey.SurveyItemR\x04data\x12\x14\n" +
|
||||
"\x05count\x18\x02 \x01(\x03R\x05count2\x8c\x02\n" +
|
||||
"\x06Survey\x121\n" +
|
||||
"\x06Create\x12\x12.survey.SurveyItem\x1a\x13.survey.StatusReply\x12/\n" +
|
||||
"\x03Get\x12\x14.survey.IdentRequest\x1a\x12.survey.SurveyItem\x121\n" +
|
||||
"\x06Update\x12\x12.survey.SurveyItem\x1a\x13.survey.StatusReply\x123\n" +
|
||||
"\x06Delete\x12\x14.survey.IdentRequest\x1a\x13.survey.StatusReply\x126\n" +
|
||||
"\x05Fetch\x12\x14.survey.FetchRequest\x1a\x17.survey.ListSurveyReplyB\n" +
|
||||
"Z\b.;surveyb\x06proto3"
|
||||
|
||||
var (
|
||||
file_survey_proto_rawDescOnce sync.Once
|
||||
file_survey_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_survey_proto_rawDescGZIP() []byte {
|
||||
file_survey_proto_rawDescOnce.Do(func() {
|
||||
file_survey_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_survey_proto_rawDesc), len(file_survey_proto_rawDesc)))
|
||||
})
|
||||
return file_survey_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_survey_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_survey_proto_goTypes = []any{
|
||||
(*ListSurveyReply)(nil), // 0: survey.ListSurveyReply
|
||||
(*SurveyItem)(nil), // 1: survey.SurveyItem
|
||||
(*IdentRequest)(nil), // 2: survey.IdentRequest
|
||||
(*FetchRequest)(nil), // 3: survey.FetchRequest
|
||||
(*StatusReply)(nil), // 4: survey.StatusReply
|
||||
}
|
||||
var file_survey_proto_depIdxs = []int32{
|
||||
1, // 0: survey.ListSurveyReply.data:type_name -> survey.SurveyItem
|
||||
1, // 1: survey.Survey.Create:input_type -> survey.SurveyItem
|
||||
2, // 2: survey.Survey.Get:input_type -> survey.IdentRequest
|
||||
1, // 3: survey.Survey.Update:input_type -> survey.SurveyItem
|
||||
2, // 4: survey.Survey.Delete:input_type -> survey.IdentRequest
|
||||
3, // 5: survey.Survey.Fetch:input_type -> survey.FetchRequest
|
||||
4, // 6: survey.Survey.Create:output_type -> survey.StatusReply
|
||||
1, // 7: survey.Survey.Get:output_type -> survey.SurveyItem
|
||||
4, // 8: survey.Survey.Update:output_type -> survey.StatusReply
|
||||
4, // 9: survey.Survey.Delete:output_type -> survey.StatusReply
|
||||
0, // 10: survey.Survey.Fetch:output_type -> survey.ListSurveyReply
|
||||
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_survey_proto_init() }
|
||||
func file_survey_proto_init() {
|
||||
if File_survey_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_survey_proto_rawDesc), len(file_survey_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_survey_proto_goTypes,
|
||||
DependencyIndexes: file_survey_proto_depIdxs,
|
||||
MessageInfos: file_survey_proto_msgTypes,
|
||||
}.Build()
|
||||
File_survey_proto = out.File
|
||||
file_survey_proto_goTypes = nil
|
||||
file_survey_proto_depIdxs = nil
|
||||
}
|
||||
Reference in New Issue
Block a user