Class Plan.Builder

  • All Implemented Interfaces:
    PlanOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Plan

    public static final class Plan.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
    implements PlanOrBuilder
     The payment plan for the Offer. Describes how to make a payment.
     
    Protobuf type google.cloud.channel.v1.Plan
    • 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<Plan.Builder>
      • clear

        public Plan.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<Plan.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<Plan.Builder>
      • getDefaultInstanceForType

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

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

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

        public Plan.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<Plan.Builder>
      • setField

        public Plan.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<Plan.Builder>
      • clearField

        public Plan.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<Plan.Builder>
      • clearOneof

        public Plan.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<Plan.Builder>
      • setRepeatedField

        public Plan.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<Plan.Builder>
      • addRepeatedField

        public Plan.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<Plan.Builder>
      • mergeFrom

        public Plan.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<Plan.Builder>
      • isInitialized

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

        public Plan.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<Plan.Builder>
        Throws:
        IOException
      • getPaymentPlanValue

        public int getPaymentPlanValue()
         Describes how a reseller will be billed.
         
        .google.cloud.channel.v1.PaymentPlan payment_plan = 1;
        Specified by:
        getPaymentPlanValue in interface PlanOrBuilder
        Returns:
        The enum numeric value on the wire for paymentPlan.
      • setPaymentPlanValue

        public Plan.Builder setPaymentPlanValue​(int value)
         Describes how a reseller will be billed.
         
        .google.cloud.channel.v1.PaymentPlan payment_plan = 1;
        Parameters:
        value - The enum numeric value on the wire for paymentPlan to set.
        Returns:
        This builder for chaining.
      • getPaymentPlan

        public PaymentPlan getPaymentPlan()
         Describes how a reseller will be billed.
         
        .google.cloud.channel.v1.PaymentPlan payment_plan = 1;
        Specified by:
        getPaymentPlan in interface PlanOrBuilder
        Returns:
        The paymentPlan.
      • setPaymentPlan

        public Plan.Builder setPaymentPlan​(PaymentPlan value)
         Describes how a reseller will be billed.
         
        .google.cloud.channel.v1.PaymentPlan payment_plan = 1;
        Parameters:
        value - The paymentPlan to set.
        Returns:
        This builder for chaining.
      • clearPaymentPlan

        public Plan.Builder clearPaymentPlan()
         Describes how a reseller will be billed.
         
        .google.cloud.channel.v1.PaymentPlan payment_plan = 1;
        Returns:
        This builder for chaining.
      • getPaymentTypeValue

        public int getPaymentTypeValue()
         Specifies when the payment needs to happen.
         
        .google.cloud.channel.v1.PaymentType payment_type = 2;
        Specified by:
        getPaymentTypeValue in interface PlanOrBuilder
        Returns:
        The enum numeric value on the wire for paymentType.
      • setPaymentTypeValue

        public Plan.Builder setPaymentTypeValue​(int value)
         Specifies when the payment needs to happen.
         
        .google.cloud.channel.v1.PaymentType payment_type = 2;
        Parameters:
        value - The enum numeric value on the wire for paymentType to set.
        Returns:
        This builder for chaining.
      • getPaymentType

        public PaymentType getPaymentType()
         Specifies when the payment needs to happen.
         
        .google.cloud.channel.v1.PaymentType payment_type = 2;
        Specified by:
        getPaymentType in interface PlanOrBuilder
        Returns:
        The paymentType.
      • setPaymentType

        public Plan.Builder setPaymentType​(PaymentType value)
         Specifies when the payment needs to happen.
         
        .google.cloud.channel.v1.PaymentType payment_type = 2;
        Parameters:
        value - The paymentType to set.
        Returns:
        This builder for chaining.
      • clearPaymentType

        public Plan.Builder clearPaymentType()
         Specifies when the payment needs to happen.
         
        .google.cloud.channel.v1.PaymentType payment_type = 2;
        Returns:
        This builder for chaining.
      • hasPaymentCycle

        public boolean hasPaymentCycle()
         Describes how frequently the reseller will be billed, such as
         once per month.
         
        .google.cloud.channel.v1.Period payment_cycle = 3;
        Specified by:
        hasPaymentCycle in interface PlanOrBuilder
        Returns:
        Whether the paymentCycle field is set.
      • getPaymentCycle

        public Period getPaymentCycle()
         Describes how frequently the reseller will be billed, such as
         once per month.
         
        .google.cloud.channel.v1.Period payment_cycle = 3;
        Specified by:
        getPaymentCycle in interface PlanOrBuilder
        Returns:
        The paymentCycle.
      • setPaymentCycle

        public Plan.Builder setPaymentCycle​(Period value)
         Describes how frequently the reseller will be billed, such as
         once per month.
         
        .google.cloud.channel.v1.Period payment_cycle = 3;
      • setPaymentCycle

        public Plan.Builder setPaymentCycle​(Period.Builder builderForValue)
         Describes how frequently the reseller will be billed, such as
         once per month.
         
        .google.cloud.channel.v1.Period payment_cycle = 3;
      • mergePaymentCycle

        public Plan.Builder mergePaymentCycle​(Period value)
         Describes how frequently the reseller will be billed, such as
         once per month.
         
        .google.cloud.channel.v1.Period payment_cycle = 3;
      • clearPaymentCycle

        public Plan.Builder clearPaymentCycle()
         Describes how frequently the reseller will be billed, such as
         once per month.
         
        .google.cloud.channel.v1.Period payment_cycle = 3;
      • getPaymentCycleBuilder

        public Period.Builder getPaymentCycleBuilder()
         Describes how frequently the reseller will be billed, such as
         once per month.
         
        .google.cloud.channel.v1.Period payment_cycle = 3;
      • getPaymentCycleOrBuilder

        public PeriodOrBuilder getPaymentCycleOrBuilder()
         Describes how frequently the reseller will be billed, such as
         once per month.
         
        .google.cloud.channel.v1.Period payment_cycle = 3;
        Specified by:
        getPaymentCycleOrBuilder in interface PlanOrBuilder
      • hasTrialPeriod

        public boolean hasTrialPeriod()
         Present for Offers with a trial period.
         For trial-only Offers, a paid service needs to start before the trial
         period ends for continued service.
         For Regular Offers with a trial period, the regular pricing goes into
         effect when trial period ends, or if paid service is started before the end
         of the trial period.
         
        .google.cloud.channel.v1.Period trial_period = 4;
        Specified by:
        hasTrialPeriod in interface PlanOrBuilder
        Returns:
        Whether the trialPeriod field is set.
      • getTrialPeriod

        public Period getTrialPeriod()
         Present for Offers with a trial period.
         For trial-only Offers, a paid service needs to start before the trial
         period ends for continued service.
         For Regular Offers with a trial period, the regular pricing goes into
         effect when trial period ends, or if paid service is started before the end
         of the trial period.
         
        .google.cloud.channel.v1.Period trial_period = 4;
        Specified by:
        getTrialPeriod in interface PlanOrBuilder
        Returns:
        The trialPeriod.
      • setTrialPeriod

        public Plan.Builder setTrialPeriod​(Period value)
         Present for Offers with a trial period.
         For trial-only Offers, a paid service needs to start before the trial
         period ends for continued service.
         For Regular Offers with a trial period, the regular pricing goes into
         effect when trial period ends, or if paid service is started before the end
         of the trial period.
         
        .google.cloud.channel.v1.Period trial_period = 4;
      • setTrialPeriod

        public Plan.Builder setTrialPeriod​(Period.Builder builderForValue)
         Present for Offers with a trial period.
         For trial-only Offers, a paid service needs to start before the trial
         period ends for continued service.
         For Regular Offers with a trial period, the regular pricing goes into
         effect when trial period ends, or if paid service is started before the end
         of the trial period.
         
        .google.cloud.channel.v1.Period trial_period = 4;
      • mergeTrialPeriod

        public Plan.Builder mergeTrialPeriod​(Period value)
         Present for Offers with a trial period.
         For trial-only Offers, a paid service needs to start before the trial
         period ends for continued service.
         For Regular Offers with a trial period, the regular pricing goes into
         effect when trial period ends, or if paid service is started before the end
         of the trial period.
         
        .google.cloud.channel.v1.Period trial_period = 4;
      • clearTrialPeriod

        public Plan.Builder clearTrialPeriod()
         Present for Offers with a trial period.
         For trial-only Offers, a paid service needs to start before the trial
         period ends for continued service.
         For Regular Offers with a trial period, the regular pricing goes into
         effect when trial period ends, or if paid service is started before the end
         of the trial period.
         
        .google.cloud.channel.v1.Period trial_period = 4;
      • getTrialPeriodBuilder

        public Period.Builder getTrialPeriodBuilder()
         Present for Offers with a trial period.
         For trial-only Offers, a paid service needs to start before the trial
         period ends for continued service.
         For Regular Offers with a trial period, the regular pricing goes into
         effect when trial period ends, or if paid service is started before the end
         of the trial period.
         
        .google.cloud.channel.v1.Period trial_period = 4;
      • getTrialPeriodOrBuilder

        public PeriodOrBuilder getTrialPeriodOrBuilder()
         Present for Offers with a trial period.
         For trial-only Offers, a paid service needs to start before the trial
         period ends for continued service.
         For Regular Offers with a trial period, the regular pricing goes into
         effect when trial period ends, or if paid service is started before the end
         of the trial period.
         
        .google.cloud.channel.v1.Period trial_period = 4;
        Specified by:
        getTrialPeriodOrBuilder in interface PlanOrBuilder
      • getBillingAccount

        public String getBillingAccount()
         Reseller Billing account to charge after an offer transaction.
         Only present for Google Cloud offers.
         
        string billing_account = 5;
        Specified by:
        getBillingAccount in interface PlanOrBuilder
        Returns:
        The billingAccount.
      • getBillingAccountBytes

        public com.google.protobuf.ByteString getBillingAccountBytes()
         Reseller Billing account to charge after an offer transaction.
         Only present for Google Cloud offers.
         
        string billing_account = 5;
        Specified by:
        getBillingAccountBytes in interface PlanOrBuilder
        Returns:
        The bytes for billingAccount.
      • setBillingAccount

        public Plan.Builder setBillingAccount​(String value)
         Reseller Billing account to charge after an offer transaction.
         Only present for Google Cloud offers.
         
        string billing_account = 5;
        Parameters:
        value - The billingAccount to set.
        Returns:
        This builder for chaining.
      • clearBillingAccount

        public Plan.Builder clearBillingAccount()
         Reseller Billing account to charge after an offer transaction.
         Only present for Google Cloud offers.
         
        string billing_account = 5;
        Returns:
        This builder for chaining.
      • setBillingAccountBytes

        public Plan.Builder setBillingAccountBytes​(com.google.protobuf.ByteString value)
         Reseller Billing account to charge after an offer transaction.
         Only present for Google Cloud offers.
         
        string billing_account = 5;
        Parameters:
        value - The bytes for billingAccount to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Plan.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<Plan.Builder>
      • mergeUnknownFields

        public final Plan.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<Plan.Builder>