Class StandardOffer.Builder (0.1.0)

public static final class StandardOffer.Builder extends GeneratedMessage.Builder<StandardOffer.Builder> implements StandardOfferOrBuilder

Message describing the StandardOffer resource.

Protobuf type google.cloud.commerceproducer.v1beta.StandardOffer

Static Methods

getDescriptor()

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

Methods

build()

public StandardOffer build()
Returns
Type Description
StandardOffer

buildPartial()

public StandardOffer buildPartial()
Returns
Type Description
StandardOffer

clear()

public StandardOffer.Builder clear()
Returns
Type Description
StandardOffer.Builder
Overrides

clearCreateTime()

public StandardOffer.Builder clearCreateTime()

Output only. Creation time of the offer.

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

Returns
Type Description
StandardOffer.Builder

clearEffectiveTime()

public StandardOffer.Builder clearEffectiveTime()

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
StandardOffer.Builder

clearExpireTime()

public StandardOffer.Builder clearExpireTime()

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
StandardOffer.Builder

clearName()

public StandardOffer.Builder clearName()

Identifier. Name of resource.

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

Returns
Type Description
StandardOffer.Builder

This builder for chaining.

clearPriceModel()

public StandardOffer.Builder clearPriceModel()

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

clearServiceLevel()

public StandardOffer.Builder clearServiceLevel()

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
StandardOffer.Builder

This builder for chaining.

clearServiceLevelTitle()

public StandardOffer.Builder clearServiceLevelTitle()

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
StandardOffer.Builder

This builder for chaining.

clearTerm()

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

clearTermDurationMonths()

public StandardOffer.Builder clearTermDurationMonths()

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
StandardOffer.Builder

This builder for chaining.

clearUpdateTime()

public StandardOffer.Builder clearUpdateTime()

Output only. Last update time of the offer.

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

Returns
Type Description
StandardOffer.Builder

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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Creation time of the offer.

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

Returns
Type Description
Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getEffectiveTimeBuilder()

public Timestamp.Builder getEffectiveTimeBuilder()

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
Builder

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.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

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
Builder

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.

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.

getPriceModelBuilder()

public StandardOffer.PriceModel.Builder getPriceModelBuilder()

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

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

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.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Last update time of the offer.

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

Returns
Type Description
Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public StandardOffer.Builder mergeCreateTime(Timestamp value)

Output only. Creation time of the offer.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
StandardOffer.Builder

mergeEffectiveTime(Timestamp value)

public StandardOffer.Builder mergeEffectiveTime(Timestamp value)

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

Parameter
Name Description
value Timestamp
Returns
Type Description
StandardOffer.Builder

mergeExpireTime(Timestamp value)

public StandardOffer.Builder mergeExpireTime(Timestamp value)

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

Parameter
Name Description
value Timestamp
Returns
Type Description
StandardOffer.Builder

mergeFrom(StandardOffer other)

public StandardOffer.Builder mergeFrom(StandardOffer other)
Parameter
Name Description
other StandardOffer
Returns
Type Description
StandardOffer.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StandardOffer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StandardOffer.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StandardOffer.Builder
Overrides

mergePriceModel(StandardOffer.PriceModel value)

public StandardOffer.Builder mergePriceModel(StandardOffer.PriceModel value)

Output only. Price model of the offer.

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

Parameter
Name Description
value StandardOffer.PriceModel
Returns
Type Description
StandardOffer.Builder

mergeUpdateTime(Timestamp value)

public StandardOffer.Builder mergeUpdateTime(Timestamp value)

Output only. Last update time of the offer.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
StandardOffer.Builder

setCreateTime(Timestamp value)

public StandardOffer.Builder setCreateTime(Timestamp value)

Output only. Creation time of the offer.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
StandardOffer.Builder

setCreateTime(Timestamp.Builder builderForValue)

public StandardOffer.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creation time of the offer.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
StandardOffer.Builder

setEffectiveTime(Timestamp value)

public StandardOffer.Builder setEffectiveTime(Timestamp value)

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

Parameter
Name Description
value Timestamp
Returns
Type Description
StandardOffer.Builder

setEffectiveTime(Timestamp.Builder builderForValue)

public StandardOffer.Builder setEffectiveTime(Timestamp.Builder builderForValue)

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
StandardOffer.Builder

setExpireTime(Timestamp value)

public StandardOffer.Builder setExpireTime(Timestamp value)

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

Parameter
Name Description
value Timestamp
Returns
Type Description
StandardOffer.Builder

setExpireTime(Timestamp.Builder builderForValue)

public StandardOffer.Builder setExpireTime(Timestamp.Builder builderForValue)

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
StandardOffer.Builder

setName(String value)

public StandardOffer.Builder setName(String value)

Identifier. Name of resource.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
StandardOffer.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StandardOffer.Builder setNameBytes(ByteString value)

Identifier. Name of resource.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
StandardOffer.Builder

This builder for chaining.

setPriceModel(StandardOffer.PriceModel value)

public StandardOffer.Builder setPriceModel(StandardOffer.PriceModel value)

Output only. Price model of the offer.

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

Parameter
Name Description
value StandardOffer.PriceModel
Returns
Type Description
StandardOffer.Builder

setPriceModel(StandardOffer.PriceModel.Builder builderForValue)

public StandardOffer.Builder setPriceModel(StandardOffer.PriceModel.Builder builderForValue)

Output only. Price model of the offer.

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

Parameter
Name Description
builderForValue StandardOffer.PriceModel.Builder
Returns
Type Description
StandardOffer.Builder

setServiceLevel(String value)

public StandardOffer.Builder setServiceLevel(String value)

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

Parameter
Name Description
value String

The serviceLevel to set.

Returns
Type Description
StandardOffer.Builder

This builder for chaining.

setServiceLevelBytes(ByteString value)

public StandardOffer.Builder setServiceLevelBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for serviceLevel to set.

Returns
Type Description
StandardOffer.Builder

This builder for chaining.

setServiceLevelTitle(String value)

public StandardOffer.Builder setServiceLevelTitle(String value)

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

Parameter
Name Description
value String

The serviceLevelTitle to set.

Returns
Type Description
StandardOffer.Builder

This builder for chaining.

setServiceLevelTitleBytes(ByteString value)

public StandardOffer.Builder setServiceLevelTitleBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for serviceLevelTitle to set.

Returns
Type Description
StandardOffer.Builder

This builder for chaining.

setTermDurationMonths(int value)

public StandardOffer.Builder setTermDurationMonths(int value)

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

Parameter
Name Description
value int

The termDurationMonths to set.

Returns
Type Description
StandardOffer.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public StandardOffer.Builder setUpdateTime(Timestamp value)

Output only. Last update time of the offer.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
StandardOffer.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public StandardOffer.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Last update time of the offer.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
StandardOffer.Builder