public final class Offer extends GeneratedMessageV3 implements OfferOrBuilder
Represents an offer made to resellers for purchase.
An offer is associated with a Sku, has a plan for payment, a price, and
defines the constraints for buying.
Protobuf type google.cloud.channel.v1.Offer
Fields
CONSTRAINTS_FIELD_NUMBER
public static final int CONSTRAINTS_FIELD_NUMBER
Field Value
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
Field Value
MARKETING_INFO_FIELD_NUMBER
public static final int MARKETING_INFO_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
PARAMETER_DEFINITIONS_FIELD_NUMBER
public static final int PARAMETER_DEFINITIONS_FIELD_NUMBER
Field Value
PLAN_FIELD_NUMBER
public static final int PLAN_FIELD_NUMBER
Field Value
PRICE_BY_RESOURCES_FIELD_NUMBER
public static final int PRICE_BY_RESOURCES_FIELD_NUMBER
Field Value
SKU_FIELD_NUMBER
public static final int SKU_FIELD_NUMBER
Field Value
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getConstraints()
public Constraints getConstraints()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;
Returns
getConstraintsOrBuilder()
public ConstraintsOrBuilder getConstraintsOrBuilder()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;
Returns
getDefaultInstance()
public static Offer getDefaultInstance()
Returns
getDefaultInstanceForType()
public Offer getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getEndTime()
public Timestamp getEndTime()
Output only. End of the Offer validity time.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
Output only. End of the Offer validity time.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getMarketingInfo()
public MarketingInfo getMarketingInfo()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns
getMarketingInfoOrBuilder()
public MarketingInfoOrBuilder getMarketingInfoOrBuilder()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns
getName()
Resource Name of the Offer.
Format: accounts/{account_id}/offers/{offer_id}
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Resource Name of the Offer.
Format: accounts/{account_id}/offers/{offer_id}
string name = 1;
Returns
getParameterDefinitions(int index)
public ParameterDefinition getParameterDefinitions(int index)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Parameter
Returns
getParameterDefinitionsCount()
public int getParameterDefinitionsCount()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Returns
getParameterDefinitionsList()
public List<ParameterDefinition> getParameterDefinitionsList()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Returns
getParameterDefinitionsOrBuilder(int index)
public ParameterDefinitionOrBuilder getParameterDefinitionsOrBuilder(int index)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Parameter
Returns
getParameterDefinitionsOrBuilderList()
public List<? extends ParameterDefinitionOrBuilder> getParameterDefinitionsOrBuilderList()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Returns
Type | Description |
List<? extends com.google.cloud.channel.v1.ParameterDefinitionOrBuilder> | |
getParserForType()
public Parser<Offer> getParserForType()
Returns
Overrides
getPlan()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;
Returns
Type | Description |
Plan | The plan.
|
getPlanOrBuilder()
public PlanOrBuilder getPlanOrBuilder()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;
Returns
getPriceByResources(int index)
public PriceByResource getPriceByResources(int index)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Parameter
Returns
getPriceByResourcesCount()
public int getPriceByResourcesCount()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Returns
getPriceByResourcesList()
public List<PriceByResource> getPriceByResourcesList()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Returns
getPriceByResourcesOrBuilder(int index)
public PriceByResourceOrBuilder getPriceByResourcesOrBuilder(int index)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Parameter
Returns
getPriceByResourcesOrBuilderList()
public List<? extends PriceByResourceOrBuilder> getPriceByResourcesOrBuilderList()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Returns
Type | Description |
List<? extends com.google.cloud.channel.v1.PriceByResourceOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSku()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;
Returns
Type | Description |
Sku | The sku.
|
getSkuOrBuilder()
public SkuOrBuilder getSkuOrBuilder()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;
Returns
getStartTime()
public Timestamp getStartTime()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;
Returns
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasConstraints()
public boolean hasConstraints()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;
Returns
Type | Description |
boolean | Whether the constraints field is set.
|
hasEndTime()
public boolean hasEndTime()
Output only. End of the Offer validity time.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the endTime field is set.
|
hasMarketingInfo()
public boolean hasMarketingInfo()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns
Type | Description |
boolean | Whether the marketingInfo field is set.
|
hasPlan()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;
Returns
Type | Description |
boolean | Whether the plan field is set.
|
hasSku()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;
Returns
Type | Description |
boolean | Whether the sku field is set.
|
hasStartTime()
public boolean hasStartTime()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;
Returns
Type | Description |
boolean | Whether the startTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Offer.Builder newBuilder()
Returns
newBuilder(Offer prototype)
public static Offer.Builder newBuilder(Offer prototype)
Parameter
Name | Description |
prototype | Offer
|
Returns
newBuilderForType()
public Offer.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Offer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Offer parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Offer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Offer parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Offer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Offer parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Offer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Offer parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Offer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Offer parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Offer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Offer parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Offer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Offer> parser()
Returns
toBuilder()
public Offer.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions