Class 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.GeneratedMessageV3.Builder<BillingSettings.Builder>
    implements BillingSettingsOrBuilder
     Billing settings
     
    Protobuf type google.cloud.securitycenter.settings.v1beta1.BillingSettings
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public BillingSettings.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<BillingSettings.Builder>
      • setField

        public BillingSettings.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<BillingSettings.Builder>
      • clearField

        public BillingSettings.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<BillingSettings.Builder>
      • clearOneof

        public BillingSettings.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BillingSettings.Builder>
      • setRepeatedField

        public BillingSettings.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BillingSettings.Builder>
      • addRepeatedField

        public BillingSettings.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BillingSettings.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • setUnknownFields

        public final BillingSettings.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BillingSettings.Builder>
      • mergeUnknownFields

        public final BillingSettings.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BillingSettings.Builder>