public static final class Subscription.Builder extends GeneratedMessage.Builder<Subscription.Builder> implements SubscriptionOrBuilderSubscription information.
Protobuf type google.cloud.commerce.consumer.procurement.v1.Subscription
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Subscription.BuilderImplements
SubscriptionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Subscription build()| Returns | |
|---|---|
| Type | Description |
Subscription |
|
buildPartial()
public Subscription buildPartial()| Returns | |
|---|---|
| Type | Description |
Subscription |
|
clear()
public Subscription.Builder clear()| Returns | |
|---|---|
| Type | Description |
Subscription.Builder |
|
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 | |
|---|---|
| Type | Description |
Subscription.Builder |
This builder for chaining. |
clearEndTime()
public Subscription.Builder clearEndTime()The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
| Returns | |
|---|---|
| Type | Description |
Subscription.Builder |
|
clearStartTime()
public Subscription.Builder clearStartTime()The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
| Returns | |
|---|---|
| Type | Description |
Subscription.Builder |
|
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 | |
|---|---|
| Type | Description |
Subscription |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
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;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEndTime(Timestamp value)
public Subscription.Builder mergeEndTime(Timestamp value)The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Subscription.Builder |
|
mergeFrom(Subscription other)
public Subscription.Builder mergeFrom(Subscription other)| Parameter | |
|---|---|
| Name | Description |
other |
Subscription |
| Returns | |
|---|---|
| Type | Description |
Subscription.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Subscription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Subscription.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Subscription.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Subscription.Builder |
|
mergeStartTime(Timestamp value)
public Subscription.Builder mergeStartTime(Timestamp value)The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Subscription.Builder |
|
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 |
booleanThe autoRenewalEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
Subscription.Builder |
This builder for chaining. |
setEndTime(Timestamp value)
public Subscription.Builder setEndTime(Timestamp value)The timestamp when the subscription ends, if applicable.
.google.protobuf.Timestamp end_time = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Subscription.Builder |
|
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 | |
|---|---|
| Type | Description |
Subscription.Builder |
|
setStartTime(Timestamp value)
public Subscription.Builder setStartTime(Timestamp value)The timestamp when the subscription begins, if applicable.
.google.protobuf.Timestamp start_time = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Subscription.Builder |
|
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 | |
|---|---|
| Type | Description |
Subscription.Builder |
|