Package com.google.cloud.channel.v1
Class Offer
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class Offer
extends com.google.protobuf.GeneratedMessage
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 type
google.cloud.channel.v1.Offer- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents an offer made to resellers for purchase.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanConstraints 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.static Offerstatic final com.google.protobuf.Descriptors.Descriptorcom.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.com.google.protobuf.Parser<Offer>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.intgetSku()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.inthashCode()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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Offer.Builderstatic Offer.BuildernewBuilder(Offer prototype) protected Offer.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
MARKETING_INFO_FIELD_NUMBER
public static final int MARKETING_INFO_FIELD_NUMBER- See Also:
-
SKU_FIELD_NUMBER
public static final int SKU_FIELD_NUMBER- See Also:
-
PLAN_FIELD_NUMBER
public static final int PLAN_FIELD_NUMBER- See Also:
-
CONSTRAINTS_FIELD_NUMBER
public static final int CONSTRAINTS_FIELD_NUMBER- See Also:
-
PRICE_BY_RESOURCES_FIELD_NUMBER
public static final int PRICE_BY_RESOURCES_FIELD_NUMBER- See Also:
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER- See Also:
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER- See Also:
-
PARAMETER_DEFINITIONS_FIELD_NUMBER
public static final int PARAMETER_DEFINITIONS_FIELD_NUMBER- See Also:
-
DEAL_CODE_FIELD_NUMBER
public static final int DEAL_CODE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;- Specified by:
getMarketingInfoin interfaceOfferOrBuilder- Returns:
- The marketingInfo.
-
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
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;- Specified by:
getSkuin interfaceOfferOrBuilder- Returns:
- The sku.
-
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
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;- Specified by:
getPlanin interfaceOfferOrBuilder- Returns:
- The plan.
-
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
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;- Specified by:
getConstraintsin interfaceOfferOrBuilder- Returns:
- The constraints.
-
getConstraintsOrBuilder
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;- Specified by:
getConstraintsOrBuilderin interfaceOfferOrBuilder
-
getPriceByResourcesList
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;- Specified by:
getPriceByResourcesListin interfaceOfferOrBuilder
-
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
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;- Specified by:
getPriceByResourcesin interfaceOfferOrBuilder
-
getPriceByResourcesOrBuilder
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
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;- Specified by:
getParameterDefinitionsListin interfaceOfferOrBuilder
-
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
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;- Specified by:
getParameterDefinitionsin interfaceOfferOrBuilder
-
getParameterDefinitionsOrBuilder
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;- Specified by:
getParameterDefinitionsOrBuilderin interfaceOfferOrBuilder
-
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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static Offer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Offer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Offer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-