Package com.google.cloud.channel.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Reseller Billing account to charge after an offer transaction.Describes how frequently the reseller will be billed, such as once per month.Describes how a reseller will be billed.Specifies when the payment needs to happen.Present for Offers with a trial period.Reseller Billing account to charge after an offer transaction.com.google.protobuf.ByteStringReseller Billing account to charge after an offer transaction.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDescribes how frequently the reseller will be billed, such as once per month.Describes how frequently the reseller will be billed, such as once per month.Describes how frequently the reseller will be billed, such as once per month.Describes how a reseller will be billed.intDescribes how a reseller will be billed.Specifies when the payment needs to happen.intSpecifies when the payment needs to happen.Present for Offers with a trial period.Present for Offers with a trial period.Present for Offers with a trial period.booleanDescribes how frequently the reseller will be billed, such as once per month.booleanPresent for Offers with a trial period.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePaymentCycle(Period value) Describes how frequently the reseller will be billed, such as once per month.mergeTrialPeriod(Period value) Present for Offers with a trial period.setBillingAccount(String value) Reseller Billing account to charge after an offer transaction.setBillingAccountBytes(com.google.protobuf.ByteString value) Reseller Billing account to charge after an offer transaction.setPaymentCycle(Period value) Describes how frequently the reseller will be billed, such as once per month.setPaymentCycle(Period.Builder builderForValue) Describes how frequently the reseller will be billed, such as once per month.setPaymentPlan(PaymentPlan value) Describes how a reseller will be billed.setPaymentPlanValue(int value) Describes how a reseller will be billed.setPaymentType(PaymentType value) Specifies when the payment needs to happen.setPaymentTypeValue(int value) Specifies when the payment needs to happen.setTrialPeriod(Period value) Present for Offers with a trial period.setTrialPeriod(Period.Builder builderForValue) Present for Offers with a trial period.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Plan.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Plan.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Plan.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Plan.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getPaymentPlanValuein interfacePlanOrBuilder- Returns:
- The enum numeric value on the wire for paymentPlan.
-
setPaymentPlanValue
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
Describes how a reseller will be billed.
.google.cloud.channel.v1.PaymentPlan payment_plan = 1;- Specified by:
getPaymentPlanin interfacePlanOrBuilder- Returns:
- The paymentPlan.
-
setPaymentPlan
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
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:
getPaymentTypeValuein interfacePlanOrBuilder- Returns:
- The enum numeric value on the wire for paymentType.
-
setPaymentTypeValue
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
Specifies when the payment needs to happen.
.google.cloud.channel.v1.PaymentType payment_type = 2;- Specified by:
getPaymentTypein interfacePlanOrBuilder- Returns:
- The paymentType.
-
setPaymentType
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
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:
hasPaymentCyclein interfacePlanOrBuilder- Returns:
- Whether the paymentCycle field is set.
-
getPaymentCycle
Describes how frequently the reseller will be billed, such as once per month.
.google.cloud.channel.v1.Period payment_cycle = 3;- Specified by:
getPaymentCyclein interfacePlanOrBuilder- Returns:
- The paymentCycle.
-
setPaymentCycle
Describes how frequently the reseller will be billed, such as once per month.
.google.cloud.channel.v1.Period payment_cycle = 3; -
setPaymentCycle
Describes how frequently the reseller will be billed, such as once per month.
.google.cloud.channel.v1.Period payment_cycle = 3; -
mergePaymentCycle
Describes how frequently the reseller will be billed, such as once per month.
.google.cloud.channel.v1.Period payment_cycle = 3; -
clearPaymentCycle
Describes how frequently the reseller will be billed, such as once per month.
.google.cloud.channel.v1.Period payment_cycle = 3; -
getPaymentCycleBuilder
Describes how frequently the reseller will be billed, such as once per month.
.google.cloud.channel.v1.Period payment_cycle = 3; -
getPaymentCycleOrBuilder
Describes how frequently the reseller will be billed, such as once per month.
.google.cloud.channel.v1.Period payment_cycle = 3;- Specified by:
getPaymentCycleOrBuilderin interfacePlanOrBuilder
-
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:
hasTrialPeriodin interfacePlanOrBuilder- Returns:
- Whether the trialPeriod field is set.
-
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:
getTrialPeriodin interfacePlanOrBuilder- Returns:
- The trialPeriod.
-
setTrialPeriod
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
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
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
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
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
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:
getTrialPeriodOrBuilderin interfacePlanOrBuilder
-
getBillingAccount
Reseller Billing account to charge after an offer transaction. Only present for Google Cloud offers.
string billing_account = 5;- Specified by:
getBillingAccountin interfacePlanOrBuilder- 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:
getBillingAccountBytesin interfacePlanOrBuilder- Returns:
- The bytes for billingAccount.
-
setBillingAccount
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
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
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.
-