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 class
Offer.Builder
Represents 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 int
CONSTRAINTS_FIELD_NUMBER
static int
DEAL_CODE_FIELD_NUMBER
static int
END_TIME_FIELD_NUMBER
static int
MARKETING_INFO_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
PARAMETER_DEFINITIONS_FIELD_NUMBER
static int
PLAN_FIELD_NUMBER
static int
PRICE_BY_RESOURCES_FIELD_NUMBER
static int
SKU_FIELD_NUMBER
static int
START_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
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.static Offer
getDefaultInstance()
Offer
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
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.com.google.protobuf.Parser<Offer>
getParserForType()
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.int
getSerializedSize()
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.int
hashCode()
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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Offer.Builder
newBuilder()
static Offer.Builder
newBuilder(Offer prototype)
Offer.Builder
newBuilderForType()
protected Offer.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Offer
parseDelimitedFrom(InputStream input)
static Offer
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Offer
parseFrom(byte[] data)
static Offer
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Offer
parseFrom(com.google.protobuf.ByteString data)
static Offer
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Offer
parseFrom(com.google.protobuf.CodedInputStream input)
static Offer
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Offer
parseFrom(InputStream input)
static Offer
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Offer
parseFrom(ByteBuffer data)
static Offer
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Offer>
parser()
Offer.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getName
in 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:
getNameBytes
in 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:
hasMarketingInfo
in 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:
getMarketingInfo
in interfaceOfferOrBuilder
- Returns:
- The marketingInfo.
-
getMarketingInfoOrBuilder
public MarketingInfoOrBuilder getMarketingInfoOrBuilder()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
- Specified by:
getMarketingInfoOrBuilder
in interfaceOfferOrBuilder
-
hasSku
public boolean hasSku()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;
- Specified by:
hasSku
in 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:
getSku
in interfaceOfferOrBuilder
- Returns:
- The sku.
-
getSkuOrBuilder
public SkuOrBuilder getSkuOrBuilder()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;
- Specified by:
getSkuOrBuilder
in interfaceOfferOrBuilder
-
hasPlan
public boolean hasPlan()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;
- Specified by:
hasPlan
in 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:
getPlan
in interfaceOfferOrBuilder
- Returns:
- The plan.
-
getPlanOrBuilder
public PlanOrBuilder getPlanOrBuilder()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;
- Specified by:
getPlanOrBuilder
in interfaceOfferOrBuilder
-
hasConstraints
public boolean hasConstraints()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;
- Specified by:
hasConstraints
in 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:
getConstraints
in interfaceOfferOrBuilder
- Returns:
- The constraints.
-
getConstraintsOrBuilder
public ConstraintsOrBuilder getConstraintsOrBuilder()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;
- Specified by:
getConstraintsOrBuilder
in interfaceOfferOrBuilder
-
getPriceByResourcesList
public List<PriceByResource> getPriceByResourcesList()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
- Specified by:
getPriceByResourcesList
in 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:
getPriceByResourcesOrBuilderList
in interfaceOfferOrBuilder
-
getPriceByResourcesCount
public int getPriceByResourcesCount()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
- Specified by:
getPriceByResourcesCount
in 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:
getPriceByResources
in 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:
getPriceByResourcesOrBuilder
in interfaceOfferOrBuilder
-
hasStartTime
public boolean hasStartTime()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;
- Specified by:
hasStartTime
in 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:
getStartTime
in 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:
getStartTimeOrBuilder
in 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:
hasEndTime
in 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:
getEndTime
in 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:
getEndTimeOrBuilder
in 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:
getParameterDefinitionsList
in 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:
getParameterDefinitionsOrBuilderList
in interfaceOfferOrBuilder
-
getParameterDefinitionsCount
public int getParameterDefinitionsCount()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
- Specified by:
getParameterDefinitionsCount
in 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:
getParameterDefinitions
in 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:
getParameterDefinitionsOrBuilder
in interfaceOfferOrBuilder
-
getDealCode
public String getDealCode()
The deal code of the offer to get a special promotion or discount.
string deal_code = 12;
- Specified by:
getDealCode
in 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:
getDealCodeBytes
in interfaceOfferOrBuilder
- Returns:
- The bytes for dealCode.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Offer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Offer getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-