billing_settings.proto 2.8 KB

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