// @generated
// This file is @generated by prost-build.
/// 주식 종목 정보
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Stock {
    /// 리소스 이름 (stocks/{code})
    #[prost(string, tag="1")]
    pub name: ::prost::alloc::string::String,
    /// 종목 코드
    #[prost(string, tag="2")]
    pub code: ::prost::alloc::string::String,
    /// 심볼
    #[prost(string, tag="3")]
    pub symbol: ::prost::alloc::string::String,
    /// 시장 유형
    #[prost(enumeration="super::common::MarketType", tag="4")]
    pub market_type: i32,
    /// 종목명
    #[prost(string, tag="5")]
    pub market_name: ::prost::alloc::string::String,
    /// 전일 종가
    #[prost(int64, tag="6")]
    pub prev_price: i64,
    /// 최근 체결가
    #[prost(int64, tag="7")]
    pub last_price: i64,
    /// 상장 수량
    #[prost(int64, tag="8")]
    pub listed_quantity: i64,
    /// 거래 가능 여부
    #[prost(bool, tag="9")]
    pub tradable: bool,
    /// 대차 가능 여부
    #[prost(bool, tag="10")]
    pub short_sellable: bool,
    /// 틱 크기
    #[prost(int64, tag="11")]
    pub tick_size: i64,
}
// ========== Request/Response Messages ==========

#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetStockRequest {
    /// 리소스 이름 (stocks/{code})
    #[prost(string, tag="1")]
    pub stock: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListStocksRequest {
    /// 페이지 크기 (optional)
    #[prost(int32, optional, tag="1")]
    pub page_size: ::core::option::Option<i32>,
    /// 페이지 토큰 (optional)
    #[prost(string, optional, tag="2")]
    pub page_token: ::core::option::Option<::prost::alloc::string::String>,
    /// 필터링 조건 (optional, AIP-160)
    ///
    /// Available Fields:
    /// * code - 종목 코드
    /// * symbol - 심볼
    /// * market_type - 시장 유형 (MARKET_TYPE_KOSPI, MARKET_TYPE_KOSDAQ)
    /// * tradable - 거래 가능 여부
    /// * short_sellable - 대차 가능 여부
    ///
    /// Examples:
    /// * code:"005930"
    /// * market_type=MARKET_TYPE_KOSPI
    /// * tradable=true AND short_sellable=true
    /// * market_type=MARKET_TYPE_KOSPI AND tradable=true
    #[prost(string, tag="3")]
    pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListStocksResponse {
    /// 주식 목록
    #[prost(message, repeated, tag="1")]
    pub stocks: ::prost::alloc::vec::Vec<Stock>,
    /// 다음 페이지 토큰
    #[prost(string, tag="2")]
    pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetStockTickSizeRequest {
    #[prost(string, tag="1")]
    pub target_price: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GetStockTickSizeResponse {
    /// 리소스 이름 (stocks/{code})
    #[prost(int64, tag="1")]
    pub tick_size: i64,
}
include!("kdo.v1.stock.tonic.rs");
include!("kdo.v1.stock.serde.rs");
// @@protoc_insertion_point(module)