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.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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Subscription.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Subscription build()
Returns
buildPartial()
public Subscription buildPartial()
Returns
clear()
public Subscription.Builder clear()
Returns
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;
Returns
clearEndTime()
public Subscription.Builder clearEndTime()
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public Subscription.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Subscription.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearStartTime()
public Subscription.Builder clearStartTime()
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
Returns
clone()
public Subscription.Builder clone()
Returns
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()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEndTime()
public Timestamp getEndTime()
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
Returns
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder()
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
Returns
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
Returns
getStartTime()
public Timestamp getStartTime()
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
Returns
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder()
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
Returns
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeEndTime(Timestamp value)
public Subscription.Builder mergeEndTime(Timestamp value)
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
Parameter
Returns
mergeFrom(Subscription other)
public Subscription.Builder mergeFrom(Subscription other)
Parameter
Returns
public Subscription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Subscription.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeStartTime(Timestamp value)
public Subscription.Builder mergeStartTime(Timestamp value)
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Subscription.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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.
|
Returns
setEndTime(Timestamp value)
public Subscription.Builder setEndTime(Timestamp value)
The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
Parameter
Returns
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
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Subscription.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Subscription.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setStartTime(Timestamp value)
public Subscription.Builder setStartTime(Timestamp value)
The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
Parameter
Returns
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
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Subscription.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides