Class Plan.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Plan.Builder>
com.google.cloud.channel.v1.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.GeneratedMessage.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 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Plan.Builder mergeFrom(Plan other)
    • isInitialized

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