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