Class Plan (3.23.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
TypeDescription
int

PAYMENT_CYCLE_FIELD_NUMBER

public static final int PAYMENT_CYCLE_FIELD_NUMBER
Field Value
TypeDescription
int

PAYMENT_PLAN_FIELD_NUMBER

public static final int PAYMENT_PLAN_FIELD_NUMBER
Field Value
TypeDescription
int

PAYMENT_TYPE_FIELD_NUMBER

public static final int PAYMENT_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

TRIAL_PERIOD_FIELD_NUMBER

public static final int TRIAL_PERIOD_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Plan getDefaultInstance()
Returns
TypeDescription
Plan

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Plan.Builder newBuilder()
Returns
TypeDescription
Plan.Builder

newBuilder(Plan prototype)

public static Plan.Builder newBuilder(Plan prototype)
Parameter
NameDescription
prototypePlan
Returns
TypeDescription
Plan.Builder

parseDelimitedFrom(InputStream input)

public static Plan parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Plan
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Plan parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Plan
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Plan parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Plan
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Plan parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Plan
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Plan parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Plan
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Plan parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Plan
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Plan parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Plan
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Plan parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Plan
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Plan parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Plan
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Plan parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Plan
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Plan parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Plan
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Plan parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Plan
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Plan> parser()
Returns
TypeDescription
Parser<Plan>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for billingAccount.

getDefaultInstanceForType()

public Plan getDefaultInstanceForType()
Returns
TypeDescription
Plan

getParserForType()

public Parser<Plan> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PeriodOrBuilder

getPaymentPlan()

public PaymentPlan getPaymentPlan()

Describes how a reseller will be billed.

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

Returns
TypeDescription
PaymentPlan

The paymentPlan.

getPaymentPlanValue()

public int getPaymentPlanValue()

Describes how a reseller will be billed.

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

Returns
TypeDescription
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
TypeDescription
PaymentType

The paymentType.

getPaymentTypeValue()

public int getPaymentTypeValue()

Specifies when the payment needs to happen.

.google.cloud.channel.v1.PaymentType payment_type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for paymentType.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the trialPeriod field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Plan.Builder newBuilderForType()
Returns
TypeDescription
Plan.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Plan.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Plan.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Plan.Builder toBuilder()
Returns
TypeDescription
Plan.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException