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
@Generated
public interface OfferOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionConstraints on transacting the Offer.Constraints on transacting the Offer.The deal code of the offer to get a special promotion or discount.com.google.protobuf.ByteStringThe deal code of the offer to get a special promotion or discount.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Marketing information for the Offer.Marketing information for the Offer.getName()Resource Name of the Offer.com.google.protobuf.ByteStringResource Name of the Offer.getParameterDefinitions(int index) Parameters required to use current Offer to purchase.intParameters required to use current Offer to purchase.Parameters required to use current Offer to purchase.getParameterDefinitionsOrBuilder(int index) Parameters required to use current Offer to purchase.List<? extends ParameterDefinitionOrBuilder>Parameters required to use current Offer to purchase.getPlan()Describes the payment plan for the Offer.Describes the payment plan for the Offer.getPriceByResources(int index) Price for each monetizable resource type.intPrice for each monetizable resource type.Price for each monetizable resource type.getPriceByResourcesOrBuilder(int index) Price for each monetizable resource type.List<? extends PriceByResourceOrBuilder>Price for each monetizable resource type.getSku()SKU the offer is associated with.SKU the offer is associated with.com.google.protobuf.TimestampStart of the Offer validity time.com.google.protobuf.TimestampOrBuilderStart of the Offer validity time.booleanConstraints on transacting the Offer.booleanOutput only.booleanMarketing information for the Offer.booleanhasPlan()Describes the payment plan for the Offer.booleanhasSku()SKU the offer is associated with.booleanStart of the Offer validity time.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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
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
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
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.
-