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