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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CommitmentSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CommitmentSettings build()
Returns
buildPartial()
public CommitmentSettings buildPartial()
Returns
clear()
public CommitmentSettings.Builder clear()
Returns
Overrides
clearEndTime()
public CommitmentSettings.Builder clearEndTime()
Output only. Commitment end timestamp.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
clearField(Descriptors.FieldDescriptor field)
public CommitmentSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CommitmentSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clearStartTime()
public CommitmentSettings.Builder clearStartTime()
Output only. Commitment start timestamp.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
clone()
public CommitmentSettings.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CommitmentSettings getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEndTime()
public Timestamp getEndTime()
Output only. Commitment end timestamp.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder()
Output only. Commitment end timestamp.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
Output only. Commitment end timestamp.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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
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
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
getStartTime()
public Timestamp getStartTime()
Output only. Commitment start timestamp.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder()
Output only. Commitment start timestamp.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
Output only. Commitment start timestamp.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(CommitmentSettings other)
public CommitmentSettings.Builder mergeFrom(CommitmentSettings other)
Parameter
Returns
public CommitmentSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CommitmentSettings.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CommitmentSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public CommitmentSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CommitmentSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final CommitmentSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides