# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: discount/grpc/discount.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x64iscount/grpc/discount.proto\x12\x10\x64\x61rsman.discount\x1a\x1cgoogle/protobuf/struct.proto\"v\n\rCouponRequest\x12\x13\n\x0b\x63oupon_code\x18\x01 \x01(\t\x12,\n\x05items\x18\x02 \x03(\x0b\x32\x1d.darsman.discount.ItemRequest\x12\x15\n\x08owner_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id\"`\n\x1e\x44iscountCalculateByItemRequest\x12\x0e\n\x06\x61mount\x18\x01 \x01(\x05\x12\x15\n\rdiscount_type\x18\x02 \x01(\t\x12\x17\n\x0fitem_identifier\x18\x03 \x01(\t\"\x86\x01\n\x1f\x44iscountCalculateByItemResponse\x12\x14\n\x07message\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04\x63ode\x18\x02 \x01(\tH\x01\x88\x01\x01\x12%\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x17.google.protobuf.StructB\n\n\x08_messageB\x07\n\x05_code\"}\n\x1f\x44iscountCalculateByTokenRequest\x12\x0e\n\x06\x61mount\x18\x01 \x01(\x05\x12\x18\n\x10token_identifier\x18\x02 \x01(\t\x12\x1c\n\x0fuser_identifier\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x12\n\x10_user_identifier\"\x87\x01\n DiscountCalculateByTokenResponse\x12\x14\n\x07message\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04\x63ode\x18\x02 \x01(\tH\x01\x88\x01\x01\x12%\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x17.google.protobuf.StructB\n\n\x08_messageB\x07\n\x05_code\"w\n\x10\x44iscountResponse\x12\x14\n\x07message\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04\x63ode\x18\x02 \x01(\tH\x01\x88\x01\x01\x12%\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x17.google.protobuf.StructB\n\n\x08_messageB\x07\n\x05_code\"3\n\x17\x44iscountRetrieveRequest\x12\x18\n\x10token_identifier\x18\x01 \x01(\t\"e\n\x17\x44iscountValidateRequest\x12\x18\n\x10token_identifier\x18\x01 \x01(\t\x12\x1c\n\x0fuser_identifier\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x12\n\x10_user_identifier\"\x7f\n\x18\x44iscountValidateResponse\x12\x14\n\x07message\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04\x63ode\x18\x02 \x01(\tH\x01\x88\x01\x01\x12%\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x17.google.protobuf.StructB\n\n\x08_messageB\x07\n\x05_code\"@\n\x0bItemRequest\x12\x0f\n\x07item_id\x18\x01 \x01(\t\x12\x11\n\titem_type\x18\x02 \x01(\t\x12\r\n\x05price\x18\x03 \x01(\x05\"o\n\x08Response\x12\x14\n\x07message\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04\x63ode\x18\x02 \x01(\tH\x01\x88\x01\x01\x12%\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x17.google.protobuf.StructB\n\n\x08_messageB\x07\n\x05_code2\xa1\x04\n\x12\x44iscountController\x12R\n\x11\x43\x61lculateByCoupon\x12\x1f.darsman.discount.CouponRequest\x1a\x1a.darsman.discount.Response\"\x00\x12x\n\x0f\x43\x61lculateByItem\x12\x30.darsman.discount.DiscountCalculateByItemRequest\x1a\x31.darsman.discount.DiscountCalculateByItemResponse\"\x00\x12{\n\x10\x43\x61lculateByToken\x12\x31.darsman.discount.DiscountCalculateByTokenRequest\x1a\x32.darsman.discount.DiscountCalculateByTokenResponse\"\x00\x12[\n\x08Retrieve\x12).darsman.discount.DiscountRetrieveRequest\x1a\".darsman.discount.DiscountResponse\"\x00\x12\x63\n\x08Validate\x12).darsman.discount.DiscountValidateRequest\x1a*.darsman.discount.DiscountValidateResponse\"\x00\x62\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'discount.grpc.discount_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
  DESCRIPTOR._options = None
  _globals['_COUPONREQUEST']._serialized_start=80
  _globals['_COUPONREQUEST']._serialized_end=198
  _globals['_DISCOUNTCALCULATEBYITEMREQUEST']._serialized_start=200
  _globals['_DISCOUNTCALCULATEBYITEMREQUEST']._serialized_end=296
  _globals['_DISCOUNTCALCULATEBYITEMRESPONSE']._serialized_start=299
  _globals['_DISCOUNTCALCULATEBYITEMRESPONSE']._serialized_end=433
  _globals['_DISCOUNTCALCULATEBYTOKENREQUEST']._serialized_start=435
  _globals['_DISCOUNTCALCULATEBYTOKENREQUEST']._serialized_end=560
  _globals['_DISCOUNTCALCULATEBYTOKENRESPONSE']._serialized_start=563
  _globals['_DISCOUNTCALCULATEBYTOKENRESPONSE']._serialized_end=698
  _globals['_DISCOUNTRESPONSE']._serialized_start=700
  _globals['_DISCOUNTRESPONSE']._serialized_end=819
  _globals['_DISCOUNTRETRIEVEREQUEST']._serialized_start=821
  _globals['_DISCOUNTRETRIEVEREQUEST']._serialized_end=872
  _globals['_DISCOUNTVALIDATEREQUEST']._serialized_start=874
  _globals['_DISCOUNTVALIDATEREQUEST']._serialized_end=975
  _globals['_DISCOUNTVALIDATERESPONSE']._serialized_start=977
  _globals['_DISCOUNTVALIDATERESPONSE']._serialized_end=1104
  _globals['_ITEMREQUEST']._serialized_start=1106
  _globals['_ITEMREQUEST']._serialized_end=1170
  _globals['_RESPONSE']._serialized_start=1172
  _globals['_RESPONSE']._serialized_end=1283
  _globals['_DISCOUNTCONTROLLER']._serialized_start=1286
  _globals['_DISCOUNTCONTROLLER']._serialized_end=1831
# @@protoc_insertion_point(module_scope)
