Class Plan (3.46.0)

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

Implements

PlanOrBuilder

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()
Returns
Type Description
Descriptor

newBuilder()

public static Plan.Builder newBuilder()
Returns
Type Description
Plan.Builder

newBuilder(Plan prototype)

public static Plan.Builder newBuilder(Plan prototype)
Parameter
Name Description
prototype Plan
Returns
Type Description
Plan.Builder

parseDelimitedFrom(InputStream input)

public static Plan parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Plan
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Plan parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Plan
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Plan parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Plan
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Plan parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Plan
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Plan parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Plan
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Plan parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Plan
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Plan parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Plan
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Plan parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Plan
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Plan parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Plan
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Plan parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Plan
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Plan parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Plan
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Plan parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Plan
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Plan> parser()
Returns
Type Description
Parser<Plan>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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()
Returns
Type Description
Parser<Plan>
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
Type Description
PeriodOrBuilder

getPaymentPlan()

public PaymentPlan getPaymentPlan()

Describes how a reseller will be billed.

.google.cloud.channel.v1.PaymentPlan payment_plan = 1;

Returns
Type Description
PaymentPlan

The paymentPlan.

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
Type Description
PaymentType

The paymentType.

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;

Returns
Type Description
PeriodOrBuilder

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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Plan.Builder newBuilderForType()
Returns
Type Description
Plan.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Plan.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Plan.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Plan.Builder toBuilder()
Returns
Type Description
Plan.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException