Interface OfferOrBuilder (3.12.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
TypeDescription
Constraints

The constraints.

getConstraintsOrBuilder()

public abstract ConstraintsOrBuilder getConstraintsOrBuilder()

Constraints on transacting the Offer.

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

Returns
TypeDescription
ConstraintsOrBuilder

getDealCode()

public abstract String getDealCode()

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

string deal_code = 12;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getMarketingInfo()

public abstract MarketingInfo getMarketingInfo()

Marketing information for the Offer.

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

Returns
TypeDescription
MarketingInfo

The marketingInfo.

getMarketingInfoOrBuilder()

public abstract MarketingInfoOrBuilder getMarketingInfoOrBuilder()

Marketing information for the Offer.

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

Returns
TypeDescription
MarketingInfoOrBuilder

getName()

public abstract String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ParameterDefinition

getParameterDefinitionsCount()

public abstract int getParameterDefinitionsCount()

Parameters required to use current Offer to purchase.

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Plan

The plan.

getPlanOrBuilder()

public abstract PlanOrBuilder getPlanOrBuilder()

Describes the payment plan for the Offer.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PriceByResource

getPriceByResourcesCount()

public abstract int getPriceByResourcesCount()

Price for each monetizable resource type.

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

Returns
TypeDescription
int

getPriceByResourcesList()

public abstract List<PriceByResource> getPriceByResourcesList()

Price for each monetizable resource type.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Sku

The sku.

getSkuOrBuilder()

public abstract SkuOrBuilder getSkuOrBuilder()

SKU the offer is associated with.

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

Returns
TypeDescription
SkuOrBuilder

getStartTime()

public abstract Timestamp getStartTime()

Start of the Offer validity time.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeOrBuilder()

public abstract TimestampOrBuilder getStartTimeOrBuilder()

Start of the Offer validity time.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
TimestampOrBuilder

hasConstraints()

public abstract boolean hasConstraints()

Constraints on transacting the Offer.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the startTime field is set.