Package com.google.cloud.channel.v1
Class Offer
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.channel.v1.Offer
-
- All Implemented Interfaces:
OfferOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Offer extends com.google.protobuf.GeneratedMessageV3 implements OfferOrBuilder
Represents an offer made to resellers for purchase. An offer is associated with a [Sku][google.cloud.channel.v1.Sku], has a plan for payment, a price, and defines the constraints for buying.
Protobuf typegoogle.cloud.channel.v1.Offer- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOffer.BuilderRepresents an offer made to resellers for purchase.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRAINTS_FIELD_NUMBERstatic intDEAL_CODE_FIELD_NUMBERstatic intEND_TIME_FIELD_NUMBERstatic intMARKETING_INFO_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPARAMETER_DEFINITIONS_FIELD_NUMBERstatic intPLAN_FIELD_NUMBERstatic intPRICE_BY_RESOURCES_FIELD_NUMBERstatic intSKU_FIELD_NUMBERstatic intSTART_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)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.static OffergetDefaultInstance()OffergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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.com.google.protobuf.Parser<Offer>getParserForType()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.intgetSerializedSize()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.inthashCode()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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Offer.BuildernewBuilder()static Offer.BuildernewBuilder(Offer prototype)Offer.BuildernewBuilderForType()protected Offer.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static OfferparseDelimitedFrom(InputStream input)static OfferparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OfferparseFrom(byte[] data)static OfferparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OfferparseFrom(com.google.protobuf.ByteString data)static OfferparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OfferparseFrom(com.google.protobuf.CodedInputStream input)static OfferparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OfferparseFrom(InputStream input)static OfferparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OfferparseFrom(ByteBuffer data)static OfferparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Offer>parser()Offer.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MARKETING_INFO_FIELD_NUMBER
public static final int MARKETING_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SKU_FIELD_NUMBER
public static final int SKU_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PLAN_FIELD_NUMBER
public static final int PLAN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONSTRAINTS_FIELD_NUMBER
public static final int CONSTRAINTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRICE_BY_RESOURCES_FIELD_NUMBER
public static final int PRICE_BY_RESOURCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARAMETER_DEFINITIONS_FIELD_NUMBER
public static final int PARAMETER_DEFINITIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEAL_CODE_FIELD_NUMBER
public static final int DEAL_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}string name = 1;- Specified by:
getNamein interfaceOfferOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}string name = 1;- Specified by:
getNameBytesin interfaceOfferOrBuilder- Returns:
- The bytes for name.
-
hasMarketingInfo
public boolean hasMarketingInfo()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;- Specified by:
hasMarketingInfoin interfaceOfferOrBuilder- Returns:
- Whether the marketingInfo field is set.
-
getMarketingInfo
public MarketingInfo getMarketingInfo()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;- Specified by:
getMarketingInfoin interfaceOfferOrBuilder- Returns:
- The marketingInfo.
-
getMarketingInfoOrBuilder
public MarketingInfoOrBuilder getMarketingInfoOrBuilder()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;- Specified by:
getMarketingInfoOrBuilderin interfaceOfferOrBuilder
-
hasSku
public boolean hasSku()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;- Specified by:
hasSkuin interfaceOfferOrBuilder- Returns:
- Whether the sku field is set.
-
getSku
public Sku getSku()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;- Specified by:
getSkuin interfaceOfferOrBuilder- Returns:
- The sku.
-
getSkuOrBuilder
public SkuOrBuilder getSkuOrBuilder()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;- Specified by:
getSkuOrBuilderin interfaceOfferOrBuilder
-
hasPlan
public boolean hasPlan()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;- Specified by:
hasPlanin interfaceOfferOrBuilder- Returns:
- Whether the plan field is set.
-
getPlan
public Plan getPlan()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;- Specified by:
getPlanin interfaceOfferOrBuilder- Returns:
- The plan.
-
getPlanOrBuilder
public PlanOrBuilder getPlanOrBuilder()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;- Specified by:
getPlanOrBuilderin interfaceOfferOrBuilder
-
hasConstraints
public boolean hasConstraints()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;- Specified by:
hasConstraintsin interfaceOfferOrBuilder- Returns:
- Whether the constraints field is set.
-
getConstraints
public Constraints getConstraints()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;- Specified by:
getConstraintsin interfaceOfferOrBuilder- Returns:
- The constraints.
-
getConstraintsOrBuilder
public ConstraintsOrBuilder getConstraintsOrBuilder()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;- Specified by:
getConstraintsOrBuilderin interfaceOfferOrBuilder
-
getPriceByResourcesList
public List<PriceByResource> getPriceByResourcesList()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;- Specified by:
getPriceByResourcesListin interfaceOfferOrBuilder
-
getPriceByResourcesOrBuilderList
public List<? extends PriceByResourceOrBuilder> getPriceByResourcesOrBuilderList()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;- Specified by:
getPriceByResourcesOrBuilderListin interfaceOfferOrBuilder
-
getPriceByResourcesCount
public int getPriceByResourcesCount()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;- Specified by:
getPriceByResourcesCountin interfaceOfferOrBuilder
-
getPriceByResources
public PriceByResource getPriceByResources(int index)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;- Specified by:
getPriceByResourcesin interfaceOfferOrBuilder
-
getPriceByResourcesOrBuilder
public PriceByResourceOrBuilder getPriceByResourcesOrBuilder(int index)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;- Specified by:
getPriceByResourcesOrBuilderin interfaceOfferOrBuilder
-
hasStartTime
public boolean hasStartTime()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;- Specified by:
hasStartTimein interfaceOfferOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;- Specified by:
getStartTimein interfaceOfferOrBuilder- Returns:
- The startTime.
-
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;- Specified by:
getStartTimeOrBuilderin interfaceOfferOrBuilder
-
hasEndTime
public boolean hasEndTime()
Output only. End of the Offer validity time.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasEndTimein interfaceOfferOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public 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];- Specified by:
getEndTimein interfaceOfferOrBuilder- Returns:
- The endTime.
-
getEndTimeOrBuilder
public 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];- Specified by:
getEndTimeOrBuilderin interfaceOfferOrBuilder
-
getParameterDefinitionsList
public List<ParameterDefinition> getParameterDefinitionsList()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;- Specified by:
getParameterDefinitionsListin interfaceOfferOrBuilder
-
getParameterDefinitionsOrBuilderList
public List<? extends ParameterDefinitionOrBuilder> getParameterDefinitionsOrBuilderList()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;- Specified by:
getParameterDefinitionsOrBuilderListin interfaceOfferOrBuilder
-
getParameterDefinitionsCount
public int getParameterDefinitionsCount()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;- Specified by:
getParameterDefinitionsCountin interfaceOfferOrBuilder
-
getParameterDefinitions
public ParameterDefinition getParameterDefinitions(int index)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;- Specified by:
getParameterDefinitionsin interfaceOfferOrBuilder
-
getParameterDefinitionsOrBuilder
public ParameterDefinitionOrBuilder getParameterDefinitionsOrBuilder(int index)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;- Specified by:
getParameterDefinitionsOrBuilderin interfaceOfferOrBuilder
-
getDealCode
public String getDealCode()
The deal code of the offer to get a special promotion or discount.
string deal_code = 12;- Specified by:
getDealCodein interfaceOfferOrBuilder- Returns:
- The dealCode.
-
getDealCodeBytes
public com.google.protobuf.ByteString getDealCodeBytes()
The deal code of the offer to get a special promotion or discount.
string deal_code = 12;- Specified by:
getDealCodeBytesin interfaceOfferOrBuilder- Returns:
- The bytes for dealCode.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Offer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Offer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Offer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Offer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Offer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Offer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Offer parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Offer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Offer parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Offer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Offer parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Offer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Offer.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Offer.Builder newBuilder()
-
newBuilder
public static Offer.Builder newBuilder(Offer prototype)
-
toBuilder
public Offer.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Offer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Offer getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Offer> parser()
-
getParserForType
public com.google.protobuf.Parser<Offer> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Offer getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-