Class CommitmentSettings.Builder (3.23.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CommitmentSettings build()
Returns
TypeDescription
CommitmentSettings

buildPartial()

public CommitmentSettings buildPartial()
Returns
TypeDescription
CommitmentSettings

clear()

public CommitmentSettings.Builder clear()
Returns
TypeDescription
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
TypeDescription
CommitmentSettings.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public CommitmentSettings getDefaultInstanceForType()
Returns
TypeDescription
CommitmentSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

Output only. Commitment end timestamp.

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

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

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. Commitment end timestamp.

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

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

getStartTime()

public Timestamp getStartTime()

Output only. Commitment start timestamp.

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

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

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. Commitment start timestamp.

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

Returns
TypeDescription
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

Output only. Commitment end timestamp.

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

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

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
CommitmentSettings.Builder

mergeFrom(CommitmentSettings other)

public CommitmentSettings.Builder mergeFrom(CommitmentSettings other)
Parameter
NameDescription
otherCommitmentSettings
Returns
TypeDescription
CommitmentSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CommitmentSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueRenewalSettings
Returns
TypeDescription
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
NameDescription
builderForValueRenewalSettings.Builder
Returns
TypeDescription
CommitmentSettings.Builder

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

public CommitmentSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
CommitmentSettings.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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