1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.34.2
- // protoc v4.25.3
- // source: user/v2/child.proto
- package v2
- import (
- _ "github.com/envoyproxy/protoc-gen-validate/validate"
- _ "google.golang.org/genproto/googleapis/api/annotations"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- 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 Gender int32
- const (
- // 未知
- Gender_UNKNOWN Gender = 0
- // 男
- Gender_MAN Gender = 2
- // 女
- Gender_WOMAN Gender = 3
- )
- // Enum value maps for Gender.
- var (
- Gender_name = map[int32]string{
- 0: "UNKNOWN",
- 2: "MAN",
- 3: "WOMAN",
- }
- Gender_value = map[string]int32{
- "UNKNOWN": 0,
- "MAN": 2,
- "WOMAN": 3,
- }
- )
- func (x Gender) Enum() *Gender {
- p := new(Gender)
- *p = x
- return p
- }
- func (x Gender) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (Gender) Descriptor() protoreflect.EnumDescriptor {
- return file_user_v2_child_proto_enumTypes[0].Descriptor()
- }
- func (Gender) Type() protoreflect.EnumType {
- return &file_user_v2_child_proto_enumTypes[0]
- }
- func (x Gender) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use Gender.Descriptor instead.
- func (Gender) EnumDescriptor() ([]byte, []int) {
- return file_user_v2_child_proto_rawDescGZIP(), []int{0}
- }
- type GetChildResponse_Location_PointType int32
- const (
- // 未知
- GetChildResponse_Location_UNKNOWN GetChildResponse_Location_PointType = 0
- // GPS
- GetChildResponse_Location_GPS GetChildResponse_Location_PointType = 1
- // WIFI
- GetChildResponse_Location_WIFI GetChildResponse_Location_PointType = 2
- // 基站
- GetChildResponse_Location_CELL GetChildResponse_Location_PointType = 3
- // IP
- GetChildResponse_Location_IP GetChildResponse_Location_PointType = 4
- )
- // Enum value maps for GetChildResponse_Location_PointType.
- var (
- GetChildResponse_Location_PointType_name = map[int32]string{
- 0: "UNKNOWN",
- 1: "GPS",
- 2: "WIFI",
- 3: "CELL",
- 4: "IP",
- }
- GetChildResponse_Location_PointType_value = map[string]int32{
- "UNKNOWN": 0,
- "GPS": 1,
- "WIFI": 2,
- "CELL": 3,
- "IP": 4,
- }
- )
- func (x GetChildResponse_Location_PointType) Enum() *GetChildResponse_Location_PointType {
- p := new(GetChildResponse_Location_PointType)
- *p = x
- return p
- }
- func (x GetChildResponse_Location_PointType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (GetChildResponse_Location_PointType) Descriptor() protoreflect.EnumDescriptor {
- return file_user_v2_child_proto_enumTypes[1].Descriptor()
- }
- func (GetChildResponse_Location_PointType) Type() protoreflect.EnumType {
- return &file_user_v2_child_proto_enumTypes[1]
- }
- func (x GetChildResponse_Location_PointType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use GetChildResponse_Location_PointType.Descriptor instead.
- func (GetChildResponse_Location_PointType) EnumDescriptor() ([]byte, []int) {
- return file_user_v2_child_proto_rawDescGZIP(), []int{1, 2, 0}
- }
- type GetChildRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *GetChildRequest) Reset() {
- *x = GetChildRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_v2_child_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetChildRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetChildRequest) ProtoMessage() {}
- func (x *GetChildRequest) ProtoReflect() protoreflect.Message {
- mi := &file_user_v2_child_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use GetChildRequest.ProtoReflect.Descriptor instead.
- func (*GetChildRequest) Descriptor() ([]byte, []int) {
- return file_user_v2_child_proto_rawDescGZIP(), []int{0}
- }
- type GetChildResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ChildList []*GetChildResponse_Child `protobuf:"bytes,1,rep,name=childList,proto3" json:"childList,omitempty"`
- }
- func (x *GetChildResponse) Reset() {
- *x = GetChildResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_v2_child_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetChildResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetChildResponse) ProtoMessage() {}
- func (x *GetChildResponse) ProtoReflect() protoreflect.Message {
- mi := &file_user_v2_child_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use GetChildResponse.ProtoReflect.Descriptor instead.
- func (*GetChildResponse) Descriptor() ([]byte, []int) {
- return file_user_v2_child_proto_rawDescGZIP(), []int{1}
- }
- func (x *GetChildResponse) GetChildList() []*GetChildResponse_Child {
- if x != nil {
- return x.ChildList
- }
- return nil
- }
- type CreateChildRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- // 小孩姓名
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // 小孩电话
- PhoneNumber string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"`
- // 小孩电话区号
- AreaCode string `protobuf:"bytes,3,opt,name=areaCode,proto3" json:"areaCode,omitempty"`
- // 小孩头像
- Avatar *string `protobuf:"bytes,4,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
- // 小孩生日
- Birthday *string `protobuf:"bytes,5,opt,name=birthday,proto3,oneof" json:"birthday,omitempty"`
- // 小孩对自己的称谓
- Appellation string `protobuf:"bytes,6,opt,name=appellation,proto3" json:"appellation,omitempty"`
- // 小孩性别
- Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=api.user.v2.Gender" json:"gender,omitempty"`
- // 小孩体重
- Weight int32 `protobuf:"varint,8,opt,name=weight,proto3" json:"weight,omitempty"`
- // 小孩身高
- Height int32 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"`
- }
- func (x *CreateChildRequest) Reset() {
- *x = CreateChildRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_v2_child_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CreateChildRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CreateChildRequest) ProtoMessage() {}
- func (x *CreateChildRequest) ProtoReflect() protoreflect.Message {
- mi := &file_user_v2_child_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use CreateChildRequest.ProtoReflect.Descriptor instead.
- func (*CreateChildRequest) Descriptor() ([]byte, []int) {
- return file_user_v2_child_proto_rawDescGZIP(), []int{2}
- }
- func (x *CreateChildRequest) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *CreateChildRequest) GetPhoneNumber() string {
- if x != nil {
- return x.PhoneNumber
- }
- return ""
- }
- func (x *CreateChildRequest) GetAreaCode() string {
- if x != nil {
- return x.AreaCode
- }
- return ""
- }
- func (x *CreateChildRequest) GetAvatar() string {
- if x != nil && x.Avatar != nil {
- return *x.Avatar
- }
- return ""
- }
- func (x *CreateChildRequest) GetBirthday() string {
- if x != nil && x.Birthday != nil {
- return *x.Birthday
- }
- return ""
- }
- func (x *CreateChildRequest) GetAppellation() string {
- if x != nil {
- return x.Appellation
- }
- return ""
- }
- func (x *CreateChildRequest) GetGender() Gender {
- if x != nil {
- return x.Gender
- }
- return Gender_UNKNOWN
- }
- func (x *CreateChildRequest) GetWeight() int32 {
- if x != nil {
- return x.Weight
- }
- return 0
- }
- func (x *CreateChildRequest) GetHeight() int32 {
- if x != nil {
- return x.Height
- }
- return 0
- }
- type CreateChildResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
- }
- func (x *CreateChildResponse) Reset() {
- *x = CreateChildResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_v2_child_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CreateChildResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CreateChildResponse) ProtoMessage() {}
- func (x *CreateChildResponse) ProtoReflect() protoreflect.Message {
- mi := &file_user_v2_child_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use CreateChildResponse.ProtoReflect.Descriptor instead.
- func (*CreateChildResponse) Descriptor() ([]byte, []int) {
- return file_user_v2_child_proto_rawDescGZIP(), []int{3}
- }
- func (x *CreateChildResponse) GetCid() string {
- if x != nil {
- return x.Cid
- }
- return ""
- }
- type UpdateChildRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- // 小孩姓名
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // 小孩电话
- PhoneNumber string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"`
- // 小孩电话区号
- AreaCode string `protobuf:"bytes,3,opt,name=areaCode,proto3" json:"areaCode,omitempty"`
- // 小孩头像
- Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
- // 小孩生日
- Birthday string `protobuf:"bytes,5,opt,name=birthday,proto3" json:"birthday,omitempty"`
- // 小孩对自己的称谓
- Appellation string `protobuf:"bytes,6,opt,name=appellation,proto3" json:"appellation,omitempty"`
- // 小孩性别
- Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=api.user.v2.Gender" json:"gender,omitempty"`
- // 小孩体重
- Weight int32 `protobuf:"varint,8,opt,name=weight,proto3" json:"weight,omitempty"`
- // 小孩身高
- Height int32 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"`
- // 小孩ID
- Cid string `protobuf:"bytes,10,opt,name=cid,proto3" json:"cid,omitempty"`
- }
- func (x *UpdateChildRequest) Reset() {
- *x = UpdateChildRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_v2_child_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UpdateChildRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UpdateChildRequest) ProtoMessage() {}
- func (x *UpdateChildRequest) ProtoReflect() protoreflect.Message {
- mi := &file_user_v2_child_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UpdateChildRequest.ProtoReflect.Descriptor instead.
- func (*UpdateChildRequest) Descriptor() ([]byte, []int) {
- return file_user_v2_child_proto_rawDescGZIP(), []int{4}
- }
- func (x *UpdateChildRequest) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *UpdateChildRequest) GetPhoneNumber() string {
- if x != nil {
- return x.PhoneNumber
- }
- return ""
- }
- func (x *UpdateChildRequest) GetAreaCode() string {
- if x != nil {
- return x.AreaCode
- }
- return ""
- }
- func (x *UpdateChildRequest) GetAvatar() string {
- if x != nil {
- return x.Avatar
- }
- return ""
- }
- func (x *UpdateChildRequest) GetBirthday() string {
- if x != nil {
- return x.Birthday
- }
- return ""
- }
- func (x *UpdateChildRequest) GetAppellation() string {
- if x != nil {
- return x.Appellation
- }
- return ""
- }
- func (x *UpdateChildRequest) GetGender() Gender {
- if x != nil {
- return x.Gender
- }
- return Gender_UNKNOWN
- }
- func (x *UpdateChildRequest) GetWeight() int32 {
- if x != nil {
- return x.Weight
- }
- return 0
- }
- func (x *UpdateChildRequest) GetHeight() int32 {
- if x != nil {
- return x.Height
- }
- return 0
- }
- func (x *UpdateChildRequest) GetCid() string {
- if x != nil {
- return x.Cid
- }
- return ""
- }
- type UpdateChildResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *UpdateChildResponse) Reset() {
- *x = UpdateChildResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_v2_child_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UpdateChildResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UpdateChildResponse) ProtoMessage() {}
- func (x *UpdateChildResponse) ProtoReflect() protoreflect.Message {
- mi := &file_user_v2_child_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UpdateChildResponse.ProtoReflect.Descriptor instead.
- func (*UpdateChildResponse) Descriptor() ([]byte, []int) {
- return file_user_v2_child_proto_rawDescGZIP(), []int{5}
- }
- type DeleteChildRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
- }
- func (x *DeleteChildRequest) Reset() {
- *x = DeleteChildRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_v2_child_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DeleteChildRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DeleteChildRequest) ProtoMessage() {}
- func (x *DeleteChildRequest) ProtoReflect() protoreflect.Message {
- mi := &file_user_v2_child_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use DeleteChildRequest.ProtoReflect.Descriptor instead.
- func (*DeleteChildRequest) Descriptor() ([]byte, []int) {
- return file_user_v2_child_proto_rawDescGZIP(), []int{6}
- }
- func (x *DeleteChildRequest) GetCid() string {
- if x != nil {
- return x.Cid
- }
- return ""
- }
- type DeleteChildResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *DeleteChildResponse) Reset() {
- *x = DeleteChildResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_v2_child_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DeleteChildResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DeleteChildResponse) ProtoMessage() {}
- func (x *DeleteChildResponse) ProtoReflect() protoreflect.Message {
- mi := &file_user_v2_child_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use DeleteChildResponse.ProtoReflect.Descriptor instead.
- func (*DeleteChildResponse) Descriptor() ([]byte, []int) {
- return file_user_v2_child_proto_rawDescGZIP(), []int{7}
- }
- type GetChildResponse_Child struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- // 小孩ID
- Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
- StepCount int32 `protobuf:"varint,2,opt,name=stepCount,proto3" json:"stepCount,omitempty"`
- Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
- Avatar *string `protobuf:"bytes,4,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
- // 绑定的设备
- Device *GetChildResponse_Device `protobuf:"bytes,5,opt,name=device,proto3" json:"device,omitempty"`
- // 最后一次位置
- LastLocation *GetChildResponse_Location `protobuf:"bytes,6,opt,name=lastLocation,proto3" json:"lastLocation,omitempty"`
- }
- func (x *GetChildResponse_Child) Reset() {
- *x = GetChildResponse_Child{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_v2_child_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetChildResponse_Child) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetChildResponse_Child) ProtoMessage() {}
- func (x *GetChildResponse_Child) ProtoReflect() protoreflect.Message {
- mi := &file_user_v2_child_proto_msgTypes[8]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use GetChildResponse_Child.ProtoReflect.Descriptor instead.
- func (*GetChildResponse_Child) Descriptor() ([]byte, []int) {
- return file_user_v2_child_proto_rawDescGZIP(), []int{1, 0}
- }
- func (x *GetChildResponse_Child) GetCid() string {
- if x != nil {
- return x.Cid
- }
- return ""
- }
- func (x *GetChildResponse_Child) GetStepCount() int32 {
- if x != nil {
- return x.StepCount
- }
- return 0
- }
- func (x *GetChildResponse_Child) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *GetChildResponse_Child) GetAvatar() string {
- if x != nil && x.Avatar != nil {
- return *x.Avatar
- }
- return ""
- }
- func (x *GetChildResponse_Child) GetDevice() *GetChildResponse_Device {
- if x != nil {
- return x.Device
- }
- return nil
- }
- func (x *GetChildResponse_Child) GetLastLocation() *GetChildResponse_Location {
- if x != nil {
- return x.LastLocation
- }
- return nil
- }
- type GetChildResponse_Device struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Did int64 `protobuf:"varint,1,opt,name=did,proto3" json:"did,omitempty"` // 设备ID
- Battery int32 `protobuf:"varint,2,opt,name=battery,proto3" json:"battery,omitempty"` // 电池电量
- Signal int32 `protobuf:"varint,3,opt,name=signal,proto3" json:"signal,omitempty"` // 当前信号值
- SignalMax int32 `protobuf:"varint,4,opt,name=signalMax,proto3" json:"signalMax,omitempty"` // 最大信号值
- Ticket string `protobuf:"bytes,5,opt,name=ticket,proto3" json:"ticket,omitempty"`
- }
- func (x *GetChildResponse_Device) Reset() {
- *x = GetChildResponse_Device{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_v2_child_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetChildResponse_Device) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetChildResponse_Device) ProtoMessage() {}
- func (x *GetChildResponse_Device) ProtoReflect() protoreflect.Message {
- mi := &file_user_v2_child_proto_msgTypes[9]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use GetChildResponse_Device.ProtoReflect.Descriptor instead.
- func (*GetChildResponse_Device) Descriptor() ([]byte, []int) {
- return file_user_v2_child_proto_rawDescGZIP(), []int{1, 1}
- }
- func (x *GetChildResponse_Device) GetDid() int64 {
- if x != nil {
- return x.Did
- }
- return 0
- }
- func (x *GetChildResponse_Device) GetBattery() int32 {
- if x != nil {
- return x.Battery
- }
- return 0
- }
- func (x *GetChildResponse_Device) GetSignal() int32 {
- if x != nil {
- return x.Signal
- }
- return 0
- }
- func (x *GetChildResponse_Device) GetSignalMax() int32 {
- if x != nil {
- return x.SignalMax
- }
- return 0
- }
- func (x *GetChildResponse_Device) GetTicket() string {
- if x != nil {
- return x.Ticket
- }
- return ""
- }
- type GetChildResponse_Location struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Latitude string `protobuf:"bytes,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
- Longitude string `protobuf:"bytes,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
- PositionTime int64 `protobuf:"varint,3,opt,name=positionTime,proto3" json:"positionTime,omitempty"`
- Radius int32 `protobuf:"varint,4,opt,name=radius,proto3" json:"radius,omitempty"`
- PointType GetChildResponse_Location_PointType `protobuf:"varint,5,opt,name=pointType,proto3,enum=api.user.v2.GetChildResponse_Location_PointType" json:"pointType,omitempty"`
- }
- func (x *GetChildResponse_Location) Reset() {
- *x = GetChildResponse_Location{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_v2_child_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetChildResponse_Location) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetChildResponse_Location) ProtoMessage() {}
- func (x *GetChildResponse_Location) ProtoReflect() protoreflect.Message {
- mi := &file_user_v2_child_proto_msgTypes[10]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use GetChildResponse_Location.ProtoReflect.Descriptor instead.
- func (*GetChildResponse_Location) Descriptor() ([]byte, []int) {
- return file_user_v2_child_proto_rawDescGZIP(), []int{1, 2}
- }
- func (x *GetChildResponse_Location) GetLatitude() string {
- if x != nil {
- return x.Latitude
- }
- return ""
- }
- func (x *GetChildResponse_Location) GetLongitude() string {
- if x != nil {
- return x.Longitude
- }
- return ""
- }
- func (x *GetChildResponse_Location) GetPositionTime() int64 {
- if x != nil {
- return x.PositionTime
- }
- return 0
- }
- func (x *GetChildResponse_Location) GetRadius() int32 {
- if x != nil {
- return x.Radius
- }
- return 0
- }
- func (x *GetChildResponse_Location) GetPointType() GetChildResponse_Location_PointType {
- if x != nil {
- return x.PointType
- }
- return GetChildResponse_Location_UNKNOWN
- }
- var File_user_v2_child_proto protoreflect.FileDescriptor
- var file_user_v2_child_proto_rawDesc = []byte{
- 0x0a, 0x13, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x2e,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e,
- 0x76, 0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
- 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64,
- 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x11, 0x0a, 0x0f, 0x47, 0x65, 0x74,
- 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xec, 0x05, 0x0a,
- 0x10, 0x47, 0x65, 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x12, 0x41, 0x0a, 0x09, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01,
- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e,
- 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x09, 0x63, 0x68, 0x69, 0x6c, 0x64,
- 0x4c, 0x69, 0x73, 0x74, 0x1a, 0xfd, 0x01, 0x0a, 0x05, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x12, 0x10,
- 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64,
- 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x65, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x05, 0x52, 0x09, 0x73, 0x74, 0x65, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12,
- 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
- 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x88, 0x01, 0x01, 0x12,
- 0x3c, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65,
- 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44,
- 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a,
- 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76,
- 0x32, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x6c, 0x61, 0x73,
- 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x76,
- 0x61, 0x74, 0x61, 0x72, 0x1a, 0x82, 0x01, 0x0a, 0x06, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12,
- 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x64, 0x69,
- 0x64, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x74, 0x74, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x05, 0x52, 0x07, 0x62, 0x61, 0x74, 0x74, 0x65, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73,
- 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x69, 0x67,
- 0x6e, 0x61, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4d, 0x61, 0x78,
- 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4d, 0x61,
- 0x78, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x1a, 0x8f, 0x02, 0x0a, 0x08, 0x4c, 0x6f,
- 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75,
- 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75,
- 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65,
- 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e,
- 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x61, 0x64, 0x69, 0x75, 0x73, 0x18, 0x04,
- 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x72, 0x61, 0x64, 0x69, 0x75, 0x73, 0x12, 0x4e, 0x0a, 0x09,
- 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32,
- 0x30, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65,
- 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4c,
- 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x54, 0x79, 0x70,
- 0x65, 0x52, 0x09, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x3d, 0x0a, 0x09,
- 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b,
- 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x50, 0x53, 0x10, 0x01, 0x12,
- 0x08, 0x0a, 0x04, 0x57, 0x49, 0x46, 0x49, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x45, 0x4c,
- 0x4c, 0x10, 0x03, 0x12, 0x06, 0x0a, 0x02, 0x49, 0x50, 0x10, 0x04, 0x22, 0x8e, 0x03, 0x0a, 0x12,
- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
- 0x36, 0x0a, 0x0b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x42, 0x14, 0xfa, 0x42, 0x11, 0x72, 0x0f, 0x32, 0x0d, 0x5e, 0x31, 0x5b,
- 0x33, 0x2d, 0x39, 0x5d, 0x5c, 0x64, 0x7b, 0x39, 0x7d, 0x24, 0x52, 0x0b, 0x70, 0x68, 0x6f, 0x6e,
- 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x08, 0x61, 0x72, 0x65, 0x61, 0x43,
- 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02,
- 0x10, 0x01, 0x52, 0x08, 0x61, 0x72, 0x65, 0x61, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x06,
- 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06,
- 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x62, 0x69, 0x72,
- 0x74, 0x68, 0x64, 0x61, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x08, 0x62,
- 0x69, 0x72, 0x74, 0x68, 0x64, 0x61, 0x79, 0x88, 0x01, 0x01, 0x12, 0x29, 0x0a, 0x0b, 0x61, 0x70,
- 0x70, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42,
- 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x61, 0x70, 0x70, 0x65, 0x6c, 0x6c,
- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18,
- 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72,
- 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82,
- 0x01, 0x02, 0x10, 0x01, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x06,
- 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x42, 0x0a, 0xfa, 0x42,
- 0x07, 0x1a, 0x05, 0x18, 0xc8, 0x01, 0x28, 0x64, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74,
- 0x12, 0x22, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05,
- 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x1a, 0x05, 0x18, 0xc8, 0x01, 0x28, 0x64, 0x52, 0x06, 0x68, 0x65,
- 0x69, 0x67, 0x68, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x42,
- 0x0b, 0x0a, 0x09, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x64, 0x61, 0x79, 0x22, 0x27, 0x0a, 0x13,
- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, 0xfe, 0x02, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
- 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x04,
- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72,
- 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x70, 0x68, 0x6f,
- 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x14,
- 0xfa, 0x42, 0x11, 0x72, 0x0f, 0x32, 0x0d, 0x5e, 0x31, 0x5b, 0x33, 0x2d, 0x39, 0x5d, 0x5c, 0x64,
- 0x7b, 0x39, 0x7d, 0x24, 0x52, 0x0b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65,
- 0x72, 0x12, 0x23, 0x0a, 0x08, 0x61, 0x72, 0x65, 0x61, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x61, 0x72,
- 0x65, 0x61, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72,
- 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x1a,
- 0x0a, 0x08, 0x62, 0x69, 0x72, 0x74, 0x68, 0x64, 0x61, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x08, 0x62, 0x69, 0x72, 0x74, 0x68, 0x64, 0x61, 0x79, 0x12, 0x29, 0x0a, 0x0b, 0x61, 0x70,
- 0x70, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42,
- 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x61, 0x70, 0x70, 0x65, 0x6c, 0x6c,
- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18,
- 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72,
- 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82,
- 0x01, 0x02, 0x10, 0x01, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x06,
- 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x42, 0x0a, 0xfa, 0x42,
- 0x07, 0x1a, 0x05, 0x18, 0xc8, 0x01, 0x28, 0x64, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74,
- 0x12, 0x22, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05,
- 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x1a, 0x05, 0x18, 0xc8, 0x01, 0x28, 0x64, 0x52, 0x06, 0x68, 0x65,
- 0x69, 0x67, 0x68, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
- 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x0a,
- 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, 0x15,
- 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x73,
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x29, 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12,
- 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03,
- 0x4d, 0x41, 0x4e, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x57, 0x4f, 0x4d, 0x41, 0x4e, 0x10, 0x03,
- 0x32, 0xf9, 0x03, 0x0a, 0x05, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x12, 0x70, 0x0a, 0x08, 0x47, 0x65,
- 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x12, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65,
- 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e,
- 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x61, 0x70,
- 0x69, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x63, 0x74, 0x78, 0x2f, 0x75, 0x73,
- 0x65, 0x72, 0x2f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x2f, 0x67, 0x65, 0x74, 0x12, 0x7f, 0x0a, 0x0b,
- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x12, 0x1f, 0x2e, 0x61, 0x70,
- 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
- 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x61,
- 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
- 0x65, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d,
- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x3a, 0x01, 0x2a, 0x22, 0x22, 0x2f, 0x61, 0x70, 0x69, 0x73,
- 0x2f, 0x76, 0x32, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x63, 0x74, 0x78, 0x2f, 0x75, 0x73, 0x65, 0x72,
- 0x2f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x7f, 0x0a,
- 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x12, 0x1f, 0x2e, 0x61,
- 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
- 0x65, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e,
- 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
- 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x3a, 0x01, 0x2a, 0x22, 0x22, 0x2f, 0x61, 0x70, 0x69,
- 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x63, 0x74, 0x78, 0x2f, 0x75, 0x73, 0x65,
- 0x72, 0x2f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x7c,
- 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x12, 0x1f, 0x2e,
- 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65,
- 0x74, 0x65, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20,
- 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c,
- 0x65, 0x74, 0x65, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f,
- 0x76, 0x32, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x63, 0x74, 0x78, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f,
- 0x63, 0x68, 0x69, 0x6c, 0x64, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x30, 0x0a, 0x0b,
- 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x50, 0x01, 0x5a, 0x1f, 0x73,
- 0x69, 0x6b, 0x65, 0x79, 0x2f, 0x77, 0x33, 0x30, 0x33, 0x61, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f,
- 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x3b, 0x76, 0x32, 0x62, 0x06,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_user_v2_child_proto_rawDescOnce sync.Once
- file_user_v2_child_proto_rawDescData = file_user_v2_child_proto_rawDesc
- )
- func file_user_v2_child_proto_rawDescGZIP() []byte {
- file_user_v2_child_proto_rawDescOnce.Do(func() {
- file_user_v2_child_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_v2_child_proto_rawDescData)
- })
- return file_user_v2_child_proto_rawDescData
- }
- var file_user_v2_child_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
- var file_user_v2_child_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
- var file_user_v2_child_proto_goTypes = []any{
- (Gender)(0), // 0: api.user.v2.Gender
- (GetChildResponse_Location_PointType)(0), // 1: api.user.v2.GetChildResponse.Location.PointType
- (*GetChildRequest)(nil), // 2: api.user.v2.GetChildRequest
- (*GetChildResponse)(nil), // 3: api.user.v2.GetChildResponse
- (*CreateChildRequest)(nil), // 4: api.user.v2.CreateChildRequest
- (*CreateChildResponse)(nil), // 5: api.user.v2.CreateChildResponse
- (*UpdateChildRequest)(nil), // 6: api.user.v2.UpdateChildRequest
- (*UpdateChildResponse)(nil), // 7: api.user.v2.UpdateChildResponse
- (*DeleteChildRequest)(nil), // 8: api.user.v2.DeleteChildRequest
- (*DeleteChildResponse)(nil), // 9: api.user.v2.DeleteChildResponse
- (*GetChildResponse_Child)(nil), // 10: api.user.v2.GetChildResponse.Child
- (*GetChildResponse_Device)(nil), // 11: api.user.v2.GetChildResponse.Device
- (*GetChildResponse_Location)(nil), // 12: api.user.v2.GetChildResponse.Location
- }
- var file_user_v2_child_proto_depIdxs = []int32{
- 10, // 0: api.user.v2.GetChildResponse.childList:type_name -> api.user.v2.GetChildResponse.Child
- 0, // 1: api.user.v2.CreateChildRequest.gender:type_name -> api.user.v2.Gender
- 0, // 2: api.user.v2.UpdateChildRequest.gender:type_name -> api.user.v2.Gender
- 11, // 3: api.user.v2.GetChildResponse.Child.device:type_name -> api.user.v2.GetChildResponse.Device
- 12, // 4: api.user.v2.GetChildResponse.Child.lastLocation:type_name -> api.user.v2.GetChildResponse.Location
- 1, // 5: api.user.v2.GetChildResponse.Location.pointType:type_name -> api.user.v2.GetChildResponse.Location.PointType
- 2, // 6: api.user.v2.Child.GetChild:input_type -> api.user.v2.GetChildRequest
- 4, // 7: api.user.v2.Child.CreateChild:input_type -> api.user.v2.CreateChildRequest
- 6, // 8: api.user.v2.Child.UpdateChild:input_type -> api.user.v2.UpdateChildRequest
- 8, // 9: api.user.v2.Child.DeleteChild:input_type -> api.user.v2.DeleteChildRequest
- 3, // 10: api.user.v2.Child.GetChild:output_type -> api.user.v2.GetChildResponse
- 5, // 11: api.user.v2.Child.CreateChild:output_type -> api.user.v2.CreateChildResponse
- 7, // 12: api.user.v2.Child.UpdateChild:output_type -> api.user.v2.UpdateChildResponse
- 9, // 13: api.user.v2.Child.DeleteChild:output_type -> api.user.v2.DeleteChildResponse
- 10, // [10:14] is the sub-list for method output_type
- 6, // [6:10] is the sub-list for method input_type
- 6, // [6:6] is the sub-list for extension type_name
- 6, // [6:6] is the sub-list for extension extendee
- 0, // [0:6] is the sub-list for field type_name
- }
- func init() { file_user_v2_child_proto_init() }
- func file_user_v2_child_proto_init() {
- if File_user_v2_child_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_user_v2_child_proto_msgTypes[0].Exporter = func(v any, i int) any {
- switch v := v.(*GetChildRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_v2_child_proto_msgTypes[1].Exporter = func(v any, i int) any {
- switch v := v.(*GetChildResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_v2_child_proto_msgTypes[2].Exporter = func(v any, i int) any {
- switch v := v.(*CreateChildRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_v2_child_proto_msgTypes[3].Exporter = func(v any, i int) any {
- switch v := v.(*CreateChildResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_v2_child_proto_msgTypes[4].Exporter = func(v any, i int) any {
- switch v := v.(*UpdateChildRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_v2_child_proto_msgTypes[5].Exporter = func(v any, i int) any {
- switch v := v.(*UpdateChildResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_v2_child_proto_msgTypes[6].Exporter = func(v any, i int) any {
- switch v := v.(*DeleteChildRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_v2_child_proto_msgTypes[7].Exporter = func(v any, i int) any {
- switch v := v.(*DeleteChildResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_v2_child_proto_msgTypes[8].Exporter = func(v any, i int) any {
- switch v := v.(*GetChildResponse_Child); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_v2_child_proto_msgTypes[9].Exporter = func(v any, i int) any {
- switch v := v.(*GetChildResponse_Device); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_v2_child_proto_msgTypes[10].Exporter = func(v any, i int) any {
- switch v := v.(*GetChildResponse_Location); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- file_user_v2_child_proto_msgTypes[2].OneofWrappers = []any{}
- file_user_v2_child_proto_msgTypes[8].OneofWrappers = []any{}
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_user_v2_child_proto_rawDesc,
- NumEnums: 2,
- NumMessages: 11,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_user_v2_child_proto_goTypes,
- DependencyIndexes: file_user_v2_child_proto_depIdxs,
- EnumInfos: file_user_v2_child_proto_enumTypes,
- MessageInfos: file_user_v2_child_proto_msgTypes,
- }.Build()
- File_user_v2_child_proto = out.File
- file_user_v2_child_proto_rawDesc = nil
- file_user_v2_child_proto_goTypes = nil
- file_user_v2_child_proto_depIdxs = nil
- }
|