public final class StandardOffer extends GeneratedMessage implements StandardOfferOrBuilder
Message describing the StandardOffer resource.
Protobuf type google.cloud.commerceproducer.v1beta.StandardOffer
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static StandardOffer.Builder newBuilder()
newBuilder(StandardOffer prototype)
public static StandardOffer.Builder newBuilder(StandardOffer prototype)
public static StandardOffer parseDelimitedFrom(InputStream input)
public static StandardOffer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static StandardOffer parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static StandardOffer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static StandardOffer parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StandardOffer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StandardOffer parseFrom(CodedInputStream input)
public static StandardOffer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static StandardOffer parseFrom(InputStream input)
public static StandardOffer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static StandardOffer parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static StandardOffer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<StandardOffer> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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];
getDefaultInstanceForType()
public StandardOffer getDefaultInstanceForType()
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];
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];
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()
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];
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];
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()
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];
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public StandardOffer.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected StandardOffer.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public StandardOffer.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides