//
// 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.36.6
// 	protoc        v6.31.1
// source: detail_api.proto

package api

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"

	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)

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 `protogen:"open.v1"`
	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"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Item) Reset() {
	*x = Item{}
	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 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 `protogen:"open.v1"`
	Sku           int64                  `protobuf:"varint,1,opt,name=Sku,proto3" json:"Sku,omitempty"`
	UserName      string                 `protobuf:"bytes,2,opt,name=UserName,proto3" json:"UserName,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetItemReq) Reset() {
	*x = GetItemReq{}
	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 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 `protogen:"open.v1"`
	Sku           int64                  `protobuf:"varint,1,opt,name=Sku,proto3" json:"Sku,omitempty"`
	Count         int32                  `protobuf:"varint,2,opt,name=Count,proto3" json:"Count,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeductStockReq) Reset() {
	*x = DeductStockReq{}
	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 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 `protogen:"open.v1"`
	Success       bool                   `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeductStockResp) Reset() {
	*x = DeductStockResp{}
	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 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

const file_detail_api_proto_rawDesc = "" +
	"\n" +
	"\x10detail_api.proto\x12*org.apache.dubbogo.samples.shop.detail.api\"\x9c\x01\n" +
	"\x04Item\x12\x10\n" +
	"\x03Sku\x18\x01 \x01(\x03R\x03Sku\x12\x1a\n" +
	"\bItemName\x18\x02 \x01(\tR\bItemName\x12 \n" +
	"\vDescription\x18\x03 \x01(\tR\vDescription\x12\x14\n" +
	"\x05Stock\x18\x04 \x01(\x05R\x05Stock\x12\x14\n" +
	"\x05Price\x18\x05 \x01(\x03R\x05Price\x12\x18\n" +
	"\aComment\x18\x06 \x01(\tR\aComment\":\n" +
	"\n" +
	"GetItemReq\x12\x10\n" +
	"\x03Sku\x18\x01 \x01(\x03R\x03Sku\x12\x1a\n" +
	"\bUserName\x18\x02 \x01(\tR\bUserName\"8\n" +
	"\x0eDeductStockReq\x12\x10\n" +
	"\x03Sku\x18\x01 \x01(\x03R\x03Sku\x12\x14\n" +
	"\x05Count\x18\x02 \x01(\x05R\x05Count\"+\n" +
	"\x0fDeductStockResp\x12\x18\n" +
	"\aSuccess\x18\x01 \x01(\bR\aSuccess2\x8a\x02\n" +
	"\x06Detail\x12u\n" +
	"\aGetItem\x126.org.apache.dubbogo.samples.shop.detail.api.GetItemReq\x1a0.org.apache.dubbogo.samples.shop.detail.api.Item\"\x00\x12\x88\x01\n" +
	"\vDeductStock\x12:.org.apache.dubbogo.samples.shop.detail.api.DeductStockReq\x1a;.org.apache.dubbogo.samples.shop.detail.api.DeductStockResp\"\x00B=Z;github.com/apache/dubbo-go-samples/task/shop/detail/api;apib\x06proto3"

var (
	file_detail_api_proto_rawDescOnce sync.Once
	file_detail_api_proto_rawDescData []byte
)

func file_detail_api_proto_rawDescGZIP() []byte {
	file_detail_api_proto_rawDescOnce.Do(func() {
		file_detail_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_detail_api_proto_rawDesc), len(file_detail_api_proto_rawDesc)))
	})
	return file_detail_api_proto_rawDescData
}

var file_detail_api_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_detail_api_proto_goTypes = []any{
	(*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
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_detail_api_proto_rawDesc), len(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_goTypes = nil
	file_detail_api_proto_depIdxs = nil
}
