Class Subscription.Builder (0.51.0)

public static final class Subscription.Builder extends GeneratedMessageV3.Builder<Subscription.Builder> implements SubscriptionOrBuilder

Subscription information.

Protobuf type google.cloud.commerce.consumer.procurement.v1alpha1.Subscription

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Subscription.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Subscription.Builder
Overrides

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
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
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

clearField(Descriptors.FieldDescriptor field)

public Subscription.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Subscription.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Subscription.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Subscription.Builder
Overrides

clearStartTime()

public Subscription.Builder clearStartTime()

The timestamp when the subscription begins, if applicable.

.google.protobuf.Timestamp start_time = 3;

Returns
Type Description
Subscription.Builder

clone()

public Subscription.Builder clone()
Returns
Type Description
Subscription.Builder
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
Type Description
Subscription

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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;

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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
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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Subscription.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Subscription.Builder
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
Name Description
value Timestamp
Returns
Type Description
Subscription.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Subscription.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Subscription.Builder
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
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

setField(Descriptors.FieldDescriptor field, Object value)

public Subscription.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Subscription.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Subscription.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Subscription.Builder
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
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

setUnknownFields(UnknownFieldSet unknownFields)

public final Subscription.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Subscription.Builder
Overrides