Package com.google.cloud.channel.v1
Interface OfferOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Offer,Offer.Builder
public interface OfferOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConstraintsgetConstraints()Constraints on transacting the Offer.ConstraintsOrBuildergetConstraintsOrBuilder()Constraints on transacting the Offer.StringgetDealCode()The deal code of the offer to get a special promotion or discount.com.google.protobuf.ByteStringgetDealCodeBytes()The deal code of the offer to get a special promotion or discount.com.google.protobuf.TimestampgetEndTime()Output only.com.google.protobuf.TimestampOrBuildergetEndTimeOrBuilder()Output only.MarketingInfogetMarketingInfo()Marketing information for the Offer.MarketingInfoOrBuildergetMarketingInfoOrBuilder()Marketing information for the Offer.StringgetName()Resource Name of the Offer.com.google.protobuf.ByteStringgetNameBytes()Resource Name of the Offer.ParameterDefinitiongetParameterDefinitions(int index)Parameters required to use current Offer to purchase.intgetParameterDefinitionsCount()Parameters required to use current Offer to purchase.List<ParameterDefinition>getParameterDefinitionsList()Parameters required to use current Offer to purchase.ParameterDefinitionOrBuildergetParameterDefinitionsOrBuilder(int index)Parameters required to use current Offer to purchase.List<? extends ParameterDefinitionOrBuilder>getParameterDefinitionsOrBuilderList()Parameters required to use current Offer to purchase.PlangetPlan()Describes the payment plan for the Offer.PlanOrBuildergetPlanOrBuilder()Describes the payment plan for the Offer.PriceByResourcegetPriceByResources(int index)Price for each monetizable resource type.intgetPriceByResourcesCount()Price for each monetizable resource type.List<PriceByResource>getPriceByResourcesList()Price for each monetizable resource type.PriceByResourceOrBuildergetPriceByResourcesOrBuilder(int index)Price for each monetizable resource type.List<? extends PriceByResourceOrBuilder>getPriceByResourcesOrBuilderList()Price for each monetizable resource type.SkugetSku()SKU the offer is associated with.SkuOrBuildergetSkuOrBuilder()SKU the offer is associated with.com.google.protobuf.TimestampgetStartTime()Start of the Offer validity time.com.google.protobuf.TimestampOrBuildergetStartTimeOrBuilder()Start of the Offer validity time.booleanhasConstraints()Constraints on transacting the Offer.booleanhasEndTime()Output only.booleanhasMarketingInfo()Marketing information for the Offer.booleanhasPlan()Describes the payment plan for the Offer.booleanhasSku()SKU the offer is associated with.booleanhasStartTime()Start of the Offer validity time.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}string name = 1;- Returns:
- The bytes for name.
-
hasMarketingInfo
boolean hasMarketingInfo()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;- Returns:
- Whether the marketingInfo field is set.
-
getMarketingInfo
MarketingInfo getMarketingInfo()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;- Returns:
- The marketingInfo.
-
getMarketingInfoOrBuilder
MarketingInfoOrBuilder getMarketingInfoOrBuilder()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
-
hasSku
boolean hasSku()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;- Returns:
- Whether the sku field is set.
-
getSku
Sku getSku()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;- Returns:
- The sku.
-
getSkuOrBuilder
SkuOrBuilder getSkuOrBuilder()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;
-
hasPlan
boolean hasPlan()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;- Returns:
- Whether the plan field is set.
-
getPlan
Plan getPlan()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;- Returns:
- The plan.
-
getPlanOrBuilder
PlanOrBuilder getPlanOrBuilder()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;
-
hasConstraints
boolean hasConstraints()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;- Returns:
- Whether the constraints field is set.
-
getConstraints
Constraints getConstraints()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;- Returns:
- The constraints.
-
getConstraintsOrBuilder
ConstraintsOrBuilder getConstraintsOrBuilder()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;
-
getPriceByResourcesList
List<PriceByResource> getPriceByResourcesList()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
-
getPriceByResources
PriceByResource getPriceByResources(int index)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
-
getPriceByResourcesCount
int getPriceByResourcesCount()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
-
getPriceByResourcesOrBuilderList
List<? extends PriceByResourceOrBuilder> getPriceByResourcesOrBuilderList()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
-
getPriceByResourcesOrBuilder
PriceByResourceOrBuilder getPriceByResourcesOrBuilder(int index)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
-
hasStartTime
boolean hasStartTime()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;- Returns:
- Whether the startTime field is set.
-
getStartTime
com.google.protobuf.Timestamp getStartTime()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;- Returns:
- The startTime.
-
getStartTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;
-
hasEndTime
boolean hasEndTime()
Output only. End of the Offer validity time.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the endTime field is set.
-
getEndTime
com.google.protobuf.Timestamp getEndTime()
Output only. End of the Offer validity time.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The endTime.
-
getEndTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
Output only. End of the Offer validity time.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getParameterDefinitionsList
List<ParameterDefinition> getParameterDefinitionsList()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
-
getParameterDefinitions
ParameterDefinition getParameterDefinitions(int index)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
-
getParameterDefinitionsCount
int getParameterDefinitionsCount()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
-
getParameterDefinitionsOrBuilderList
List<? extends ParameterDefinitionOrBuilder> getParameterDefinitionsOrBuilderList()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
-
getParameterDefinitionsOrBuilder
ParameterDefinitionOrBuilder getParameterDefinitionsOrBuilder(int index)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
-
getDealCode
String getDealCode()
The deal code of the offer to get a special promotion or discount.
string deal_code = 12;- Returns:
- The dealCode.
-
getDealCodeBytes
com.google.protobuf.ByteString getDealCodeBytes()
The deal code of the offer to get a special promotion or discount.
string deal_code = 12;- Returns:
- The bytes for dealCode.
-
-