Class RenewalSettings (3.25.0)

public final class RenewalSettings extends GeneratedMessageV3 implements RenewalSettingsOrBuilder

Renewal settings for renewable Offers.

Protobuf type google.cloud.channel.v1.RenewalSettings

Static Fields

ENABLE_RENEWAL_FIELD_NUMBER

public static final int ENABLE_RENEWAL_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

RESIZE_UNIT_COUNT_FIELD_NUMBER

public static final int RESIZE_UNIT_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RenewalSettings getDefaultInstance()
Returns
TypeDescription
RenewalSettings

getDescriptor()

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

newBuilder()

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

newBuilder(RenewalSettings prototype)

public static RenewalSettings.Builder newBuilder(RenewalSettings prototype)
Parameter
NameDescription
prototypeRenewalSettings
Returns
TypeDescription
RenewalSettings.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RenewalSettings getDefaultInstanceForType()
Returns
TypeDescription
RenewalSettings

getEnableRenewal()

public boolean getEnableRenewal()

If false, the plan will be completed at the end date.

bool enable_renewal = 1;

Returns
TypeDescription
boolean

The enableRenewal.

getParserForType()

public Parser<RenewalSettings> getParserForType()
Returns
TypeDescription
Parser<RenewalSettings>
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 = 6;

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 = 6;

Returns
TypeDescription
PeriodOrBuilder

getPaymentPlan()

public PaymentPlan getPaymentPlan()

Describes how a reseller will be billed.

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

Returns
TypeDescription
PaymentPlan

The paymentPlan.

getPaymentPlanValue()

public int getPaymentPlanValue()

Describes how a reseller will be billed.

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

Returns
TypeDescription
int

The enum numeric value on the wire for paymentPlan.

getResizeUnitCount()

public boolean getResizeUnitCount()

If true and enable_renewal = true, the unit (for example seats or licenses) will be set to the number of active units at renewal time.

bool resize_unit_count = 2;

Returns
TypeDescription
boolean

The resizeUnitCount.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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 = 6;

Returns
TypeDescription
boolean

Whether the paymentCycle 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 RenewalSettings.Builder newBuilderForType()
Returns
TypeDescription
RenewalSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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