#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Executor {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub last_seen_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, repeated, tag = "4")]
pub queues: ::prost::alloc::vec::Vec<ExecutorJobQueue>,
}
impl ::prost::Name for Executor {
const NAME: &'static str = "Executor";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.Executor".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.Executor".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ExecutorJobQueue {
#[prost(message, optional, tag = "1")]
pub job_type: ::core::option::Option<super::super::jobs::v1::JobType>,
#[prost(uint64, tag = "2")]
pub max_concurrent_executions: u64,
#[prost(uint64, tag = "3")]
pub active_executions: u64,
}
impl ::prost::Name for ExecutorJobQueue {
const NAME: &'static str = "ExecutorJobQueue";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ExecutorJobQueue".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ExecutorJobQueue".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Execution {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub executor_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "ExecutionStatus", tag = "3")]
pub status: i32,
#[prost(message, optional, tag = "4")]
pub created_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "5")]
pub started_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "6")]
pub succeeded_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "7")]
pub failed_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "8")]
pub cancelled_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, optional, tag = "9")]
pub output_json: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "10")]
pub failure_reason: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "11")]
pub target_execution_time: ::core::option::Option<::prost_types::Timestamp>,
}
impl ::prost::Name for Execution {
const NAME: &'static str = "Execution";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.Execution".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.Execution".into()
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ExecutionStatus {
Unspecified = 0,
Pending = 1,
InProgress = 2,
Succeeded = 3,
Failed = 4,
Cancelled = 5,
}
impl ExecutionStatus {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "EXECUTION_STATUS_UNSPECIFIED",
Self::Pending => "EXECUTION_STATUS_PENDING",
Self::InProgress => "EXECUTION_STATUS_IN_PROGRESS",
Self::Succeeded => "EXECUTION_STATUS_SUCCEEDED",
Self::Failed => "EXECUTION_STATUS_FAILED",
Self::Cancelled => "EXECUTION_STATUS_CANCELLED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"EXECUTION_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
"EXECUTION_STATUS_PENDING" => Some(Self::Pending),
"EXECUTION_STATUS_IN_PROGRESS" => Some(Self::InProgress),
"EXECUTION_STATUS_SUCCEEDED" => Some(Self::Succeeded),
"EXECUTION_STATUS_FAILED" => Some(Self::Failed),
"EXECUTION_STATUS_CANCELLED" => Some(Self::Cancelled),
_ => None,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Job {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub job: ::core::option::Option<super::super::jobs::v1::Job>,
#[prost(string, optional, tag = "3")]
pub schedule_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub created_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, repeated, tag = "5")]
pub executions: ::prost::alloc::vec::Vec<Execution>,
}
impl ::prost::Name for Job {
const NAME: &'static str = "Job";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.Job".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.Job".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JobFilters {
#[prost(string, repeated, tag = "1")]
pub job_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "2")]
pub job_type_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "3")]
pub schedule_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "4")]
pub executor_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "5")]
pub execution_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(enumeration = "ExecutionStatus", repeated, tag = "6")]
pub execution_statuses: ::prost::alloc::vec::Vec<i32>,
#[prost(message, optional, tag = "7")]
pub target_execution_time: ::core::option::Option<super::super::common::v1::TimeRange>,
#[prost(message, optional, tag = "8")]
pub created_at: ::core::option::Option<super::super::common::v1::TimeRange>,
#[prost(message, repeated, tag = "9")]
pub labels: ::prost::alloc::vec::Vec<super::super::common::v1::LabelFilter>,
}
impl ::prost::Name for JobFilters {
const NAME: &'static str = "JobFilters";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.JobFilters".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.JobFilters".into()
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum JobOrderBy {
Unspecified = 0,
CreatedAtAsc = 1,
CreatedAtDesc = 2,
TargetExecutionTimeAsc = 3,
TargetExecutionTimeDesc = 4,
}
impl JobOrderBy {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "JOB_ORDER_BY_UNSPECIFIED",
Self::CreatedAtAsc => "JOB_ORDER_BY_CREATED_AT_ASC",
Self::CreatedAtDesc => "JOB_ORDER_BY_CREATED_AT_DESC",
Self::TargetExecutionTimeAsc => "JOB_ORDER_BY_TARGET_EXECUTION_TIME_ASC",
Self::TargetExecutionTimeDesc => "JOB_ORDER_BY_TARGET_EXECUTION_TIME_DESC",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"JOB_ORDER_BY_UNSPECIFIED" => Some(Self::Unspecified),
"JOB_ORDER_BY_CREATED_AT_ASC" => Some(Self::CreatedAtAsc),
"JOB_ORDER_BY_CREATED_AT_DESC" => Some(Self::CreatedAtDesc),
"JOB_ORDER_BY_TARGET_EXECUTION_TIME_ASC" => Some(Self::TargetExecutionTimeAsc),
"JOB_ORDER_BY_TARGET_EXECUTION_TIME_DESC" => Some(Self::TargetExecutionTimeDesc),
_ => None,
}
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PaginationOptions {
#[prost(uint32, tag = "1")]
pub page_size: u32,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for PaginationOptions {
const NAME: &'static str = "PaginationOptions";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.PaginationOptions".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.PaginationOptions".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Schedule {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub schedule: ::core::option::Option<super::super::schedules::v1::Schedule>,
#[prost(message, optional, tag = "3")]
pub created_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(enumeration = "ScheduleStatus", tag = "4")]
pub status: i32,
#[prost(message, optional, tag = "5")]
pub stopped_at: ::core::option::Option<::prost_types::Timestamp>,
}
impl ::prost::Name for Schedule {
const NAME: &'static str = "Schedule";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.Schedule".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.Schedule".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScheduleFilters {
#[prost(string, repeated, tag = "1")]
pub schedule_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "2")]
pub job_type_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(enumeration = "ScheduleStatus", repeated, tag = "3")]
pub statuses: ::prost::alloc::vec::Vec<i32>,
#[prost(message, optional, tag = "4")]
pub created_at: ::core::option::Option<super::super::common::v1::TimeRange>,
#[prost(message, repeated, tag = "5")]
pub labels: ::prost::alloc::vec::Vec<super::super::common::v1::LabelFilter>,
}
impl ::prost::Name for ScheduleFilters {
const NAME: &'static str = "ScheduleFilters";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ScheduleFilters".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ScheduleFilters".into()
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ScheduleStatus {
Unspecified = 0,
Active = 1,
Stopped = 2,
}
impl ScheduleStatus {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SCHEDULE_STATUS_UNSPECIFIED",
Self::Active => "SCHEDULE_STATUS_ACTIVE",
Self::Stopped => "SCHEDULE_STATUS_STOPPED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SCHEDULE_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
"SCHEDULE_STATUS_ACTIVE" => Some(Self::Active),
"SCHEDULE_STATUS_STOPPED" => Some(Self::Stopped),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ScheduleOrderBy {
Unspecified = 0,
CreatedAtAsc = 1,
CreatedAtDesc = 2,
}
impl ScheduleOrderBy {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SCHEDULE_ORDER_BY_UNSPECIFIED",
Self::CreatedAtAsc => "SCHEDULE_ORDER_BY_CREATED_AT_ASC",
Self::CreatedAtDesc => "SCHEDULE_ORDER_BY_CREATED_AT_DESC",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SCHEDULE_ORDER_BY_UNSPECIFIED" => Some(Self::Unspecified),
"SCHEDULE_ORDER_BY_CREATED_AT_ASC" => Some(Self::CreatedAtAsc),
"SCHEDULE_ORDER_BY_CREATED_AT_DESC" => Some(Self::CreatedAtDesc),
_ => None,
}
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListJobTypesRequest {}
impl ::prost::Name for ListJobTypesRequest {
const NAME: &'static str = "ListJobTypesRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListJobTypesRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListJobTypesRequest".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListJobTypesResponse {
#[prost(message, repeated, tag = "1")]
pub job_types: ::prost::alloc::vec::Vec<super::super::jobs::v1::JobType>,
}
impl ::prost::Name for ListJobTypesResponse {
const NAME: &'static str = "ListJobTypesResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListJobTypesResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListJobTypesResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddJobsRequest {
#[prost(message, repeated, tag = "1")]
pub jobs: ::prost::alloc::vec::Vec<super::super::jobs::v1::Job>,
#[prost(message, optional, tag = "2")]
pub if_not_exists: ::core::option::Option<JobFilters>,
}
impl ::prost::Name for AddJobsRequest {
const NAME: &'static str = "AddJobsRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.AddJobsRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.AddJobsRequest".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AddJobsResponse {
#[prost(string, repeated, tag = "1")]
pub job_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "2")]
pub existing_job_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for AddJobsResponse {
const NAME: &'static str = "AddJobsResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.AddJobsResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.AddJobsResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListJobsRequest {
#[prost(message, optional, tag = "1")]
pub filters: ::core::option::Option<JobFilters>,
#[prost(enumeration = "JobOrderBy", tag = "2")]
pub order_by: i32,
#[prost(message, optional, tag = "3")]
pub pagination: ::core::option::Option<PaginationOptions>,
}
impl ::prost::Name for ListJobsRequest {
const NAME: &'static str = "ListJobsRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListJobsRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListJobsRequest".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListJobsResponse {
#[prost(message, repeated, tag = "1")]
pub jobs: ::prost::alloc::vec::Vec<Job>,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for ListJobsResponse {
const NAME: &'static str = "ListJobsResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListJobsResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListJobsResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CountJobsRequest {
#[prost(message, optional, tag = "1")]
pub filters: ::core::option::Option<JobFilters>,
}
impl ::prost::Name for CountJobsRequest {
const NAME: &'static str = "CountJobsRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.CountJobsRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.CountJobsRequest".into()
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CountJobsResponse {
#[prost(uint64, tag = "1")]
pub count: u64,
}
impl ::prost::Name for CountJobsResponse {
const NAME: &'static str = "CountJobsResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.CountJobsResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.CountJobsResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CancelJobsRequest {
#[prost(message, optional, tag = "1")]
pub filters: ::core::option::Option<JobFilters>,
}
impl ::prost::Name for CancelJobsRequest {
const NAME: &'static str = "CancelJobsRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.CancelJobsRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.CancelJobsRequest".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CancelJobsResponse {
#[prost(string, repeated, tag = "1")]
pub cancelled_job_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for CancelJobsResponse {
const NAME: &'static str = "CancelJobsResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.CancelJobsResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.CancelJobsResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddSchedulesRequest {
#[prost(message, repeated, tag = "1")]
pub schedules: ::prost::alloc::vec::Vec<super::super::schedules::v1::Schedule>,
#[prost(message, optional, tag = "2")]
pub if_not_exists: ::core::option::Option<ScheduleFilters>,
#[prost(bool, optional, tag = "3")]
pub inherit_labels: ::core::option::Option<bool>,
}
impl ::prost::Name for AddSchedulesRequest {
const NAME: &'static str = "AddSchedulesRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.AddSchedulesRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.AddSchedulesRequest".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AddSchedulesResponse {
#[prost(string, repeated, tag = "1")]
pub schedule_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "2")]
pub existing_schedule_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for AddSchedulesResponse {
const NAME: &'static str = "AddSchedulesResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.AddSchedulesResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.AddSchedulesResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSchedulesRequest {
#[prost(message, optional, tag = "1")]
pub filters: ::core::option::Option<ScheduleFilters>,
#[prost(enumeration = "ScheduleOrderBy", tag = "2")]
pub order_by: i32,
#[prost(message, optional, tag = "3")]
pub pagination: ::core::option::Option<PaginationOptions>,
}
impl ::prost::Name for ListSchedulesRequest {
const NAME: &'static str = "ListSchedulesRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListSchedulesRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListSchedulesRequest".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSchedulesResponse {
#[prost(message, repeated, tag = "1")]
pub schedules: ::prost::alloc::vec::Vec<Schedule>,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for ListSchedulesResponse {
const NAME: &'static str = "ListSchedulesResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListSchedulesResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListSchedulesResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CountSchedulesRequest {
#[prost(message, optional, tag = "1")]
pub filters: ::core::option::Option<ScheduleFilters>,
}
impl ::prost::Name for CountSchedulesRequest {
const NAME: &'static str = "CountSchedulesRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.CountSchedulesRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.CountSchedulesRequest".into()
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CountSchedulesResponse {
#[prost(uint64, tag = "1")]
pub count: u64,
}
impl ::prost::Name for CountSchedulesResponse {
const NAME: &'static str = "CountSchedulesResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.CountSchedulesResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.CountSchedulesResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopSchedulesRequest {
#[prost(message, optional, tag = "1")]
pub filters: ::core::option::Option<ScheduleFilters>,
#[prost(bool, tag = "2")]
pub cancel_active_jobs: bool,
}
impl ::prost::Name for StopSchedulesRequest {
const NAME: &'static str = "StopSchedulesRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.StopSchedulesRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.StopSchedulesRequest".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StopSchedulesResponse {
#[prost(string, repeated, tag = "1")]
pub cancelled_schedule_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for StopSchedulesResponse {
const NAME: &'static str = "StopSchedulesResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.StopSchedulesResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.StopSchedulesResponse".into()
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListExecutorsRequest {}
impl ::prost::Name for ListExecutorsRequest {
const NAME: &'static str = "ListExecutorsRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListExecutorsRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListExecutorsRequest".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutorsResponse {
#[prost(message, repeated, tag = "1")]
pub executors: ::prost::alloc::vec::Vec<Executor>,
}
impl ::prost::Name for ListExecutorsResponse {
const NAME: &'static str = "ListExecutorsResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListExecutorsResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListExecutorsResponse".into()
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteHistoricalDataRequest {
#[prost(message, optional, tag = "1")]
pub before: ::core::option::Option<::prost_types::Timestamp>,
}
impl ::prost::Name for DeleteHistoricalDataRequest {
const NAME: &'static str = "DeleteHistoricalDataRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.DeleteHistoricalDataRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.DeleteHistoricalDataRequest".into()
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteHistoricalDataResponse {}
impl ::prost::Name for DeleteHistoricalDataResponse {
const NAME: &'static str = "DeleteHistoricalDataResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.DeleteHistoricalDataResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.DeleteHistoricalDataResponse".into()
}
}
pub mod admin_service_server {
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value
)]
use tonic::codegen::*;
#[async_trait]
pub trait AdminService: std::marker::Send + std::marker::Sync + 'static {
async fn list_job_types(
&self,
request: tonic::Request<super::ListJobTypesRequest>,
) -> std::result::Result<tonic::Response<super::ListJobTypesResponse>, tonic::Status>
{
Err(tonic::Status::unimplemented("Not yet implemented"))
}
async fn add_jobs(
&self,
request: tonic::Request<super::AddJobsRequest>,
) -> std::result::Result<tonic::Response<super::AddJobsResponse>, tonic::Status> {
Err(tonic::Status::unimplemented("Not yet implemented"))
}
async fn list_jobs(
&self,
request: tonic::Request<super::ListJobsRequest>,
) -> std::result::Result<tonic::Response<super::ListJobsResponse>, tonic::Status> {
Err(tonic::Status::unimplemented("Not yet implemented"))
}
async fn count_jobs(
&self,
request: tonic::Request<super::CountJobsRequest>,
) -> std::result::Result<tonic::Response<super::CountJobsResponse>, tonic::Status> {
Err(tonic::Status::unimplemented("Not yet implemented"))
}
async fn cancel_jobs(
&self,
request: tonic::Request<super::CancelJobsRequest>,
) -> std::result::Result<tonic::Response<super::CancelJobsResponse>, tonic::Status>
{
Err(tonic::Status::unimplemented("Not yet implemented"))
}
async fn add_schedules(
&self,
request: tonic::Request<super::AddSchedulesRequest>,
) -> std::result::Result<tonic::Response<super::AddSchedulesResponse>, tonic::Status>
{
Err(tonic::Status::unimplemented("Not yet implemented"))
}
async fn list_schedules(
&self,
request: tonic::Request<super::ListSchedulesRequest>,
) -> std::result::Result<tonic::Response<super::ListSchedulesResponse>, tonic::Status>
{
Err(tonic::Status::unimplemented("Not yet implemented"))
}
async fn count_schedules(
&self,
request: tonic::Request<super::CountSchedulesRequest>,
) -> std::result::Result<tonic::Response<super::CountSchedulesResponse>, tonic::Status>
{
Err(tonic::Status::unimplemented("Not yet implemented"))
}
async fn stop_schedules(
&self,
request: tonic::Request<super::StopSchedulesRequest>,
) -> std::result::Result<tonic::Response<super::StopSchedulesResponse>, tonic::Status>
{
Err(tonic::Status::unimplemented("Not yet implemented"))
}
async fn list_executors(
&self,
request: tonic::Request<super::ListExecutorsRequest>,
) -> std::result::Result<tonic::Response<super::ListExecutorsResponse>, tonic::Status>
{
Err(tonic::Status::unimplemented("Not yet implemented"))
}
async fn delete_historical_data(
&self,
request: tonic::Request<super::DeleteHistoricalDataRequest>,
) -> std::result::Result<tonic::Response<super::DeleteHistoricalDataResponse>, tonic::Status>
{
Err(tonic::Status::unimplemented("Not yet implemented"))
}
}
#[derive(Debug)]
pub struct AdminServiceServer<T> {
inner: Arc<T>,
accept_compression_encodings: EnabledCompressionEncodings,
send_compression_encodings: EnabledCompressionEncodings,
max_decoding_message_size: Option<usize>,
max_encoding_message_size: Option<usize>,
}
impl<T> AdminServiceServer<T> {
pub fn new(inner: T) -> Self {
Self::from_arc(Arc::new(inner))
}
pub fn from_arc(inner: Arc<T>) -> Self {
Self {
inner,
accept_compression_encodings: Default::default(),
send_compression_encodings: Default::default(),
max_decoding_message_size: None,
max_encoding_message_size: None,
}
}
pub fn with_interceptor<F>(inner: T, interceptor: F) -> InterceptedService<Self, F>
where
F: tonic::service::Interceptor,
{
InterceptedService::new(Self::new(inner), interceptor)
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.accept_compression_encodings.enable(encoding);
self
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.send_compression_encodings.enable(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.max_decoding_message_size = Some(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.max_encoding_message_size = Some(limit);
self
}
}
impl<T, B> tonic::codegen::Service<http::Request<B>> for AdminServiceServer<T>
where
T: AdminService,
B: Body + std::marker::Send + 'static,
B::Error: Into<StdError> + std::marker::Send + 'static,
{
type Response = http::Response<tonic::body::Body>;
type Error = std::convert::Infallible;
type Future = BoxFuture<Self::Response, Self::Error>;
fn poll_ready(
&mut self,
_cx: &mut Context<'_>,
) -> Poll<std::result::Result<(), Self::Error>> {
Poll::Ready(Ok(()))
}
fn call(&mut self, req: http::Request<B>) -> Self::Future {
match req.uri().path() {
"/ora.admin.v1.AdminService/ListJobTypes" => {
#[allow(non_camel_case_types)]
struct ListJobTypesSvc<T: AdminService>(pub Arc<T>);
impl<T: AdminService> tonic::server::UnaryService<super::ListJobTypesRequest>
for ListJobTypesSvc<T>
{
type Response = super::ListJobTypesResponse;
type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
fn call(
&mut self,
request: tonic::Request<super::ListJobTypesRequest>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as AdminService>::list_job_types(&inner, request).await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = ListJobTypesSvc(inner);
let codec = tonic_prost::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
"/ora.admin.v1.AdminService/AddJobs" => {
#[allow(non_camel_case_types)]
struct AddJobsSvc<T: AdminService>(pub Arc<T>);
impl<T: AdminService> tonic::server::UnaryService<super::AddJobsRequest> for AddJobsSvc<T> {
type Response = super::AddJobsResponse;
type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
fn call(
&mut self,
request: tonic::Request<super::AddJobsRequest>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut =
async move { <T as AdminService>::add_jobs(&inner, request).await };
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = AddJobsSvc(inner);
let codec = tonic_prost::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
"/ora.admin.v1.AdminService/ListJobs" => {
#[allow(non_camel_case_types)]
struct ListJobsSvc<T: AdminService>(pub Arc<T>);
impl<T: AdminService> tonic::server::UnaryService<super::ListJobsRequest> for ListJobsSvc<T> {
type Response = super::ListJobsResponse;
type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
fn call(
&mut self,
request: tonic::Request<super::ListJobsRequest>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as AdminService>::list_jobs(&inner, request).await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = ListJobsSvc(inner);
let codec = tonic_prost::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
"/ora.admin.v1.AdminService/CountJobs" => {
#[allow(non_camel_case_types)]
struct CountJobsSvc<T: AdminService>(pub Arc<T>);
impl<T: AdminService> tonic::server::UnaryService<super::CountJobsRequest> for CountJobsSvc<T> {
type Response = super::CountJobsResponse;
type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
fn call(
&mut self,
request: tonic::Request<super::CountJobsRequest>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as AdminService>::count_jobs(&inner, request).await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = CountJobsSvc(inner);
let codec = tonic_prost::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
"/ora.admin.v1.AdminService/CancelJobs" => {
#[allow(non_camel_case_types)]
struct CancelJobsSvc<T: AdminService>(pub Arc<T>);
impl<T: AdminService> tonic::server::UnaryService<super::CancelJobsRequest> for CancelJobsSvc<T> {
type Response = super::CancelJobsResponse;
type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
fn call(
&mut self,
request: tonic::Request<super::CancelJobsRequest>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as AdminService>::cancel_jobs(&inner, request).await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = CancelJobsSvc(inner);
let codec = tonic_prost::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
"/ora.admin.v1.AdminService/AddSchedules" => {
#[allow(non_camel_case_types)]
struct AddSchedulesSvc<T: AdminService>(pub Arc<T>);
impl<T: AdminService> tonic::server::UnaryService<super::AddSchedulesRequest>
for AddSchedulesSvc<T>
{
type Response = super::AddSchedulesResponse;
type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
fn call(
&mut self,
request: tonic::Request<super::AddSchedulesRequest>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as AdminService>::add_schedules(&inner, request).await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = AddSchedulesSvc(inner);
let codec = tonic_prost::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
"/ora.admin.v1.AdminService/ListSchedules" => {
#[allow(non_camel_case_types)]
struct ListSchedulesSvc<T: AdminService>(pub Arc<T>);
impl<T: AdminService> tonic::server::UnaryService<super::ListSchedulesRequest>
for ListSchedulesSvc<T>
{
type Response = super::ListSchedulesResponse;
type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
fn call(
&mut self,
request: tonic::Request<super::ListSchedulesRequest>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as AdminService>::list_schedules(&inner, request).await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = ListSchedulesSvc(inner);
let codec = tonic_prost::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
"/ora.admin.v1.AdminService/CountSchedules" => {
#[allow(non_camel_case_types)]
struct CountSchedulesSvc<T: AdminService>(pub Arc<T>);
impl<T: AdminService> tonic::server::UnaryService<super::CountSchedulesRequest>
for CountSchedulesSvc<T>
{
type Response = super::CountSchedulesResponse;
type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
fn call(
&mut self,
request: tonic::Request<super::CountSchedulesRequest>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as AdminService>::count_schedules(&inner, request).await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = CountSchedulesSvc(inner);
let codec = tonic_prost::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
"/ora.admin.v1.AdminService/StopSchedules" => {
#[allow(non_camel_case_types)]
struct StopSchedulesSvc<T: AdminService>(pub Arc<T>);
impl<T: AdminService> tonic::server::UnaryService<super::StopSchedulesRequest>
for StopSchedulesSvc<T>
{
type Response = super::StopSchedulesResponse;
type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
fn call(
&mut self,
request: tonic::Request<super::StopSchedulesRequest>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as AdminService>::stop_schedules(&inner, request).await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = StopSchedulesSvc(inner);
let codec = tonic_prost::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
"/ora.admin.v1.AdminService/ListExecutors" => {
#[allow(non_camel_case_types)]
struct ListExecutorsSvc<T: AdminService>(pub Arc<T>);
impl<T: AdminService> tonic::server::UnaryService<super::ListExecutorsRequest>
for ListExecutorsSvc<T>
{
type Response = super::ListExecutorsResponse;
type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
fn call(
&mut self,
request: tonic::Request<super::ListExecutorsRequest>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as AdminService>::list_executors(&inner, request).await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = ListExecutorsSvc(inner);
let codec = tonic_prost::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
"/ora.admin.v1.AdminService/DeleteHistoricalData" => {
#[allow(non_camel_case_types)]
struct DeleteHistoricalDataSvc<T: AdminService>(pub Arc<T>);
impl<T: AdminService>
tonic::server::UnaryService<super::DeleteHistoricalDataRequest>
for DeleteHistoricalDataSvc<T>
{
type Response = super::DeleteHistoricalDataResponse;
type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
fn call(
&mut self,
request: tonic::Request<super::DeleteHistoricalDataRequest>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as AdminService>::delete_historical_data(&inner, request).await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = DeleteHistoricalDataSvc(inner);
let codec = tonic_prost::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
_ => Box::pin(async move {
let mut response = http::Response::new(tonic::body::Body::default());
let headers = response.headers_mut();
headers.insert(
tonic::Status::GRPC_STATUS,
(tonic::Code::Unimplemented as i32).into(),
);
headers.insert(
http::header::CONTENT_TYPE,
tonic::metadata::GRPC_CONTENT_TYPE,
);
Ok(response)
}),
}
}
}
impl<T> Clone for AdminServiceServer<T> {
fn clone(&self) -> Self {
let inner = self.inner.clone();
Self {
inner,
accept_compression_encodings: self.accept_compression_encodings,
send_compression_encodings: self.send_compression_encodings,
max_decoding_message_size: self.max_decoding_message_size,
max_encoding_message_size: self.max_encoding_message_size,
}
}
}
pub const SERVICE_NAME: &str = "ora.admin.v1.AdminService";
impl<T> tonic::server::NamedService for AdminServiceServer<T> {
const NAME: &'static str = SERVICE_NAME;
}
}