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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Plan.Builder> implements PlanOrBuilder
The payment plan for the Offer. Describes how to make a payment.
Protobuf typegoogle.cloud.channel.v1.Plan
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Plan.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Planbuild()PlanbuildPartial()Plan.Builderclear()Plan.BuilderclearBillingAccount()Reseller Billing account to charge after an offer transaction.Plan.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Plan.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Plan.BuilderclearPaymentCycle()Describes how frequently the reseller will be billed, such as once per month.Plan.BuilderclearPaymentPlan()Describes how a reseller will be billed.Plan.BuilderclearPaymentType()Specifies when the payment needs to happen.Plan.BuilderclearTrialPeriod()Present for Offers with a trial period.Plan.Builderclone()StringgetBillingAccount()Reseller Billing account to charge after an offer transaction.com.google.protobuf.ByteStringgetBillingAccountBytes()Reseller Billing account to charge after an offer transaction.PlangetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()PeriodgetPaymentCycle()Describes how frequently the reseller will be billed, such as once per month.Period.BuildergetPaymentCycleBuilder()Describes how frequently the reseller will be billed, such as once per month.PeriodOrBuildergetPaymentCycleOrBuilder()Describes how frequently the reseller will be billed, such as once per month.PaymentPlangetPaymentPlan()Describes how a reseller will be billed.intgetPaymentPlanValue()Describes how a reseller will be billed.PaymentTypegetPaymentType()Specifies when the payment needs to happen.intgetPaymentTypeValue()Specifies when the payment needs to happen.PeriodgetTrialPeriod()Present for Offers with a trial period.Period.BuildergetTrialPeriodBuilder()Present for Offers with a trial period.PeriodOrBuildergetTrialPeriodOrBuilder()Present for Offers with a trial period.booleanhasPaymentCycle()Describes how frequently the reseller will be billed, such as once per month.booleanhasTrialPeriod()Present for Offers with a trial period.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Plan.BuildermergeFrom(Plan other)Plan.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Plan.BuildermergeFrom(com.google.protobuf.Message other)Plan.BuildermergePaymentCycle(Period value)Describes how frequently the reseller will be billed, such as once per month.Plan.BuildermergeTrialPeriod(Period value)Present for Offers with a trial period.Plan.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Plan.BuildersetBillingAccount(String value)Reseller Billing account to charge after an offer transaction.Plan.BuildersetBillingAccountBytes(com.google.protobuf.ByteString value)Reseller Billing account to charge after an offer transaction.Plan.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Plan.BuildersetPaymentCycle(Period value)Describes how frequently the reseller will be billed, such as once per month.Plan.BuildersetPaymentCycle(Period.Builder builderForValue)Describes how frequently the reseller will be billed, such as once per month.Plan.BuildersetPaymentPlan(PaymentPlan value)Describes how a reseller will be billed.Plan.BuildersetPaymentPlanValue(int value)Describes how a reseller will be billed.Plan.BuildersetPaymentType(PaymentType value)Specifies when the payment needs to happen.Plan.BuildersetPaymentTypeValue(int value)Specifies when the payment needs to happen.Plan.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Plan.BuildersetTrialPeriod(Period value)Present for Offers with a trial period.Plan.BuildersetTrialPeriod(Period.Builder builderForValue)Present for Offers with a trial period.Plan.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
clear
public Plan.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Plan.Builder>
-
getDefaultInstanceForType
public Plan getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Plan build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Plan buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Plan.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
setField
public Plan.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
clearField
public Plan.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
clearOneof
public Plan.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
setRepeatedField
public Plan.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
addRepeatedField
public Plan.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
mergeFrom
public Plan.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Plan.Builder>
-
mergeFrom
public Plan.Builder mergeFrom(Plan other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
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
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:
getPaymentPlanin interfacePlanOrBuilder- 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:
getPaymentTypeValuein interfacePlanOrBuilder- 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:
getPaymentTypein interfacePlanOrBuilder- 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:
hasPaymentCyclein interfacePlanOrBuilder- 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:
getPaymentCyclein interfacePlanOrBuilder- 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:
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
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:
getTrialPeriodin interfacePlanOrBuilder- 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:
getTrialPeriodOrBuilderin interfacePlanOrBuilder
-
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:
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
mergeUnknownFields
public final Plan.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
-