1// Copyright 2020 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package google.cloud.securitycenter.settings.v1beta1; 18 19import "google/api/field_behavior.proto"; 20import "google/protobuf/timestamp.proto"; 21 22option cc_enable_arenas = true; 23option csharp_namespace = "Google.Cloud.SecurityCenter.Settings.V1Beta1"; 24option go_package = "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb;settingspb"; 25option java_multiple_files = true; 26option java_outer_classname = "BillingSettingsProto"; 27option java_package = "com.google.cloud.securitycenter.settings.v1beta1"; 28option php_namespace = "Google\\Cloud\\SecurityCenter\\Settings\\V1beta1"; 29option ruby_package = "Google::Cloud::SecurityCenter::Settings::V1beta1"; 30 31// If this field is populated and billing_tier is STANDARD, this is 32// indication of a point in the _past_ when a PREMIUM access ended. 33 34// Billing settings 35message BillingSettings { 36 // Output only. Billing tier selected by customer 37 BillingTier billing_tier = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; 38 39 // Output only. Type of billing method 40 BillingType billing_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; 41 42 // Output only. The absolute point in time when the subscription became effective. 43 // Can be compared to expire_time value to determine full contract duration 44 google.protobuf.Timestamp start_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; 45 46 // Output only. The absolute point in time when the subscription expires. 47 // 48 // If this field is populated and billing_tier is STANDARD, this is 49 // indication of a point in the _past_ when a PREMIUM access ended. 50 google.protobuf.Timestamp expire_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; 51} 52 53// Billing tier options 54enum BillingTier { 55 // Default value. This value is unused. 56 BILLING_TIER_UNSPECIFIED = 0; 57 58 // The standard billing tier. 59 STANDARD = 1; 60 61 // The premium billing tier. 62 PREMIUM = 2; 63} 64 65// Billing type 66enum BillingType { 67 // Default billing type 68 BILLING_TYPE_UNSPECIFIED = 0; 69 70 // Subscription for Premium billing tier 71 SUBSCRIPTION = 1; 72 73 // Trial subscription for Premium billing tier 74 TRIAL_SUBSCRIPTION = 2; 75 76 // Alpha customer for Premium billing tier 77 ALPHA = 3; 78} 79