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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Plan
build()
Plan
buildPartial()
Plan.Builder
clear()
Plan.Builder
clearBillingAccount()
Reseller Billing account to charge after an offer transaction.Plan.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Plan.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Plan.Builder
clearPaymentCycle()
Describes how frequently the reseller will be billed, such as once per month.Plan.Builder
clearPaymentPlan()
Describes how a reseller will be billed.Plan.Builder
clearPaymentType()
Specifies when the payment needs to happen.Plan.Builder
clearTrialPeriod()
Present for Offers with a trial period.Plan.Builder
clone()
String
getBillingAccount()
Reseller Billing account to charge after an offer transaction.com.google.protobuf.ByteString
getBillingAccountBytes()
Reseller Billing account to charge after an offer transaction.Plan
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Period
getPaymentCycle()
Describes how frequently the reseller will be billed, such as once per month.Period.Builder
getPaymentCycleBuilder()
Describes how frequently the reseller will be billed, such as once per month.PeriodOrBuilder
getPaymentCycleOrBuilder()
Describes how frequently the reseller will be billed, such as once per month.PaymentPlan
getPaymentPlan()
Describes how a reseller will be billed.int
getPaymentPlanValue()
Describes how a reseller will be billed.PaymentType
getPaymentType()
Specifies when the payment needs to happen.int
getPaymentTypeValue()
Specifies when the payment needs to happen.Period
getTrialPeriod()
Present for Offers with a trial period.Period.Builder
getTrialPeriodBuilder()
Present for Offers with a trial period.PeriodOrBuilder
getTrialPeriodOrBuilder()
Present for Offers with a trial period.boolean
hasPaymentCycle()
Describes how frequently the reseller will be billed, such as once per month.boolean
hasTrialPeriod()
Present for Offers with a trial period.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Plan.Builder
mergeFrom(Plan other)
Plan.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Plan.Builder
mergeFrom(com.google.protobuf.Message other)
Plan.Builder
mergePaymentCycle(Period value)
Describes how frequently the reseller will be billed, such as once per month.Plan.Builder
mergeTrialPeriod(Period value)
Present for Offers with a trial period.Plan.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Plan.Builder
setBillingAccount(String value)
Reseller Billing account to charge after an offer transaction.Plan.Builder
setBillingAccountBytes(com.google.protobuf.ByteString value)
Reseller Billing account to charge after an offer transaction.Plan.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Plan.Builder
setPaymentCycle(Period value)
Describes how frequently the reseller will be billed, such as once per month.Plan.Builder
setPaymentCycle(Period.Builder builderForValue)
Describes how frequently the reseller will be billed, such as once per month.Plan.Builder
setPaymentPlan(PaymentPlan value)
Describes how a reseller will be billed.Plan.Builder
setPaymentPlanValue(int value)
Describes how a reseller will be billed.Plan.Builder
setPaymentType(PaymentType value)
Specifies when the payment needs to happen.Plan.Builder
setPaymentTypeValue(int value)
Specifies when the payment needs to happen.Plan.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Plan.Builder
setTrialPeriod(Period value)
Present for Offers with a trial period.Plan.Builder
setTrialPeriod(Period.Builder builderForValue)
Present for Offers with a trial period.Plan.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
clear
public Plan.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
getDefaultInstanceForType
public Plan getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Plan build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Plan buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Plan.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
setField
public Plan.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
clearField
public Plan.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
clearOneof
public Plan.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
addRepeatedField
public Plan.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
mergeFrom
public Plan.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Plan.Builder>
-
mergeFrom
public Plan.Builder mergeFrom(Plan other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getPaymentPlanValue
in 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:
getPaymentPlan
in 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:
getPaymentTypeValue
in 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:
getPaymentType
in 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:
hasPaymentCycle
in 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:
getPaymentCycle
in 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:
getPaymentCycleOrBuilder
in 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:
hasTrialPeriod
in 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:
getTrialPeriod
in 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:
getTrialPeriodOrBuilder
in 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:
getBillingAccount
in 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:
getBillingAccountBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
mergeUnknownFields
public final Plan.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Plan.Builder>
-
-