// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.8 // protoc (unknown) // source: data.proto package initial 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 Empty struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Empty) Reset() { *x = Empty{} mi := &file_data_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Empty) String() string { return protoimpl.X.MessageStringOf(x) } func (*Empty) ProtoMessage() {} func (x *Empty) ProtoReflect() protoreflect.Message { mi := &file_data_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 Empty.ProtoReflect.Descriptor instead. func (*Empty) Descriptor() ([]byte, []int) { return file_data_proto_rawDescGZIP(), []int{0} } type AreasRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ShowTown bool `protobuf:"varint,1,opt,name=show_town,json=showTown,proto3" json:"show_town,omitempty"` // 是否输出乡镇,默认:市级 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AreasRequest) Reset() { *x = AreasRequest{} mi := &file_data_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AreasRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*AreasRequest) ProtoMessage() {} func (x *AreasRequest) ProtoReflect() protoreflect.Message { mi := &file_data_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 AreasRequest.ProtoReflect.Descriptor instead. func (*AreasRequest) Descriptor() ([]byte, []int) { return file_data_proto_rawDescGZIP(), []int{1} } func (x *AreasRequest) GetShowTown() bool { if x != nil { return x.ShowTown } return false } type ConfigRequest struct { state protoimpl.MessageState `protogen:"open.v1"` App string `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"` // 应用程序名称 <必填> Os string `protobuf:"bytes,2,opt,name=os,proto3" json:"os,omitempty"` // 操作系统 <必填> unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ConfigRequest) Reset() { *x = ConfigRequest{} mi := &file_data_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ConfigRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ConfigRequest) ProtoMessage() {} func (x *ConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_data_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 ConfigRequest.ProtoReflect.Descriptor instead. func (*ConfigRequest) Descriptor() ([]byte, []int) { return file_data_proto_rawDescGZIP(), []int{2} } func (x *ConfigRequest) GetApp() string { if x != nil { return x.App } return "" } func (x *ConfigRequest) GetOs() string { if x != nil { return x.Os } return "" } type ConfigReply struct { state protoimpl.MessageState `protogen:"open.v1"` Data []*ConfigItem `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // 配置参数列表 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ConfigReply) Reset() { *x = ConfigReply{} mi := &file_data_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ConfigReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*ConfigReply) ProtoMessage() {} func (x *ConfigReply) ProtoReflect() protoreflect.Message { mi := &file_data_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 ConfigReply.ProtoReflect.Descriptor instead. func (*ConfigReply) Descriptor() ([]byte, []int) { return file_data_proto_rawDescGZIP(), []int{3} } func (x *ConfigReply) GetData() []*ConfigItem { if x != nil { return x.Data } return nil } type ConfigItem struct { state protoimpl.MessageState `protogen:"open.v1"` Identity string `protobuf:"bytes,1,opt,name=Identity,proto3" json:"Identity,omitempty"` //唯一标识 Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` //配置键 Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` //配置值 Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` //版本号 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ConfigItem) Reset() { *x = ConfigItem{} mi := &file_data_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ConfigItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*ConfigItem) ProtoMessage() {} func (x *ConfigItem) ProtoReflect() protoreflect.Message { mi := &file_data_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 ConfigItem.ProtoReflect.Descriptor instead. func (*ConfigItem) Descriptor() ([]byte, []int) { return file_data_proto_rawDescGZIP(), []int{4} } func (x *ConfigItem) GetIdentity() string { if x != nil { return x.Identity } return "" } func (x *ConfigItem) GetKey() string { if x != nil { return x.Key } return "" } func (x *ConfigItem) GetValue() string { if x != nil { return x.Value } return "" } func (x *ConfigItem) GetVersion() int64 { if x != nil { return x.Version } return 0 } type AreasReply struct { state protoimpl.MessageState `protogen:"open.v1"` Areas []*AreasItem `protobuf:"bytes,1,rep,name=areas,proto3" json:"areas,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AreasReply) Reset() { *x = AreasReply{} mi := &file_data_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AreasReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*AreasReply) ProtoMessage() {} func (x *AreasReply) ProtoReflect() protoreflect.Message { mi := &file_data_proto_msgTypes[5] 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 AreasReply.ProtoReflect.Descriptor instead. func (*AreasReply) Descriptor() ([]byte, []int) { return file_data_proto_rawDescGZIP(), []int{5} } func (x *AreasReply) GetAreas() []*AreasItem { if x != nil { return x.Areas } return nil } type AreasItem struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Pid string `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"` Deep int32 `protobuf:"varint,3,opt,name=deep,proto3" json:"deep,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` PinyinPrefix string `protobuf:"bytes,5,opt,name=pinyin_prefix,json=pinyinPrefix,proto3" json:"pinyin_prefix,omitempty"` Pinyin string `protobuf:"bytes,6,opt,name=pinyin,proto3" json:"pinyin,omitempty"` ExtId string `protobuf:"bytes,7,opt,name=ext_id,json=extId,proto3" json:"ext_id,omitempty"` ExtName string `protobuf:"bytes,8,opt,name=ext_name,json=extName,proto3" json:"ext_name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AreasItem) Reset() { *x = AreasItem{} mi := &file_data_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AreasItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*AreasItem) ProtoMessage() {} func (x *AreasItem) ProtoReflect() protoreflect.Message { mi := &file_data_proto_msgTypes[6] 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 AreasItem.ProtoReflect.Descriptor instead. func (*AreasItem) Descriptor() ([]byte, []int) { return file_data_proto_rawDescGZIP(), []int{6} } func (x *AreasItem) GetId() string { if x != nil { return x.Id } return "" } func (x *AreasItem) GetPid() string { if x != nil { return x.Pid } return "" } func (x *AreasItem) GetDeep() int32 { if x != nil { return x.Deep } return 0 } func (x *AreasItem) GetName() string { if x != nil { return x.Name } return "" } func (x *AreasItem) GetPinyinPrefix() string { if x != nil { return x.PinyinPrefix } return "" } func (x *AreasItem) GetPinyin() string { if x != nil { return x.Pinyin } return "" } func (x *AreasItem) GetExtId() string { if x != nil { return x.ExtId } return "" } func (x *AreasItem) GetExtName() string { if x != nil { return x.ExtName } return "" } type TagsReply struct { state protoimpl.MessageState `protogen:"open.v1"` Tags []*TagsItem `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *TagsReply) Reset() { *x = TagsReply{} mi := &file_data_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *TagsReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*TagsReply) ProtoMessage() {} func (x *TagsReply) ProtoReflect() protoreflect.Message { mi := &file_data_proto_msgTypes[7] 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 TagsReply.ProtoReflect.Descriptor instead. func (*TagsReply) Descriptor() ([]byte, []int) { return file_data_proto_rawDescGZIP(), []int{7} } func (x *TagsReply) GetTags() []*TagsItem { if x != nil { return x.Tags } return nil } type TagsItem struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` Icon string `protobuf:"bytes,6,opt,name=icon,proto3" json:"icon,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *TagsItem) Reset() { *x = TagsItem{} mi := &file_data_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *TagsItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*TagsItem) ProtoMessage() {} func (x *TagsItem) ProtoReflect() protoreflect.Message { mi := &file_data_proto_msgTypes[8] 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 TagsItem.ProtoReflect.Descriptor instead. func (*TagsItem) Descriptor() ([]byte, []int) { return file_data_proto_rawDescGZIP(), []int{8} } func (x *TagsItem) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *TagsItem) GetType() int32 { if x != nil { return x.Type } return 0 } func (x *TagsItem) GetKey() string { if x != nil { return x.Key } return "" } func (x *TagsItem) GetTitle() string { if x != nil { return x.Title } return "" } func (x *TagsItem) GetRemark() string { if x != nil { return x.Remark } return "" } func (x *TagsItem) GetIcon() string { if x != nil { return x.Icon } return "" } var File_data_proto protoreflect.FileDescriptor const file_data_proto_rawDesc = "" + "\n" + "\n" + "data.proto\x12\ainitial\"\a\n" + "\x05Empty\"+\n" + "\fAreasRequest\x12\x1b\n" + "\tshow_town\x18\x01 \x01(\bR\bshowTown\"1\n" + "\rConfigRequest\x12\x10\n" + "\x03app\x18\x01 \x01(\tR\x03app\x12\x0e\n" + "\x02os\x18\x02 \x01(\tR\x02os\"6\n" + "\vConfigReply\x12'\n" + "\x04data\x18\x01 \x03(\v2\x13.initial.ConfigItemR\x04data\"j\n" + "\n" + "ConfigItem\x12\x1a\n" + "\bIdentity\x18\x01 \x01(\tR\bIdentity\x12\x10\n" + "\x03key\x18\x02 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x03 \x01(\tR\x05value\x12\x18\n" + "\aversion\x18\x04 \x01(\x03R\aversion\"6\n" + "\n" + "AreasReply\x12(\n" + "\x05areas\x18\x01 \x03(\v2\x12.initial.AreasItemR\x05areas\"\xc4\x01\n" + "\tAreasItem\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x10\n" + "\x03pid\x18\x02 \x01(\tR\x03pid\x12\x12\n" + "\x04deep\x18\x03 \x01(\x05R\x04deep\x12\x12\n" + "\x04name\x18\x04 \x01(\tR\x04name\x12#\n" + "\rpinyin_prefix\x18\x05 \x01(\tR\fpinyinPrefix\x12\x16\n" + "\x06pinyin\x18\x06 \x01(\tR\x06pinyin\x12\x15\n" + "\x06ext_id\x18\a \x01(\tR\x05extId\x12\x19\n" + "\bext_name\x18\b \x01(\tR\aextName\"2\n" + "\tTagsReply\x12%\n" + "\x04tags\x18\x01 \x03(\v2\x11.initial.TagsItemR\x04tags\"\x82\x01\n" + "\bTagsItem\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" + "\x04type\x18\x02 \x01(\x05R\x04type\x12\x10\n" + "\x03key\x18\x03 \x01(\tR\x03key\x12\x14\n" + "\x05title\x18\x04 \x01(\tR\x05title\x12\x16\n" + "\x06remark\x18\x05 \x01(\tR\x06remark\x12\x12\n" + "\x04icon\x18\x06 \x01(\tR\x04icon2\xa5\x01\n" + "\x04Data\x128\n" + "\x06Config\x12\x16.initial.ConfigRequest\x1a\x14.initial.ConfigReply\"\x00\x125\n" + "\x05Areas\x12\x15.initial.AreasRequest\x1a\x13.initial.AreasReply\"\x00\x12,\n" + "\x04Tags\x12\x0e.initial.Empty\x1a\x12.initial.TagsReply\"\x00B\vZ\t.;initialb\x06proto3" var ( file_data_proto_rawDescOnce sync.Once file_data_proto_rawDescData []byte ) func file_data_proto_rawDescGZIP() []byte { file_data_proto_rawDescOnce.Do(func() { file_data_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_data_proto_rawDesc), len(file_data_proto_rawDesc))) }) return file_data_proto_rawDescData } var file_data_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_data_proto_goTypes = []any{ (*Empty)(nil), // 0: initial.Empty (*AreasRequest)(nil), // 1: initial.AreasRequest (*ConfigRequest)(nil), // 2: initial.ConfigRequest (*ConfigReply)(nil), // 3: initial.ConfigReply (*ConfigItem)(nil), // 4: initial.ConfigItem (*AreasReply)(nil), // 5: initial.AreasReply (*AreasItem)(nil), // 6: initial.AreasItem (*TagsReply)(nil), // 7: initial.TagsReply (*TagsItem)(nil), // 8: initial.TagsItem } var file_data_proto_depIdxs = []int32{ 4, // 0: initial.ConfigReply.data:type_name -> initial.ConfigItem 6, // 1: initial.AreasReply.areas:type_name -> initial.AreasItem 8, // 2: initial.TagsReply.tags:type_name -> initial.TagsItem 2, // 3: initial.Data.Config:input_type -> initial.ConfigRequest 1, // 4: initial.Data.Areas:input_type -> initial.AreasRequest 0, // 5: initial.Data.Tags:input_type -> initial.Empty 3, // 6: initial.Data.Config:output_type -> initial.ConfigReply 5, // 7: initial.Data.Areas:output_type -> initial.AreasReply 7, // 8: initial.Data.Tags:output_type -> initial.TagsReply 6, // [6:9] is the sub-list for method output_type 3, // [3:6] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name 3, // [3:3] is the sub-list for extension extendee 0, // [0:3] is the sub-list for field type_name } func init() { file_data_proto_init() } func file_data_proto_init() { if File_data_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_data_proto_rawDesc), len(file_data_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, NumServices: 1, }, GoTypes: file_data_proto_goTypes, DependencyIndexes: file_data_proto_depIdxs, MessageInfos: file_data_proto_msgTypes, }.Build() File_data_proto = out.File file_data_proto_goTypes = nil file_data_proto_depIdxs = nil }