public final class Plan extends GeneratedMessageV3 implements PlanOrBuilder
The payment plan for the Offer. Describes how to make a payment.
Protobuf type google.cloud.channel.v1.Plan
Static Fields
BILLING_ACCOUNT_FIELD_NUMBER
public static final int BILLING_ACCOUNT_FIELD_NUMBER
Field Value
PAYMENT_CYCLE_FIELD_NUMBER
public static final int PAYMENT_CYCLE_FIELD_NUMBER
Field Value
PAYMENT_PLAN_FIELD_NUMBER
public static final int PAYMENT_PLAN_FIELD_NUMBER
Field Value
PAYMENT_TYPE_FIELD_NUMBER
public static final int PAYMENT_TYPE_FIELD_NUMBER
Field Value
TRIAL_PERIOD_FIELD_NUMBER
public static final int TRIAL_PERIOD_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Plan getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Plan.Builder newBuilder()
Returns
newBuilder(Plan prototype)
public static Plan.Builder newBuilder(Plan prototype)
Parameter
Name | Description |
prototype | Plan
|
Returns
public static Plan parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Plan parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Plan parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Plan parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Plan parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Plan parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Plan parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Plan parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Plan parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Plan parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Plan parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Plan parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Plan> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBillingAccount()
public String getBillingAccount()
Reseller Billing account to charge after an offer transaction.
Only present for Google Cloud Platform offers.
string billing_account = 5;
Returns
Type | Description |
String | The billingAccount.
|
getBillingAccountBytes()
public ByteString getBillingAccountBytes()
Reseller Billing account to charge after an offer transaction.
Only present for Google Cloud Platform offers.
string billing_account = 5;
Returns
Type | Description |
ByteString | The bytes for billingAccount.
|
getDefaultInstanceForType()
public Plan getDefaultInstanceForType()
Returns
getParserForType()
public Parser<Plan> getParserForType()
Returns
Overrides
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;
Returns
Type | Description |
Period | The paymentCycle.
|
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;
Returns
getPaymentPlan()
public PaymentPlan getPaymentPlan()
Describes how a reseller will be billed.
.google.cloud.channel.v1.PaymentPlan payment_plan = 1;
Returns
getPaymentPlanValue()
public int getPaymentPlanValue()
Describes how a reseller will be billed.
.google.cloud.channel.v1.PaymentPlan payment_plan = 1;
Returns
Type | Description |
int | The enum numeric value on the wire for paymentPlan.
|
getPaymentType()
public PaymentType getPaymentType()
Specifies when the payment needs to happen.
.google.cloud.channel.v1.PaymentType payment_type = 2;
Returns
getPaymentTypeValue()
public int getPaymentTypeValue()
Specifies when the payment needs to happen.
.google.cloud.channel.v1.PaymentType payment_type = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for paymentType.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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;
Returns
Type | Description |
Period | The trialPeriod.
|
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;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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;
Returns
Type | Description |
boolean | Whether the paymentCycle field is set.
|
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;
Returns
Type | Description |
boolean | Whether the trialPeriod field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Plan.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Plan.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Plan.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions