Class RenewalSettings.Builder (3.50.0)

public static final class RenewalSettings.Builder extends GeneratedMessageV3.Builder<RenewalSettings.Builder> implements RenewalSettingsOrBuilder

Renewal settings for renewable Offers.

Protobuf type google.cloud.channel.v1.RenewalSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RenewalSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RenewalSettings.Builder
Overrides

build()

public RenewalSettings build()
Returns
Type Description
RenewalSettings

buildPartial()

public RenewalSettings buildPartial()
Returns
Type Description
RenewalSettings

clear()

public RenewalSettings.Builder clear()
Returns
Type Description
RenewalSettings.Builder
Overrides

clearEnableRenewal()

public RenewalSettings.Builder clearEnableRenewal()

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

bool enable_renewal = 1;

Returns
Type Description
RenewalSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RenewalSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RenewalSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RenewalSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RenewalSettings.Builder
Overrides

clearPaymentCycle()

public RenewalSettings.Builder clearPaymentCycle()

Describes how frequently the reseller will be billed, such as once per month.

.google.cloud.channel.v1.Period payment_cycle = 6;

Returns
Type Description
RenewalSettings.Builder

clearPaymentPlan()

public RenewalSettings.Builder clearPaymentPlan()

Describes how a reseller will be billed.

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

Returns
Type Description
RenewalSettings.Builder

This builder for chaining.

clearResizeUnitCount()

public RenewalSettings.Builder clearResizeUnitCount()

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
Type Description
RenewalSettings.Builder

This builder for chaining.

clone()

public RenewalSettings.Builder clone()
Returns
Type Description
RenewalSettings.Builder
Overrides

getDefaultInstanceForType()

public RenewalSettings getDefaultInstanceForType()
Returns
Type Description
RenewalSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnableRenewal()

public boolean getEnableRenewal()

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

bool enable_renewal = 1;

Returns
Type Description
boolean

The enableRenewal.

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

The paymentCycle.

getPaymentCycleBuilder()

public Period.Builder getPaymentCycleBuilder()

Describes how frequently the reseller will be billed, such as once per month.

.google.cloud.channel.v1.Period payment_cycle = 6;

Returns
Type Description
Period.Builder

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

getPaymentPlan()

public PaymentPlan getPaymentPlan()

Describes how a reseller will be billed.

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

Returns
Type Description
PaymentPlan

The paymentPlan.

getPaymentPlanValue()

public int getPaymentPlanValue()

Describes how a reseller will be billed.

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

Returns
Type Description
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
Type Description
boolean

The resizeUnitCount.

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

Whether the paymentCycle field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RenewalSettings other)

public RenewalSettings.Builder mergeFrom(RenewalSettings other)
Parameter
Name Description
other RenewalSettings
Returns
Type Description
RenewalSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RenewalSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RenewalSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RenewalSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RenewalSettings.Builder
Overrides

mergePaymentCycle(Period value)

public RenewalSettings.Builder mergePaymentCycle(Period value)

Describes how frequently the reseller will be billed, such as once per month.

.google.cloud.channel.v1.Period payment_cycle = 6;

Parameter
Name Description
value Period
Returns
Type Description
RenewalSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RenewalSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RenewalSettings.Builder
Overrides

setEnableRenewal(boolean value)

public RenewalSettings.Builder setEnableRenewal(boolean value)

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

bool enable_renewal = 1;

Parameter
Name Description
value boolean

The enableRenewal to set.

Returns
Type Description
RenewalSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RenewalSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RenewalSettings.Builder
Overrides

setPaymentCycle(Period value)

public RenewalSettings.Builder setPaymentCycle(Period value)

Describes how frequently the reseller will be billed, such as once per month.

.google.cloud.channel.v1.Period payment_cycle = 6;

Parameter
Name Description
value Period
Returns
Type Description
RenewalSettings.Builder

setPaymentCycle(Period.Builder builderForValue)

public RenewalSettings.Builder setPaymentCycle(Period.Builder builderForValue)

Describes how frequently the reseller will be billed, such as once per month.

.google.cloud.channel.v1.Period payment_cycle = 6;

Parameter
Name Description
builderForValue Period.Builder
Returns
Type Description
RenewalSettings.Builder

setPaymentPlan(PaymentPlan value)

public RenewalSettings.Builder setPaymentPlan(PaymentPlan value)

Describes how a reseller will be billed.

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

Parameter
Name Description
value PaymentPlan

The paymentPlan to set.

Returns
Type Description
RenewalSettings.Builder

This builder for chaining.

setPaymentPlanValue(int value)

public RenewalSettings.Builder setPaymentPlanValue(int value)

Describes how a reseller will be billed.

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

Parameter
Name Description
value int

The enum numeric value on the wire for paymentPlan to set.

Returns
Type Description
RenewalSettings.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RenewalSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RenewalSettings.Builder
Overrides

setResizeUnitCount(boolean value)

public RenewalSettings.Builder setResizeUnitCount(boolean value)

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;

Parameter
Name Description
value boolean

The resizeUnitCount to set.

Returns
Type Description
RenewalSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RenewalSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RenewalSettings.Builder
Overrides