Interface OfferOrBuilder (3.52.0)

public interface OfferOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConstraints()

public abstract Constraints getConstraints()

Constraints on transacting the Offer.

.google.cloud.channel.v1.Constraints constraints = 5;

Returns
Type Description
Constraints

The constraints.

getConstraintsOrBuilder()

public abstract ConstraintsOrBuilder getConstraintsOrBuilder()

Constraints on transacting the Offer.

.google.cloud.channel.v1.Constraints constraints = 5;

Returns
Type Description
ConstraintsOrBuilder

getDealCode()

public abstract String getDealCode()

The deal code of the offer to get a special promotion or discount.

string deal_code = 12;

Returns
Type Description
String

The dealCode.

getDealCodeBytes()

public abstract ByteString getDealCodeBytes()

The deal code of the offer to get a special promotion or discount.

string deal_code = 12;

Returns
Type Description
ByteString

The bytes for dealCode.

getEndTime()

public abstract Timestamp getEndTime()

Output only. End of the Offer validity time.

.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeOrBuilder()

public abstract TimestampOrBuilder getEndTimeOrBuilder()

Output only. End of the Offer validity time.

.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getMarketingInfo()

public abstract MarketingInfo getMarketingInfo()

Marketing information for the Offer.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
Type Description
MarketingInfo

The marketingInfo.

getMarketingInfoOrBuilder()

public abstract MarketingInfoOrBuilder getMarketingInfoOrBuilder()

Marketing information for the Offer.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
Type Description
MarketingInfoOrBuilder

getName()

public abstract String getName()

Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParameterDefinitions(int index)

public abstract ParameterDefinition getParameterDefinitions(int index)

Parameters required to use current Offer to purchase.

repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;

Parameter
Name Description
index int
Returns
Type Description
ParameterDefinition

getParameterDefinitionsCount()

public abstract int getParameterDefinitionsCount()

Parameters required to use current Offer to purchase.

repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;

Returns
Type Description
int

getParameterDefinitionsList()

public abstract List<ParameterDefinition> getParameterDefinitionsList()

Parameters required to use current Offer to purchase.

repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;

Returns
Type Description
List<ParameterDefinition>

getParameterDefinitionsOrBuilder(int index)

public abstract ParameterDefinitionOrBuilder getParameterDefinitionsOrBuilder(int index)

Parameters required to use current Offer to purchase.

repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;

Parameter
Name Description
index int
Returns
Type Description
ParameterDefinitionOrBuilder

getParameterDefinitionsOrBuilderList()

public abstract List<? extends ParameterDefinitionOrBuilder> getParameterDefinitionsOrBuilderList()

Parameters required to use current Offer to purchase.

repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;

Returns
Type Description
List<? extends com.google.cloud.channel.v1.ParameterDefinitionOrBuilder>

getPlan()

public abstract Plan getPlan()

Describes the payment plan for the Offer.

.google.cloud.channel.v1.Plan plan = 4;

Returns
Type Description
Plan

The plan.

getPlanOrBuilder()

public abstract PlanOrBuilder getPlanOrBuilder()

Describes the payment plan for the Offer.

.google.cloud.channel.v1.Plan plan = 4;

Returns
Type Description
PlanOrBuilder

getPriceByResources(int index)

public abstract PriceByResource getPriceByResources(int index)

Price for each monetizable resource type.

repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;

Parameter
Name Description
index int
Returns
Type Description
PriceByResource

getPriceByResourcesCount()

public abstract int getPriceByResourcesCount()

Price for each monetizable resource type.

repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;

Returns
Type Description
int

getPriceByResourcesList()

public abstract List<PriceByResource> getPriceByResourcesList()

Price for each monetizable resource type.

repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;

Returns
Type Description
List<PriceByResource>

getPriceByResourcesOrBuilder(int index)

public abstract PriceByResourceOrBuilder getPriceByResourcesOrBuilder(int index)

Price for each monetizable resource type.

repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;

Parameter
Name Description
index int
Returns
Type Description
PriceByResourceOrBuilder

getPriceByResourcesOrBuilderList()

public abstract List<? extends PriceByResourceOrBuilder> getPriceByResourcesOrBuilderList()

Price for each monetizable resource type.

repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;

Returns
Type Description
List<? extends com.google.cloud.channel.v1.PriceByResourceOrBuilder>

getSku()

public abstract Sku getSku()

SKU the offer is associated with.

.google.cloud.channel.v1.Sku sku = 3;

Returns
Type Description
Sku

The sku.

getSkuOrBuilder()

public abstract SkuOrBuilder getSkuOrBuilder()

SKU the offer is associated with.

.google.cloud.channel.v1.Sku sku = 3;

Returns
Type Description
SkuOrBuilder

getStartTime()

public abstract Timestamp getStartTime()

Start of the Offer validity time.

.google.protobuf.Timestamp start_time = 7;

Returns
Type Description
Timestamp

The startTime.

getStartTimeOrBuilder()

public abstract TimestampOrBuilder getStartTimeOrBuilder()

Start of the Offer validity time.

.google.protobuf.Timestamp start_time = 7;

Returns
Type Description
TimestampOrBuilder

hasConstraints()

public abstract boolean hasConstraints()

Constraints on transacting the Offer.

.google.cloud.channel.v1.Constraints constraints = 5;

Returns
Type Description
boolean

Whether the constraints field is set.

hasEndTime()

public abstract boolean hasEndTime()

Output only. End of the Offer validity time.

.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasMarketingInfo()

public abstract boolean hasMarketingInfo()

Marketing information for the Offer.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
Type Description
boolean

Whether the marketingInfo field is set.

hasPlan()

public abstract boolean hasPlan()

Describes the payment plan for the Offer.

.google.cloud.channel.v1.Plan plan = 4;

Returns
Type Description
boolean

Whether the plan field is set.

hasSku()

public abstract boolean hasSku()

SKU the offer is associated with.

.google.cloud.channel.v1.Sku sku = 3;

Returns
Type Description
boolean

Whether the sku field is set.

hasStartTime()

public abstract boolean hasStartTime()

Start of the Offer validity time.

.google.protobuf.Timestamp start_time = 7;

Returns
Type Description
boolean

Whether the startTime field is set.