1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.25.0
- // protoc v3.15.1
- // source: resourcesCenter.proto
- package resourcesCenter
- import (
- context "context"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- 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)
- )
- // This is a compile-time assertion that a sufficiently up-to-date version
- // of the legacy proto package is being used.
- const _ = proto.ProtoPackageIsVersion4
- //option go_package = "resourcesCenter/";
- type Response struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- }
- func (x *Response) Reset() {
- *x = Response{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Response) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Response) ProtoMessage() {}
- func (x *Response) ProtoReflect() protoreflect.Message {
- mi := &file_resourcesCenter_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 Response.ProtoReflect.Descriptor instead.
- func (*Response) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{0}
- }
- func (x *Response) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *Response) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- type Balance struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` //账户标识
- CompanyId int64 `protobuf:"varint,2,opt,name=companyId,proto3" json:"companyId,omitempty"` //企业标识
- DepartmentId int64 `protobuf:"varint,3,opt,name=departmentId,proto3" json:"departmentId,omitempty"` //组织标识
- Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` //资源名称
- ResourceType string `protobuf:"bytes,5,opt,name=resourceType,proto3" json:"resourceType,omitempty"` //资源类型
- Number int64 `protobuf:"varint,6,opt,name=number,proto3" json:"number,omitempty"` //数量
- Spec string `protobuf:"bytes,7,opt,name=spec,proto3" json:"spec,omitempty"` //规格
- AppId string `protobuf:"bytes,8,opt,name=appId,proto3" json:"appId,omitempty"` //标识
- Model int64 `protobuf:"varint,9,opt,name=model,proto3" json:"model,omitempty"` //操作类型0使用1新增
- }
- func (x *Balance) Reset() {
- *x = Balance{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Balance) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Balance) ProtoMessage() {}
- func (x *Balance) ProtoReflect() protoreflect.Message {
- mi := &file_resourcesCenter_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 Balance.ProtoReflect.Descriptor instead.
- func (*Balance) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{1}
- }
- func (x *Balance) GetAccountId() string {
- if x != nil {
- return x.AccountId
- }
- return ""
- }
- func (x *Balance) GetCompanyId() int64 {
- if x != nil {
- return x.CompanyId
- }
- return 0
- }
- func (x *Balance) GetDepartmentId() int64 {
- if x != nil {
- return x.DepartmentId
- }
- return 0
- }
- func (x *Balance) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *Balance) GetResourceType() string {
- if x != nil {
- return x.ResourceType
- }
- return ""
- }
- func (x *Balance) GetNumber() int64 {
- if x != nil {
- return x.Number
- }
- return 0
- }
- func (x *Balance) GetSpec() string {
- if x != nil {
- return x.Spec
- }
- return ""
- }
- func (x *Balance) GetAppId() string {
- if x != nil {
- return x.AppId
- }
- return ""
- }
- func (x *Balance) GetModel() int64 {
- if x != nil {
- return x.Model
- }
- return 0
- }
- type Detailed struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` //账户标识
- CompanyId int64 `protobuf:"varint,2,opt,name=companyId,proto3" json:"companyId,omitempty"` //企业标识
- ResourceType string `protobuf:"bytes,3,opt,name=resourceType,proto3" json:"resourceType,omitempty"` //资源类型
- ExportNum int64 `protobuf:"varint,4,opt,name=exportNum,proto3" json:"exportNum,omitempty"` //导出数量
- DeductionType string `protobuf:"bytes,5,opt,name=deductionType,proto3" json:"deductionType,omitempty"` //扣费类型(1高级字段包)
- RuleId string `protobuf:"bytes,6,opt,name=ruleId,proto3" json:"ruleId,omitempty"` //使用规则标识
- ExportTime int64 `protobuf:"varint,7,opt,name=exportTime,proto3" json:"exportTime,omitempty"` //导出时间
- UserType int64 `protobuf:"varint,8,opt,name=userType,proto3" json:"userType,omitempty"` //流水类型0使用1新增
- DepartmentId int64 `protobuf:"varint,9,opt,name=departmentId,proto3" json:"departmentId,omitempty"` //组织标识
- UserId string `protobuf:"bytes,10,opt,name=userId,proto3" json:"userId,omitempty"` //用户标识
- DeductionNumb int64 `protobuf:"varint,11,opt,name=deductionNumb,proto3" json:"deductionNumb,omitempty"` //扣除数量
- Url string `protobuf:"bytes,12,opt,name=url,proto3" json:"url,omitempty"` //下载地址
- SearchCriteria string `protobuf:"bytes,13,opt,name=searchCriteria,proto3" json:"searchCriteria,omitempty"` //搜索条件
- Source string `protobuf:"bytes,14,opt,name=source,proto3" json:"source,omitempty"` //数据来源
- }
- func (x *Detailed) Reset() {
- *x = Detailed{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Detailed) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Detailed) ProtoMessage() {}
- func (x *Detailed) ProtoReflect() protoreflect.Message {
- mi := &file_resourcesCenter_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 Detailed.ProtoReflect.Descriptor instead.
- func (*Detailed) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{2}
- }
- func (x *Detailed) GetAccountId() string {
- if x != nil {
- return x.AccountId
- }
- return ""
- }
- func (x *Detailed) GetCompanyId() int64 {
- if x != nil {
- return x.CompanyId
- }
- return 0
- }
- func (x *Detailed) GetResourceType() string {
- if x != nil {
- return x.ResourceType
- }
- return ""
- }
- func (x *Detailed) GetExportNum() int64 {
- if x != nil {
- return x.ExportNum
- }
- return 0
- }
- func (x *Detailed) GetDeductionType() string {
- if x != nil {
- return x.DeductionType
- }
- return ""
- }
- func (x *Detailed) GetRuleId() string {
- if x != nil {
- return x.RuleId
- }
- return ""
- }
- func (x *Detailed) GetExportTime() int64 {
- if x != nil {
- return x.ExportTime
- }
- return 0
- }
- func (x *Detailed) GetUserType() int64 {
- if x != nil {
- return x.UserType
- }
- return 0
- }
- func (x *Detailed) GetDepartmentId() int64 {
- if x != nil {
- return x.DepartmentId
- }
- return 0
- }
- func (x *Detailed) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *Detailed) GetDeductionNumb() int64 {
- if x != nil {
- return x.DeductionNumb
- }
- return 0
- }
- func (x *Detailed) GetUrl() string {
- if x != nil {
- return x.Url
- }
- return ""
- }
- func (x *Detailed) GetSearchCriteria() string {
- if x != nil {
- return x.SearchCriteria
- }
- return ""
- }
- func (x *Detailed) GetSource() string {
- if x != nil {
- return x.Source
- }
- return ""
- }
- type ResourcesAuth struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` //账户标识
- ResourcesId int64 `protobuf:"varint,3,opt,name=resourcesId,proto3" json:"resourcesId,omitempty"` //资源标识
- Quota int64 `protobuf:"varint,4,opt,name=quota,proto3" json:"quota,omitempty"` //定额
- Ratio int64 `protobuf:"varint,5,opt,name=ratio,proto3" json:"ratio,omitempty"` //比例
- State int64 `protobuf:"varint,6,opt,name=state,proto3" json:"state,omitempty"` //状态
- }
- func (x *ResourcesAuth) Reset() {
- *x = ResourcesAuth{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ResourcesAuth) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResourcesAuth) ProtoMessage() {}
- func (x *ResourcesAuth) ProtoReflect() protoreflect.Message {
- mi := &file_resourcesCenter_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 ResourcesAuth.ProtoReflect.Descriptor instead.
- func (*ResourcesAuth) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{3}
- }
- func (x *ResourcesAuth) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *ResourcesAuth) GetAccountId() string {
- if x != nil {
- return x.AccountId
- }
- return ""
- }
- func (x *ResourcesAuth) GetResourcesId() int64 {
- if x != nil {
- return x.ResourcesId
- }
- return 0
- }
- func (x *ResourcesAuth) GetQuota() int64 {
- if x != nil {
- return x.Quota
- }
- return 0
- }
- func (x *ResourcesAuth) GetRatio() int64 {
- if x != nil {
- return x.Ratio
- }
- return 0
- }
- func (x *ResourcesAuth) GetState() int64 {
- if x != nil {
- return x.State
- }
- return 0
- }
- type ResourceBalance struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` //资源名称
- Number int64 `protobuf:"varint,4,opt,name=number,proto3" json:"number,omitempty"` //剩余数量
- ResourceType string `protobuf:"bytes,5,opt,name=resourceType,proto3" json:"resourceType,omitempty"` //资源代码
- Spec string `protobuf:"bytes,6,opt,name=spec,proto3" json:"spec,omitempty"` //规格
- }
- func (x *ResourceBalance) Reset() {
- *x = ResourceBalance{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ResourceBalance) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResourceBalance) ProtoMessage() {}
- func (x *ResourceBalance) ProtoReflect() protoreflect.Message {
- mi := &file_resourcesCenter_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 ResourceBalance.ProtoReflect.Descriptor instead.
- func (*ResourceBalance) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{4}
- }
- func (x *ResourceBalance) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *ResourceBalance) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *ResourceBalance) GetNumber() int64 {
- if x != nil {
- return x.Number
- }
- return 0
- }
- func (x *ResourceBalance) GetResourceType() string {
- if x != nil {
- return x.ResourceType
- }
- return ""
- }
- func (x *ResourceBalance) GetSpec() string {
- if x != nil {
- return x.Spec
- }
- return ""
- }
- type ConsumeRecord struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` //用户标识
- Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
- ResourceType string `protobuf:"bytes,4,opt,name=resourceType,proto3" json:"resourceType,omitempty"`
- ExportNum int64 `protobuf:"varint,5,opt,name=exportNum,proto3" json:"exportNum,omitempty"`
- DeductionNumb int64 `protobuf:"varint,6,opt,name=deductionNumb,proto3" json:"deductionNumb,omitempty"`
- RuleId int64 `protobuf:"varint,7,opt,name=ruleId,proto3" json:"ruleId,omitempty"`
- ExportTime string `protobuf:"bytes,8,opt,name=exportTime,proto3" json:"exportTime,omitempty"`
- UserType int64 `protobuf:"varint,9,opt,name=userType,proto3" json:"userType,omitempty"`
- Url string `protobuf:"bytes,10,opt,name=url,proto3" json:"url,omitempty"`
- SearchCriteria string `protobuf:"bytes,11,opt,name=searchCriteria,proto3" json:"searchCriteria,omitempty"`
- Source string `protobuf:"bytes,12,opt,name=source,proto3" json:"source,omitempty"`
- }
- func (x *ConsumeRecord) Reset() {
- *x = ConsumeRecord{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ConsumeRecord) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ConsumeRecord) ProtoMessage() {}
- func (x *ConsumeRecord) ProtoReflect() protoreflect.Message {
- mi := &file_resourcesCenter_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 ConsumeRecord.ProtoReflect.Descriptor instead.
- func (*ConsumeRecord) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{5}
- }
- func (x *ConsumeRecord) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *ConsumeRecord) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *ConsumeRecord) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *ConsumeRecord) GetResourceType() string {
- if x != nil {
- return x.ResourceType
- }
- return ""
- }
- func (x *ConsumeRecord) GetExportNum() int64 {
- if x != nil {
- return x.ExportNum
- }
- return 0
- }
- func (x *ConsumeRecord) GetDeductionNumb() int64 {
- if x != nil {
- return x.DeductionNumb
- }
- return 0
- }
- func (x *ConsumeRecord) GetRuleId() int64 {
- if x != nil {
- return x.RuleId
- }
- return 0
- }
- func (x *ConsumeRecord) GetExportTime() string {
- if x != nil {
- return x.ExportTime
- }
- return ""
- }
- func (x *ConsumeRecord) GetUserType() int64 {
- if x != nil {
- return x.UserType
- }
- return 0
- }
- func (x *ConsumeRecord) GetUrl() string {
- if x != nil {
- return x.Url
- }
- return ""
- }
- func (x *ConsumeRecord) GetSearchCriteria() string {
- if x != nil {
- return x.SearchCriteria
- }
- return ""
- }
- func (x *ConsumeRecord) GetSource() string {
- if x != nil {
- return x.Source
- }
- return ""
- }
- type ResourcesReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
- }
- func (x *ResourcesReq) Reset() {
- *x = ResourcesReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ResourcesReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResourcesReq) ProtoMessage() {}
- func (x *ResourcesReq) ProtoReflect() protoreflect.Message {
- mi := &file_resourcesCenter_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 ResourcesReq.ProtoReflect.Descriptor instead.
- func (*ResourcesReq) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{6}
- }
- func (x *ResourcesReq) GetAccountId() string {
- if x != nil {
- return x.AccountId
- }
- return ""
- }
- type PreviewReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- InfoId string `protobuf:"bytes,1,opt,name=infoId,proto3" json:"infoId,omitempty"` //信息标识
- AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` //企业标识
- DeductionType string `protobuf:"bytes,3,opt,name=deductionType,proto3" json:"deductionType,omitempty"` //资源代码
- }
- func (x *PreviewReq) Reset() {
- *x = PreviewReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *PreviewReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*PreviewReq) ProtoMessage() {}
- func (x *PreviewReq) ProtoReflect() protoreflect.Message {
- mi := &file_resourcesCenter_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 PreviewReq.ProtoReflect.Descriptor instead.
- func (*PreviewReq) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{7}
- }
- func (x *PreviewReq) GetInfoId() string {
- if x != nil {
- return x.InfoId
- }
- return ""
- }
- func (x *PreviewReq) GetAccountId() string {
- if x != nil {
- return x.AccountId
- }
- return ""
- }
- func (x *PreviewReq) GetDeductionType() string {
- if x != nil {
- return x.DeductionType
- }
- return ""
- }
- type PreviewRes struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- RepeatNumb int64 `protobuf:"varint,3,opt,name=repeatNumb,proto3" json:"repeatNumb,omitempty"` //重复数量
- DeductionNumb int64 `protobuf:"varint,4,opt,name=deductionNumb,proto3" json:"deductionNumb,omitempty"` //扣除数量
- }
- func (x *PreviewRes) Reset() {
- *x = PreviewRes{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *PreviewRes) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*PreviewRes) ProtoMessage() {}
- func (x *PreviewRes) ProtoReflect() protoreflect.Message {
- mi := &file_resourcesCenter_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 PreviewRes.ProtoReflect.Descriptor instead.
- func (*PreviewRes) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{8}
- }
- func (x *PreviewRes) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *PreviewRes) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *PreviewRes) GetRepeatNumb() int64 {
- if x != nil {
- return x.RepeatNumb
- }
- return 0
- }
- func (x *PreviewRes) GetDeductionNumb() int64 {
- if x != nil {
- return x.DeductionNumb
- }
- return 0
- }
- //根据账户标识查询资源权限请求参数
- type ResourcesAuthRes struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- Data []*ResourcesAuth `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //账号拥有的资源权限
- }
- func (x *ResourcesAuthRes) Reset() {
- *x = ResourcesAuthRes{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ResourcesAuthRes) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResourcesAuthRes) ProtoMessage() {}
- func (x *ResourcesAuthRes) ProtoReflect() protoreflect.Message {
- mi := &file_resourcesCenter_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 ResourcesAuthRes.ProtoReflect.Descriptor instead.
- func (*ResourcesAuthRes) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{9}
- }
- func (x *ResourcesAuthRes) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *ResourcesAuthRes) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *ResourcesAuthRes) GetData() []*ResourcesAuth {
- if x != nil {
- return x.Data
- }
- return nil
- }
- //根据账户标识查询账户余额
- type AccountBalanceRes struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
- Data []*ResourceBalance `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
- }
- func (x *AccountBalanceRes) Reset() {
- *x = AccountBalanceRes{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AccountBalanceRes) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AccountBalanceRes) ProtoMessage() {}
- func (x *AccountBalanceRes) ProtoReflect() protoreflect.Message {
- mi := &file_resourcesCenter_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 AccountBalanceRes.ProtoReflect.Descriptor instead.
- func (*AccountBalanceRes) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{10}
- }
- func (x *AccountBalanceRes) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *AccountBalanceRes) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *AccountBalanceRes) GetData() []*ResourceBalance {
- if x != nil {
- return x.Data
- }
- return nil
- }
- //查询流水账
- type RecordReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
- UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
- PageSize int64 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
- Page int64 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"`
- }
- func (x *RecordReq) Reset() {
- *x = RecordReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *RecordReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RecordReq) ProtoMessage() {}
- func (x *RecordReq) ProtoReflect() protoreflect.Message {
- mi := &file_resourcesCenter_proto_msgTypes[11]
- 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 RecordReq.ProtoReflect.Descriptor instead.
- func (*RecordReq) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{11}
- }
- func (x *RecordReq) GetAccountId() string {
- if x != nil {
- return x.AccountId
- }
- return ""
- }
- func (x *RecordReq) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *RecordReq) GetPageSize() int64 {
- if x != nil {
- return x.PageSize
- }
- return 0
- }
- func (x *RecordReq) GetPage() int64 {
- if x != nil {
- return x.Page
- }
- return 0
- }
- type ConsumeRecordRes struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
- Data []*ConsumeRecord `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
- Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
- }
- func (x *ConsumeRecordRes) Reset() {
- *x = ConsumeRecordRes{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ConsumeRecordRes) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ConsumeRecordRes) ProtoMessage() {}
- func (x *ConsumeRecordRes) ProtoReflect() protoreflect.Message {
- mi := &file_resourcesCenter_proto_msgTypes[12]
- 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 ConsumeRecordRes.ProtoReflect.Descriptor instead.
- func (*ConsumeRecordRes) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{12}
- }
- func (x *ConsumeRecordRes) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *ConsumeRecordRes) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *ConsumeRecordRes) GetData() []*ConsumeRecord {
- if x != nil {
- return x.Data
- }
- return nil
- }
- func (x *ConsumeRecordRes) GetCount() int64 {
- if x != nil {
- return x.Count
- }
- return 0
- }
- var File_resourcesCenter_proto protoreflect.FileDescriptor
- var file_resourcesCenter_proto_rawDesc = []byte{
- 0x0a, 0x15, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65,
- 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
- 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x38, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70,
- 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73,
- 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
- 0x67, 0x65, 0x22, 0xf9, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1c,
- 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09,
- 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65,
- 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12,
- 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
- 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79,
- 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
- 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
- 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12,
- 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x70,
- 0x65, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65,
- 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0xb6,
- 0x03, 0x0a, 0x08, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61,
- 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
- 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d,
- 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f,
- 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75,
- 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72,
- 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65,
- 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
- 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64,
- 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12,
- 0x16, 0x0a, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72,
- 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x65, 0x78, 0x70,
- 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54,
- 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54,
- 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e,
- 0x74, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72,
- 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
- 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
- 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62,
- 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f,
- 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x0c, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63,
- 0x68, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x12,
- 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x6f,
- 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63,
- 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63,
- 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75,
- 0x72, 0x63, 0x65, 0x73, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x65,
- 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x6f,
- 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x12,
- 0x14, 0x0a, 0x05, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
- 0x72, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x0f,
- 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12,
- 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12,
- 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
- 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x72,
- 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
- 0x12, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73,
- 0x70, 0x65, 0x63, 0x22, 0xd9, 0x02, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52,
- 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a,
- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
- 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70,
- 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
- 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e,
- 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74,
- 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e,
- 0x4e, 0x75, 0x6d, 0x62, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75,
- 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x75, 0x6c,
- 0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49,
- 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18,
- 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d,
- 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a,
- 0x03, 0x75, 0x72, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12,
- 0x26, 0x0a, 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69,
- 0x61, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43,
- 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63,
- 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22,
- 0x2c, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x12,
- 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x68, 0x0a,
- 0x0a, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x69,
- 0x6e, 0x66, 0x6f, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x6e, 0x66,
- 0x6f, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49,
- 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79,
- 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74,
- 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x0a, 0x50, 0x72, 0x65, 0x76,
- 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65,
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73,
- 0x73, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x4e, 0x75,
- 0x6d, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
- 0x4e, 0x75, 0x6d, 0x62, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f,
- 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x64, 0x65, 0x64,
- 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x22, 0x74, 0x0a, 0x10, 0x52, 0x65,
- 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x12, 0x12,
- 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f,
- 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x04,
- 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x73,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
- 0x22, 0x77, 0x0a, 0x11, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e,
- 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73,
- 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73,
- 0x61, 0x67, 0x65, 0x12, 0x34, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28,
- 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e,
- 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x61, 0x6c, 0x61,
- 0x6e, 0x63, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x71, 0x0a, 0x09, 0x52, 0x65, 0x63,
- 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
- 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75,
- 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08,
- 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
- 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65,
- 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x22, 0x8a, 0x01, 0x0a,
- 0x10, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65,
- 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
- 0x32, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e,
- 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
- 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x04, 0x64,
- 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xfb, 0x03, 0x0a, 0x0f, 0x52, 0x65,
- 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x56, 0x0a,
- 0x11, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75,
- 0x74, 0x68, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65,
- 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65,
- 0x71, 0x1a, 0x22, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e,
- 0x74, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e,
- 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x63, 0x63,
- 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x72, 0x65,
- 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65,
- 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x72, 0x65, 0x73,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63,
- 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x52,
- 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63,
- 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43,
- 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x1a,
- 0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65,
- 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52,
- 0x65, 0x73, 0x12, 0x48, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72,
- 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
- 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63,
- 0x65, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e,
- 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x12,
- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,
- 0x65, 0x64, 0x12, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65,
- 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x1a, 0x19, 0x2e,
- 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x64,
- 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x1b, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
- 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65,
- 0x77, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
- 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65,
- 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_resourcesCenter_proto_rawDescOnce sync.Once
- file_resourcesCenter_proto_rawDescData = file_resourcesCenter_proto_rawDesc
- )
- func file_resourcesCenter_proto_rawDescGZIP() []byte {
- file_resourcesCenter_proto_rawDescOnce.Do(func() {
- file_resourcesCenter_proto_rawDescData = protoimpl.X.CompressGZIP(file_resourcesCenter_proto_rawDescData)
- })
- return file_resourcesCenter_proto_rawDescData
- }
- var file_resourcesCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
- var file_resourcesCenter_proto_goTypes = []interface{}{
- (*Response)(nil), // 0: resourcesCenter.Response
- (*Balance)(nil), // 1: resourcesCenter.Balance
- (*Detailed)(nil), // 2: resourcesCenter.Detailed
- (*ResourcesAuth)(nil), // 3: resourcesCenter.ResourcesAuth
- (*ResourceBalance)(nil), // 4: resourcesCenter.ResourceBalance
- (*ConsumeRecord)(nil), // 5: resourcesCenter.ConsumeRecord
- (*ResourcesReq)(nil), // 6: resourcesCenter.ResourcesReq
- (*PreviewReq)(nil), // 7: resourcesCenter.PreviewReq
- (*PreviewRes)(nil), // 8: resourcesCenter.PreviewRes
- (*ResourcesAuthRes)(nil), // 9: resourcesCenter.ResourcesAuthRes
- (*AccountBalanceRes)(nil), // 10: resourcesCenter.AccountBalanceRes
- (*RecordReq)(nil), // 11: resourcesCenter.RecordReq
- (*ConsumeRecordRes)(nil), // 12: resourcesCenter.ConsumeRecordRes
- }
- var file_resourcesCenter_proto_depIdxs = []int32{
- 3, // 0: resourcesCenter.ResourcesAuthRes.data:type_name -> resourcesCenter.ResourcesAuth
- 4, // 1: resourcesCenter.AccountBalanceRes.data:type_name -> resourcesCenter.ResourceBalance
- 5, // 2: resourcesCenter.ConsumeRecordRes.data:type_name -> resourcesCenter.ConsumeRecord
- 6, // 3: resourcesCenter.ResourcesCenter.findResourcesAuth:input_type -> resourcesCenter.ResourcesReq
- 6, // 4: resourcesCenter.ResourcesCenter.findAccountBalance:input_type -> resourcesCenter.ResourcesReq
- 11, // 5: resourcesCenter.ResourcesCenter.findConsumeRecord:input_type -> resourcesCenter.RecordReq
- 1, // 6: resourcesCenter.ResourcesCenter.updateUserBalance:input_type -> resourcesCenter.Balance
- 2, // 7: resourcesCenter.ResourcesCenter.updateUserDetailed:input_type -> resourcesCenter.Detailed
- 7, // 8: resourcesCenter.ResourcesCenter.findPreview:input_type -> resourcesCenter.PreviewReq
- 10, // 9: resourcesCenter.ResourcesCenter.findResourcesAuth:output_type -> resourcesCenter.AccountBalanceRes
- 10, // 10: resourcesCenter.ResourcesCenter.findAccountBalance:output_type -> resourcesCenter.AccountBalanceRes
- 12, // 11: resourcesCenter.ResourcesCenter.findConsumeRecord:output_type -> resourcesCenter.ConsumeRecordRes
- 0, // 12: resourcesCenter.ResourcesCenter.updateUserBalance:output_type -> resourcesCenter.Response
- 0, // 13: resourcesCenter.ResourcesCenter.updateUserDetailed:output_type -> resourcesCenter.Response
- 12, // 14: resourcesCenter.ResourcesCenter.findPreview:output_type -> resourcesCenter.ConsumeRecordRes
- 9, // [9:15] is the sub-list for method output_type
- 3, // [3:9] 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_resourcesCenter_proto_init() }
- func file_resourcesCenter_proto_init() {
- if File_resourcesCenter_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_resourcesCenter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Response); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resourcesCenter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Balance); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resourcesCenter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Detailed); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resourcesCenter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ResourcesAuth); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resourcesCenter_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ResourceBalance); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resourcesCenter_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ConsumeRecord); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resourcesCenter_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ResourcesReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resourcesCenter_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*PreviewReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resourcesCenter_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*PreviewRes); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resourcesCenter_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ResourcesAuthRes); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resourcesCenter_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AccountBalanceRes); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resourcesCenter_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*RecordReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resourcesCenter_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ConsumeRecordRes); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_resourcesCenter_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 13,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_resourcesCenter_proto_goTypes,
- DependencyIndexes: file_resourcesCenter_proto_depIdxs,
- MessageInfos: file_resourcesCenter_proto_msgTypes,
- }.Build()
- File_resourcesCenter_proto = out.File
- file_resourcesCenter_proto_rawDesc = nil
- file_resourcesCenter_proto_goTypes = nil
- file_resourcesCenter_proto_depIdxs = nil
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // ResourcesCenterClient is the client API for ResourcesCenter service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type ResourcesCenterClient interface {
- //查询账户资源权限
- FindResourcesAuth(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error)
- //查询账户资源余额
- FindAccountBalance(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error)
- //查询流水账
- FindConsumeRecord(ctx context.Context, in *RecordReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error)
- //根据账户标识修改资源结存账
- UpdateUserBalance(ctx context.Context, in *Balance, opts ...grpc.CallOption) (*Response, error)
- //根据账户标识记录资源使用流水账
- UpdateUserDetailed(ctx context.Context, in *Detailed, opts ...grpc.CallOption) (*Response, error)
- //预览信息
- FindPreview(ctx context.Context, in *PreviewReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error)
- }
- type resourcesCenterClient struct {
- cc grpc.ClientConnInterface
- }
- func NewResourcesCenterClient(cc grpc.ClientConnInterface) ResourcesCenterClient {
- return &resourcesCenterClient{cc}
- }
- func (c *resourcesCenterClient) FindResourcesAuth(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error) {
- out := new(AccountBalanceRes)
- err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findResourcesAuth", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *resourcesCenterClient) FindAccountBalance(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error) {
- out := new(AccountBalanceRes)
- err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findAccountBalance", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *resourcesCenterClient) FindConsumeRecord(ctx context.Context, in *RecordReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error) {
- out := new(ConsumeRecordRes)
- err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findConsumeRecord", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *resourcesCenterClient) UpdateUserBalance(ctx context.Context, in *Balance, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/updateUserBalance", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *resourcesCenterClient) UpdateUserDetailed(ctx context.Context, in *Detailed, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/updateUserDetailed", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *resourcesCenterClient) FindPreview(ctx context.Context, in *PreviewReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error) {
- out := new(ConsumeRecordRes)
- err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findPreview", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // ResourcesCenterServer is the server API for ResourcesCenter service.
- type ResourcesCenterServer interface {
- //查询账户资源权限
- FindResourcesAuth(context.Context, *ResourcesReq) (*AccountBalanceRes, error)
- //查询账户资源余额
- FindAccountBalance(context.Context, *ResourcesReq) (*AccountBalanceRes, error)
- //查询流水账
- FindConsumeRecord(context.Context, *RecordReq) (*ConsumeRecordRes, error)
- //根据账户标识修改资源结存账
- UpdateUserBalance(context.Context, *Balance) (*Response, error)
- //根据账户标识记录资源使用流水账
- UpdateUserDetailed(context.Context, *Detailed) (*Response, error)
- //预览信息
- FindPreview(context.Context, *PreviewReq) (*ConsumeRecordRes, error)
- }
- // UnimplementedResourcesCenterServer can be embedded to have forward compatible implementations.
- type UnimplementedResourcesCenterServer struct {
- }
- func (*UnimplementedResourcesCenterServer) FindResourcesAuth(context.Context, *ResourcesReq) (*AccountBalanceRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindResourcesAuth not implemented")
- }
- func (*UnimplementedResourcesCenterServer) FindAccountBalance(context.Context, *ResourcesReq) (*AccountBalanceRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindAccountBalance not implemented")
- }
- func (*UnimplementedResourcesCenterServer) FindConsumeRecord(context.Context, *RecordReq) (*ConsumeRecordRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindConsumeRecord not implemented")
- }
- func (*UnimplementedResourcesCenterServer) UpdateUserBalance(context.Context, *Balance) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateUserBalance not implemented")
- }
- func (*UnimplementedResourcesCenterServer) UpdateUserDetailed(context.Context, *Detailed) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateUserDetailed not implemented")
- }
- func (*UnimplementedResourcesCenterServer) FindPreview(context.Context, *PreviewReq) (*ConsumeRecordRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindPreview not implemented")
- }
- func RegisterResourcesCenterServer(s *grpc.Server, srv ResourcesCenterServer) {
- s.RegisterService(&_ResourcesCenter_serviceDesc, srv)
- }
- func _ResourcesCenter_FindResourcesAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ResourcesReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ResourcesCenterServer).FindResourcesAuth(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/resourcesCenter.ResourcesCenter/FindResourcesAuth",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ResourcesCenterServer).FindResourcesAuth(ctx, req.(*ResourcesReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ResourcesCenter_FindAccountBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ResourcesReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ResourcesCenterServer).FindAccountBalance(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/resourcesCenter.ResourcesCenter/FindAccountBalance",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ResourcesCenterServer).FindAccountBalance(ctx, req.(*ResourcesReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ResourcesCenter_FindConsumeRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(RecordReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ResourcesCenterServer).FindConsumeRecord(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/resourcesCenter.ResourcesCenter/FindConsumeRecord",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ResourcesCenterServer).FindConsumeRecord(ctx, req.(*RecordReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ResourcesCenter_UpdateUserBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(Balance)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ResourcesCenterServer).UpdateUserBalance(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/resourcesCenter.ResourcesCenter/UpdateUserBalance",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ResourcesCenterServer).UpdateUserBalance(ctx, req.(*Balance))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ResourcesCenter_UpdateUserDetailed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(Detailed)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ResourcesCenterServer).UpdateUserDetailed(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/resourcesCenter.ResourcesCenter/UpdateUserDetailed",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ResourcesCenterServer).UpdateUserDetailed(ctx, req.(*Detailed))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ResourcesCenter_FindPreview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PreviewReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ResourcesCenterServer).FindPreview(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/resourcesCenter.ResourcesCenter/FindPreview",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ResourcesCenterServer).FindPreview(ctx, req.(*PreviewReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _ResourcesCenter_serviceDesc = grpc.ServiceDesc{
- ServiceName: "resourcesCenter.ResourcesCenter",
- HandlerType: (*ResourcesCenterServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "findResourcesAuth",
- Handler: _ResourcesCenter_FindResourcesAuth_Handler,
- },
- {
- MethodName: "findAccountBalance",
- Handler: _ResourcesCenter_FindAccountBalance_Handler,
- },
- {
- MethodName: "findConsumeRecord",
- Handler: _ResourcesCenter_FindConsumeRecord_Handler,
- },
- {
- MethodName: "updateUserBalance",
- Handler: _ResourcesCenter_UpdateUserBalance_Handler,
- },
- {
- MethodName: "updateUserDetailed",
- Handler: _ResourcesCenter_UpdateUserDetailed_Handler,
- },
- {
- MethodName: "findPreview",
- Handler: _ResourcesCenter_FindPreview_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "resourcesCenter.proto",
- }
|