Class TransactionData.Item.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransactionData.Item.Builder>
com.google.recaptchaenterprise.v1.TransactionData.Item.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TransactionData.ItemOrBuilder, Cloneable
Enclosing class:
TransactionData.Item

public static final class TransactionData.Item.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransactionData.Item.Builder> implements TransactionData.ItemOrBuilder
 Line items being purchased in this transaction.
 
Protobuf type google.cloud.recaptchaenterprise.v1.TransactionData.Item
  • 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<TransactionData.Item.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<TransactionData.Item.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<TransactionData.Item.Builder>
    • getDefaultInstanceForType

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

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

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

      public TransactionData.Item.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<TransactionData.Item.Builder>
    • mergeFrom

    • isInitialized

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

      public TransactionData.Item.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<TransactionData.Item.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Optional. The full name of the item.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getName in interface TransactionData.ItemOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Optional. The full name of the item.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNameBytes in interface TransactionData.ItemOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TransactionData.Item.Builder setName(String value)
       Optional. The full name of the item.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public TransactionData.Item.Builder clearName()
       Optional. The full name of the item.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNameBytes

      public TransactionData.Item.Builder setNameBytes(com.google.protobuf.ByteString value)
       Optional. The full name of the item.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getValue

      public double getValue()
       Optional. The value per item that the user is paying, in the transaction
       currency, after discounts.
       
      double value = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValue in interface TransactionData.ItemOrBuilder
      Returns:
      The value.
    • setValue

      public TransactionData.Item.Builder setValue(double value)
       Optional. The value per item that the user is paying, in the transaction
       currency, after discounts.
       
      double value = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public TransactionData.Item.Builder clearValue()
       Optional. The value per item that the user is paying, in the transaction
       currency, after discounts.
       
      double value = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getQuantity

      public long getQuantity()
       Optional. The quantity of this item that is being purchased.
       
      int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQuantity in interface TransactionData.ItemOrBuilder
      Returns:
      The quantity.
    • setQuantity

      public TransactionData.Item.Builder setQuantity(long value)
       Optional. The quantity of this item that is being purchased.
       
      int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The quantity to set.
      Returns:
      This builder for chaining.
    • clearQuantity

      public TransactionData.Item.Builder clearQuantity()
       Optional. The quantity of this item that is being purchased.
       
      int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getMerchantAccountId

      public String getMerchantAccountId()
       Optional. When a merchant is specified, its corresponding account_id.
       Necessary to populate marketplace-style transactions.
       
      string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMerchantAccountId in interface TransactionData.ItemOrBuilder
      Returns:
      The merchantAccountId.
    • getMerchantAccountIdBytes

      public com.google.protobuf.ByteString getMerchantAccountIdBytes()
       Optional. When a merchant is specified, its corresponding account_id.
       Necessary to populate marketplace-style transactions.
       
      string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMerchantAccountIdBytes in interface TransactionData.ItemOrBuilder
      Returns:
      The bytes for merchantAccountId.
    • setMerchantAccountId

      public TransactionData.Item.Builder setMerchantAccountId(String value)
       Optional. When a merchant is specified, its corresponding account_id.
       Necessary to populate marketplace-style transactions.
       
      string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The merchantAccountId to set.
      Returns:
      This builder for chaining.
    • clearMerchantAccountId

      public TransactionData.Item.Builder clearMerchantAccountId()
       Optional. When a merchant is specified, its corresponding account_id.
       Necessary to populate marketplace-style transactions.
       
      string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setMerchantAccountIdBytes

      public TransactionData.Item.Builder setMerchantAccountIdBytes(com.google.protobuf.ByteString value)
       Optional. When a merchant is specified, its corresponding account_id.
       Necessary to populate marketplace-style transactions.
       
      string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for merchantAccountId to set.
      Returns:
      This builder for chaining.