task/shop/detail/api/detail_api.pb.go (363 lines of code) (raw):

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.29.0 // protoc v3.15.5 // source: detail_api.proto package api import ( 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 Item struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Sku int64 `protobuf:"varint,1,opt,name=Sku,proto3" json:"Sku,omitempty"` ItemName string `protobuf:"bytes,2,opt,name=ItemName,proto3" json:"ItemName,omitempty"` Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` Stock int32 `protobuf:"varint,4,opt,name=Stock,proto3" json:"Stock,omitempty"` Price int64 `protobuf:"varint,5,opt,name=Price,proto3" json:"Price,omitempty"` Comment string `protobuf:"bytes,6,opt,name=Comment,proto3" json:"Comment,omitempty"` } func (x *Item) Reset() { *x = Item{} if protoimpl.UnsafeEnabled { mi := &file_detail_api_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Item) String() string { return protoimpl.X.MessageStringOf(x) } func (*Item) ProtoMessage() {} func (x *Item) ProtoReflect() protoreflect.Message { mi := &file_detail_api_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 Item.ProtoReflect.Descriptor instead. func (*Item) Descriptor() ([]byte, []int) { return file_detail_api_proto_rawDescGZIP(), []int{0} } func (x *Item) GetSku() int64 { if x != nil { return x.Sku } return 0 } func (x *Item) GetItemName() string { if x != nil { return x.ItemName } return "" } func (x *Item) GetDescription() string { if x != nil { return x.Description } return "" } func (x *Item) GetStock() int32 { if x != nil { return x.Stock } return 0 } func (x *Item) GetPrice() int64 { if x != nil { return x.Price } return 0 } func (x *Item) GetComment() string { if x != nil { return x.Comment } return "" } type GetItemReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Sku int64 `protobuf:"varint,1,opt,name=Sku,proto3" json:"Sku,omitempty"` UserName string `protobuf:"bytes,2,opt,name=UserName,proto3" json:"UserName,omitempty"` } func (x *GetItemReq) Reset() { *x = GetItemReq{} if protoimpl.UnsafeEnabled { mi := &file_detail_api_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetItemReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetItemReq) ProtoMessage() {} func (x *GetItemReq) ProtoReflect() protoreflect.Message { mi := &file_detail_api_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 GetItemReq.ProtoReflect.Descriptor instead. func (*GetItemReq) Descriptor() ([]byte, []int) { return file_detail_api_proto_rawDescGZIP(), []int{1} } func (x *GetItemReq) GetSku() int64 { if x != nil { return x.Sku } return 0 } func (x *GetItemReq) GetUserName() string { if x != nil { return x.UserName } return "" } type DeductStockReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Sku int64 `protobuf:"varint,1,opt,name=Sku,proto3" json:"Sku,omitempty"` Count int32 `protobuf:"varint,2,opt,name=Count,proto3" json:"Count,omitempty"` } func (x *DeductStockReq) Reset() { *x = DeductStockReq{} if protoimpl.UnsafeEnabled { mi := &file_detail_api_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DeductStockReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeductStockReq) ProtoMessage() {} func (x *DeductStockReq) ProtoReflect() protoreflect.Message { mi := &file_detail_api_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 DeductStockReq.ProtoReflect.Descriptor instead. func (*DeductStockReq) Descriptor() ([]byte, []int) { return file_detail_api_proto_rawDescGZIP(), []int{2} } func (x *DeductStockReq) GetSku() int64 { if x != nil { return x.Sku } return 0 } func (x *DeductStockReq) GetCount() int32 { if x != nil { return x.Count } return 0 } type DeductStockResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"` } func (x *DeductStockResp) Reset() { *x = DeductStockResp{} if protoimpl.UnsafeEnabled { mi := &file_detail_api_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DeductStockResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeductStockResp) ProtoMessage() {} func (x *DeductStockResp) ProtoReflect() protoreflect.Message { mi := &file_detail_api_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 DeductStockResp.ProtoReflect.Descriptor instead. func (*DeductStockResp) Descriptor() ([]byte, []int) { return file_detail_api_proto_rawDescGZIP(), []int{3} } func (x *DeductStockResp) GetSuccess() bool { if x != nil { return x.Success } return false } var File_detail_api_proto protoreflect.FileDescriptor var file_detail_api_proto_rawDesc = []byte{ 0x0a, 0x10, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2a, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x2e, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x61, 0x70, 0x69, 0x22, 0x9c, 0x01, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x53, 0x6b, 0x75, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x53, 0x6b, 0x75, 0x12, 0x1a, 0x0a, 0x08, 0x49, 0x74, 0x65, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x49, 0x74, 0x65, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x53, 0x6b, 0x75, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x53, 0x6b, 0x75, 0x12, 0x1a, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x38, 0x0a, 0x0e, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x53, 0x6b, 0x75, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x53, 0x6b, 0x75, 0x12, 0x14, 0x0a, 0x05, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2b, 0x0a, 0x0f, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x32, 0x8a, 0x02, 0x0a, 0x06, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x75, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x36, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x2e, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x1a, 0x30, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x2e, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x22, 0x00, 0x12, 0x88, 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x12, 0x3a, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x2e, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x1a, 0x3b, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x2e, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2f, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x2d, 0x67, 0x6f, 0x2d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x2f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x3b, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_detail_api_proto_rawDescOnce sync.Once file_detail_api_proto_rawDescData = file_detail_api_proto_rawDesc ) func file_detail_api_proto_rawDescGZIP() []byte { file_detail_api_proto_rawDescOnce.Do(func() { file_detail_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_detail_api_proto_rawDescData) }) return file_detail_api_proto_rawDescData } var file_detail_api_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_detail_api_proto_goTypes = []interface{}{ (*Item)(nil), // 0: org.apache.dubbogo.samples.shop.detail.api.Item (*GetItemReq)(nil), // 1: org.apache.dubbogo.samples.shop.detail.api.GetItemReq (*DeductStockReq)(nil), // 2: org.apache.dubbogo.samples.shop.detail.api.DeductStockReq (*DeductStockResp)(nil), // 3: org.apache.dubbogo.samples.shop.detail.api.DeductStockResp } var file_detail_api_proto_depIdxs = []int32{ 1, // 0: org.apache.dubbogo.samples.shop.detail.api.Detail.GetItem:input_type -> org.apache.dubbogo.samples.shop.detail.api.GetItemReq 2, // 1: org.apache.dubbogo.samples.shop.detail.api.Detail.DeductStock:input_type -> org.apache.dubbogo.samples.shop.detail.api.DeductStockReq 0, // 2: org.apache.dubbogo.samples.shop.detail.api.Detail.GetItem:output_type -> org.apache.dubbogo.samples.shop.detail.api.Item 3, // 3: org.apache.dubbogo.samples.shop.detail.api.Detail.DeductStock:output_type -> org.apache.dubbogo.samples.shop.detail.api.DeductStockResp 2, // [2:4] is the sub-list for method output_type 0, // [0:2] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name } func init() { file_detail_api_proto_init() } func file_detail_api_proto_init() { if File_detail_api_proto != nil { return } if !protoimpl.UnsafeEnabled { file_detail_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Item); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_detail_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetItemReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_detail_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeductStockReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_detail_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeductStockResp); 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_detail_api_proto_rawDesc, NumEnums: 0, NumMessages: 4, NumExtensions: 0, NumServices: 1, }, GoTypes: file_detail_api_proto_goTypes, DependencyIndexes: file_detail_api_proto_depIdxs, MessageInfos: file_detail_api_proto_msgTypes, }.Build() File_detail_api_proto = out.File file_detail_api_proto_rawDesc = nil file_detail_api_proto_goTypes = nil file_detail_api_proto_depIdxs = nil }