Class Offer.Builder (3.7.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.channel.v1.ParameterDefinition>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.channel.v1.PriceByResource>
Returns
TypeDescription
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
NameDescription
valueParameterDefinition
Returns
TypeDescription
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
NameDescription
builderForValueParameterDefinition.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueParameterDefinition
Returns
TypeDescription
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
NameDescription
indexint
builderForValueParameterDefinition.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuePriceByResource
Returns
TypeDescription
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
NameDescription
builderForValuePriceByResource.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePriceByResource
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePriceByResource.Builder
Returns
TypeDescription
Offer.Builder

addPriceByResourcesBuilder()

public PriceByResource.Builder addPriceByResourcesBuilder()

Price for each monetizable resource type.

repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PriceByResource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Offer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Offer.Builder
Overrides

build()

public Offer build()
Returns
TypeDescription
Offer

buildPartial()

public Offer buildPartial()
Returns
TypeDescription
Offer

clear()

public Offer.Builder clear()
Returns
TypeDescription
Offer.Builder
Overrides

clearConstraints()

public Offer.Builder clearConstraints()

Constraints on transacting the Offer.

.google.cloud.channel.v1.Constraints constraints = 5;

Returns
TypeDescription
Offer.Builder

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
TypeDescription
Offer.Builder

clearField(Descriptors.FieldDescriptor field)

public Offer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Offer.Builder
Overrides

clearMarketingInfo()

public Offer.Builder clearMarketingInfo()

Marketing information for the Offer.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
TypeDescription
Offer.Builder

clearName()

public Offer.Builder clearName()

Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}

string name = 1;

Returns
TypeDescription
Offer.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Offer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Offer.Builder

clearPlan()

public Offer.Builder clearPlan()

Describes the payment plan for the Offer.

.google.cloud.channel.v1.Plan plan = 4;

Returns
TypeDescription
Offer.Builder

clearPriceByResources()

public Offer.Builder clearPriceByResources()

Price for each monetizable resource type.

repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;

Returns
TypeDescription
Offer.Builder

clearSku()

public Offer.Builder clearSku()

SKU the offer is associated with.

.google.cloud.channel.v1.Sku sku = 3;

Returns
TypeDescription
Offer.Builder

clearStartTime()

public Offer.Builder clearStartTime()

Start of the Offer validity time.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
Offer.Builder

clone()

public Offer.Builder clone()
Returns
TypeDescription
Offer.Builder
Overrides

getConstraints()

public Constraints getConstraints()

Constraints on transacting the Offer.

.google.cloud.channel.v1.Constraints constraints = 5;

Returns
TypeDescription
Constraints

The constraints.

getConstraintsBuilder()

public Constraints.Builder getConstraintsBuilder()

Constraints on transacting the Offer.

.google.cloud.channel.v1.Constraints constraints = 5;

Returns
TypeDescription
Constraints.Builder

getConstraintsOrBuilder()

public ConstraintsOrBuilder getConstraintsOrBuilder()

Constraints on transacting the Offer.

.google.cloud.channel.v1.Constraints constraints = 5;

Returns
TypeDescription
ConstraintsOrBuilder

getDefaultInstanceForType()

public Offer getDefaultInstanceForType()
Returns
TypeDescription
Offer

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getMarketingInfo()

public MarketingInfo getMarketingInfo()

Marketing information for the Offer.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
TypeDescription
MarketingInfo

The marketingInfo.

getMarketingInfoBuilder()

public MarketingInfo.Builder getMarketingInfoBuilder()

Marketing information for the Offer.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
TypeDescription
MarketingInfo.Builder

getMarketingInfoOrBuilder()

public MarketingInfoOrBuilder getMarketingInfoOrBuilder()

Marketing information for the Offer.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
TypeDescription
MarketingInfoOrBuilder

getName()

public String getName()

Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}

string name = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getParameterDefinitionsCount()

public int getParameterDefinitionsCount()

Parameters required to use current Offer to purchase.

repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;

Returns
TypeDescription
int

getParameterDefinitionsList()

public List<ParameterDefinition> getParameterDefinitionsList()

Parameters required to use current Offer to purchase.

repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Plan

The plan.

getPlanBuilder()

public Plan.Builder getPlanBuilder()

Describes the payment plan for the Offer.

.google.cloud.channel.v1.Plan plan = 4;

Returns
TypeDescription
Plan.Builder

getPlanOrBuilder()

public PlanOrBuilder getPlanOrBuilder()

Describes the payment plan for the Offer.

.google.cloud.channel.v1.Plan plan = 4;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getPriceByResourcesCount()

public int getPriceByResourcesCount()

Price for each monetizable resource type.

repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;

Returns
TypeDescription
int

getPriceByResourcesList()

public List<PriceByResource> getPriceByResourcesList()

Price for each monetizable resource type.

repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PriceByResourceOrBuilder

getPriceByResourcesOrBuilderList()

public List<? extends PriceByResourceOrBuilder> getPriceByResourcesOrBuilderList()

Price for each monetizable resource type.

repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6;

Returns
TypeDescription
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
TypeDescription
Sku

The sku.

getSkuBuilder()

public Sku.Builder getSkuBuilder()

SKU the offer is associated with.

.google.cloud.channel.v1.Sku sku = 3;

Returns
TypeDescription
Sku.Builder

getSkuOrBuilder()

public SkuOrBuilder getSkuOrBuilder()

SKU the offer is associated with.

.google.cloud.channel.v1.Sku sku = 3;

Returns
TypeDescription
SkuOrBuilder

getStartTime()

public Timestamp getStartTime()

Start of the Offer validity time.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Start of the Offer validity time.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Start of the Offer validity time.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
TimestampOrBuilder

hasConstraints()

public boolean hasConstraints()

Constraints on transacting the Offer.

.google.cloud.channel.v1.Constraints constraints = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the sku field is set.

hasStartTime()

public boolean hasStartTime()

Start of the Offer validity time.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConstraints(Constraints value)

public Offer.Builder mergeConstraints(Constraints value)

Constraints on transacting the Offer.

.google.cloud.channel.v1.Constraints constraints = 5;

Parameter
NameDescription
valueConstraints
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Offer.Builder

mergeFrom(Offer other)

public Offer.Builder mergeFrom(Offer other)
Parameter
NameDescription
otherOffer
Returns
TypeDescription
Offer.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Offer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Offer.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Offer.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueMarketingInfo
Returns
TypeDescription
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
NameDescription
valuePlan
Returns
TypeDescription
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
NameDescription
valueSku
Returns
TypeDescription
Offer.Builder

mergeStartTime(Timestamp value)

public Offer.Builder mergeStartTime(Timestamp value)

Start of the Offer validity time.

.google.protobuf.Timestamp start_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Offer.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Offer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Offer.Builder

setConstraints(Constraints value)

public Offer.Builder setConstraints(Constraints value)

Constraints on transacting the Offer.

.google.cloud.channel.v1.Constraints constraints = 5;

Parameter
NameDescription
valueConstraints
Returns
TypeDescription
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
NameDescription
builderForValueConstraints.Builder
Returns
TypeDescription
Offer.Builder

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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Offer.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Offer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueMarketingInfo
Returns
TypeDescription
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
NameDescription
builderForValueMarketingInfo.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
indexint
valueParameterDefinition
Returns
TypeDescription
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
NameDescription
indexint
builderForValueParameterDefinition.Builder
Returns
TypeDescription
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
NameDescription
valuePlan
Returns
TypeDescription
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
NameDescription
builderForValuePlan.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePriceByResource
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePriceByResource.Builder
Returns
TypeDescription
Offer.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Offer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSku
Returns
TypeDescription
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
NameDescription
builderForValueSku.Builder
Returns
TypeDescription
Offer.Builder

setStartTime(Timestamp value)

public Offer.Builder setStartTime(Timestamp value)

Start of the Offer validity time.

.google.protobuf.Timestamp start_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Offer.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Offer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Offer.Builder
Overrides