Class Subscription.Builder (0.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Subscription.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Subscription.Builder
Overrides

build()

public Subscription build()
Returns
TypeDescription
Subscription

buildPartial()

public Subscription buildPartial()
Returns
TypeDescription
Subscription

clear()

public Subscription.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Subscription.Builder

clearField(Descriptors.FieldDescriptor field)

public Subscription.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Subscription.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Subscription.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Subscription.Builder
Overrides

clearStartTime()

public Subscription.Builder clearStartTime()

The timestamp when the subscription begins, if applicable.

.google.protobuf.Timestamp start_time = 3;

Returns
TypeDescription
Subscription.Builder

clone()

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

The autoRenewalEnabled.

getDefaultInstanceForType()

public Subscription getDefaultInstanceForType()
Returns
TypeDescription
Subscription

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

The timestamp when the subscription ends, if applicable.

.google.protobuf.Timestamp end_time = 1;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The timestamp when the subscription ends, if applicable.

.google.protobuf.Timestamp end_time = 1;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The timestamp when the subscription ends, if applicable.

.google.protobuf.Timestamp end_time = 1;

Returns
TypeDescription
TimestampOrBuilder

getStartTime()

public Timestamp getStartTime()

The timestamp when the subscription begins, if applicable.

.google.protobuf.Timestamp start_time = 3;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The timestamp when the subscription begins, if applicable.

.google.protobuf.Timestamp start_time = 3;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The timestamp when the subscription begins, if applicable.

.google.protobuf.Timestamp start_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

The timestamp when the subscription ends, if applicable.

.google.protobuf.Timestamp end_time = 1;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Subscription.Builder

mergeFrom(Subscription other)

public Subscription.Builder mergeFrom(Subscription other)
Parameter
NameDescription
otherSubscription
Returns
TypeDescription
Subscription.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Subscription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Subscription.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Subscription.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Subscription.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Subscription.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The autoRenewalEnabled to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Subscription.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Subscription.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Subscription.Builder
Overrides

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

public Subscription.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Subscription.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Subscription.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Subscription.Builder
Overrides