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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PurchasableOffer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PurchasableOffer build()
Returns
buildPartial()
public PurchasableOffer buildPartial()
Returns
clear()
public PurchasableOffer.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public PurchasableOffer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOffer()
public PurchasableOffer.Builder clearOffer()
Offer.
.google.cloud.channel.v1.Offer offer = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public PurchasableOffer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public PurchasableOffer.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PurchasableOffer getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
getOfferOrBuilder()
public OfferOrBuilder getOfferOrBuilder()
Offer.
.google.cloud.channel.v1.Offer offer = 1;
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PurchasableOffer other)
public PurchasableOffer.Builder mergeFrom(PurchasableOffer other)
Parameter
Returns
public PurchasableOffer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PurchasableOffer.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeOffer(Offer value)
public PurchasableOffer.Builder mergeOffer(Offer value)
Offer.
.google.cloud.channel.v1.Offer offer = 1;
Parameter
Name | Description |
value | Offer
|
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PurchasableOffer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PurchasableOffer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setOffer(Offer value)
public PurchasableOffer.Builder setOffer(Offer value)
Offer.
.google.cloud.channel.v1.Offer offer = 1;
Parameter
Name | Description |
value | Offer
|
Returns
setOffer(Offer.Builder builderForValue)
public PurchasableOffer.Builder setOffer(Offer.Builder builderForValue)
Offer.
.google.cloud.channel.v1.Offer offer = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PurchasableOffer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PurchasableOffer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides