billing_settings.proto 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. syntax = "proto3";
  15. package google.cloud.securitycenter.settings.v1beta1;
  16. import "google/api/field_behavior.proto";
  17. import "google/protobuf/timestamp.proto";
  18. option cc_enable_arenas = true;
  19. option csharp_namespace = "Google.Cloud.SecurityCenter.Settings.V1Beta1";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1;settings";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "BillingSettingsProto";
  23. option java_package = "com.google.cloud.securitycenter.settings.v1beta1";
  24. option php_namespace = "Google\\Cloud\\SecurityCenter\\Settings\\V1beta1";
  25. option ruby_package = "Google::Cloud::SecurityCenter::Settings::V1beta1";
  26. // If this field is populated and billing_tier is STANDARD, this is
  27. // indication of a point in the _past_ when a PREMIUM access ended.
  28. // Billing settings
  29. message BillingSettings {
  30. // Output only. Billing tier selected by customer
  31. BillingTier billing_tier = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  32. // Output only. Type of billing method
  33. BillingType billing_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  34. // Output only. The absolute point in time when the subscription became effective.
  35. // Can be compared to expire_time value to determine full contract duration
  36. google.protobuf.Timestamp start_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  37. // Output only. The absolute point in time when the subscription expires.
  38. //
  39. // If this field is populated and billing_tier is STANDARD, this is
  40. // indication of a point in the _past_ when a PREMIUM access ended.
  41. google.protobuf.Timestamp expire_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  42. }
  43. // Billing tier options
  44. enum BillingTier {
  45. // Default value. This value is unused.
  46. BILLING_TIER_UNSPECIFIED = 0;
  47. // The standard billing tier.
  48. STANDARD = 1;
  49. // The premium billing tier.
  50. PREMIUM = 2;
  51. }
  52. // Billing type
  53. enum BillingType {
  54. // Default billing type
  55. BILLING_TYPE_UNSPECIFIED = 0;
  56. // Subscription for Premium billing tier
  57. SUBSCRIPTION = 1;
  58. // Trial subscription for Premium billing tier
  59. TRIAL_SUBSCRIPTION = 2;
  60. // Alpha customer for Premium billing tier
  61. ALPHA = 3;
  62. }