Class CommitmentSettings.Builder (3.58.0)

public static final class CommitmentSettings.Builder extends GeneratedMessageV3.Builder<CommitmentSettings.Builder> implements CommitmentSettingsOrBuilder

Commitment settings for commitment-based offers.

Protobuf type google.cloud.channel.v1.CommitmentSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CommitmentSettings build()
Returns
Type Description
CommitmentSettings

buildPartial()

public CommitmentSettings buildPartial()
Returns
Type Description
CommitmentSettings

clear()

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

clearEndTime()

public CommitmentSettings.Builder clearEndTime()

Output only. Commitment end timestamp.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CommitmentSettings.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRenewalSettings()

public CommitmentSettings.Builder clearRenewalSettings()

Optional. Renewal settings applicable for a commitment-based Offer.

.google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CommitmentSettings.Builder

clearStartTime()

public CommitmentSettings.Builder clearStartTime()

Output only. Commitment start timestamp.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CommitmentSettings.Builder

clone()

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

getDefaultInstanceForType()

public CommitmentSettings getDefaultInstanceForType()
Returns
Type Description
CommitmentSettings

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

Output only. Commitment end timestamp.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. Commitment end timestamp.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. Commitment end timestamp.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getRenewalSettings()

public RenewalSettings getRenewalSettings()

Optional. Renewal settings applicable for a commitment-based Offer.

.google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RenewalSettings

The renewalSettings.

getRenewalSettingsBuilder()

public RenewalSettings.Builder getRenewalSettingsBuilder()

Optional. Renewal settings applicable for a commitment-based Offer.

.google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RenewalSettings.Builder

getRenewalSettingsOrBuilder()

public RenewalSettingsOrBuilder getRenewalSettingsOrBuilder()

Optional. Renewal settings applicable for a commitment-based Offer.

.google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RenewalSettingsOrBuilder

getStartTime()

public Timestamp getStartTime()

Output only. Commitment start timestamp.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. Commitment start timestamp.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. Commitment start timestamp.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

Output only. Commitment end timestamp.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasRenewalSettings()

public boolean hasRenewalSettings()

Optional. Renewal settings applicable for a commitment-based Offer.

.google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the renewalSettings field is set.

hasStartTime()

public boolean hasStartTime()

Output only. Commitment start timestamp.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public CommitmentSettings.Builder mergeEndTime(Timestamp value)

Output only. Commitment end timestamp.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
CommitmentSettings.Builder

mergeFrom(CommitmentSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRenewalSettings(RenewalSettings value)

public CommitmentSettings.Builder mergeRenewalSettings(RenewalSettings value)

Optional. Renewal settings applicable for a commitment-based Offer.

.google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RenewalSettings
Returns
Type Description
CommitmentSettings.Builder

mergeStartTime(Timestamp value)

public CommitmentSettings.Builder mergeStartTime(Timestamp value)

Output only. Commitment start timestamp.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
CommitmentSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEndTime(Timestamp value)

public CommitmentSettings.Builder setEndTime(Timestamp value)

Output only. Commitment end timestamp.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
CommitmentSettings.Builder

setEndTime(Timestamp.Builder builderForValue)

public CommitmentSettings.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. Commitment end timestamp.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CommitmentSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setRenewalSettings(RenewalSettings value)

public CommitmentSettings.Builder setRenewalSettings(RenewalSettings value)

Optional. Renewal settings applicable for a commitment-based Offer.

.google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RenewalSettings
Returns
Type Description
CommitmentSettings.Builder

setRenewalSettings(RenewalSettings.Builder builderForValue)

public CommitmentSettings.Builder setRenewalSettings(RenewalSettings.Builder builderForValue)

Optional. Renewal settings applicable for a commitment-based Offer.

.google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL];

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

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

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

setStartTime(Timestamp value)

public CommitmentSettings.Builder setStartTime(Timestamp value)

Output only. Commitment start timestamp.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
CommitmentSettings.Builder

setStartTime(Timestamp.Builder builderForValue)

public CommitmentSettings.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. Commitment start timestamp.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CommitmentSettings.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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