Class Offer.Builder (3.52.0)

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

Implements

OfferOrBuilder

Static 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
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Offer.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Offer.Builder
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides