public static final class Subscription.Builder extends GeneratedMessageV3.Builder<Subscription.Builder> implements SubscriptionOrBuilder
Subscription information.
Protobuf type google.cloud.commerce.consumer.procurement.v1alpha1.Subscription
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 Subscription.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Subscription build()
buildPartial()
public Subscription buildPartial()
clear()
public Subscription.Builder clear()
Overrides
clearAutoRenewalEnabled()
public Subscription.Builder clearAutoRenewalEnabled()
Whether auto renewal is enabled by user choice on current subscription.
This field indicates order/subscription status after pending plan change is
cancelled or rejected.
bool auto_renewal_enabled = 2;
clearEndTime()
public Subscription.Builder clearEndTime()
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
clearField(Descriptors.FieldDescriptor field)
public Subscription.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Subscription.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearStartTime()
public Subscription.Builder clearStartTime()
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
clone()
public Subscription.Builder clone()
Overrides
getAutoRenewalEnabled()
public boolean getAutoRenewalEnabled()
Whether auto renewal is enabled by user choice on current subscription.
This field indicates order/subscription status after pending plan change is
cancelled or rejected.
bool auto_renewal_enabled = 2;
Returns |
Type |
Description |
boolean |
The autoRenewalEnabled.
|
getDefaultInstanceForType()
public Subscription getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEndTime()
public Timestamp getEndTime()
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
Returns |
Type |
Description |
Timestamp |
The endTime.
|
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder()
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
getStartTime()
public Timestamp getStartTime()
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
Returns |
Type |
Description |
Timestamp |
The startTime.
|
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder()
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
hasEndTime()
public boolean hasEndTime()
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
Returns |
Type |
Description |
boolean |
Whether the endTime field is set.
|
hasStartTime()
public boolean hasStartTime()
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
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 Subscription.Builder mergeEndTime(Timestamp value)
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
mergeFrom(Subscription other)
public Subscription.Builder mergeFrom(Subscription other)
public Subscription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Subscription.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeStartTime(Timestamp value)
public Subscription.Builder mergeStartTime(Timestamp value)
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Subscription.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAutoRenewalEnabled(boolean value)
public Subscription.Builder setAutoRenewalEnabled(boolean value)
Whether auto renewal is enabled by user choice on current subscription.
This field indicates order/subscription status after pending plan change is
cancelled or rejected.
bool auto_renewal_enabled = 2;
Parameter |
Name |
Description |
value |
boolean
The autoRenewalEnabled to set.
|
setEndTime(Timestamp value)
public Subscription.Builder setEndTime(Timestamp value)
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
setEndTime(Timestamp.Builder builderForValue)
public Subscription.Builder setEndTime(Timestamp.Builder builderForValue)
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
Parameter |
Name |
Description |
builderForValue |
Builder
|
setField(Descriptors.FieldDescriptor field, Object value)
public Subscription.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Subscription.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setStartTime(Timestamp value)
public Subscription.Builder setStartTime(Timestamp value)
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
setStartTime(Timestamp.Builder builderForValue)
public Subscription.Builder setStartTime(Timestamp.Builder builderForValue)
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
Parameter |
Name |
Description |
builderForValue |
Builder
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Subscription.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides