Class PurchasableOffer.Builder (3.50.0)

public static final class PurchasableOffer.Builder extends GeneratedMessageV3.Builder<PurchasableOffer.Builder> implements PurchasableOfferOrBuilder

Offer that you can purchase for a customer. This is used in the ListPurchasableOffer API response.

Protobuf type google.cloud.channel.v1.PurchasableOffer

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PurchasableOffer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PurchasableOffer.Builder
Overrides

build()

public PurchasableOffer build()
Returns
Type Description
PurchasableOffer

buildPartial()

public PurchasableOffer buildPartial()
Returns
Type Description
PurchasableOffer

clear()

public PurchasableOffer.Builder clear()
Returns
Type Description
PurchasableOffer.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PurchasableOffer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PurchasableOffer.Builder
Overrides

clearOffer()

public PurchasableOffer.Builder clearOffer()

Offer.

.google.cloud.channel.v1.Offer offer = 1;

Returns
Type Description
PurchasableOffer.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PurchasableOffer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PurchasableOffer.Builder
Overrides

clone()

public PurchasableOffer.Builder clone()
Returns
Type Description
PurchasableOffer.Builder
Overrides

getDefaultInstanceForType()

public PurchasableOffer getDefaultInstanceForType()
Returns
Type Description
PurchasableOffer

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOffer()

public Offer getOffer()

Offer.

.google.cloud.channel.v1.Offer offer = 1;

Returns
Type Description
Offer

The offer.

getOfferBuilder()

public Offer.Builder getOfferBuilder()

Offer.

.google.cloud.channel.v1.Offer offer = 1;

Returns
Type Description
Offer.Builder

getOfferOrBuilder()

public OfferOrBuilder getOfferOrBuilder()

Offer.

.google.cloud.channel.v1.Offer offer = 1;

Returns
Type Description
OfferOrBuilder

hasOffer()

public boolean hasOffer()

Offer.

.google.cloud.channel.v1.Offer offer = 1;

Returns
Type Description
boolean

Whether the offer field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PurchasableOffer other)

public PurchasableOffer.Builder mergeFrom(PurchasableOffer other)
Parameter
Name Description
other PurchasableOffer
Returns
Type Description
PurchasableOffer.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PurchasableOffer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PurchasableOffer.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeOffer(Offer value)

public PurchasableOffer.Builder mergeOffer(Offer value)

Offer.

.google.cloud.channel.v1.Offer offer = 1;

Parameter
Name Description
value Offer
Returns
Type Description
PurchasableOffer.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PurchasableOffer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PurchasableOffer.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PurchasableOffer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PurchasableOffer.Builder
Overrides

setOffer(Offer value)

public PurchasableOffer.Builder setOffer(Offer value)

Offer.

.google.cloud.channel.v1.Offer offer = 1;

Parameter
Name Description
value Offer
Returns
Type Description
PurchasableOffer.Builder

setOffer(Offer.Builder builderForValue)

public PurchasableOffer.Builder setOffer(Offer.Builder builderForValue)

Offer.

.google.cloud.channel.v1.Offer offer = 1;

Parameter
Name Description
builderForValue Offer.Builder
Returns
Type Description
PurchasableOffer.Builder

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

public PurchasableOffer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PurchasableOffer.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PurchasableOffer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PurchasableOffer.Builder
Overrides