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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BILLING_ACCOUNT_FIELD_NUMBER
public static final int BILLING_ACCOUNT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PAYMENT_CYCLE_FIELD_NUMBER
public static final int PAYMENT_CYCLE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PAYMENT_PLAN_FIELD_NUMBER
public static final int PAYMENT_PLAN_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PAYMENT_TYPE_FIELD_NUMBER
public static final int PAYMENT_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TRIAL_PERIOD_FIELD_NUMBER
public static final int TRIAL_PERIOD_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Plan getDefaultInstance()
Returns |
---|
Type | Description |
Plan | |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Plan.Builder newBuilder()
newBuilder(Plan prototype)
public static Plan.Builder newBuilder(Plan prototype)
Parameter |
---|
Name | Description |
prototype | Plan
|
public static Plan parseDelimitedFrom(InputStream input)
Returns |
---|
Type | Description |
Plan | |
public static Plan parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Plan | |
parseFrom(byte[] data)
public static Plan parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
Returns |
---|
Type | Description |
Plan | |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Plan parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Plan | |
parseFrom(ByteString data)
public static Plan parseFrom(ByteString data)
Returns |
---|
Type | Description |
Plan | |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Plan parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Plan | |
public static Plan parseFrom(CodedInputStream input)
Returns |
---|
Type | Description |
Plan | |
public static Plan parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Plan | |
public static Plan parseFrom(InputStream input)
Returns |
---|
Type | Description |
Plan | |
public static Plan parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Plan | |
parseFrom(ByteBuffer data)
public static Plan parseFrom(ByteBuffer data)
Returns |
---|
Type | Description |
Plan | |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Plan parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Plan | |
parser()
public static Parser<Plan> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getBillingAccount()
public String getBillingAccount()
Reseller Billing account to charge after an offer transaction.
Only present for Google Cloud 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 offers.
string billing_account = 5;
Returns |
---|
Type | Description |
ByteString | The bytes for billingAccount.
|
getDefaultInstanceForType()
public Plan getDefaultInstanceForType()
Returns |
---|
Type | Description |
Plan | |
getParserForType()
public Parser<Plan> getParserForType()
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;
getPaymentPlan()
public PaymentPlan getPaymentPlan()
Describes how a reseller will be billed.
.google.cloud.channel.v1.PaymentPlan payment_plan = 1;
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;
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 |
---|
Type | Description |
int | |
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;
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Plan.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Plan.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Plan.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides