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 Constraints
getConstraints()
Constraints on transacting the Offer.ConstraintsOrBuilder
getConstraintsOrBuilder()
Constraints on transacting the Offer.String
getDealCode()
The deal code of the offer to get a special promotion or discount.com.google.protobuf.ByteString
getDealCodeBytes()
The deal code of the offer to get a special promotion or discount.com.google.protobuf.Timestamp
getEndTime()
Output only.com.google.protobuf.TimestampOrBuilder
getEndTimeOrBuilder()
Output only.MarketingInfo
getMarketingInfo()
Marketing information for the Offer.MarketingInfoOrBuilder
getMarketingInfoOrBuilder()
Marketing information for the Offer.String
getName()
Resource Name of the Offer.com.google.protobuf.ByteString
getNameBytes()
Resource Name of the Offer.ParameterDefinition
getParameterDefinitions(int index)
Parameters required to use current Offer to purchase.int
getParameterDefinitionsCount()
Parameters required to use current Offer to purchase.List<ParameterDefinition>
getParameterDefinitionsList()
Parameters required to use current Offer to purchase.ParameterDefinitionOrBuilder
getParameterDefinitionsOrBuilder(int index)
Parameters required to use current Offer to purchase.List<? extends ParameterDefinitionOrBuilder>
getParameterDefinitionsOrBuilderList()
Parameters required to use current Offer to purchase.Plan
getPlan()
Describes the payment plan for the Offer.PlanOrBuilder
getPlanOrBuilder()
Describes the payment plan for the Offer.PriceByResource
getPriceByResources(int index)
Price for each monetizable resource type.int
getPriceByResourcesCount()
Price for each monetizable resource type.List<PriceByResource>
getPriceByResourcesList()
Price for each monetizable resource type.PriceByResourceOrBuilder
getPriceByResourcesOrBuilder(int index)
Price for each monetizable resource type.List<? extends PriceByResourceOrBuilder>
getPriceByResourcesOrBuilderList()
Price for each monetizable resource type.Sku
getSku()
SKU the offer is associated with.SkuOrBuilder
getSkuOrBuilder()
SKU the offer is associated with.com.google.protobuf.Timestamp
getStartTime()
Start of the Offer validity time.com.google.protobuf.TimestampOrBuilder
getStartTimeOrBuilder()
Start of the Offer validity time.boolean
hasConstraints()
Constraints on transacting the Offer.boolean
hasEndTime()
Output only.boolean
hasMarketingInfo()
Marketing information for the Offer.boolean
hasPlan()
Describes the payment plan for the Offer.boolean
hasSku()
SKU the offer is associated with.boolean
hasStartTime()
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.
-
-