public final class Subscription extends GeneratedMessageV3 implements SubscriptionOrBuilder
Subscription information.
Protobuf type google.cloud.commerce.consumer.procurement.v1alpha1.Subscription
Static Fields
AUTO_RENEWAL_ENABLED_FIELD_NUMBER
public static final int AUTO_RENEWAL_ENABLED_FIELD_NUMBER
Field Value
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
Field Value
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Subscription getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Subscription.Builder newBuilder()
Returns
newBuilder(Subscription prototype)
public static Subscription.Builder newBuilder(Subscription prototype)
Parameter
Returns
public static Subscription parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Subscription parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Subscription parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Subscription parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Subscription parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Subscription parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Subscription parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Subscription parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Subscription parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Subscription parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Subscription parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Subscription parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Subscription> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
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
getEndTime()
public Timestamp getEndTime()
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
getParserForType()
public Parser<Subscription> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getStartTime()
public Timestamp getStartTime()
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Subscription.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Subscription.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Subscription.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions