- 3.51.0 (latest)
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.6
- 3.6.1
- 3.5.1
- 3.3.1
public static final class Offer.Builder extends GeneratedMessageV3.Builder<Offer.Builder> 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Offer.BuilderImplements
OfferOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllParameterDefinitions(Iterable<? extends ParameterDefinition> values)
public Offer.Builder addAllParameterDefinitions(Iterable<? extends ParameterDefinition> values)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.channel.v1.ParameterDefinition> |
Returns | |
---|---|
Type | Description |
Offer.Builder |
addAllPriceByResources(Iterable<? extends PriceByResource> values)
public Offer.Builder addAllPriceByResources(Iterable<? extends PriceByResource> values)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.channel.v1.PriceByResource> |
Returns | |
---|---|
Type | Description |
Offer.Builder |
addParameterDefinitions(ParameterDefinition value)
public Offer.Builder addParameterDefinitions(ParameterDefinition value)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Parameter | |
---|---|
Name | Description |
value |
ParameterDefinition |
Returns | |
---|---|
Type | Description |
Offer.Builder |
addParameterDefinitions(ParameterDefinition.Builder builderForValue)
public Offer.Builder addParameterDefinitions(ParameterDefinition.Builder builderForValue)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Parameter | |
---|---|
Name | Description |
builderForValue |
ParameterDefinition.Builder |
Returns | |
---|---|
Type | Description |
Offer.Builder |
addParameterDefinitions(int index, ParameterDefinition value)
public Offer.Builder addParameterDefinitions(int index, ParameterDefinition value)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
ParameterDefinition |
Returns | |
---|---|
Type | Description |
Offer.Builder |
addParameterDefinitions(int index, ParameterDefinition.Builder builderForValue)
public Offer.Builder addParameterDefinitions(int index, ParameterDefinition.Builder builderForValue)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
ParameterDefinition.Builder |
Returns | |
---|---|
Type | Description |
Offer.Builder |
addParameterDefinitionsBuilder()
public ParameterDefinition.Builder addParameterDefinitionsBuilder()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Returns | |
---|---|
Type | Description |
ParameterDefinition.Builder |
addParameterDefinitionsBuilder(int index)
public ParameterDefinition.Builder addParameterDefinitionsBuilder(int index)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ParameterDefinition.Builder |
addPriceByResources(PriceByResource value)
public Offer.Builder addPriceByResources(PriceByResource value)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Parameter | |
---|---|
Name | Description |
value |
PriceByResource |
Returns | |
---|---|
Type | Description |
Offer.Builder |
addPriceByResources(PriceByResource.Builder builderForValue)
public Offer.Builder addPriceByResources(PriceByResource.Builder builderForValue)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Parameter | |
---|---|
Name | Description |
builderForValue |
PriceByResource.Builder |
Returns | |
---|---|
Type | Description |
Offer.Builder |
addPriceByResources(int index, PriceByResource value)
public Offer.Builder addPriceByResources(int index, PriceByResource value)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
PriceByResource |
Returns | |
---|---|
Type | Description |
Offer.Builder |
addPriceByResources(int index, PriceByResource.Builder builderForValue)
public Offer.Builder addPriceByResources(int index, PriceByResource.Builder builderForValue)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
PriceByResource.Builder |
Returns | |
---|---|
Type | Description |
Offer.Builder |
addPriceByResourcesBuilder()
public PriceByResource.Builder addPriceByResourcesBuilder()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Returns | |
---|---|
Type | Description |
PriceByResource.Builder |
addPriceByResourcesBuilder(int index)
public PriceByResource.Builder addPriceByResourcesBuilder(int index)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
PriceByResource.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Offer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Offer.Builder |
build()
public Offer build()
Returns | |
---|---|
Type | Description |
Offer |
buildPartial()
public Offer buildPartial()
Returns | |
---|---|
Type | Description |
Offer |
clear()
public Offer.Builder clear()
Returns | |
---|---|
Type | Description |
Offer.Builder |
clearConstraints()
public Offer.Builder clearConstraints()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;
Returns | |
---|---|
Type | Description |
Offer.Builder |
clearDealCode()
public Offer.Builder clearDealCode()
The deal code of the offer to get a special promotion or discount.
string deal_code = 12;
Returns | |
---|---|
Type | Description |
Offer.Builder |
This builder for chaining. |
clearEndTime()
public Offer.Builder clearEndTime()
Output only. End of the Offer validity time.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Offer.Builder |
clearField(Descriptors.FieldDescriptor field)
public Offer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Offer.Builder |
clearMarketingInfo()
public Offer.Builder clearMarketingInfo()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns | |
---|---|
Type | Description |
Offer.Builder |
clearName()
public Offer.Builder clearName()
Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}
string name = 1;
Returns | |
---|---|
Type | Description |
Offer.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Offer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Offer.Builder |
clearParameterDefinitions()
public Offer.Builder clearParameterDefinitions()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Returns | |
---|---|
Type | Description |
Offer.Builder |
clearPlan()
public Offer.Builder clearPlan()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;
Returns | |
---|---|
Type | Description |
Offer.Builder |
clearPriceByResources()
public Offer.Builder clearPriceByResources()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Returns | |
---|---|
Type | Description |
Offer.Builder |
clearSku()
public Offer.Builder clearSku()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;
Returns | |
---|---|
Type | Description |
Offer.Builder |
clearStartTime()
public Offer.Builder clearStartTime()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;
Returns | |
---|---|
Type | Description |
Offer.Builder |
clone()
public Offer.Builder clone()
Returns | |
---|---|
Type | Description |
Offer.Builder |
getConstraints()
public Constraints getConstraints()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;
Returns | |
---|---|
Type | Description |
Constraints |
The constraints. |
getConstraintsBuilder()
public Constraints.Builder getConstraintsBuilder()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;
Returns | |
---|---|
Type | Description |
Constraints.Builder |
getConstraintsOrBuilder()
public ConstraintsOrBuilder getConstraintsOrBuilder()
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;
Returns | |
---|---|
Type | Description |
ConstraintsOrBuilder |
getDealCode()
public String getDealCode()
The deal code of the offer to get a special promotion or discount.
string deal_code = 12;
Returns | |
---|---|
Type | Description |
String |
The dealCode. |
getDealCodeBytes()
public ByteString getDealCodeBytes()
The deal code of the offer to get a special promotion or discount.
string deal_code = 12;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for dealCode. |
getDefaultInstanceForType()
public Offer getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Offer |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Type | Description |
Timestamp |
The endTime. |
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder()
Output only. End of the Offer validity time.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
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 | |
---|---|
Type | Description |
TimestampOrBuilder |
getMarketingInfo()
public MarketingInfo getMarketingInfo()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns | |
---|---|
Type | Description |
MarketingInfo |
The marketingInfo. |
getMarketingInfoBuilder()
public MarketingInfo.Builder getMarketingInfoBuilder()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns | |
---|---|
Type | Description |
MarketingInfo.Builder |
getMarketingInfoOrBuilder()
public MarketingInfoOrBuilder getMarketingInfoOrBuilder()
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns | |
---|---|
Type | Description |
MarketingInfoOrBuilder |
getName()
public String 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 | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ParameterDefinition |
getParameterDefinitionsBuilder(int index)
public ParameterDefinition.Builder getParameterDefinitionsBuilder(int index)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ParameterDefinition.Builder |
getParameterDefinitionsBuilderList()
public List<ParameterDefinition.Builder> getParameterDefinitionsBuilderList()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Returns | |
---|---|
Type | Description |
List<Builder> |
getParameterDefinitionsCount()
public int getParameterDefinitionsCount()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Returns | |
---|---|
Type | Description |
int |
getParameterDefinitionsList()
public List<ParameterDefinition> getParameterDefinitionsList()
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Returns | |
---|---|
Type | Description |
List<ParameterDefinition> |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ParameterDefinitionOrBuilder |
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> |
getPlan()
public Plan getPlan()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;
Returns | |
---|---|
Type | Description |
Plan |
The plan. |
getPlanBuilder()
public Plan.Builder getPlanBuilder()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;
Returns | |
---|---|
Type | Description |
Plan.Builder |
getPlanOrBuilder()
public PlanOrBuilder getPlanOrBuilder()
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;
Returns | |
---|---|
Type | Description |
PlanOrBuilder |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
PriceByResource |
getPriceByResourcesBuilder(int index)
public PriceByResource.Builder getPriceByResourcesBuilder(int index)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
PriceByResource.Builder |
getPriceByResourcesBuilderList()
public List<PriceByResource.Builder> getPriceByResourcesBuilderList()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Returns | |
---|---|
Type | Description |
List<Builder> |
getPriceByResourcesCount()
public int getPriceByResourcesCount()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Returns | |
---|---|
Type | Description |
int |
getPriceByResourcesList()
public List<PriceByResource> getPriceByResourcesList()
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Returns | |
---|---|
Type | Description |
List<PriceByResource> |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
PriceByResourceOrBuilder |
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> |
getSku()
public Sku getSku()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;
Returns | |
---|---|
Type | Description |
Sku |
The sku. |
getSkuBuilder()
public Sku.Builder getSkuBuilder()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;
Returns | |
---|---|
Type | Description |
Sku.Builder |
getSkuOrBuilder()
public SkuOrBuilder getSkuOrBuilder()
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;
Returns | |
---|---|
Type | Description |
SkuOrBuilder |
getStartTime()
public Timestamp getStartTime()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;
Returns | |
---|---|
Type | Description |
Timestamp |
The startTime. |
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;
Returns | |
---|---|
Type | Description |
Builder |
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
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()
public boolean 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()
public boolean 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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeConstraints(Constraints value)
public Offer.Builder mergeConstraints(Constraints value)
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;
Parameter | |
---|---|
Name | Description |
value |
Constraints |
Returns | |
---|---|
Type | Description |
Offer.Builder |
mergeEndTime(Timestamp value)
public Offer.Builder mergeEndTime(Timestamp value)
Output only. End of the Offer validity time.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Offer.Builder |
mergeFrom(Offer other)
public Offer.Builder mergeFrom(Offer other)
Parameter | |
---|---|
Name | Description |
other |
Offer |
Returns | |
---|---|
Type | Description |
Offer.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Offer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Offer.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Offer.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Offer.Builder |
mergeMarketingInfo(MarketingInfo value)
public Offer.Builder mergeMarketingInfo(MarketingInfo value)
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Parameter | |
---|---|
Name | Description |
value |
MarketingInfo |
Returns | |
---|---|
Type | Description |
Offer.Builder |
mergePlan(Plan value)
public Offer.Builder mergePlan(Plan value)
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;
Parameter | |
---|---|
Name | Description |
value |
Plan |
Returns | |
---|---|
Type | Description |
Offer.Builder |
mergeSku(Sku value)
public Offer.Builder mergeSku(Sku value)
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;
Parameter | |
---|---|
Name | Description |
value |
Sku |
Returns | |
---|---|
Type | Description |
Offer.Builder |
mergeStartTime(Timestamp value)
public Offer.Builder mergeStartTime(Timestamp value)
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Offer.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Offer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Offer.Builder |
removeParameterDefinitions(int index)
public Offer.Builder removeParameterDefinitions(int index)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Offer.Builder |
removePriceByResources(int index)
public Offer.Builder removePriceByResources(int index)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setConstraints(Constraints value)
public Offer.Builder setConstraints(Constraints value)
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;
Parameter | |
---|---|
Name | Description |
value |
Constraints |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setConstraints(Constraints.Builder builderForValue)
public Offer.Builder setConstraints(Constraints.Builder builderForValue)
Constraints on transacting the Offer.
.google.cloud.channel.v1.Constraints constraints = 5;
Parameter | |
---|---|
Name | Description |
builderForValue |
Constraints.Builder |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setDealCode(String value)
public Offer.Builder setDealCode(String value)
The deal code of the offer to get a special promotion or discount.
string deal_code = 12;
Parameter | |
---|---|
Name | Description |
value |
String The dealCode to set. |
Returns | |
---|---|
Type | Description |
Offer.Builder |
This builder for chaining. |
setDealCodeBytes(ByteString value)
public Offer.Builder setDealCodeBytes(ByteString value)
The deal code of the offer to get a special promotion or discount.
string deal_code = 12;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for dealCode to set. |
Returns | |
---|---|
Type | Description |
Offer.Builder |
This builder for chaining. |
setEndTime(Timestamp value)
public Offer.Builder setEndTime(Timestamp value)
Output only. End of the Offer validity time.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setEndTime(Timestamp.Builder builderForValue)
public Offer.Builder setEndTime(Timestamp.Builder builderForValue)
Output only. End of the Offer validity time.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Offer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setMarketingInfo(MarketingInfo value)
public Offer.Builder setMarketingInfo(MarketingInfo value)
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Parameter | |
---|---|
Name | Description |
value |
MarketingInfo |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setMarketingInfo(MarketingInfo.Builder builderForValue)
public Offer.Builder setMarketingInfo(MarketingInfo.Builder builderForValue)
Marketing information for the Offer.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Parameter | |
---|---|
Name | Description |
builderForValue |
MarketingInfo.Builder |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setName(String value)
public Offer.Builder setName(String value)
Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}
string name = 1;
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
Offer.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Offer.Builder setNameBytes(ByteString value)
Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}
string name = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
Offer.Builder |
This builder for chaining. |
setParameterDefinitions(int index, ParameterDefinition value)
public Offer.Builder setParameterDefinitions(int index, ParameterDefinition value)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
ParameterDefinition |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setParameterDefinitions(int index, ParameterDefinition.Builder builderForValue)
public Offer.Builder setParameterDefinitions(int index, ParameterDefinition.Builder builderForValue)
Parameters required to use current Offer to purchase.
repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
ParameterDefinition.Builder |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setPlan(Plan value)
public Offer.Builder setPlan(Plan value)
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;
Parameter | |
---|---|
Name | Description |
value |
Plan |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setPlan(Plan.Builder builderForValue)
public Offer.Builder setPlan(Plan.Builder builderForValue)
Describes the payment plan for the Offer.
.google.cloud.channel.v1.Plan plan = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
Plan.Builder |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setPriceByResources(int index, PriceByResource value)
public Offer.Builder setPriceByResources(int index, PriceByResource value)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
PriceByResource |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setPriceByResources(int index, PriceByResource.Builder builderForValue)
public Offer.Builder setPriceByResources(int index, PriceByResource.Builder builderForValue)
Price for each monetizable resource type.
repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
PriceByResource.Builder |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Offer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setSku(Sku value)
public Offer.Builder setSku(Sku value)
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;
Parameter | |
---|---|
Name | Description |
value |
Sku |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setSku(Sku.Builder builderForValue)
public Offer.Builder setSku(Sku.Builder builderForValue)
SKU the offer is associated with.
.google.cloud.channel.v1.Sku sku = 3;
Parameter | |
---|---|
Name | Description |
builderForValue |
Sku.Builder |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setStartTime(Timestamp value)
public Offer.Builder setStartTime(Timestamp value)
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setStartTime(Timestamp.Builder builderForValue)
public Offer.Builder setStartTime(Timestamp.Builder builderForValue)
Start of the Offer validity time.
.google.protobuf.Timestamp start_time = 7;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
Offer.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Offer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Offer.Builder |