Class PurchasableOffer.Builder (3.43.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PurchasableOffer build()
Returns
TypeDescription
PurchasableOffer

buildPartial()

public PurchasableOffer buildPartial()
Returns
TypeDescription
PurchasableOffer

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOffer()

public PurchasableOffer.Builder clearOffer()

Offer.

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

Returns
TypeDescription
PurchasableOffer.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PurchasableOffer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PurchasableOffer.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public PurchasableOffer getDefaultInstanceForType()
Returns
TypeDescription
PurchasableOffer

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOffer()

public Offer getOffer()

Offer.

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

Returns
TypeDescription
Offer

The offer.

getOfferBuilder()

public Offer.Builder getOfferBuilder()

Offer.

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

Returns
TypeDescription
Offer.Builder

getOfferOrBuilder()

public OfferOrBuilder getOfferOrBuilder()

Offer.

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

Returns
TypeDescription
OfferOrBuilder

hasOffer()

public boolean hasOffer()

Offer.

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

Returns
TypeDescription
boolean

Whether the offer field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PurchasableOffer other)

public PurchasableOffer.Builder mergeFrom(PurchasableOffer other)
Parameter
NameDescription
otherPurchasableOffer
Returns
TypeDescription
PurchasableOffer.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PurchasableOffer.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PurchasableOffer.Builder
Overrides

mergeOffer(Offer value)

public PurchasableOffer.Builder mergeOffer(Offer value)

Offer.

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

Parameter
NameDescription
valueOffer
Returns
TypeDescription
PurchasableOffer.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PurchasableOffer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PurchasableOffer.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setOffer(Offer value)

public PurchasableOffer.Builder setOffer(Offer value)

Offer.

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

Parameter
NameDescription
valueOffer
Returns
TypeDescription
PurchasableOffer.Builder

setOffer(Offer.Builder builderForValue)

public PurchasableOffer.Builder setOffer(Offer.Builder builderForValue)

Offer.

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

Parameter
NameDescription
builderForValueOffer.Builder
Returns
TypeDescription
PurchasableOffer.Builder

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

public PurchasableOffer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PurchasableOffer.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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