public static final class TransactionInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TransactionInfo.Builder> implements TransactionInfoOrBuilder
A transaction represents the entire purchase transaction.Protobuf type
google.cloud.discoveryengine.v1beta.TransactionInfo| Modifier and Type | Method and Description |
|---|---|
TransactionInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransactionInfo |
build() |
TransactionInfo |
buildPartial() |
TransactionInfo.Builder |
clear() |
TransactionInfo.Builder |
clearCost()
All the costs associated with the products.
|
TransactionInfo.Builder |
clearCurrency()
Required.
|
TransactionInfo.Builder |
clearDiscountValue()
The total discount(s) value applied to this transaction.
|
TransactionInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TransactionInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TransactionInfo.Builder |
clearTax()
All the taxes associated with the transaction.
|
TransactionInfo.Builder |
clearTransactionId()
The transaction ID with a length limit of 128 characters.
|
TransactionInfo.Builder |
clearValue()
Required.
|
TransactionInfo.Builder |
clone() |
float |
getCost()
All the costs associated with the products.
|
String |
getCurrency()
Required.
|
com.google.protobuf.ByteString |
getCurrencyBytes()
Required.
|
TransactionInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
float |
getDiscountValue()
The total discount(s) value applied to this transaction.
|
float |
getTax()
All the taxes associated with the transaction.
|
String |
getTransactionId()
The transaction ID with a length limit of 128 characters.
|
com.google.protobuf.ByteString |
getTransactionIdBytes()
The transaction ID with a length limit of 128 characters.
|
float |
getValue()
Required.
|
boolean |
hasCost()
All the costs associated with the products.
|
boolean |
hasDiscountValue()
The total discount(s) value applied to this transaction.
|
boolean |
hasTax()
All the taxes associated with the transaction.
|
boolean |
hasValue()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TransactionInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TransactionInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
TransactionInfo.Builder |
mergeFrom(TransactionInfo other) |
TransactionInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TransactionInfo.Builder |
setCost(float value)
All the costs associated with the products.
|
TransactionInfo.Builder |
setCurrency(String value)
Required.
|
TransactionInfo.Builder |
setCurrencyBytes(com.google.protobuf.ByteString value)
Required.
|
TransactionInfo.Builder |
setDiscountValue(float value)
The total discount(s) value applied to this transaction.
|
TransactionInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransactionInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TransactionInfo.Builder |
setTax(float value)
All the taxes associated with the transaction.
|
TransactionInfo.Builder |
setTransactionId(String value)
The transaction ID with a length limit of 128 characters.
|
TransactionInfo.Builder |
setTransactionIdBytes(com.google.protobuf.ByteString value)
The transaction ID with a length limit of 128 characters.
|
TransactionInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TransactionInfo.Builder |
setValue(float value)
Required.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionInfo.Builder>public TransactionInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionInfo.Builder>public TransactionInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TransactionInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TransactionInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TransactionInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionInfo.Builder>public TransactionInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionInfo.Builder>public TransactionInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionInfo.Builder>public TransactionInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionInfo.Builder>public TransactionInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionInfo.Builder>public TransactionInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionInfo.Builder>public TransactionInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransactionInfo.Builder>public TransactionInfo.Builder mergeFrom(TransactionInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionInfo.Builder>public TransactionInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransactionInfo.Builder>IOExceptionpublic boolean hasValue()
Required. Total non-zero value associated with the transaction. This value may include shipping, tax, or other adjustments to the total value that you want to include.
optional float value = 1 [(.google.api.field_behavior) = REQUIRED];hasValue in interface TransactionInfoOrBuilderpublic float getValue()
Required. Total non-zero value associated with the transaction. This value may include shipping, tax, or other adjustments to the total value that you want to include.
optional float value = 1 [(.google.api.field_behavior) = REQUIRED];getValue in interface TransactionInfoOrBuilderpublic TransactionInfo.Builder setValue(float value)
Required. Total non-zero value associated with the transaction. This value may include shipping, tax, or other adjustments to the total value that you want to include.
optional float value = 1 [(.google.api.field_behavior) = REQUIRED];value - The value to set.public TransactionInfo.Builder clearValue()
Required. Total non-zero value associated with the transaction. This value may include shipping, tax, or other adjustments to the total value that you want to include.
optional float value = 1 [(.google.api.field_behavior) = REQUIRED];public String getCurrency()
Required. Currency code. Use three-character ISO-4217 code.
string currency = 2 [(.google.api.field_behavior) = REQUIRED];getCurrency in interface TransactionInfoOrBuilderpublic com.google.protobuf.ByteString getCurrencyBytes()
Required. Currency code. Use three-character ISO-4217 code.
string currency = 2 [(.google.api.field_behavior) = REQUIRED];getCurrencyBytes in interface TransactionInfoOrBuilderpublic TransactionInfo.Builder setCurrency(String value)
Required. Currency code. Use three-character ISO-4217 code.
string currency = 2 [(.google.api.field_behavior) = REQUIRED];value - The currency to set.public TransactionInfo.Builder clearCurrency()
Required. Currency code. Use three-character ISO-4217 code.
string currency = 2 [(.google.api.field_behavior) = REQUIRED];public TransactionInfo.Builder setCurrencyBytes(com.google.protobuf.ByteString value)
Required. Currency code. Use three-character ISO-4217 code.
string currency = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for currency to set.public String getTransactionId()
The transaction ID with a length limit of 128 characters.
string transaction_id = 3;getTransactionId in interface TransactionInfoOrBuilderpublic com.google.protobuf.ByteString getTransactionIdBytes()
The transaction ID with a length limit of 128 characters.
string transaction_id = 3;getTransactionIdBytes in interface TransactionInfoOrBuilderpublic TransactionInfo.Builder setTransactionId(String value)
The transaction ID with a length limit of 128 characters.
string transaction_id = 3;value - The transactionId to set.public TransactionInfo.Builder clearTransactionId()
The transaction ID with a length limit of 128 characters.
string transaction_id = 3;public TransactionInfo.Builder setTransactionIdBytes(com.google.protobuf.ByteString value)
The transaction ID with a length limit of 128 characters.
string transaction_id = 3;value - The bytes for transactionId to set.public boolean hasTax()
All the taxes associated with the transaction.
optional float tax = 4;hasTax in interface TransactionInfoOrBuilderpublic float getTax()
All the taxes associated with the transaction.
optional float tax = 4;getTax in interface TransactionInfoOrBuilderpublic TransactionInfo.Builder setTax(float value)
All the taxes associated with the transaction.
optional float tax = 4;value - The tax to set.public TransactionInfo.Builder clearTax()
All the taxes associated with the transaction.
optional float tax = 4;public boolean hasCost()
All the costs associated with the products. These can be manufacturing costs, shipping expenses not borne by the end user, or any other costs, such that: * Profit = [value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] - [tax][google.cloud.discoveryengine.v1beta.TransactionInfo.tax] - [cost][google.cloud.discoveryengine.v1beta.TransactionInfo.cost]
optional float cost = 5;hasCost in interface TransactionInfoOrBuilderpublic float getCost()
All the costs associated with the products. These can be manufacturing costs, shipping expenses not borne by the end user, or any other costs, such that: * Profit = [value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] - [tax][google.cloud.discoveryengine.v1beta.TransactionInfo.tax] - [cost][google.cloud.discoveryengine.v1beta.TransactionInfo.cost]
optional float cost = 5;getCost in interface TransactionInfoOrBuilderpublic TransactionInfo.Builder setCost(float value)
All the costs associated with the products. These can be manufacturing costs, shipping expenses not borne by the end user, or any other costs, such that: * Profit = [value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] - [tax][google.cloud.discoveryengine.v1beta.TransactionInfo.tax] - [cost][google.cloud.discoveryengine.v1beta.TransactionInfo.cost]
optional float cost = 5;value - The cost to set.public TransactionInfo.Builder clearCost()
All the costs associated with the products. These can be manufacturing costs, shipping expenses not borne by the end user, or any other costs, such that: * Profit = [value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] - [tax][google.cloud.discoveryengine.v1beta.TransactionInfo.tax] - [cost][google.cloud.discoveryengine.v1beta.TransactionInfo.cost]
optional float cost = 5;public boolean hasDiscountValue()
The total discount(s) value applied to this transaction. This figure should be excluded from [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] For example, if a user paid [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] amount, then nominal (pre-discount) value of the transaction is the sum of [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] and [TransactionInfo.discount_value][google.cloud.discoveryengine.v1beta.TransactionInfo.discount_value] This means that profit is calculated the same way, regardless of the discount value, and that [TransactionInfo.discount_value][google.cloud.discoveryengine.v1beta.TransactionInfo.discount_value] can be larger than [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value]: * Profit = [value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] - [tax][google.cloud.discoveryengine.v1beta.TransactionInfo.tax] - [cost][google.cloud.discoveryengine.v1beta.TransactionInfo.cost]
optional float discount_value = 6;hasDiscountValue in interface TransactionInfoOrBuilderpublic float getDiscountValue()
The total discount(s) value applied to this transaction. This figure should be excluded from [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] For example, if a user paid [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] amount, then nominal (pre-discount) value of the transaction is the sum of [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] and [TransactionInfo.discount_value][google.cloud.discoveryengine.v1beta.TransactionInfo.discount_value] This means that profit is calculated the same way, regardless of the discount value, and that [TransactionInfo.discount_value][google.cloud.discoveryengine.v1beta.TransactionInfo.discount_value] can be larger than [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value]: * Profit = [value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] - [tax][google.cloud.discoveryengine.v1beta.TransactionInfo.tax] - [cost][google.cloud.discoveryengine.v1beta.TransactionInfo.cost]
optional float discount_value = 6;getDiscountValue in interface TransactionInfoOrBuilderpublic TransactionInfo.Builder setDiscountValue(float value)
The total discount(s) value applied to this transaction. This figure should be excluded from [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] For example, if a user paid [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] amount, then nominal (pre-discount) value of the transaction is the sum of [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] and [TransactionInfo.discount_value][google.cloud.discoveryengine.v1beta.TransactionInfo.discount_value] This means that profit is calculated the same way, regardless of the discount value, and that [TransactionInfo.discount_value][google.cloud.discoveryengine.v1beta.TransactionInfo.discount_value] can be larger than [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value]: * Profit = [value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] - [tax][google.cloud.discoveryengine.v1beta.TransactionInfo.tax] - [cost][google.cloud.discoveryengine.v1beta.TransactionInfo.cost]
optional float discount_value = 6;value - The discountValue to set.public TransactionInfo.Builder clearDiscountValue()
The total discount(s) value applied to this transaction. This figure should be excluded from [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] For example, if a user paid [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] amount, then nominal (pre-discount) value of the transaction is the sum of [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] and [TransactionInfo.discount_value][google.cloud.discoveryengine.v1beta.TransactionInfo.discount_value] This means that profit is calculated the same way, regardless of the discount value, and that [TransactionInfo.discount_value][google.cloud.discoveryengine.v1beta.TransactionInfo.discount_value] can be larger than [TransactionInfo.value][google.cloud.discoveryengine.v1beta.TransactionInfo.value]: * Profit = [value][google.cloud.discoveryengine.v1beta.TransactionInfo.value] - [tax][google.cloud.discoveryengine.v1beta.TransactionInfo.tax] - [cost][google.cloud.discoveryengine.v1beta.TransactionInfo.cost]
optional float discount_value = 6;public final TransactionInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionInfo.Builder>public final TransactionInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionInfo.Builder>Copyright © 2024 Google LLC. All rights reserved.