Class TransferableOffer.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransferableOffer.Builder>
com.google.cloud.channel.v1.TransferableOffer.Builder
All Implemented Interfaces:
TransferableOfferOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TransferableOffer

public static final class TransferableOffer.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransferableOffer.Builder> implements TransferableOfferOrBuilder
 TransferableOffer represents an Offer that can be used in Transfer.
 Read-only.
 
Protobuf type google.cloud.channel.v1.TransferableOffer
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TransferableOffer.Builder>
    • clear

      public TransferableOffer.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TransferableOffer.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TransferableOffer.Builder>
    • getDefaultInstanceForType

      public TransferableOffer getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TransferableOffer build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TransferableOffer buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TransferableOffer.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransferableOffer.Builder>
    • mergeFrom

      public TransferableOffer.Builder mergeFrom(TransferableOffer other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TransferableOffer.Builder>
    • mergeFrom

      public TransferableOffer.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransferableOffer.Builder>
      Throws:
      IOException
    • hasOffer

      public boolean hasOffer()
       Offer with parameter constraints updated to allow the Transfer.
       
      .google.cloud.channel.v1.Offer offer = 1;
      Specified by:
      hasOffer in interface TransferableOfferOrBuilder
      Returns:
      Whether the offer field is set.
    • getOffer

      public Offer getOffer()
       Offer with parameter constraints updated to allow the Transfer.
       
      .google.cloud.channel.v1.Offer offer = 1;
      Specified by:
      getOffer in interface TransferableOfferOrBuilder
      Returns:
      The offer.
    • setOffer

      public TransferableOffer.Builder setOffer(Offer value)
       Offer with parameter constraints updated to allow the Transfer.
       
      .google.cloud.channel.v1.Offer offer = 1;
    • setOffer

      public TransferableOffer.Builder setOffer(Offer.Builder builderForValue)
       Offer with parameter constraints updated to allow the Transfer.
       
      .google.cloud.channel.v1.Offer offer = 1;
    • mergeOffer

      public TransferableOffer.Builder mergeOffer(Offer value)
       Offer with parameter constraints updated to allow the Transfer.
       
      .google.cloud.channel.v1.Offer offer = 1;
    • clearOffer

      public TransferableOffer.Builder clearOffer()
       Offer with parameter constraints updated to allow the Transfer.
       
      .google.cloud.channel.v1.Offer offer = 1;
    • getOfferBuilder

      public Offer.Builder getOfferBuilder()
       Offer with parameter constraints updated to allow the Transfer.
       
      .google.cloud.channel.v1.Offer offer = 1;
    • getOfferOrBuilder

      public OfferOrBuilder getOfferOrBuilder()
       Offer with parameter constraints updated to allow the Transfer.
       
      .google.cloud.channel.v1.Offer offer = 1;
      Specified by:
      getOfferOrBuilder in interface TransferableOfferOrBuilder
    • getPriceReferenceId

      public String getPriceReferenceId()
       Optional. Price reference ID for the offer. Only for offers that require
       additional price information. Used to guarantee that the pricing is
       consistent between quoting the offer and placing the order.
       
      string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPriceReferenceId in interface TransferableOfferOrBuilder
      Returns:
      The priceReferenceId.
    • getPriceReferenceIdBytes

      public com.google.protobuf.ByteString getPriceReferenceIdBytes()
       Optional. Price reference ID for the offer. Only for offers that require
       additional price information. Used to guarantee that the pricing is
       consistent between quoting the offer and placing the order.
       
      string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPriceReferenceIdBytes in interface TransferableOfferOrBuilder
      Returns:
      The bytes for priceReferenceId.
    • setPriceReferenceId

      public TransferableOffer.Builder setPriceReferenceId(String value)
       Optional. Price reference ID for the offer. Only for offers that require
       additional price information. Used to guarantee that the pricing is
       consistent between quoting the offer and placing the order.
       
      string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The priceReferenceId to set.
      Returns:
      This builder for chaining.
    • clearPriceReferenceId

      public TransferableOffer.Builder clearPriceReferenceId()
       Optional. Price reference ID for the offer. Only for offers that require
       additional price information. Used to guarantee that the pricing is
       consistent between quoting the offer and placing the order.
       
      string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPriceReferenceIdBytes

      public TransferableOffer.Builder setPriceReferenceIdBytes(com.google.protobuf.ByteString value)
       Optional. Price reference ID for the offer. Only for offers that require
       additional price information. Used to guarantee that the pricing is
       consistent between quoting the offer and placing the order.
       
      string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for priceReferenceId to set.
      Returns:
      This builder for chaining.