Class BillingSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BillingSettings.Builder>
com.google.cloud.securitycenter.settings.v1beta1.BillingSettings.Builder
All Implemented Interfaces:
BillingSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BillingSettings

public static final class BillingSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<BillingSettings.Builder> implements BillingSettingsOrBuilder
 Billing settings
 
Protobuf type google.cloud.securitycenter.settings.v1beta1.BillingSettings
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BillingSettings.Builder>
    • clear

      public BillingSettings.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<BillingSettings.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<BillingSettings.Builder>
    • getDefaultInstanceForType

      public BillingSettings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public BillingSettings build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BillingSettings buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BillingSettings.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BillingSettings.Builder>
    • mergeFrom

      public BillingSettings.Builder mergeFrom(BillingSettings other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BillingSettings.Builder>
    • mergeFrom

      public BillingSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BillingSettings.Builder>
      Throws:
      IOException
    • getBillingTierValue

      public int getBillingTierValue()
       Output only. Billing tier selected by customer
       
      .google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBillingTierValue in interface BillingSettingsOrBuilder
      Returns:
      The enum numeric value on the wire for billingTier.
    • setBillingTierValue

      public BillingSettings.Builder setBillingTierValue(int value)
       Output only. Billing tier selected by customer
       
      .google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for billingTier to set.
      Returns:
      This builder for chaining.
    • getBillingTier

      public BillingTier getBillingTier()
       Output only. Billing tier selected by customer
       
      .google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBillingTier in interface BillingSettingsOrBuilder
      Returns:
      The billingTier.
    • setBillingTier

      public BillingSettings.Builder setBillingTier(BillingTier value)
       Output only. Billing tier selected by customer
       
      .google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The billingTier to set.
      Returns:
      This builder for chaining.
    • clearBillingTier

      public BillingSettings.Builder clearBillingTier()
       Output only. Billing tier selected by customer
       
      .google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getBillingTypeValue

      public int getBillingTypeValue()
       Output only. Type of billing method
       
      .google.cloud.securitycenter.settings.v1beta1.BillingType billing_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBillingTypeValue in interface BillingSettingsOrBuilder
      Returns:
      The enum numeric value on the wire for billingType.
    • setBillingTypeValue

      public BillingSettings.Builder setBillingTypeValue(int value)
       Output only. Type of billing method
       
      .google.cloud.securitycenter.settings.v1beta1.BillingType billing_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for billingType to set.
      Returns:
      This builder for chaining.
    • getBillingType

      public BillingType getBillingType()
       Output only. Type of billing method
       
      .google.cloud.securitycenter.settings.v1beta1.BillingType billing_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBillingType in interface BillingSettingsOrBuilder
      Returns:
      The billingType.
    • setBillingType

      public BillingSettings.Builder setBillingType(BillingType value)
       Output only. Type of billing method
       
      .google.cloud.securitycenter.settings.v1beta1.BillingType billing_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The billingType to set.
      Returns:
      This builder for chaining.
    • clearBillingType

      public BillingSettings.Builder clearBillingType()
       Output only. Type of billing method
       
      .google.cloud.securitycenter.settings.v1beta1.BillingType billing_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasStartTime

      public boolean hasStartTime()
       Output only. The absolute point in time when the subscription became effective.
       Can be compared to expire_time value to determine full contract duration
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasStartTime in interface BillingSettingsOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Output only. The absolute point in time when the subscription became effective.
       Can be compared to expire_time value to determine full contract duration
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartTime in interface BillingSettingsOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public BillingSettings.Builder setStartTime(com.google.protobuf.Timestamp value)
       Output only. The absolute point in time when the subscription became effective.
       Can be compared to expire_time value to determine full contract duration
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setStartTime

      public BillingSettings.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The absolute point in time when the subscription became effective.
       Can be compared to expire_time value to determine full contract duration
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeStartTime

      public BillingSettings.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Output only. The absolute point in time when the subscription became effective.
       Can be compared to expire_time value to determine full contract duration
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearStartTime

      public BillingSettings.Builder clearStartTime()
       Output only. The absolute point in time when the subscription became effective.
       Can be compared to expire_time value to determine full contract duration
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Output only. The absolute point in time when the subscription became effective.
       Can be compared to expire_time value to determine full contract duration
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Output only. The absolute point in time when the subscription became effective.
       Can be compared to expire_time value to determine full contract duration
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartTimeOrBuilder in interface BillingSettingsOrBuilder
    • hasExpireTime

      public boolean hasExpireTime()
       Output only. The absolute point in time when the subscription expires.
      
       If this field is populated and billing_tier is STANDARD, this is
       indication of a point in the _past_ when a PREMIUM access ended.
       
      .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasExpireTime in interface BillingSettingsOrBuilder
      Returns:
      Whether the expireTime field is set.
    • getExpireTime

      public com.google.protobuf.Timestamp getExpireTime()
       Output only. The absolute point in time when the subscription expires.
      
       If this field is populated and billing_tier is STANDARD, this is
       indication of a point in the _past_ when a PREMIUM access ended.
       
      .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExpireTime in interface BillingSettingsOrBuilder
      Returns:
      The expireTime.
    • setExpireTime

      public BillingSettings.Builder setExpireTime(com.google.protobuf.Timestamp value)
       Output only. The absolute point in time when the subscription expires.
      
       If this field is populated and billing_tier is STANDARD, this is
       indication of a point in the _past_ when a PREMIUM access ended.
       
      .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setExpireTime

      public BillingSettings.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The absolute point in time when the subscription expires.
      
       If this field is populated and billing_tier is STANDARD, this is
       indication of a point in the _past_ when a PREMIUM access ended.
       
      .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeExpireTime

      public BillingSettings.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
       Output only. The absolute point in time when the subscription expires.
      
       If this field is populated and billing_tier is STANDARD, this is
       indication of a point in the _past_ when a PREMIUM access ended.
       
      .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearExpireTime

      public BillingSettings.Builder clearExpireTime()
       Output only. The absolute point in time when the subscription expires.
      
       If this field is populated and billing_tier is STANDARD, this is
       indication of a point in the _past_ when a PREMIUM access ended.
       
      .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getExpireTimeBuilder

      public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
       Output only. The absolute point in time when the subscription expires.
      
       If this field is populated and billing_tier is STANDARD, this is
       indication of a point in the _past_ when a PREMIUM access ended.
       
      .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getExpireTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
       Output only. The absolute point in time when the subscription expires.
      
       If this field is populated and billing_tier is STANDARD, this is
       indication of a point in the _past_ when a PREMIUM access ended.
       
      .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExpireTimeOrBuilder in interface BillingSettingsOrBuilder