# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: dqcrmarketservice.proto

from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from . import dqdatetime_pb2 as dqdatetime__pb2
from . import dqmarket_pb2 as dqmarket__pb2
from . import dqcrmarket_pb2 as dqcrmarket__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='dqcrmarketservice.proto',
  package='dqproto',
  syntax='proto3',
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_pb=b'\n\x17\x64qcrmarketservice.proto\x12\x07\x64qproto\x1a\x10\x64qdatetime.proto\x1a\x0e\x64qmarket.proto\x1a\x10\x64qcrmarket.proto\"\xe5\x05\n\x1b\x42uildCreditDefaultSwapInput\x12#\n\x08notional\x18\x01 \x01(\x0b\x32\x11.dqproto.Notional\x12!\n\nissue_date\x18\x02 \x01(\x0b\x32\r.dqproto.Date\x12$\n\rmaturity_date\x18\x03 \x01(\x0b\x32\r.dqproto.Date\x12\x37\n\x16protection_pay_receive\x18\x04 \x01(\x0e\x32\x17.dqproto.PayReceiveFlag\x12?\n\x1eprotection_leg_settlement_type\x18\x05 \x01(\x0e\x32\x17.dqproto.SettlementType\x12&\n\x1eprotection_leg_reference_price\x18\x06 \x01(\x01\x12\x1f\n\x17protection_leg_leverage\x18\x07 \x01(\x01\x12=\n\x16\x63redit_protection_type\x18\x08 \x01(\x0e\x32\x1d.dqproto.CreditProtectionType\x12$\n\x1cprotection_leg_recovery_rate\x18\t \x01(\x01\x12\x13\n\x0b\x63oupon_rate\x18\n \x01(\x01\x12\x37\n\x13\x63redit_premium_type\x18\x0b \x01(\x0e\x32\x1a.dqproto.CreditPremiumType\x12\x39\n\x14\x64\x61y_count_convention\x18\x0c \x01(\x0e\x32\x1b.dqproto.DayCountConvention\x12%\n\tfrequency\x18\r \x01(\x0e\x32\x12.dqproto.Frequency\x12?\n\x17\x62usiness_day_convention\x18\x0e \x01(\x0e\x32\x1e.dqproto.BusinessDayConvention\x12\x11\n\tcalendars\x18\x0f \x03(\t\x12\x14\n\x0cupfront_rate\x18\x10 \x01(\x01\x12\x16\n\x0erebate_accrual\x18\x11 \x01(\x08\"y\n\x1c\x42uildCreditDefaultSwapOutput\x12\x37\n\x13\x63redit_default_swap\x18\x01 \x01(\x0b\x32\x1a.dqproto.CreditDefaultSwap\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x0f\n\x07\x65rr_msg\x18\x03 \x01(\tb\x06proto3'
  ,
  dependencies=[dqdatetime__pb2.DESCRIPTOR,dqmarket__pb2.DESCRIPTOR,dqcrmarket__pb2.DESCRIPTOR,])




_BUILDCREDITDEFAULTSWAPINPUT = _descriptor.Descriptor(
  name='BuildCreditDefaultSwapInput',
  full_name='dqproto.BuildCreditDefaultSwapInput',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='notional', full_name='dqproto.BuildCreditDefaultSwapInput.notional', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='issue_date', full_name='dqproto.BuildCreditDefaultSwapInput.issue_date', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='maturity_date', full_name='dqproto.BuildCreditDefaultSwapInput.maturity_date', index=2,
      number=3, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='protection_pay_receive', full_name='dqproto.BuildCreditDefaultSwapInput.protection_pay_receive', index=3,
      number=4, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='protection_leg_settlement_type', full_name='dqproto.BuildCreditDefaultSwapInput.protection_leg_settlement_type', index=4,
      number=5, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='protection_leg_reference_price', full_name='dqproto.BuildCreditDefaultSwapInput.protection_leg_reference_price', index=5,
      number=6, type=1, cpp_type=5, label=1,
      has_default_value=False, default_value=float(0),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='protection_leg_leverage', full_name='dqproto.BuildCreditDefaultSwapInput.protection_leg_leverage', index=6,
      number=7, type=1, cpp_type=5, label=1,
      has_default_value=False, default_value=float(0),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='credit_protection_type', full_name='dqproto.BuildCreditDefaultSwapInput.credit_protection_type', index=7,
      number=8, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='protection_leg_recovery_rate', full_name='dqproto.BuildCreditDefaultSwapInput.protection_leg_recovery_rate', index=8,
      number=9, type=1, cpp_type=5, label=1,
      has_default_value=False, default_value=float(0),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='coupon_rate', full_name='dqproto.BuildCreditDefaultSwapInput.coupon_rate', index=9,
      number=10, type=1, cpp_type=5, label=1,
      has_default_value=False, default_value=float(0),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='credit_premium_type', full_name='dqproto.BuildCreditDefaultSwapInput.credit_premium_type', index=10,
      number=11, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='day_count_convention', full_name='dqproto.BuildCreditDefaultSwapInput.day_count_convention', index=11,
      number=12, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='frequency', full_name='dqproto.BuildCreditDefaultSwapInput.frequency', index=12,
      number=13, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='business_day_convention', full_name='dqproto.BuildCreditDefaultSwapInput.business_day_convention', index=13,
      number=14, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='calendars', full_name='dqproto.BuildCreditDefaultSwapInput.calendars', index=14,
      number=15, type=9, cpp_type=9, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='upfront_rate', full_name='dqproto.BuildCreditDefaultSwapInput.upfront_rate', index=15,
      number=16, type=1, cpp_type=5, label=1,
      has_default_value=False, default_value=float(0),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='rebate_accrual', full_name='dqproto.BuildCreditDefaultSwapInput.rebate_accrual', index=16,
      number=17, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=89,
  serialized_end=830,
)


_BUILDCREDITDEFAULTSWAPOUTPUT = _descriptor.Descriptor(
  name='BuildCreditDefaultSwapOutput',
  full_name='dqproto.BuildCreditDefaultSwapOutput',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='credit_default_swap', full_name='dqproto.BuildCreditDefaultSwapOutput.credit_default_swap', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='success', full_name='dqproto.BuildCreditDefaultSwapOutput.success', index=1,
      number=2, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='err_msg', full_name='dqproto.BuildCreditDefaultSwapOutput.err_msg', index=2,
      number=3, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=832,
  serialized_end=953,
)

_BUILDCREDITDEFAULTSWAPINPUT.fields_by_name['notional'].message_type = dqmarket__pb2._NOTIONAL
_BUILDCREDITDEFAULTSWAPINPUT.fields_by_name['issue_date'].message_type = dqdatetime__pb2._DATE
_BUILDCREDITDEFAULTSWAPINPUT.fields_by_name['maturity_date'].message_type = dqdatetime__pb2._DATE
_BUILDCREDITDEFAULTSWAPINPUT.fields_by_name['protection_pay_receive'].enum_type = dqmarket__pb2._PAYRECEIVEFLAG
_BUILDCREDITDEFAULTSWAPINPUT.fields_by_name['protection_leg_settlement_type'].enum_type = dqmarket__pb2._SETTLEMENTTYPE
_BUILDCREDITDEFAULTSWAPINPUT.fields_by_name['credit_protection_type'].enum_type = dqcrmarket__pb2._CREDITPROTECTIONTYPE
_BUILDCREDITDEFAULTSWAPINPUT.fields_by_name['credit_premium_type'].enum_type = dqcrmarket__pb2._CREDITPREMIUMTYPE
_BUILDCREDITDEFAULTSWAPINPUT.fields_by_name['day_count_convention'].enum_type = dqdatetime__pb2._DAYCOUNTCONVENTION
_BUILDCREDITDEFAULTSWAPINPUT.fields_by_name['frequency'].enum_type = dqdatetime__pb2._FREQUENCY
_BUILDCREDITDEFAULTSWAPINPUT.fields_by_name['business_day_convention'].enum_type = dqdatetime__pb2._BUSINESSDAYCONVENTION
_BUILDCREDITDEFAULTSWAPOUTPUT.fields_by_name['credit_default_swap'].message_type = dqcrmarket__pb2._CREDITDEFAULTSWAP
DESCRIPTOR.message_types_by_name['BuildCreditDefaultSwapInput'] = _BUILDCREDITDEFAULTSWAPINPUT
DESCRIPTOR.message_types_by_name['BuildCreditDefaultSwapOutput'] = _BUILDCREDITDEFAULTSWAPOUTPUT
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

BuildCreditDefaultSwapInput = _reflection.GeneratedProtocolMessageType('BuildCreditDefaultSwapInput', (_message.Message,), {
  'DESCRIPTOR' : _BUILDCREDITDEFAULTSWAPINPUT,
  '__module__' : 'dqcrmarketservice_pb2'
  # @@protoc_insertion_point(class_scope:dqproto.BuildCreditDefaultSwapInput)
  })
_sym_db.RegisterMessage(BuildCreditDefaultSwapInput)

BuildCreditDefaultSwapOutput = _reflection.GeneratedProtocolMessageType('BuildCreditDefaultSwapOutput', (_message.Message,), {
  'DESCRIPTOR' : _BUILDCREDITDEFAULTSWAPOUTPUT,
  '__module__' : 'dqcrmarketservice_pb2'
  # @@protoc_insertion_point(class_scope:dqproto.BuildCreditDefaultSwapOutput)
  })
_sym_db.RegisterMessage(BuildCreditDefaultSwapOutput)


# @@protoc_insertion_point(module_scope)
