// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v6.30.1 // source: share.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 ListShareReply struct { state protoimpl.MessageState `protogen:"open.v1"` Data []*ShareItem `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 *ListShareReply) Reset() { *x = ListShareReply{} mi := &file_share_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListShareReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListShareReply) ProtoMessage() {} func (x *ListShareReply) ProtoReflect() protoreflect.Message { mi := &file_share_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 ListShareReply.ProtoReflect.Descriptor instead. func (*ListShareReply) Descriptor() ([]byte, []int) { return file_share_proto_rawDescGZIP(), []int{0} } func (x *ListShareReply) GetData() []*ShareItem { if x != nil { return x.Data } return nil } func (x *ListShareReply) GetCount() int64 { if x != nil { return x.Count } return 0 } // 分享链接 type ShareItem struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 分享ID SurveyId string `protobuf:"bytes,2,opt,name=survey_id,json=surveyId,proto3" json:"survey_id,omitempty"` // 问卷ID Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` // 分享URL CreatorId string `protobuf:"bytes,4,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` // 创建者ID ExpiresAt int64 `protobuf:"varint,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // 过期时间 MaxResponses int32 `protobuf:"varint,7,opt,name=max_responses,json=maxResponses,proto3" json:"max_responses,omitempty"` // 最大回答数(0表示不限) IsActive bool `protobuf:"varint,8,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // 是否激活 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ShareItem) Reset() { *x = ShareItem{} mi := &file_share_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ShareItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*ShareItem) ProtoMessage() {} func (x *ShareItem) ProtoReflect() protoreflect.Message { mi := &file_share_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 ShareItem.ProtoReflect.Descriptor instead. func (*ShareItem) Descriptor() ([]byte, []int) { return file_share_proto_rawDescGZIP(), []int{1} } func (x *ShareItem) GetId() string { if x != nil { return x.Id } return "" } func (x *ShareItem) GetSurveyId() string { if x != nil { return x.SurveyId } return "" } func (x *ShareItem) GetUrl() string { if x != nil { return x.Url } return "" } func (x *ShareItem) GetCreatorId() string { if x != nil { return x.CreatorId } return "" } func (x *ShareItem) GetExpiresAt() int64 { if x != nil { return x.ExpiresAt } return 0 } func (x *ShareItem) GetMaxResponses() int32 { if x != nil { return x.MaxResponses } return 0 } func (x *ShareItem) GetIsActive() bool { if x != nil { return x.IsActive } return false } var File_share_proto protoreflect.FileDescriptor const file_share_proto_rawDesc = "" + "\n" + "\vshare.proto\x12\x06survey\x1a\fblocks.proto\"M\n" + "\x0eListShareReply\x12%\n" + "\x04data\x18\x01 \x03(\v2\x11.survey.ShareItemR\x04data\x12\x14\n" + "\x05count\x18\x02 \x01(\x03R\x05count\"\xca\x01\n" + "\tShareItem\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" + "\tsurvey_id\x18\x02 \x01(\tR\bsurveyId\x12\x10\n" + "\x03url\x18\x03 \x01(\tR\x03url\x12\x1d\n" + "\n" + "creator_id\x18\x04 \x01(\tR\tcreatorId\x12\x1d\n" + "\n" + "expires_at\x18\x06 \x01(\x03R\texpiresAt\x12#\n" + "\rmax_responses\x18\a \x01(\x05R\fmaxResponses\x12\x1b\n" + "\tis_active\x18\b \x01(\bR\bisActive2\xaa\x01\n" + "\x05Share\x123\n" + "\x06Create\x12\x14.survey.IdentRequest\x1a\x13.survey.StatusReply\x125\n" + "\x05Fetch\x12\x14.survey.FetchRequest\x1a\x16.survey.ListShareReply\x125\n" + "\tSetStatus\x12\x13.survey.StatusReply\x1a\x13.survey.StatusReplyB\n" + "Z\b.;surveyb\x06proto3" var ( file_share_proto_rawDescOnce sync.Once file_share_proto_rawDescData []byte ) func file_share_proto_rawDescGZIP() []byte { file_share_proto_rawDescOnce.Do(func() { file_share_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_share_proto_rawDesc), len(file_share_proto_rawDesc))) }) return file_share_proto_rawDescData } var file_share_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_share_proto_goTypes = []any{ (*ListShareReply)(nil), // 0: survey.ListShareReply (*ShareItem)(nil), // 1: survey.ShareItem (*IdentRequest)(nil), // 2: survey.IdentRequest (*FetchRequest)(nil), // 3: survey.FetchRequest (*StatusReply)(nil), // 4: survey.StatusReply } var file_share_proto_depIdxs = []int32{ 1, // 0: survey.ListShareReply.data:type_name -> survey.ShareItem 2, // 1: survey.Share.Create:input_type -> survey.IdentRequest 3, // 2: survey.Share.Fetch:input_type -> survey.FetchRequest 4, // 3: survey.Share.SetStatus:input_type -> survey.StatusReply 4, // 4: survey.Share.Create:output_type -> survey.StatusReply 0, // 5: survey.Share.Fetch:output_type -> survey.ListShareReply 4, // 6: survey.Share.SetStatus:output_type -> survey.StatusReply 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_share_proto_init() } func file_share_proto_init() { if File_share_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_share_proto_rawDesc), len(file_share_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 1, }, GoTypes: file_share_proto_goTypes, DependencyIndexes: file_share_proto_depIdxs, MessageInfos: file_share_proto_msgTypes, }.Build() File_share_proto = out.File file_share_proto_goTypes = nil file_share_proto_depIdxs = nil }