Class StandardOffer (0.1.0)

public final class StandardOffer extends GeneratedMessage implements StandardOfferOrBuilder

Message describing the StandardOffer resource.

Protobuf type google.cloud.commerceproducer.v1beta.StandardOffer

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

EFFECTIVE_TIME_FIELD_NUMBER

public static final int EFFECTIVE_TIME_FIELD_NUMBER
Field Value
Type Description
int

EXPIRE_TIME_FIELD_NUMBER

public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PRICE_MODEL_FIELD_NUMBER

public static final int PRICE_MODEL_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_LEVEL_FIELD_NUMBER

public static final int SERVICE_LEVEL_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_LEVEL_TITLE_FIELD_NUMBER

public static final int SERVICE_LEVEL_TITLE_FIELD_NUMBER
Field Value
Type Description
int

TERM_DURATION_MONTHS_FIELD_NUMBER

public static final int TERM_DURATION_MONTHS_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StandardOffer getDefaultInstance()
Returns
Type Description
StandardOffer

getDescriptor()

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

newBuilder()

public static StandardOffer.Builder newBuilder()
Returns
Type Description
StandardOffer.Builder

newBuilder(StandardOffer prototype)

public static StandardOffer.Builder newBuilder(StandardOffer prototype)
Parameter
Name Description
prototype StandardOffer
Returns
Type Description
StandardOffer.Builder

parseDelimitedFrom(InputStream input)

public static StandardOffer parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StandardOffer
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StandardOffer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static StandardOffer parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
StandardOffer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StandardOffer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StandardOffer parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StandardOffer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StandardOffer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StandardOffer parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StandardOffer
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StandardOffer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static StandardOffer parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StandardOffer
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StandardOffer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static StandardOffer parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StandardOffer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StandardOffer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<StandardOffer> parser()
Returns
Type Description
Parser<StandardOffer>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Creation time of the offer.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creation time of the offer.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public StandardOffer getDefaultInstanceForType()
Returns
Type Description
StandardOffer

getEffectiveTime()

public Timestamp getEffectiveTime()

Output only. Effective time of the offer. Prior to this time, the offer cannot be purchased or used as the base standard offer of a private offer.

.google.protobuf.Timestamp effective_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The effectiveTime.

getEffectiveTimeOrBuilder()

public TimestampOrBuilder getEffectiveTimeOrBuilder()

Output only. Effective time of the offer. Prior to this time, the offer cannot be purchased or used as the base standard offer of a private offer.

.google.protobuf.Timestamp effective_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getExpireTime()

public Timestamp getExpireTime()

Output only. Expire time of the offer. An offer is expired if its expire time is in the past. An expired standard offer cannot be purchased or used as the base standard offer of a private offer.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. Expire time of the offer. An offer is expired if its expire time is in the past. An expired standard offer cannot be purchased or used as the base standard offer of a private offer.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getName()

public String getName()

Identifier. Name of resource.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of resource.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<StandardOffer> getParserForType()
Returns
Type Description
Parser<StandardOffer>
Overrides

getPriceModel()

public StandardOffer.PriceModel getPriceModel()

Output only. Price model of the offer.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel price_model = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StandardOffer.PriceModel

The priceModel.

getPriceModelOrBuilder()

public StandardOffer.PriceModelOrBuilder getPriceModelOrBuilder()

Output only. Price model of the offer.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel price_model = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StandardOffer.PriceModelOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceLevel()

public String getServiceLevel()

Output only. Identifier that distinguishes between different service levels of the same product that constitute distinct offerings to customers with different pricing.

The service levels of a product are also referred to in some cases as the product's 'plans', and the service_level value is referred to in some cases as the "plan ID".

Multiple non-expired standard offers can share the same service level when they are subscription offers for different term durations.

string service_level = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The serviceLevel.

getServiceLevelBytes()

public ByteString getServiceLevelBytes()

Output only. Identifier that distinguishes between different service levels of the same product that constitute distinct offerings to customers with different pricing.

The service levels of a product are also referred to in some cases as the product's 'plans', and the service_level value is referred to in some cases as the "plan ID".

Multiple non-expired standard offers can share the same service level when they are subscription offers for different term durations.

string service_level = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for serviceLevel.

getServiceLevelTitle()

public String getServiceLevelTitle()

Output only. Title of the service level.

Not included for STANDARD_OFFER_VIEW_BASIC.

string service_level_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The serviceLevelTitle.

getServiceLevelTitleBytes()

public ByteString getServiceLevelTitleBytes()

Output only. Title of the service level.

Not included for STANDARD_OFFER_VIEW_BASIC.

string service_level_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for serviceLevelTitle.

getTermCase()

public StandardOffer.TermCase getTermCase()
Returns
Type Description
StandardOffer.TermCase

getTermDurationMonths()

public int getTermDurationMonths()

Output only. Term duration of the offer in months. Applicable only to offers with a subscription price model. Additional forms of offer term may be added in the future.

int32 term_duration_months = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The termDurationMonths.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Last update time of the offer.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Last update time of the offer.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Creation time of the offer.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasEffectiveTime()

public boolean hasEffectiveTime()

Output only. Effective time of the offer. Prior to this time, the offer cannot be purchased or used as the base standard offer of a private offer.

.google.protobuf.Timestamp effective_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the effectiveTime field is set.

hasExpireTime()

public boolean hasExpireTime()

Output only. Expire time of the offer. An offer is expired if its expire time is in the past. An expired standard offer cannot be purchased or used as the base standard offer of a private offer.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the expireTime field is set.

hasPriceModel()

public boolean hasPriceModel()

Output only. Price model of the offer.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel price_model = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the priceModel field is set.

hasTermDurationMonths()

public boolean hasTermDurationMonths()

Output only. Term duration of the offer in months. Applicable only to offers with a subscription price model. Additional forms of offer term may be added in the future.

int32 term_duration_months = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the termDurationMonths field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Last update time of the offer.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public StandardOffer.Builder newBuilderForType()
Returns
Type Description
StandardOffer.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected StandardOffer.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StandardOffer.Builder
Overrides

toBuilder()

public StandardOffer.Builder toBuilder()
Returns
Type Description
StandardOffer.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException