Class RenewalSettings.Builder (3.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RenewalSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RenewalSettings.Builder
Overrides

build()

public RenewalSettings build()
Returns
TypeDescription
RenewalSettings

buildPartial()

public RenewalSettings buildPartial()
Returns
TypeDescription
RenewalSettings

clear()

public RenewalSettings.Builder clear()
Returns
TypeDescription
RenewalSettings.Builder
Overrides

clearEnableRenewal()

public RenewalSettings.Builder clearEnableRenewal()

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

bool enable_renewal = 1;

Returns
TypeDescription
RenewalSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RenewalSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RenewalSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RenewalSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
RenewalSettings.Builder

clearPaymentPlan()

public RenewalSettings.Builder clearPaymentPlan()

Describes how a reseller will be billed.

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

Returns
TypeDescription
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
TypeDescription
RenewalSettings.Builder

This builder for chaining.

clone()

public RenewalSettings.Builder clone()
Returns
TypeDescription
RenewalSettings.Builder
Overrides

getDefaultInstanceForType()

public RenewalSettings getDefaultInstanceForType()
Returns
TypeDescription
RenewalSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableRenewal()

public boolean getEnableRenewal()

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

bool enable_renewal = 1;

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RenewalSettings other)

public RenewalSettings.Builder mergeFrom(RenewalSettings other)
Parameter
NameDescription
otherRenewalSettings
Returns
TypeDescription
RenewalSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RenewalSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RenewalSettings.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RenewalSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePeriod
Returns
TypeDescription
RenewalSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RenewalSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The enableRenewal to set.

Returns
TypeDescription
RenewalSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RenewalSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuePeriod
Returns
TypeDescription
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
NameDescription
builderForValuePeriod.Builder
Returns
TypeDescription
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
NameDescription
valuePaymentPlan

The paymentPlan to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The resizeUnitCount to set.

Returns
TypeDescription
RenewalSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RenewalSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RenewalSettings.Builder
Overrides