#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Product {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub marketing_info: ::core::option::Option<MarketingInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Sku {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub marketing_info: ::core::option::Option<MarketingInfo>,
#[prost(message, optional, tag = "3")]
pub product: ::core::option::Option<Product>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MarketingInfo {
#[prost(string, tag = "1")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub description: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub default_logo: ::core::option::Option<Media>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Media {
#[prost(string, tag = "1")]
pub title: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub content: ::prost::alloc::string::String,
#[prost(enumeration = "MediaType", tag = "3")]
pub r#type: i32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MediaType {
Unspecified = 0,
Image = 1,
}
impl MediaType {
pub fn as_str_name(&self) -> &'static str {
match self {
MediaType::Unspecified => "MEDIA_TYPE_UNSPECIFIED",
MediaType::Image => "MEDIA_TYPE_IMAGE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"MEDIA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"MEDIA_TYPE_IMAGE" => Some(Self::Image),
_ => None,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerEvent {
#[prost(string, tag = "1")]
pub customer: ::prost::alloc::string::String,
#[prost(enumeration = "customer_event::Type", tag = "2")]
pub event_type: i32,
}
pub mod customer_event {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
Unspecified = 0,
PrimaryDomainChanged = 1,
PrimaryDomainVerified = 2,
}
impl Type {
pub fn as_str_name(&self) -> &'static str {
match self {
Type::Unspecified => "TYPE_UNSPECIFIED",
Type::PrimaryDomainChanged => "PRIMARY_DOMAIN_CHANGED",
Type::PrimaryDomainVerified => "PRIMARY_DOMAIN_VERIFIED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"PRIMARY_DOMAIN_CHANGED" => Some(Self::PrimaryDomainChanged),
"PRIMARY_DOMAIN_VERIFIED" => Some(Self::PrimaryDomainVerified),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EntitlementEvent {
#[prost(string, tag = "1")]
pub entitlement: ::prost::alloc::string::String,
#[prost(enumeration = "entitlement_event::Type", tag = "2")]
pub event_type: i32,
}
pub mod entitlement_event {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
Unspecified = 0,
Created = 1,
PricePlanSwitched = 3,
CommitmentChanged = 4,
Renewed = 5,
Suspended = 6,
Activated = 7,
Cancelled = 8,
SkuChanged = 9,
RenewalSettingChanged = 10,
PaidServiceStarted = 11,
LicenseAssignmentChanged = 12,
LicenseCapChanged = 13,
}
impl Type {
pub fn as_str_name(&self) -> &'static str {
match self {
Type::Unspecified => "TYPE_UNSPECIFIED",
Type::Created => "CREATED",
Type::PricePlanSwitched => "PRICE_PLAN_SWITCHED",
Type::CommitmentChanged => "COMMITMENT_CHANGED",
Type::Renewed => "RENEWED",
Type::Suspended => "SUSPENDED",
Type::Activated => "ACTIVATED",
Type::Cancelled => "CANCELLED",
Type::SkuChanged => "SKU_CHANGED",
Type::RenewalSettingChanged => "RENEWAL_SETTING_CHANGED",
Type::PaidServiceStarted => "PAID_SERVICE_STARTED",
Type::LicenseAssignmentChanged => "LICENSE_ASSIGNMENT_CHANGED",
Type::LicenseCapChanged => "LICENSE_CAP_CHANGED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"CREATED" => Some(Self::Created),
"PRICE_PLAN_SWITCHED" => Some(Self::PricePlanSwitched),
"COMMITMENT_CHANGED" => Some(Self::CommitmentChanged),
"RENEWED" => Some(Self::Renewed),
"SUSPENDED" => Some(Self::Suspended),
"ACTIVATED" => Some(Self::Activated),
"CANCELLED" => Some(Self::Cancelled),
"SKU_CHANGED" => Some(Self::SkuChanged),
"RENEWAL_SETTING_CHANGED" => Some(Self::RenewalSettingChanged),
"PAID_SERVICE_STARTED" => Some(Self::PaidServiceStarted),
"LICENSE_ASSIGNMENT_CHANGED" => Some(Self::LicenseAssignmentChanged),
"LICENSE_CAP_CHANGED" => Some(Self::LicenseCapChanged),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubscriberEvent {
#[prost(oneof = "subscriber_event::Event", tags = "1, 2")]
pub event: ::core::option::Option<subscriber_event::Event>,
}
pub mod subscriber_event {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Event {
#[prost(message, tag = "1")]
CustomerEvent(super::CustomerEvent),
#[prost(message, tag = "2")]
EntitlementEvent(super::EntitlementEvent),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperationMetadata {
#[prost(enumeration = "operation_metadata::OperationType", tag = "1")]
pub operation_type: i32,
}
pub mod operation_metadata {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum OperationType {
Unspecified = 0,
CreateEntitlement = 1,
ChangeRenewalSettings = 3,
StartPaidService = 5,
ActivateEntitlement = 7,
SuspendEntitlement = 8,
CancelEntitlement = 9,
TransferEntitlements = 10,
TransferEntitlementsToGoogle = 11,
ChangeOffer = 14,
ChangeParameters = 15,
ProvisionCloudIdentity = 16,
}
impl OperationType {
pub fn as_str_name(&self) -> &'static str {
match self {
OperationType::Unspecified => "OPERATION_TYPE_UNSPECIFIED",
OperationType::CreateEntitlement => "CREATE_ENTITLEMENT",
OperationType::ChangeRenewalSettings => "CHANGE_RENEWAL_SETTINGS",
OperationType::StartPaidService => "START_PAID_SERVICE",
OperationType::ActivateEntitlement => "ACTIVATE_ENTITLEMENT",
OperationType::SuspendEntitlement => "SUSPEND_ENTITLEMENT",
OperationType::CancelEntitlement => "CANCEL_ENTITLEMENT",
OperationType::TransferEntitlements => "TRANSFER_ENTITLEMENTS",
OperationType::TransferEntitlementsToGoogle => {
"TRANSFER_ENTITLEMENTS_TO_GOOGLE"
}
OperationType::ChangeOffer => "CHANGE_OFFER",
OperationType::ChangeParameters => "CHANGE_PARAMETERS",
OperationType::ProvisionCloudIdentity => "PROVISION_CLOUD_IDENTITY",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"OPERATION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"CREATE_ENTITLEMENT" => Some(Self::CreateEntitlement),
"CHANGE_RENEWAL_SETTINGS" => Some(Self::ChangeRenewalSettings),
"START_PAID_SERVICE" => Some(Self::StartPaidService),
"ACTIVATE_ENTITLEMENT" => Some(Self::ActivateEntitlement),
"SUSPEND_ENTITLEMENT" => Some(Self::SuspendEntitlement),
"CANCEL_ENTITLEMENT" => Some(Self::CancelEntitlement),
"TRANSFER_ENTITLEMENTS" => Some(Self::TransferEntitlements),
"TRANSFER_ENTITLEMENTS_TO_GOOGLE" => {
Some(Self::TransferEntitlementsToGoogle)
}
"CHANGE_OFFER" => Some(Self::ChangeOffer),
"CHANGE_PARAMETERS" => Some(Self::ChangeParameters),
"PROVISION_CLOUD_IDENTITY" => Some(Self::ProvisionCloudIdentity),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EduData {
#[prost(enumeration = "edu_data::InstituteType", tag = "1")]
pub institute_type: i32,
#[prost(enumeration = "edu_data::InstituteSize", tag = "2")]
pub institute_size: i32,
#[prost(string, tag = "3")]
pub website: ::prost::alloc::string::String,
}
pub mod edu_data {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum InstituteType {
Unspecified = 0,
K12 = 1,
University = 2,
}
impl InstituteType {
pub fn as_str_name(&self) -> &'static str {
match self {
InstituteType::Unspecified => "INSTITUTE_TYPE_UNSPECIFIED",
InstituteType::K12 => "K12",
InstituteType::University => "UNIVERSITY",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"INSTITUTE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"K12" => Some(Self::K12),
"UNIVERSITY" => Some(Self::University),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum InstituteSize {
Unspecified = 0,
Size1100 = 1,
Size101500 = 2,
Size5011000 = 3,
Size10012000 = 4,
Size20015000 = 5,
Size500110000 = 6,
Size10001OrMore = 7,
}
impl InstituteSize {
pub fn as_str_name(&self) -> &'static str {
match self {
InstituteSize::Unspecified => "INSTITUTE_SIZE_UNSPECIFIED",
InstituteSize::Size1100 => "SIZE_1_100",
InstituteSize::Size101500 => "SIZE_101_500",
InstituteSize::Size5011000 => "SIZE_501_1000",
InstituteSize::Size10012000 => "SIZE_1001_2000",
InstituteSize::Size20015000 => "SIZE_2001_5000",
InstituteSize::Size500110000 => "SIZE_5001_10000",
InstituteSize::Size10001OrMore => "SIZE_10001_OR_MORE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"INSTITUTE_SIZE_UNSPECIFIED" => Some(Self::Unspecified),
"SIZE_1_100" => Some(Self::Size1100),
"SIZE_101_500" => Some(Self::Size101500),
"SIZE_501_1000" => Some(Self::Size5011000),
"SIZE_1001_2000" => Some(Self::Size10012000),
"SIZE_2001_5000" => Some(Self::Size20015000),
"SIZE_5001_10000" => Some(Self::Size500110000),
"SIZE_10001_OR_MORE" => Some(Self::Size10001OrMore),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CloudIdentityInfo {
#[prost(enumeration = "cloud_identity_info::CustomerType", tag = "1")]
pub customer_type: i32,
#[prost(string, tag = "9")]
pub primary_domain: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub is_domain_verified: bool,
#[prost(string, tag = "6")]
pub alternate_email: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub phone_number: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub language_code: ::prost::alloc::string::String,
#[prost(string, tag = "10")]
pub admin_console_uri: ::prost::alloc::string::String,
#[prost(message, optional, tag = "22")]
pub edu_data: ::core::option::Option<EduData>,
}
pub mod cloud_identity_info {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CustomerType {
Unspecified = 0,
Domain = 1,
Team = 2,
}
impl CustomerType {
pub fn as_str_name(&self) -> &'static str {
match self {
CustomerType::Unspecified => "CUSTOMER_TYPE_UNSPECIFIED",
CustomerType::Domain => "DOMAIN",
CustomerType::Team => "TEAM",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CUSTOMER_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"DOMAIN" => Some(Self::Domain),
"TEAM" => Some(Self::Team),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Value {
#[prost(oneof = "value::Kind", tags = "1, 2, 3, 4, 5")]
pub kind: ::core::option::Option<value::Kind>,
}
pub mod value {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Kind {
#[prost(int64, tag = "1")]
Int64Value(i64),
#[prost(string, tag = "2")]
StringValue(::prost::alloc::string::String),
#[prost(double, tag = "3")]
DoubleValue(f64),
#[prost(message, tag = "4")]
ProtoValue(::prost_types::Any),
#[prost(bool, tag = "5")]
BoolValue(bool),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdminUser {
#[prost(string, tag = "1")]
pub email: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub given_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub family_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChannelPartnerLink {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub reseller_cloud_identity_id: ::prost::alloc::string::String,
#[prost(enumeration = "ChannelPartnerLinkState", tag = "3")]
pub link_state: i32,
#[prost(string, tag = "4")]
pub invite_link_uri: ::prost::alloc::string::String,
#[prost(message, optional, tag = "5")]
pub create_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "6")]
pub update_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "7")]
pub public_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "8")]
pub channel_partner_cloud_identity_info: ::core::option::Option<CloudIdentityInfo>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ChannelPartnerLinkView {
Unspecified = 0,
Basic = 1,
Full = 2,
}
impl ChannelPartnerLinkView {
pub fn as_str_name(&self) -> &'static str {
match self {
ChannelPartnerLinkView::Unspecified => "UNSPECIFIED",
ChannelPartnerLinkView::Basic => "BASIC",
ChannelPartnerLinkView::Full => "FULL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"BASIC" => Some(Self::Basic),
"FULL" => Some(Self::Full),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ChannelPartnerLinkState {
Unspecified = 0,
Invited = 1,
Active = 2,
Revoked = 3,
Suspended = 4,
}
impl ChannelPartnerLinkState {
pub fn as_str_name(&self) -> &'static str {
match self {
ChannelPartnerLinkState::Unspecified => {
"CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED"
}
ChannelPartnerLinkState::Invited => "INVITED",
ChannelPartnerLinkState::Active => "ACTIVE",
ChannelPartnerLinkState::Revoked => "REVOKED",
ChannelPartnerLinkState::Suspended => "SUSPENDED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED" => Some(Self::Unspecified),
"INVITED" => Some(Self::Invited),
"ACTIVE" => Some(Self::Active),
"REVOKED" => Some(Self::Revoked),
"SUSPENDED" => Some(Self::Suspended),
_ => None,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RunReportJobRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub date_range: ::core::option::Option<DateRange>,
#[prost(string, tag = "3")]
pub filter: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub language_code: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RunReportJobResponse {
#[prost(message, optional, tag = "1")]
pub report_job: ::core::option::Option<ReportJob>,
#[prost(message, optional, tag = "2")]
pub report_metadata: ::core::option::Option<ReportResultsMetadata>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchReportResultsRequest {
#[prost(string, tag = "1")]
pub report_job: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "4")]
pub partition_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchReportResultsResponse {
#[prost(message, optional, tag = "1")]
pub report_metadata: ::core::option::Option<ReportResultsMetadata>,
#[prost(message, repeated, tag = "2")]
pub rows: ::prost::alloc::vec::Vec<Row>,
#[prost(string, tag = "3")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListReportsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub language_code: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListReportsResponse {
#[prost(message, repeated, tag = "1")]
pub reports: ::prost::alloc::vec::Vec<Report>,
#[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 ReportJob {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub report_status: ::core::option::Option<ReportStatus>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReportResultsMetadata {
#[prost(message, optional, tag = "1")]
pub report: ::core::option::Option<Report>,
#[prost(int64, tag = "2")]
pub row_count: i64,
#[prost(message, optional, tag = "3")]
pub date_range: ::core::option::Option<DateRange>,
#[prost(message, optional, tag = "4")]
pub preceding_date_range: ::core::option::Option<DateRange>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Column {
#[prost(string, tag = "1")]
pub column_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub display_name: ::prost::alloc::string::String,
#[prost(enumeration = "column::DataType", tag = "3")]
pub data_type: i32,
}
pub mod column {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DataType {
Unspecified = 0,
String = 1,
Int = 2,
Decimal = 3,
Money = 4,
Date = 5,
DateTime = 6,
}
impl DataType {
pub fn as_str_name(&self) -> &'static str {
match self {
DataType::Unspecified => "DATA_TYPE_UNSPECIFIED",
DataType::String => "STRING",
DataType::Int => "INT",
DataType::Decimal => "DECIMAL",
DataType::Money => "MONEY",
DataType::Date => "DATE",
DataType::DateTime => "DATE_TIME",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"STRING" => Some(Self::String),
"INT" => Some(Self::Int),
"DECIMAL" => Some(Self::Decimal),
"MONEY" => Some(Self::Money),
"DATE" => Some(Self::Date),
"DATE_TIME" => Some(Self::DateTime),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DateRange {
#[prost(message, optional, tag = "1")]
pub usage_start_date_time: ::core::option::Option<
super::super::super::r#type::DateTime,
>,
#[prost(message, optional, tag = "2")]
pub usage_end_date_time: ::core::option::Option<
super::super::super::r#type::DateTime,
>,
#[prost(message, optional, tag = "3")]
pub invoice_start_date: ::core::option::Option<super::super::super::r#type::Date>,
#[prost(message, optional, tag = "4")]
pub invoice_end_date: ::core::option::Option<super::super::super::r#type::Date>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Row {
#[prost(message, repeated, tag = "1")]
pub values: ::prost::alloc::vec::Vec<ReportValue>,
#[prost(string, tag = "2")]
pub partition_key: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReportValue {
#[prost(oneof = "report_value::Value", tags = "1, 2, 3, 4, 5, 6")]
pub value: ::core::option::Option<report_value::Value>,
}
pub mod report_value {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(string, tag = "1")]
StringValue(::prost::alloc::string::String),
#[prost(int64, tag = "2")]
IntValue(i64),
#[prost(message, tag = "3")]
DecimalValue(super::super::super::super::r#type::Decimal),
#[prost(message, tag = "4")]
MoneyValue(super::super::super::super::r#type::Money),
#[prost(message, tag = "5")]
DateValue(super::super::super::super::r#type::Date),
#[prost(message, tag = "6")]
DateTimeValue(super::super::super::super::r#type::DateTime),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReportStatus {
#[prost(enumeration = "report_status::State", tag = "1")]
pub state: i32,
#[prost(message, optional, tag = "2")]
pub start_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "3")]
pub end_time: ::core::option::Option<::prost_types::Timestamp>,
}
pub mod report_status {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
Unspecified = 0,
Started = 1,
Writing = 2,
Available = 3,
Failed = 4,
}
impl State {
pub fn as_str_name(&self) -> &'static str {
match self {
State::Unspecified => "STATE_UNSPECIFIED",
State::Started => "STARTED",
State::Writing => "WRITING",
State::Available => "AVAILABLE",
State::Failed => "FAILED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"STARTED" => Some(Self::Started),
"WRITING" => Some(Self::Writing),
"AVAILABLE" => Some(Self::Available),
"FAILED" => Some(Self::Failed),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Report {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub display_name: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "3")]
pub columns: ::prost::alloc::vec::Vec<Column>,
#[prost(string, tag = "4")]
pub description: ::prost::alloc::string::String,
}
pub mod cloud_channel_reports_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct CloudChannelReportsServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> CloudChannelReportsServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> CloudChannelReportsServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
CloudChannelReportsServiceClient::new(
InterceptedService::new(inner, interceptor),
)
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
pub async fn run_report_job(
&mut self,
request: impl tonic::IntoRequest<super::RunReportJobRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::longrunning::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelReportsService/RunReportJob",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelReportsService",
"RunReportJob",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn fetch_report_results(
&mut self,
request: impl tonic::IntoRequest<super::FetchReportResultsRequest>,
) -> std::result::Result<
tonic::Response<super::FetchReportResultsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelReportsService/FetchReportResults",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelReportsService",
"FetchReportResults",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_reports(
&mut self,
request: impl tonic::IntoRequest<super::ListReportsRequest>,
) -> std::result::Result<
tonic::Response<super::ListReportsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelReportsService/ListReports",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelReportsService",
"ListReports",
),
);
self.inner.unary(req, path, codec).await
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Customer {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub org_display_name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub org_postal_address: ::core::option::Option<
super::super::super::r#type::PostalAddress,
>,
#[prost(message, optional, tag = "4")]
pub primary_contact_info: ::core::option::Option<ContactInfo>,
#[prost(string, tag = "5")]
pub alternate_email: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub domain: ::prost::alloc::string::String,
#[prost(message, optional, tag = "7")]
pub create_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "8")]
pub update_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "9")]
pub cloud_identity_id: ::prost::alloc::string::String,
#[prost(string, tag = "10")]
pub language_code: ::prost::alloc::string::String,
#[prost(message, optional, tag = "12")]
pub cloud_identity_info: ::core::option::Option<CloudIdentityInfo>,
#[prost(string, tag = "13")]
pub channel_partner_id: ::prost::alloc::string::String,
#[prost(string, tag = "14")]
pub correlation_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ContactInfo {
#[prost(string, tag = "1")]
pub first_name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub last_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub email: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub title: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub phone: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Offer {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub marketing_info: ::core::option::Option<MarketingInfo>,
#[prost(message, optional, tag = "3")]
pub sku: ::core::option::Option<Sku>,
#[prost(message, optional, tag = "4")]
pub plan: ::core::option::Option<Plan>,
#[prost(message, optional, tag = "5")]
pub constraints: ::core::option::Option<Constraints>,
#[prost(message, repeated, tag = "6")]
pub price_by_resources: ::prost::alloc::vec::Vec<PriceByResource>,
#[prost(message, optional, tag = "7")]
pub start_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "8")]
pub end_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, repeated, tag = "9")]
pub parameter_definitions: ::prost::alloc::vec::Vec<ParameterDefinition>,
#[prost(string, tag = "12")]
pub deal_code: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ParameterDefinition {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(enumeration = "parameter_definition::ParameterType", tag = "2")]
pub parameter_type: i32,
#[prost(message, optional, tag = "3")]
pub min_value: ::core::option::Option<Value>,
#[prost(message, optional, tag = "4")]
pub max_value: ::core::option::Option<Value>,
#[prost(message, repeated, tag = "5")]
pub allowed_values: ::prost::alloc::vec::Vec<Value>,
#[prost(bool, tag = "6")]
pub optional: bool,
}
pub mod parameter_definition {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ParameterType {
Unspecified = 0,
Int64 = 1,
String = 2,
Double = 3,
Boolean = 4,
}
impl ParameterType {
pub fn as_str_name(&self) -> &'static str {
match self {
ParameterType::Unspecified => "PARAMETER_TYPE_UNSPECIFIED",
ParameterType::Int64 => "INT64",
ParameterType::String => "STRING",
ParameterType::Double => "DOUBLE",
ParameterType::Boolean => "BOOLEAN",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PARAMETER_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"INT64" => Some(Self::Int64),
"STRING" => Some(Self::String),
"DOUBLE" => Some(Self::Double),
"BOOLEAN" => Some(Self::Boolean),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Constraints {
#[prost(message, optional, tag = "1")]
pub customer_constraints: ::core::option::Option<CustomerConstraints>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerConstraints {
#[prost(string, repeated, tag = "1")]
pub allowed_regions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(enumeration = "cloud_identity_info::CustomerType", repeated, tag = "2")]
pub allowed_customer_types: ::prost::alloc::vec::Vec<i32>,
#[prost(enumeration = "PromotionalOrderType", repeated, tag = "3")]
pub promotional_order_types: ::prost::alloc::vec::Vec<i32>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Plan {
#[prost(enumeration = "PaymentPlan", tag = "1")]
pub payment_plan: i32,
#[prost(enumeration = "PaymentType", tag = "2")]
pub payment_type: i32,
#[prost(message, optional, tag = "3")]
pub payment_cycle: ::core::option::Option<Period>,
#[prost(message, optional, tag = "4")]
pub trial_period: ::core::option::Option<Period>,
#[prost(string, tag = "5")]
pub billing_account: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PriceByResource {
#[prost(enumeration = "ResourceType", tag = "1")]
pub resource_type: i32,
#[prost(message, optional, tag = "2")]
pub price: ::core::option::Option<Price>,
#[prost(message, repeated, tag = "3")]
pub price_phases: ::prost::alloc::vec::Vec<PricePhase>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Price {
#[prost(message, optional, tag = "1")]
pub base_price: ::core::option::Option<super::super::super::r#type::Money>,
#[prost(double, tag = "2")]
pub discount: f64,
#[prost(message, optional, tag = "3")]
pub effective_price: ::core::option::Option<super::super::super::r#type::Money>,
#[prost(string, tag = "4")]
pub external_price_uri: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PricePhase {
#[prost(enumeration = "PeriodType", tag = "1")]
pub period_type: i32,
#[prost(int32, tag = "2")]
pub first_period: i32,
#[prost(int32, tag = "3")]
pub last_period: i32,
#[prost(message, optional, tag = "4")]
pub price: ::core::option::Option<Price>,
#[prost(message, repeated, tag = "5")]
pub price_tiers: ::prost::alloc::vec::Vec<PriceTier>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PriceTier {
#[prost(int32, tag = "1")]
pub first_resource: i32,
#[prost(int32, tag = "2")]
pub last_resource: i32,
#[prost(message, optional, tag = "3")]
pub price: ::core::option::Option<Price>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Period {
#[prost(int32, tag = "1")]
pub duration: i32,
#[prost(enumeration = "PeriodType", tag = "2")]
pub period_type: i32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PromotionalOrderType {
PromotionalTypeUnspecified = 0,
NewUpgrade = 1,
Transfer = 2,
PromotionSwitch = 3,
}
impl PromotionalOrderType {
pub fn as_str_name(&self) -> &'static str {
match self {
PromotionalOrderType::PromotionalTypeUnspecified => {
"PROMOTIONAL_TYPE_UNSPECIFIED"
}
PromotionalOrderType::NewUpgrade => "NEW_UPGRADE",
PromotionalOrderType::Transfer => "TRANSFER",
PromotionalOrderType::PromotionSwitch => "PROMOTION_SWITCH",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PROMOTIONAL_TYPE_UNSPECIFIED" => Some(Self::PromotionalTypeUnspecified),
"NEW_UPGRADE" => Some(Self::NewUpgrade),
"TRANSFER" => Some(Self::Transfer),
"PROMOTION_SWITCH" => Some(Self::PromotionSwitch),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PaymentPlan {
Unspecified = 0,
Commitment = 1,
Flexible = 2,
Free = 3,
Trial = 4,
Offline = 5,
}
impl PaymentPlan {
pub fn as_str_name(&self) -> &'static str {
match self {
PaymentPlan::Unspecified => "PAYMENT_PLAN_UNSPECIFIED",
PaymentPlan::Commitment => "COMMITMENT",
PaymentPlan::Flexible => "FLEXIBLE",
PaymentPlan::Free => "FREE",
PaymentPlan::Trial => "TRIAL",
PaymentPlan::Offline => "OFFLINE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PAYMENT_PLAN_UNSPECIFIED" => Some(Self::Unspecified),
"COMMITMENT" => Some(Self::Commitment),
"FLEXIBLE" => Some(Self::Flexible),
"FREE" => Some(Self::Free),
"TRIAL" => Some(Self::Trial),
"OFFLINE" => Some(Self::Offline),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PaymentType {
Unspecified = 0,
Prepay = 1,
Postpay = 2,
}
impl PaymentType {
pub fn as_str_name(&self) -> &'static str {
match self {
PaymentType::Unspecified => "PAYMENT_TYPE_UNSPECIFIED",
PaymentType::Prepay => "PREPAY",
PaymentType::Postpay => "POSTPAY",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PAYMENT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"PREPAY" => Some(Self::Prepay),
"POSTPAY" => Some(Self::Postpay),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ResourceType {
Unspecified = 0,
Seat = 1,
Mau = 2,
Gb = 3,
LicensedUser = 4,
Minutes = 5,
IaasUsage = 6,
Subscription = 7,
}
impl ResourceType {
pub fn as_str_name(&self) -> &'static str {
match self {
ResourceType::Unspecified => "RESOURCE_TYPE_UNSPECIFIED",
ResourceType::Seat => "SEAT",
ResourceType::Mau => "MAU",
ResourceType::Gb => "GB",
ResourceType::LicensedUser => "LICENSED_USER",
ResourceType::Minutes => "MINUTES",
ResourceType::IaasUsage => "IAAS_USAGE",
ResourceType::Subscription => "SUBSCRIPTION",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"RESOURCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"SEAT" => Some(Self::Seat),
"MAU" => Some(Self::Mau),
"GB" => Some(Self::Gb),
"LICENSED_USER" => Some(Self::LicensedUser),
"MINUTES" => Some(Self::Minutes),
"IAAS_USAGE" => Some(Self::IaasUsage),
"SUBSCRIPTION" => Some(Self::Subscription),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PeriodType {
Unspecified = 0,
Day = 1,
Month = 2,
Year = 3,
}
impl PeriodType {
pub fn as_str_name(&self) -> &'static str {
match self {
PeriodType::Unspecified => "PERIOD_TYPE_UNSPECIFIED",
PeriodType::Day => "DAY",
PeriodType::Month => "MONTH",
PeriodType::Year => "YEAR",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PERIOD_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"DAY" => Some(Self::Day),
"MONTH" => Some(Self::Month),
"YEAR" => Some(Self::Year),
_ => None,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Entitlement {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "5")]
pub create_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "6")]
pub update_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "8")]
pub offer: ::prost::alloc::string::String,
#[prost(message, optional, tag = "12")]
pub commitment_settings: ::core::option::Option<CommitmentSettings>,
#[prost(enumeration = "entitlement::ProvisioningState", tag = "13")]
pub provisioning_state: i32,
#[prost(message, optional, tag = "16")]
pub provisioned_service: ::core::option::Option<ProvisionedService>,
#[prost(
enumeration = "entitlement::SuspensionReason",
repeated,
packed = "false",
tag = "18"
)]
pub suspension_reasons: ::prost::alloc::vec::Vec<i32>,
#[prost(string, tag = "19")]
pub purchase_order_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "21")]
pub trial_settings: ::core::option::Option<TrialSettings>,
#[prost(message, optional, tag = "23")]
pub association_info: ::core::option::Option<AssociationInfo>,
#[prost(message, repeated, tag = "26")]
pub parameters: ::prost::alloc::vec::Vec<Parameter>,
#[prost(string, tag = "28")]
pub billing_account: ::prost::alloc::string::String,
}
pub mod entitlement {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ProvisioningState {
Unspecified = 0,
Active = 1,
Suspended = 5,
}
impl ProvisioningState {
pub fn as_str_name(&self) -> &'static str {
match self {
ProvisioningState::Unspecified => "PROVISIONING_STATE_UNSPECIFIED",
ProvisioningState::Active => "ACTIVE",
ProvisioningState::Suspended => "SUSPENDED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PROVISIONING_STATE_UNSPECIFIED" => Some(Self::Unspecified),
"ACTIVE" => Some(Self::Active),
"SUSPENDED" => Some(Self::Suspended),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SuspensionReason {
Unspecified = 0,
ResellerInitiated = 1,
TrialEnded = 2,
RenewalWithTypeCancel = 3,
PendingTosAcceptance = 4,
Other = 100,
}
impl SuspensionReason {
pub fn as_str_name(&self) -> &'static str {
match self {
SuspensionReason::Unspecified => "SUSPENSION_REASON_UNSPECIFIED",
SuspensionReason::ResellerInitiated => "RESELLER_INITIATED",
SuspensionReason::TrialEnded => "TRIAL_ENDED",
SuspensionReason::RenewalWithTypeCancel => "RENEWAL_WITH_TYPE_CANCEL",
SuspensionReason::PendingTosAcceptance => "PENDING_TOS_ACCEPTANCE",
SuspensionReason::Other => "OTHER",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SUSPENSION_REASON_UNSPECIFIED" => Some(Self::Unspecified),
"RESELLER_INITIATED" => Some(Self::ResellerInitiated),
"TRIAL_ENDED" => Some(Self::TrialEnded),
"RENEWAL_WITH_TYPE_CANCEL" => Some(Self::RenewalWithTypeCancel),
"PENDING_TOS_ACCEPTANCE" => Some(Self::PendingTosAcceptance),
"OTHER" => Some(Self::Other),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Parameter {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<Value>,
#[prost(bool, tag = "3")]
pub editable: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssociationInfo {
#[prost(string, tag = "1")]
pub base_entitlement: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProvisionedService {
#[prost(string, tag = "1")]
pub provisioning_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub product_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub sku_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitmentSettings {
#[prost(message, optional, tag = "1")]
pub start_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "2")]
pub end_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "4")]
pub renewal_settings: ::core::option::Option<RenewalSettings>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RenewalSettings {
#[prost(bool, tag = "1")]
pub enable_renewal: bool,
#[prost(bool, tag = "2")]
pub resize_unit_count: bool,
#[prost(enumeration = "PaymentPlan", tag = "5")]
pub payment_plan: i32,
#[prost(message, optional, tag = "6")]
pub payment_cycle: ::core::option::Option<Period>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TrialSettings {
#[prost(bool, tag = "1")]
pub trial: bool,
#[prost(message, optional, tag = "2")]
pub end_time: ::core::option::Option<::prost_types::Timestamp>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransferableSku {
#[prost(message, optional, tag = "9")]
pub transfer_eligibility: ::core::option::Option<TransferEligibility>,
#[prost(message, optional, tag = "11")]
pub sku: ::core::option::Option<Sku>,
#[prost(message, optional, tag = "12")]
pub legacy_sku: ::core::option::Option<Sku>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransferEligibility {
#[prost(bool, tag = "1")]
pub is_eligible: bool,
#[prost(string, tag = "2")]
pub description: ::prost::alloc::string::String,
#[prost(enumeration = "transfer_eligibility::Reason", tag = "3")]
pub ineligibility_reason: i32,
}
pub mod transfer_eligibility {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Reason {
Unspecified = 0,
PendingTosAcceptance = 1,
SkuNotEligible = 2,
SkuSuspended = 3,
ChannelPartnerNotAuthorizedForSku = 4,
}
impl Reason {
pub fn as_str_name(&self) -> &'static str {
match self {
Reason::Unspecified => "REASON_UNSPECIFIED",
Reason::PendingTosAcceptance => "PENDING_TOS_ACCEPTANCE",
Reason::SkuNotEligible => "SKU_NOT_ELIGIBLE",
Reason::SkuSuspended => "SKU_SUSPENDED",
Reason::ChannelPartnerNotAuthorizedForSku => {
"CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU"
}
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"REASON_UNSPECIFIED" => Some(Self::Unspecified),
"PENDING_TOS_ACCEPTANCE" => Some(Self::PendingTosAcceptance),
"SKU_NOT_ELIGIBLE" => Some(Self::SkuNotEligible),
"SKU_SUSPENDED" => Some(Self::SkuSuspended),
"CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU" => {
Some(Self::ChannelPartnerNotAuthorizedForSku)
}
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BillingAccount {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub display_name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub create_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "4")]
pub currency_code: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub region_code: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EntitlementChange {
#[prost(string, tag = "1")]
pub entitlement: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub offer: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub provisioned_service: ::core::option::Option<ProvisionedService>,
#[prost(enumeration = "entitlement_change::ChangeType", tag = "4")]
pub change_type: i32,
#[prost(message, optional, tag = "5")]
pub create_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(enumeration = "entitlement_change::OperatorType", tag = "6")]
pub operator_type: i32,
#[prost(message, repeated, tag = "8")]
pub parameters: ::prost::alloc::vec::Vec<Parameter>,
#[prost(string, tag = "12")]
pub operator: ::prost::alloc::string::String,
#[prost(oneof = "entitlement_change::ChangeReason", tags = "9, 10, 11, 100")]
pub change_reason: ::core::option::Option<entitlement_change::ChangeReason>,
}
pub mod entitlement_change {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ChangeType {
Unspecified = 0,
Created = 1,
PricePlanSwitched = 3,
CommitmentChanged = 4,
Renewed = 5,
Suspended = 6,
Activated = 7,
Cancelled = 8,
SkuChanged = 9,
RenewalSettingChanged = 10,
PaidSubscriptionStarted = 11,
LicenseCapChanged = 12,
SuspensionDetailsChanged = 13,
TrialEndDateExtended = 14,
TrialStarted = 15,
}
impl ChangeType {
pub fn as_str_name(&self) -> &'static str {
match self {
ChangeType::Unspecified => "CHANGE_TYPE_UNSPECIFIED",
ChangeType::Created => "CREATED",
ChangeType::PricePlanSwitched => "PRICE_PLAN_SWITCHED",
ChangeType::CommitmentChanged => "COMMITMENT_CHANGED",
ChangeType::Renewed => "RENEWED",
ChangeType::Suspended => "SUSPENDED",
ChangeType::Activated => "ACTIVATED",
ChangeType::Cancelled => "CANCELLED",
ChangeType::SkuChanged => "SKU_CHANGED",
ChangeType::RenewalSettingChanged => "RENEWAL_SETTING_CHANGED",
ChangeType::PaidSubscriptionStarted => "PAID_SUBSCRIPTION_STARTED",
ChangeType::LicenseCapChanged => "LICENSE_CAP_CHANGED",
ChangeType::SuspensionDetailsChanged => "SUSPENSION_DETAILS_CHANGED",
ChangeType::TrialEndDateExtended => "TRIAL_END_DATE_EXTENDED",
ChangeType::TrialStarted => "TRIAL_STARTED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CHANGE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"CREATED" => Some(Self::Created),
"PRICE_PLAN_SWITCHED" => Some(Self::PricePlanSwitched),
"COMMITMENT_CHANGED" => Some(Self::CommitmentChanged),
"RENEWED" => Some(Self::Renewed),
"SUSPENDED" => Some(Self::Suspended),
"ACTIVATED" => Some(Self::Activated),
"CANCELLED" => Some(Self::Cancelled),
"SKU_CHANGED" => Some(Self::SkuChanged),
"RENEWAL_SETTING_CHANGED" => Some(Self::RenewalSettingChanged),
"PAID_SUBSCRIPTION_STARTED" => Some(Self::PaidSubscriptionStarted),
"LICENSE_CAP_CHANGED" => Some(Self::LicenseCapChanged),
"SUSPENSION_DETAILS_CHANGED" => Some(Self::SuspensionDetailsChanged),
"TRIAL_END_DATE_EXTENDED" => Some(Self::TrialEndDateExtended),
"TRIAL_STARTED" => Some(Self::TrialStarted),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum OperatorType {
Unspecified = 0,
CustomerServiceRepresentative = 1,
System = 2,
Customer = 3,
Reseller = 4,
}
impl OperatorType {
pub fn as_str_name(&self) -> &'static str {
match self {
OperatorType::Unspecified => "OPERATOR_TYPE_UNSPECIFIED",
OperatorType::CustomerServiceRepresentative => {
"CUSTOMER_SERVICE_REPRESENTATIVE"
}
OperatorType::System => "SYSTEM",
OperatorType::Customer => "CUSTOMER",
OperatorType::Reseller => "RESELLER",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"OPERATOR_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"CUSTOMER_SERVICE_REPRESENTATIVE" => {
Some(Self::CustomerServiceRepresentative)
}
"SYSTEM" => Some(Self::System),
"CUSTOMER" => Some(Self::Customer),
"RESELLER" => Some(Self::Reseller),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CancellationReason {
Unspecified = 0,
ServiceTerminated = 1,
RelationshipEnded = 2,
PartialTransfer = 3,
}
impl CancellationReason {
pub fn as_str_name(&self) -> &'static str {
match self {
CancellationReason::Unspecified => "CANCELLATION_REASON_UNSPECIFIED",
CancellationReason::ServiceTerminated => "SERVICE_TERMINATED",
CancellationReason::RelationshipEnded => "RELATIONSHIP_ENDED",
CancellationReason::PartialTransfer => "PARTIAL_TRANSFER",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CANCELLATION_REASON_UNSPECIFIED" => Some(Self::Unspecified),
"SERVICE_TERMINATED" => Some(Self::ServiceTerminated),
"RELATIONSHIP_ENDED" => Some(Self::RelationshipEnded),
"PARTIAL_TRANSFER" => Some(Self::PartialTransfer),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ActivationReason {
Unspecified = 0,
ResellerRevokedSuspension = 1,
CustomerAcceptedPendingTos = 2,
RenewalSettingsChanged = 3,
OtherActivationReason = 100,
}
impl ActivationReason {
pub fn as_str_name(&self) -> &'static str {
match self {
ActivationReason::Unspecified => "ACTIVATION_REASON_UNSPECIFIED",
ActivationReason::ResellerRevokedSuspension => {
"RESELLER_REVOKED_SUSPENSION"
}
ActivationReason::CustomerAcceptedPendingTos => {
"CUSTOMER_ACCEPTED_PENDING_TOS"
}
ActivationReason::RenewalSettingsChanged => "RENEWAL_SETTINGS_CHANGED",
ActivationReason::OtherActivationReason => "OTHER_ACTIVATION_REASON",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ACTIVATION_REASON_UNSPECIFIED" => Some(Self::Unspecified),
"RESELLER_REVOKED_SUSPENSION" => Some(Self::ResellerRevokedSuspension),
"CUSTOMER_ACCEPTED_PENDING_TOS" => Some(Self::CustomerAcceptedPendingTos),
"RENEWAL_SETTINGS_CHANGED" => Some(Self::RenewalSettingsChanged),
"OTHER_ACTIVATION_REASON" => Some(Self::OtherActivationReason),
_ => None,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ChangeReason {
#[prost(enumeration = "super::entitlement::SuspensionReason", tag = "9")]
SuspensionReason(i32),
#[prost(enumeration = "CancellationReason", tag = "10")]
CancellationReason(i32),
#[prost(enumeration = "ActivationReason", tag = "11")]
ActivationReason(i32),
#[prost(string, tag = "100")]
OtherChangeReason(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerRepricingConfig {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub repricing_config: ::core::option::Option<RepricingConfig>,
#[prost(message, optional, tag = "3")]
pub update_time: ::core::option::Option<::prost_types::Timestamp>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChannelPartnerRepricingConfig {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub repricing_config: ::core::option::Option<RepricingConfig>,
#[prost(message, optional, tag = "3")]
pub update_time: ::core::option::Option<::prost_types::Timestamp>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RepricingConfig {
#[prost(message, optional, tag = "1")]
pub effective_invoice_month: ::core::option::Option<
super::super::super::r#type::Date,
>,
#[prost(message, optional, tag = "2")]
pub adjustment: ::core::option::Option<RepricingAdjustment>,
#[prost(enumeration = "RebillingBasis", tag = "3")]
pub rebilling_basis: i32,
#[prost(message, repeated, tag = "6")]
pub conditional_overrides: ::prost::alloc::vec::Vec<ConditionalOverride>,
#[prost(oneof = "repricing_config::Granularity", tags = "4, 5")]
pub granularity: ::core::option::Option<repricing_config::Granularity>,
}
pub mod repricing_config {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EntitlementGranularity {
#[prost(string, tag = "1")]
pub entitlement: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChannelPartnerGranularity {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Granularity {
#[prost(message, tag = "4")]
EntitlementGranularity(EntitlementGranularity),
#[prost(message, tag = "5")]
ChannelPartnerGranularity(ChannelPartnerGranularity),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RepricingAdjustment {
#[prost(oneof = "repricing_adjustment::Adjustment", tags = "2")]
pub adjustment: ::core::option::Option<repricing_adjustment::Adjustment>,
}
pub mod repricing_adjustment {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Adjustment {
#[prost(message, tag = "2")]
PercentageAdjustment(super::PercentageAdjustment),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PercentageAdjustment {
#[prost(message, optional, tag = "2")]
pub percentage: ::core::option::Option<super::super::super::r#type::Decimal>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConditionalOverride {
#[prost(message, optional, tag = "1")]
pub adjustment: ::core::option::Option<RepricingAdjustment>,
#[prost(enumeration = "RebillingBasis", tag = "2")]
pub rebilling_basis: i32,
#[prost(message, optional, tag = "3")]
pub repricing_condition: ::core::option::Option<RepricingCondition>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RepricingCondition {
#[prost(oneof = "repricing_condition::Condition", tags = "1")]
pub condition: ::core::option::Option<repricing_condition::Condition>,
}
pub mod repricing_condition {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Condition {
#[prost(message, tag = "1")]
SkuGroupCondition(super::SkuGroupCondition),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SkuGroupCondition {
#[prost(string, tag = "1")]
pub sku_group: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum RebillingBasis {
Unspecified = 0,
CostAtList = 1,
DirectCustomerCost = 2,
}
impl RebillingBasis {
pub fn as_str_name(&self) -> &'static str {
match self {
RebillingBasis::Unspecified => "REBILLING_BASIS_UNSPECIFIED",
RebillingBasis::CostAtList => "COST_AT_LIST",
RebillingBasis::DirectCustomerCost => "DIRECT_CUSTOMER_COST",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"REBILLING_BASIS_UNSPECIFIED" => Some(Self::Unspecified),
"COST_AT_LIST" => Some(Self::CostAtList),
"DIRECT_CUSTOMER_COST" => Some(Self::DirectCustomerCost),
_ => None,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckCloudIdentityAccountsExistRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub domain: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CloudIdentityCustomerAccount {
#[prost(bool, tag = "1")]
pub existing: bool,
#[prost(bool, tag = "2")]
pub owned: bool,
#[prost(string, tag = "3")]
pub customer_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub customer_cloud_identity_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckCloudIdentityAccountsExistResponse {
#[prost(message, repeated, tag = "1")]
pub cloud_identity_accounts: ::prost::alloc::vec::Vec<CloudIdentityCustomerAccount>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCustomersRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCustomersResponse {
#[prost(message, repeated, tag = "1")]
pub customers: ::prost::alloc::vec::Vec<Customer>,
#[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 GetCustomerRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateCustomerRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub customer: ::core::option::Option<Customer>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCustomerRequest {
#[prost(message, optional, tag = "2")]
pub customer: ::core::option::Option<Customer>,
#[prost(message, optional, tag = "3")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteCustomerRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ImportCustomerRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub auth_token: ::prost::alloc::string::String,
#[prost(bool, tag = "5")]
pub overwrite_if_exists: bool,
#[prost(string, tag = "6")]
pub channel_partner_id: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub customer: ::prost::alloc::string::String,
#[prost(oneof = "import_customer_request::CustomerIdentity", tags = "2, 3")]
pub customer_identity: ::core::option::Option<
import_customer_request::CustomerIdentity,
>,
}
pub mod import_customer_request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CustomerIdentity {
#[prost(string, tag = "2")]
Domain(::prost::alloc::string::String),
#[prost(string, tag = "3")]
CloudIdentityId(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProvisionCloudIdentityRequest {
#[prost(string, tag = "1")]
pub customer: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub cloud_identity_info: ::core::option::Option<CloudIdentityInfo>,
#[prost(message, optional, tag = "3")]
pub user: ::core::option::Option<AdminUser>,
#[prost(bool, tag = "4")]
pub validate_only: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListEntitlementsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListEntitlementsResponse {
#[prost(message, repeated, tag = "1")]
pub entitlements: ::prost::alloc::vec::Vec<Entitlement>,
#[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 ListTransferableSkusRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub auth_token: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub language_code: ::prost::alloc::string::String,
#[prost(
oneof = "list_transferable_skus_request::TransferredCustomerIdentity",
tags = "4, 7"
)]
pub transferred_customer_identity: ::core::option::Option<
list_transferable_skus_request::TransferredCustomerIdentity,
>,
}
pub mod list_transferable_skus_request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum TransferredCustomerIdentity {
#[prost(string, tag = "4")]
CloudIdentityId(::prost::alloc::string::String),
#[prost(string, tag = "7")]
CustomerName(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTransferableSkusResponse {
#[prost(message, repeated, tag = "1")]
pub transferable_skus: ::prost::alloc::vec::Vec<TransferableSku>,
#[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 ListTransferableOffersRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub sku: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub language_code: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub billing_account: ::prost::alloc::string::String,
#[prost(
oneof = "list_transferable_offers_request::TransferredCustomerIdentity",
tags = "4, 5"
)]
pub transferred_customer_identity: ::core::option::Option<
list_transferable_offers_request::TransferredCustomerIdentity,
>,
}
pub mod list_transferable_offers_request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum TransferredCustomerIdentity {
#[prost(string, tag = "4")]
CloudIdentityId(::prost::alloc::string::String),
#[prost(string, tag = "5")]
CustomerName(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTransferableOffersResponse {
#[prost(message, repeated, tag = "1")]
pub transferable_offers: ::prost::alloc::vec::Vec<TransferableOffer>,
#[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 TransferableOffer {
#[prost(message, optional, tag = "1")]
pub offer: ::core::option::Option<Offer>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetEntitlementRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListChannelPartnerLinksRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(enumeration = "ChannelPartnerLinkView", tag = "4")]
pub view: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListChannelPartnerLinksResponse {
#[prost(message, repeated, tag = "1")]
pub channel_partner_links: ::prost::alloc::vec::Vec<ChannelPartnerLink>,
#[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 GetChannelPartnerLinkRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(enumeration = "ChannelPartnerLinkView", tag = "2")]
pub view: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateChannelPartnerLinkRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub channel_partner_link: ::core::option::Option<ChannelPartnerLink>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateChannelPartnerLinkRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub channel_partner_link: ::core::option::Option<ChannelPartnerLink>,
#[prost(message, optional, tag = "3")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCustomerRepricingConfigRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCustomerRepricingConfigsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCustomerRepricingConfigsResponse {
#[prost(message, repeated, tag = "1")]
pub customer_repricing_configs: ::prost::alloc::vec::Vec<CustomerRepricingConfig>,
#[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 CreateCustomerRepricingConfigRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub customer_repricing_config: ::core::option::Option<CustomerRepricingConfig>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCustomerRepricingConfigRequest {
#[prost(message, optional, tag = "1")]
pub customer_repricing_config: ::core::option::Option<CustomerRepricingConfig>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteCustomerRepricingConfigRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetChannelPartnerRepricingConfigRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListChannelPartnerRepricingConfigsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListChannelPartnerRepricingConfigsResponse {
#[prost(message, repeated, tag = "1")]
pub channel_partner_repricing_configs: ::prost::alloc::vec::Vec<
ChannelPartnerRepricingConfig,
>,
#[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 CreateChannelPartnerRepricingConfigRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub channel_partner_repricing_config: ::core::option::Option<
ChannelPartnerRepricingConfig,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateChannelPartnerRepricingConfigRequest {
#[prost(message, optional, tag = "1")]
pub channel_partner_repricing_config: ::core::option::Option<
ChannelPartnerRepricingConfig,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteChannelPartnerRepricingConfigRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSkuGroupsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSkuGroupBillableSkusRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSkuGroupsResponse {
#[prost(message, repeated, tag = "1")]
pub sku_groups: ::prost::alloc::vec::Vec<SkuGroup>,
#[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 ListSkuGroupBillableSkusResponse {
#[prost(message, repeated, tag = "1")]
pub billable_skus: ::prost::alloc::vec::Vec<BillableSku>,
#[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 SkuGroup {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub display_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BillableSku {
#[prost(string, tag = "1")]
pub sku: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub sku_display_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub service: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub service_display_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateEntitlementRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub entitlement: ::core::option::Option<Entitlement>,
#[prost(string, tag = "5")]
pub request_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransferEntitlementsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub entitlements: ::prost::alloc::vec::Vec<Entitlement>,
#[prost(string, tag = "4")]
pub auth_token: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub request_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransferEntitlementsResponse {
#[prost(message, repeated, tag = "1")]
pub entitlements: ::prost::alloc::vec::Vec<Entitlement>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransferEntitlementsToGoogleRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub entitlements: ::prost::alloc::vec::Vec<Entitlement>,
#[prost(string, tag = "3")]
pub request_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeParametersRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub parameters: ::prost::alloc::vec::Vec<Parameter>,
#[prost(string, tag = "4")]
pub request_id: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub purchase_order_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeRenewalSettingsRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "4")]
pub renewal_settings: ::core::option::Option<RenewalSettings>,
#[prost(string, tag = "5")]
pub request_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeOfferRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub offer: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "3")]
pub parameters: ::prost::alloc::vec::Vec<Parameter>,
#[prost(string, tag = "5")]
pub purchase_order_id: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub request_id: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub billing_account: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartPaidServiceRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub request_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CancelEntitlementRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub request_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SuspendEntitlementRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub request_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActivateEntitlementRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub request_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LookupOfferRequest {
#[prost(string, tag = "1")]
pub entitlement: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListProductsRequest {
#[prost(string, tag = "1")]
pub account: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub language_code: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListProductsResponse {
#[prost(message, repeated, tag = "1")]
pub products: ::prost::alloc::vec::Vec<Product>,
#[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 ListSkusRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub account: ::prost::alloc::string::String,
#[prost(int32, tag = "3")]
pub page_size: i32,
#[prost(string, tag = "4")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub language_code: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSkusResponse {
#[prost(message, repeated, tag = "1")]
pub skus: ::prost::alloc::vec::Vec<Sku>,
#[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 ListOffersRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub language_code: ::prost::alloc::string::String,
#[prost(bool, tag = "7")]
pub show_future_offers: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListOffersResponse {
#[prost(message, repeated, tag = "1")]
pub offers: ::prost::alloc::vec::Vec<Offer>,
#[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 ListPurchasableSkusRequest {
#[prost(string, tag = "1")]
pub customer: ::prost::alloc::string::String,
#[prost(int32, tag = "4")]
pub page_size: i32,
#[prost(string, tag = "5")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub language_code: ::prost::alloc::string::String,
#[prost(oneof = "list_purchasable_skus_request::PurchaseOption", tags = "2, 3")]
pub purchase_option: ::core::option::Option<
list_purchasable_skus_request::PurchaseOption,
>,
}
pub mod list_purchasable_skus_request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateEntitlementPurchase {
#[prost(string, tag = "1")]
pub product: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeOfferPurchase {
#[prost(string, tag = "1")]
pub entitlement: ::prost::alloc::string::String,
#[prost(enumeration = "change_offer_purchase::ChangeType", tag = "2")]
pub change_type: i32,
}
pub mod change_offer_purchase {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ChangeType {
Unspecified = 0,
Upgrade = 1,
Downgrade = 2,
}
impl ChangeType {
pub fn as_str_name(&self) -> &'static str {
match self {
ChangeType::Unspecified => "CHANGE_TYPE_UNSPECIFIED",
ChangeType::Upgrade => "UPGRADE",
ChangeType::Downgrade => "DOWNGRADE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CHANGE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"UPGRADE" => Some(Self::Upgrade),
"DOWNGRADE" => Some(Self::Downgrade),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum PurchaseOption {
#[prost(message, tag = "2")]
CreateEntitlementPurchase(CreateEntitlementPurchase),
#[prost(message, tag = "3")]
ChangeOfferPurchase(ChangeOfferPurchase),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPurchasableSkusResponse {
#[prost(message, repeated, tag = "1")]
pub purchasable_skus: ::prost::alloc::vec::Vec<PurchasableSku>,
#[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 PurchasableSku {
#[prost(message, optional, tag = "1")]
pub sku: ::core::option::Option<Sku>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPurchasableOffersRequest {
#[prost(string, tag = "1")]
pub customer: ::prost::alloc::string::String,
#[prost(int32, tag = "4")]
pub page_size: i32,
#[prost(string, tag = "5")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub language_code: ::prost::alloc::string::String,
#[prost(oneof = "list_purchasable_offers_request::PurchaseOption", tags = "2, 3")]
pub purchase_option: ::core::option::Option<
list_purchasable_offers_request::PurchaseOption,
>,
}
pub mod list_purchasable_offers_request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateEntitlementPurchase {
#[prost(string, tag = "1")]
pub sku: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub billing_account: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeOfferPurchase {
#[prost(string, tag = "1")]
pub entitlement: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub new_sku: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub billing_account: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum PurchaseOption {
#[prost(message, tag = "2")]
CreateEntitlementPurchase(CreateEntitlementPurchase),
#[prost(message, tag = "3")]
ChangeOfferPurchase(ChangeOfferPurchase),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPurchasableOffersResponse {
#[prost(message, repeated, tag = "1")]
pub purchasable_offers: ::prost::alloc::vec::Vec<PurchasableOffer>,
#[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 PurchasableOffer {
#[prost(message, optional, tag = "1")]
pub offer: ::core::option::Option<Offer>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryEligibleBillingAccountsRequest {
#[prost(string, tag = "1")]
pub customer: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub skus: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryEligibleBillingAccountsResponse {
#[prost(message, repeated, tag = "1")]
pub sku_purchase_groups: ::prost::alloc::vec::Vec<SkuPurchaseGroup>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SkuPurchaseGroup {
#[prost(string, repeated, tag = "1")]
pub skus: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "2")]
pub billing_account_purchase_infos: ::prost::alloc::vec::Vec<
BillingAccountPurchaseInfo,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BillingAccountPurchaseInfo {
#[prost(message, optional, tag = "1")]
pub billing_account: ::core::option::Option<BillingAccount>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterSubscriberRequest {
#[prost(string, tag = "1")]
pub account: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub service_account: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterSubscriberResponse {
#[prost(string, tag = "1")]
pub topic: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnregisterSubscriberRequest {
#[prost(string, tag = "1")]
pub account: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub service_account: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnregisterSubscriberResponse {
#[prost(string, tag = "1")]
pub topic: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSubscribersRequest {
#[prost(string, tag = "1")]
pub account: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSubscribersResponse {
#[prost(string, tag = "1")]
pub topic: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub service_accounts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListEntitlementChangesRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListEntitlementChangesResponse {
#[prost(message, repeated, tag = "1")]
pub entitlement_changes: ::prost::alloc::vec::Vec<EntitlementChange>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
pub mod cloud_channel_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct CloudChannelServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> CloudChannelServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> CloudChannelServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
CloudChannelServiceClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
pub async fn list_customers(
&mut self,
request: impl tonic::IntoRequest<super::ListCustomersRequest>,
) -> std::result::Result<
tonic::Response<super::ListCustomersResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListCustomers",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListCustomers",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_customer(
&mut self,
request: impl tonic::IntoRequest<super::GetCustomerRequest>,
) -> std::result::Result<tonic::Response<super::Customer>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/GetCustomer",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"GetCustomer",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn check_cloud_identity_accounts_exist(
&mut self,
request: impl tonic::IntoRequest<
super::CheckCloudIdentityAccountsExistRequest,
>,
) -> std::result::Result<
tonic::Response<super::CheckCloudIdentityAccountsExistResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/CheckCloudIdentityAccountsExist",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"CheckCloudIdentityAccountsExist",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn create_customer(
&mut self,
request: impl tonic::IntoRequest<super::CreateCustomerRequest>,
) -> std::result::Result<tonic::Response<super::Customer>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/CreateCustomer",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"CreateCustomer",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn update_customer(
&mut self,
request: impl tonic::IntoRequest<super::UpdateCustomerRequest>,
) -> std::result::Result<tonic::Response<super::Customer>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/UpdateCustomer",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"UpdateCustomer",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn delete_customer(
&mut self,
request: impl tonic::IntoRequest<super::DeleteCustomerRequest>,
) -> std::result::Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/DeleteCustomer",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"DeleteCustomer",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn import_customer(
&mut self,
request: impl tonic::IntoRequest<super::ImportCustomerRequest>,
) -> std::result::Result<tonic::Response<super::Customer>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ImportCustomer",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ImportCustomer",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn provision_cloud_identity(
&mut self,
request: impl tonic::IntoRequest<super::ProvisionCloudIdentityRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::longrunning::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ProvisionCloudIdentity",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ProvisionCloudIdentity",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_entitlements(
&mut self,
request: impl tonic::IntoRequest<super::ListEntitlementsRequest>,
) -> std::result::Result<
tonic::Response<super::ListEntitlementsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListEntitlements",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListEntitlements",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_transferable_skus(
&mut self,
request: impl tonic::IntoRequest<super::ListTransferableSkusRequest>,
) -> std::result::Result<
tonic::Response<super::ListTransferableSkusResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListTransferableSkus",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListTransferableSkus",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_transferable_offers(
&mut self,
request: impl tonic::IntoRequest<super::ListTransferableOffersRequest>,
) -> std::result::Result<
tonic::Response<super::ListTransferableOffersResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListTransferableOffers",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListTransferableOffers",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_entitlement(
&mut self,
request: impl tonic::IntoRequest<super::GetEntitlementRequest>,
) -> std::result::Result<tonic::Response<super::Entitlement>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/GetEntitlement",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"GetEntitlement",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn create_entitlement(
&mut self,
request: impl tonic::IntoRequest<super::CreateEntitlementRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::longrunning::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/CreateEntitlement",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"CreateEntitlement",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn change_parameters(
&mut self,
request: impl tonic::IntoRequest<super::ChangeParametersRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::longrunning::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ChangeParameters",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ChangeParameters",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn change_renewal_settings(
&mut self,
request: impl tonic::IntoRequest<super::ChangeRenewalSettingsRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::longrunning::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ChangeRenewalSettings",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ChangeRenewalSettings",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn change_offer(
&mut self,
request: impl tonic::IntoRequest<super::ChangeOfferRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::longrunning::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ChangeOffer",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ChangeOffer",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn start_paid_service(
&mut self,
request: impl tonic::IntoRequest<super::StartPaidServiceRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::longrunning::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/StartPaidService",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"StartPaidService",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn suspend_entitlement(
&mut self,
request: impl tonic::IntoRequest<super::SuspendEntitlementRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::longrunning::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/SuspendEntitlement",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"SuspendEntitlement",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn cancel_entitlement(
&mut self,
request: impl tonic::IntoRequest<super::CancelEntitlementRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::longrunning::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/CancelEntitlement",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"CancelEntitlement",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn activate_entitlement(
&mut self,
request: impl tonic::IntoRequest<super::ActivateEntitlementRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::longrunning::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ActivateEntitlement",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ActivateEntitlement",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn transfer_entitlements(
&mut self,
request: impl tonic::IntoRequest<super::TransferEntitlementsRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::longrunning::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/TransferEntitlements",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"TransferEntitlements",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn transfer_entitlements_to_google(
&mut self,
request: impl tonic::IntoRequest<super::TransferEntitlementsToGoogleRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::longrunning::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/TransferEntitlementsToGoogle",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"TransferEntitlementsToGoogle",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_channel_partner_links(
&mut self,
request: impl tonic::IntoRequest<super::ListChannelPartnerLinksRequest>,
) -> std::result::Result<
tonic::Response<super::ListChannelPartnerLinksResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListChannelPartnerLinks",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListChannelPartnerLinks",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_channel_partner_link(
&mut self,
request: impl tonic::IntoRequest<super::GetChannelPartnerLinkRequest>,
) -> std::result::Result<
tonic::Response<super::ChannelPartnerLink>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/GetChannelPartnerLink",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"GetChannelPartnerLink",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn create_channel_partner_link(
&mut self,
request: impl tonic::IntoRequest<super::CreateChannelPartnerLinkRequest>,
) -> std::result::Result<
tonic::Response<super::ChannelPartnerLink>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/CreateChannelPartnerLink",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"CreateChannelPartnerLink",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn update_channel_partner_link(
&mut self,
request: impl tonic::IntoRequest<super::UpdateChannelPartnerLinkRequest>,
) -> std::result::Result<
tonic::Response<super::ChannelPartnerLink>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/UpdateChannelPartnerLink",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"UpdateChannelPartnerLink",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_customer_repricing_config(
&mut self,
request: impl tonic::IntoRequest<super::GetCustomerRepricingConfigRequest>,
) -> std::result::Result<
tonic::Response<super::CustomerRepricingConfig>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/GetCustomerRepricingConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"GetCustomerRepricingConfig",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_customer_repricing_configs(
&mut self,
request: impl tonic::IntoRequest<super::ListCustomerRepricingConfigsRequest>,
) -> std::result::Result<
tonic::Response<super::ListCustomerRepricingConfigsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListCustomerRepricingConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListCustomerRepricingConfigs",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn create_customer_repricing_config(
&mut self,
request: impl tonic::IntoRequest<super::CreateCustomerRepricingConfigRequest>,
) -> std::result::Result<
tonic::Response<super::CustomerRepricingConfig>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/CreateCustomerRepricingConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"CreateCustomerRepricingConfig",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn update_customer_repricing_config(
&mut self,
request: impl tonic::IntoRequest<super::UpdateCustomerRepricingConfigRequest>,
) -> std::result::Result<
tonic::Response<super::CustomerRepricingConfig>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/UpdateCustomerRepricingConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"UpdateCustomerRepricingConfig",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn delete_customer_repricing_config(
&mut self,
request: impl tonic::IntoRequest<super::DeleteCustomerRepricingConfigRequest>,
) -> std::result::Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/DeleteCustomerRepricingConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"DeleteCustomerRepricingConfig",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_channel_partner_repricing_config(
&mut self,
request: impl tonic::IntoRequest<
super::GetChannelPartnerRepricingConfigRequest,
>,
) -> std::result::Result<
tonic::Response<super::ChannelPartnerRepricingConfig>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/GetChannelPartnerRepricingConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"GetChannelPartnerRepricingConfig",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_channel_partner_repricing_configs(
&mut self,
request: impl tonic::IntoRequest<
super::ListChannelPartnerRepricingConfigsRequest,
>,
) -> std::result::Result<
tonic::Response<super::ListChannelPartnerRepricingConfigsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListChannelPartnerRepricingConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListChannelPartnerRepricingConfigs",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn create_channel_partner_repricing_config(
&mut self,
request: impl tonic::IntoRequest<
super::CreateChannelPartnerRepricingConfigRequest,
>,
) -> std::result::Result<
tonic::Response<super::ChannelPartnerRepricingConfig>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/CreateChannelPartnerRepricingConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"CreateChannelPartnerRepricingConfig",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn update_channel_partner_repricing_config(
&mut self,
request: impl tonic::IntoRequest<
super::UpdateChannelPartnerRepricingConfigRequest,
>,
) -> std::result::Result<
tonic::Response<super::ChannelPartnerRepricingConfig>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/UpdateChannelPartnerRepricingConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"UpdateChannelPartnerRepricingConfig",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn delete_channel_partner_repricing_config(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteChannelPartnerRepricingConfigRequest,
>,
) -> std::result::Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/DeleteChannelPartnerRepricingConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"DeleteChannelPartnerRepricingConfig",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_sku_groups(
&mut self,
request: impl tonic::IntoRequest<super::ListSkuGroupsRequest>,
) -> std::result::Result<
tonic::Response<super::ListSkuGroupsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListSkuGroups",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListSkuGroups",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_sku_group_billable_skus(
&mut self,
request: impl tonic::IntoRequest<super::ListSkuGroupBillableSkusRequest>,
) -> std::result::Result<
tonic::Response<super::ListSkuGroupBillableSkusResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListSkuGroupBillableSkus",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListSkuGroupBillableSkus",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn lookup_offer(
&mut self,
request: impl tonic::IntoRequest<super::LookupOfferRequest>,
) -> std::result::Result<tonic::Response<super::Offer>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/LookupOffer",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"LookupOffer",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_products(
&mut self,
request: impl tonic::IntoRequest<super::ListProductsRequest>,
) -> std::result::Result<
tonic::Response<super::ListProductsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListProducts",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListProducts",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_skus(
&mut self,
request: impl tonic::IntoRequest<super::ListSkusRequest>,
) -> std::result::Result<
tonic::Response<super::ListSkusResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListSkus",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListSkus",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_offers(
&mut self,
request: impl tonic::IntoRequest<super::ListOffersRequest>,
) -> std::result::Result<
tonic::Response<super::ListOffersResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListOffers",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListOffers",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_purchasable_skus(
&mut self,
request: impl tonic::IntoRequest<super::ListPurchasableSkusRequest>,
) -> std::result::Result<
tonic::Response<super::ListPurchasableSkusResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListPurchasableSkus",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListPurchasableSkus",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_purchasable_offers(
&mut self,
request: impl tonic::IntoRequest<super::ListPurchasableOffersRequest>,
) -> std::result::Result<
tonic::Response<super::ListPurchasableOffersResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListPurchasableOffers",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListPurchasableOffers",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn query_eligible_billing_accounts(
&mut self,
request: impl tonic::IntoRequest<super::QueryEligibleBillingAccountsRequest>,
) -> std::result::Result<
tonic::Response<super::QueryEligibleBillingAccountsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/QueryEligibleBillingAccounts",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"QueryEligibleBillingAccounts",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn register_subscriber(
&mut self,
request: impl tonic::IntoRequest<super::RegisterSubscriberRequest>,
) -> std::result::Result<
tonic::Response<super::RegisterSubscriberResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/RegisterSubscriber",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"RegisterSubscriber",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn unregister_subscriber(
&mut self,
request: impl tonic::IntoRequest<super::UnregisterSubscriberRequest>,
) -> std::result::Result<
tonic::Response<super::UnregisterSubscriberResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/UnregisterSubscriber",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"UnregisterSubscriber",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_subscribers(
&mut self,
request: impl tonic::IntoRequest<super::ListSubscribersRequest>,
) -> std::result::Result<
tonic::Response<super::ListSubscribersResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListSubscribers",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListSubscribers",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_entitlement_changes(
&mut self,
request: impl tonic::IntoRequest<super::ListEntitlementChangesRequest>,
) -> std::result::Result<
tonic::Response<super::ListEntitlementChangesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.channel.v1.CloudChannelService/ListEntitlementChanges",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.channel.v1.CloudChannelService",
"ListEntitlementChanges",
),
);
self.inner.unary(req, path, codec).await
}
}
}