com.google.ads.googleads.v17.common.TransactionAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/common/offline_user_data.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* Attribute of the store sales transaction.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.TransactionAttribute}
*/
public final class TransactionAttribute extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.TransactionAttribute)
TransactionAttributeOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionAttribute.newBuilder() to construct.
private TransactionAttribute(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionAttribute() {
transactionDateTime_ = "";
currencyCode_ = "";
conversionAction_ = "";
orderId_ = "";
customValue_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionAttribute();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_TransactionAttribute_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_TransactionAttribute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.TransactionAttribute.class, com.google.ads.googleads.v17.common.TransactionAttribute.Builder.class);
}
private int bitField0_;
public static final int TRANSACTION_DATE_TIME_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object transactionDateTime_ = "";
/**
*
* Timestamp when transaction occurred. Required.
* The format is "YYYY-MM-DD HH:MM:SS[+/-HH:MM]", where [+/-HH:MM] is an
* optional timezone offset from UTC. If the offset is absent, the API will
* use the account's timezone as default.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
*
*
* optional string transaction_date_time = 8;
* @return Whether the transactionDateTime field is set.
*/
@java.lang.Override
public boolean hasTransactionDateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Timestamp when transaction occurred. Required.
* The format is "YYYY-MM-DD HH:MM:SS[+/-HH:MM]", where [+/-HH:MM] is an
* optional timezone offset from UTC. If the offset is absent, the API will
* use the account's timezone as default.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
*
*
* optional string transaction_date_time = 8;
* @return The transactionDateTime.
*/
@java.lang.Override
public java.lang.String getTransactionDateTime() {
java.lang.Object ref = transactionDateTime_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transactionDateTime_ = s;
return s;
}
}
/**
*
* Timestamp when transaction occurred. Required.
* The format is "YYYY-MM-DD HH:MM:SS[+/-HH:MM]", where [+/-HH:MM] is an
* optional timezone offset from UTC. If the offset is absent, the API will
* use the account's timezone as default.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
*
*
* optional string transaction_date_time = 8;
* @return The bytes for transactionDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTransactionDateTimeBytes() {
java.lang.Object ref = transactionDateTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRANSACTION_AMOUNT_MICROS_FIELD_NUMBER = 9;
private double transactionAmountMicros_ = 0D;
/**
*
* Transaction amount in micros. Required.
* Transaction amount in micros needs to be greater than 1000.
* If item Attributes are provided, it represents the total value of the
* items, after multiplying the unit price per item by the quantity provided
* in the ItemAttributes.
*
*
* optional double transaction_amount_micros = 9;
* @return Whether the transactionAmountMicros field is set.
*/
@java.lang.Override
public boolean hasTransactionAmountMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Transaction amount in micros. Required.
* Transaction amount in micros needs to be greater than 1000.
* If item Attributes are provided, it represents the total value of the
* items, after multiplying the unit price per item by the quantity provided
* in the ItemAttributes.
*
*
* optional double transaction_amount_micros = 9;
* @return The transactionAmountMicros.
*/
@java.lang.Override
public double getTransactionAmountMicros() {
return transactionAmountMicros_;
}
public static final int CURRENCY_CODE_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object currencyCode_ = "";
/**
*
* Transaction currency code. ISO 4217 three-letter code is used. Required.
*
*
* optional string currency_code = 10;
* @return Whether the currencyCode field is set.
*/
@java.lang.Override
public boolean hasCurrencyCode() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Transaction currency code. ISO 4217 three-letter code is used. Required.
*
*
* optional string currency_code = 10;
* @return The currencyCode.
*/
@java.lang.Override
public java.lang.String getCurrencyCode() {
java.lang.Object ref = currencyCode_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
currencyCode_ = s;
return s;
}
}
/**
*
* Transaction currency code. ISO 4217 three-letter code is used. Required.
*
*
* optional string currency_code = 10;
* @return The bytes for currencyCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCurrencyCodeBytes() {
java.lang.Object ref = currencyCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currencyCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONVERSION_ACTION_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object conversionAction_ = "";
/**
*
* The resource name of conversion action to report conversions to.
* Required.
*
*
* optional string conversion_action = 11;
* @return Whether the conversionAction field is set.
*/
@java.lang.Override
public boolean hasConversionAction() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The resource name of conversion action to report conversions to.
* Required.
*
*
* optional string conversion_action = 11;
* @return The conversionAction.
*/
@java.lang.Override
public java.lang.String getConversionAction() {
java.lang.Object ref = conversionAction_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
conversionAction_ = s;
return s;
}
}
/**
*
* The resource name of conversion action to report conversions to.
* Required.
*
*
* optional string conversion_action = 11;
* @return The bytes for conversionAction.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConversionActionBytes() {
java.lang.Object ref = conversionAction_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
conversionAction_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORDER_ID_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object orderId_ = "";
/**
*
* Transaction order id.
* Accessible only to customers on the allow-list.
*
*
* optional string order_id = 12;
* @return Whether the orderId field is set.
*/
@java.lang.Override
public boolean hasOrderId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Transaction order id.
* Accessible only to customers on the allow-list.
*
*
* optional string order_id = 12;
* @return The orderId.
*/
@java.lang.Override
public java.lang.String getOrderId() {
java.lang.Object ref = orderId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
orderId_ = s;
return s;
}
}
/**
*
* Transaction order id.
* Accessible only to customers on the allow-list.
*
*
* optional string order_id = 12;
* @return The bytes for orderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOrderIdBytes() {
java.lang.Object ref = orderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STORE_ATTRIBUTE_FIELD_NUMBER = 6;
private com.google.ads.googleads.v17.common.StoreAttribute storeAttribute_;
/**
*
* Store attributes of the transaction.
* Accessible only to customers on the allow-list.
*
*
* .google.ads.googleads.v17.common.StoreAttribute store_attribute = 6;
* @return Whether the storeAttribute field is set.
*/
@java.lang.Override
public boolean hasStoreAttribute() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Store attributes of the transaction.
* Accessible only to customers on the allow-list.
*
*
* .google.ads.googleads.v17.common.StoreAttribute store_attribute = 6;
* @return The storeAttribute.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.StoreAttribute getStoreAttribute() {
return storeAttribute_ == null ? com.google.ads.googleads.v17.common.StoreAttribute.getDefaultInstance() : storeAttribute_;
}
/**
*
* Store attributes of the transaction.
* Accessible only to customers on the allow-list.
*
*
* .google.ads.googleads.v17.common.StoreAttribute store_attribute = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.StoreAttributeOrBuilder getStoreAttributeOrBuilder() {
return storeAttribute_ == null ? com.google.ads.googleads.v17.common.StoreAttribute.getDefaultInstance() : storeAttribute_;
}
public static final int CUSTOM_VALUE_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object customValue_ = "";
/**
*
* Value of the custom variable for each transaction.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_value = 13;
* @return Whether the customValue field is set.
*/
@java.lang.Override
public boolean hasCustomValue() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Value of the custom variable for each transaction.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_value = 13;
* @return The customValue.
*/
@java.lang.Override
public java.lang.String getCustomValue() {
java.lang.Object ref = customValue_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
customValue_ = s;
return s;
}
}
/**
*
* Value of the custom variable for each transaction.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_value = 13;
* @return The bytes for customValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCustomValueBytes() {
java.lang.Object ref = customValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ITEM_ATTRIBUTE_FIELD_NUMBER = 14;
private com.google.ads.googleads.v17.common.ItemAttribute itemAttribute_;
/**
*
* Item attributes of the transaction.
*
*
* .google.ads.googleads.v17.common.ItemAttribute item_attribute = 14;
* @return Whether the itemAttribute field is set.
*/
@java.lang.Override
public boolean hasItemAttribute() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Item attributes of the transaction.
*
*
* .google.ads.googleads.v17.common.ItemAttribute item_attribute = 14;
* @return The itemAttribute.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ItemAttribute getItemAttribute() {
return itemAttribute_ == null ? com.google.ads.googleads.v17.common.ItemAttribute.getDefaultInstance() : itemAttribute_;
}
/**
*
* Item attributes of the transaction.
*
*
* .google.ads.googleads.v17.common.ItemAttribute item_attribute = 14;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ItemAttributeOrBuilder getItemAttributeOrBuilder() {
return itemAttribute_ == null ? com.google.ads.googleads.v17.common.ItemAttribute.getDefaultInstance() : itemAttribute_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(6, getStoreAttribute());
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, transactionDateTime_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(9, transactionAmountMicros_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, currencyCode_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, conversionAction_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, orderId_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, customValue_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(14, getItemAttribute());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getStoreAttribute());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, transactionDateTime_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(9, transactionAmountMicros_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, currencyCode_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, conversionAction_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, orderId_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, customValue_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getItemAttribute());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.common.TransactionAttribute)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.TransactionAttribute other = (com.google.ads.googleads.v17.common.TransactionAttribute) obj;
if (hasTransactionDateTime() != other.hasTransactionDateTime()) return false;
if (hasTransactionDateTime()) {
if (!getTransactionDateTime()
.equals(other.getTransactionDateTime())) return false;
}
if (hasTransactionAmountMicros() != other.hasTransactionAmountMicros()) return false;
if (hasTransactionAmountMicros()) {
if (java.lang.Double.doubleToLongBits(getTransactionAmountMicros())
!= java.lang.Double.doubleToLongBits(
other.getTransactionAmountMicros())) return false;
}
if (hasCurrencyCode() != other.hasCurrencyCode()) return false;
if (hasCurrencyCode()) {
if (!getCurrencyCode()
.equals(other.getCurrencyCode())) return false;
}
if (hasConversionAction() != other.hasConversionAction()) return false;
if (hasConversionAction()) {
if (!getConversionAction()
.equals(other.getConversionAction())) return false;
}
if (hasOrderId() != other.hasOrderId()) return false;
if (hasOrderId()) {
if (!getOrderId()
.equals(other.getOrderId())) return false;
}
if (hasStoreAttribute() != other.hasStoreAttribute()) return false;
if (hasStoreAttribute()) {
if (!getStoreAttribute()
.equals(other.getStoreAttribute())) return false;
}
if (hasCustomValue() != other.hasCustomValue()) return false;
if (hasCustomValue()) {
if (!getCustomValue()
.equals(other.getCustomValue())) return false;
}
if (hasItemAttribute() != other.hasItemAttribute()) return false;
if (hasItemAttribute()) {
if (!getItemAttribute()
.equals(other.getItemAttribute())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTransactionDateTime()) {
hash = (37 * hash) + TRANSACTION_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getTransactionDateTime().hashCode();
}
if (hasTransactionAmountMicros()) {
hash = (37 * hash) + TRANSACTION_AMOUNT_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTransactionAmountMicros()));
}
if (hasCurrencyCode()) {
hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER;
hash = (53 * hash) + getCurrencyCode().hashCode();
}
if (hasConversionAction()) {
hash = (37 * hash) + CONVERSION_ACTION_FIELD_NUMBER;
hash = (53 * hash) + getConversionAction().hashCode();
}
if (hasOrderId()) {
hash = (37 * hash) + ORDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getOrderId().hashCode();
}
if (hasStoreAttribute()) {
hash = (37 * hash) + STORE_ATTRIBUTE_FIELD_NUMBER;
hash = (53 * hash) + getStoreAttribute().hashCode();
}
if (hasCustomValue()) {
hash = (37 * hash) + CUSTOM_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getCustomValue().hashCode();
}
if (hasItemAttribute()) {
hash = (37 * hash) + ITEM_ATTRIBUTE_FIELD_NUMBER;
hash = (53 * hash) + getItemAttribute().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.TransactionAttribute parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.TransactionAttribute parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.TransactionAttribute parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.TransactionAttribute parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.TransactionAttribute parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.TransactionAttribute parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.TransactionAttribute parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.TransactionAttribute parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.TransactionAttribute parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.TransactionAttribute parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.TransactionAttribute parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.TransactionAttribute parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.common.TransactionAttribute prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Attribute of the store sales transaction.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.TransactionAttribute}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.TransactionAttribute)
com.google.ads.googleads.v17.common.TransactionAttributeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_TransactionAttribute_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_TransactionAttribute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.TransactionAttribute.class, com.google.ads.googleads.v17.common.TransactionAttribute.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.TransactionAttribute.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStoreAttributeFieldBuilder();
getItemAttributeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
transactionDateTime_ = "";
transactionAmountMicros_ = 0D;
currencyCode_ = "";
conversionAction_ = "";
orderId_ = "";
storeAttribute_ = null;
if (storeAttributeBuilder_ != null) {
storeAttributeBuilder_.dispose();
storeAttributeBuilder_ = null;
}
customValue_ = "";
itemAttribute_ = null;
if (itemAttributeBuilder_ != null) {
itemAttributeBuilder_.dispose();
itemAttributeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_TransactionAttribute_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.TransactionAttribute getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.TransactionAttribute.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.TransactionAttribute build() {
com.google.ads.googleads.v17.common.TransactionAttribute result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.TransactionAttribute buildPartial() {
com.google.ads.googleads.v17.common.TransactionAttribute result = new com.google.ads.googleads.v17.common.TransactionAttribute(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.TransactionAttribute result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.transactionDateTime_ = transactionDateTime_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.transactionAmountMicros_ = transactionAmountMicros_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.currencyCode_ = currencyCode_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.conversionAction_ = conversionAction_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.orderId_ = orderId_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.storeAttribute_ = storeAttributeBuilder_ == null
? storeAttribute_
: storeAttributeBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.customValue_ = customValue_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.itemAttribute_ = itemAttributeBuilder_ == null
? itemAttribute_
: itemAttributeBuilder_.build();
to_bitField0_ |= 0x00000080;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.common.TransactionAttribute) {
return mergeFrom((com.google.ads.googleads.v17.common.TransactionAttribute)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.TransactionAttribute other) {
if (other == com.google.ads.googleads.v17.common.TransactionAttribute.getDefaultInstance()) return this;
if (other.hasTransactionDateTime()) {
transactionDateTime_ = other.transactionDateTime_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasTransactionAmountMicros()) {
setTransactionAmountMicros(other.getTransactionAmountMicros());
}
if (other.hasCurrencyCode()) {
currencyCode_ = other.currencyCode_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasConversionAction()) {
conversionAction_ = other.conversionAction_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasOrderId()) {
orderId_ = other.orderId_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasStoreAttribute()) {
mergeStoreAttribute(other.getStoreAttribute());
}
if (other.hasCustomValue()) {
customValue_ = other.customValue_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasItemAttribute()) {
mergeItemAttribute(other.getItemAttribute());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 50: {
input.readMessage(
getStoreAttributeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 66: {
transactionDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 66
case 73: {
transactionAmountMicros_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 73
case 82: {
currencyCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 82
case 90: {
conversionAction_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 90
case 98: {
orderId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 98
case 106: {
customValue_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 106
case 114: {
input.readMessage(
getItemAttributeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 114
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object transactionDateTime_ = "";
/**
*
* Timestamp when transaction occurred. Required.
* The format is "YYYY-MM-DD HH:MM:SS[+/-HH:MM]", where [+/-HH:MM] is an
* optional timezone offset from UTC. If the offset is absent, the API will
* use the account's timezone as default.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
*
*
* optional string transaction_date_time = 8;
* @return Whether the transactionDateTime field is set.
*/
public boolean hasTransactionDateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Timestamp when transaction occurred. Required.
* The format is "YYYY-MM-DD HH:MM:SS[+/-HH:MM]", where [+/-HH:MM] is an
* optional timezone offset from UTC. If the offset is absent, the API will
* use the account's timezone as default.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
*
*
* optional string transaction_date_time = 8;
* @return The transactionDateTime.
*/
public java.lang.String getTransactionDateTime() {
java.lang.Object ref = transactionDateTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transactionDateTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Timestamp when transaction occurred. Required.
* The format is "YYYY-MM-DD HH:MM:SS[+/-HH:MM]", where [+/-HH:MM] is an
* optional timezone offset from UTC. If the offset is absent, the API will
* use the account's timezone as default.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
*
*
* optional string transaction_date_time = 8;
* @return The bytes for transactionDateTime.
*/
public com.google.protobuf.ByteString
getTransactionDateTimeBytes() {
java.lang.Object ref = transactionDateTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Timestamp when transaction occurred. Required.
* The format is "YYYY-MM-DD HH:MM:SS[+/-HH:MM]", where [+/-HH:MM] is an
* optional timezone offset from UTC. If the offset is absent, the API will
* use the account's timezone as default.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
*
*
* optional string transaction_date_time = 8;
* @param value The transactionDateTime to set.
* @return This builder for chaining.
*/
public Builder setTransactionDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
transactionDateTime_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Timestamp when transaction occurred. Required.
* The format is "YYYY-MM-DD HH:MM:SS[+/-HH:MM]", where [+/-HH:MM] is an
* optional timezone offset from UTC. If the offset is absent, the API will
* use the account's timezone as default.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
*
*
* optional string transaction_date_time = 8;
* @return This builder for chaining.
*/
public Builder clearTransactionDateTime() {
transactionDateTime_ = getDefaultInstance().getTransactionDateTime();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Timestamp when transaction occurred. Required.
* The format is "YYYY-MM-DD HH:MM:SS[+/-HH:MM]", where [+/-HH:MM] is an
* optional timezone offset from UTC. If the offset is absent, the API will
* use the account's timezone as default.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
*
*
* optional string transaction_date_time = 8;
* @param value The bytes for transactionDateTime to set.
* @return This builder for chaining.
*/
public Builder setTransactionDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
transactionDateTime_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private double transactionAmountMicros_ ;
/**
*
* Transaction amount in micros. Required.
* Transaction amount in micros needs to be greater than 1000.
* If item Attributes are provided, it represents the total value of the
* items, after multiplying the unit price per item by the quantity provided
* in the ItemAttributes.
*
*
* optional double transaction_amount_micros = 9;
* @return Whether the transactionAmountMicros field is set.
*/
@java.lang.Override
public boolean hasTransactionAmountMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Transaction amount in micros. Required.
* Transaction amount in micros needs to be greater than 1000.
* If item Attributes are provided, it represents the total value of the
* items, after multiplying the unit price per item by the quantity provided
* in the ItemAttributes.
*
*
* optional double transaction_amount_micros = 9;
* @return The transactionAmountMicros.
*/
@java.lang.Override
public double getTransactionAmountMicros() {
return transactionAmountMicros_;
}
/**
*
* Transaction amount in micros. Required.
* Transaction amount in micros needs to be greater than 1000.
* If item Attributes are provided, it represents the total value of the
* items, after multiplying the unit price per item by the quantity provided
* in the ItemAttributes.
*
*
* optional double transaction_amount_micros = 9;
* @param value The transactionAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setTransactionAmountMicros(double value) {
transactionAmountMicros_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Transaction amount in micros. Required.
* Transaction amount in micros needs to be greater than 1000.
* If item Attributes are provided, it represents the total value of the
* items, after multiplying the unit price per item by the quantity provided
* in the ItemAttributes.
*
*
* optional double transaction_amount_micros = 9;
* @return This builder for chaining.
*/
public Builder clearTransactionAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000002);
transactionAmountMicros_ = 0D;
onChanged();
return this;
}
private java.lang.Object currencyCode_ = "";
/**
*
* Transaction currency code. ISO 4217 three-letter code is used. Required.
*
*
* optional string currency_code = 10;
* @return Whether the currencyCode field is set.
*/
public boolean hasCurrencyCode() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Transaction currency code. ISO 4217 three-letter code is used. Required.
*
*
* optional string currency_code = 10;
* @return The currencyCode.
*/
public java.lang.String getCurrencyCode() {
java.lang.Object ref = currencyCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
currencyCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Transaction currency code. ISO 4217 three-letter code is used. Required.
*
*
* optional string currency_code = 10;
* @return The bytes for currencyCode.
*/
public com.google.protobuf.ByteString
getCurrencyCodeBytes() {
java.lang.Object ref = currencyCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currencyCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Transaction currency code. ISO 4217 three-letter code is used. Required.
*
*
* optional string currency_code = 10;
* @param value The currencyCode to set.
* @return This builder for chaining.
*/
public Builder setCurrencyCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
currencyCode_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Transaction currency code. ISO 4217 three-letter code is used. Required.
*
*
* optional string currency_code = 10;
* @return This builder for chaining.
*/
public Builder clearCurrencyCode() {
currencyCode_ = getDefaultInstance().getCurrencyCode();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Transaction currency code. ISO 4217 three-letter code is used. Required.
*
*
* optional string currency_code = 10;
* @param value The bytes for currencyCode to set.
* @return This builder for chaining.
*/
public Builder setCurrencyCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
currencyCode_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object conversionAction_ = "";
/**
*
* The resource name of conversion action to report conversions to.
* Required.
*
*
* optional string conversion_action = 11;
* @return Whether the conversionAction field is set.
*/
public boolean hasConversionAction() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The resource name of conversion action to report conversions to.
* Required.
*
*
* optional string conversion_action = 11;
* @return The conversionAction.
*/
public java.lang.String getConversionAction() {
java.lang.Object ref = conversionAction_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
conversionAction_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The resource name of conversion action to report conversions to.
* Required.
*
*
* optional string conversion_action = 11;
* @return The bytes for conversionAction.
*/
public com.google.protobuf.ByteString
getConversionActionBytes() {
java.lang.Object ref = conversionAction_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
conversionAction_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The resource name of conversion action to report conversions to.
* Required.
*
*
* optional string conversion_action = 11;
* @param value The conversionAction to set.
* @return This builder for chaining.
*/
public Builder setConversionAction(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
conversionAction_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The resource name of conversion action to report conversions to.
* Required.
*
*
* optional string conversion_action = 11;
* @return This builder for chaining.
*/
public Builder clearConversionAction() {
conversionAction_ = getDefaultInstance().getConversionAction();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* The resource name of conversion action to report conversions to.
* Required.
*
*
* optional string conversion_action = 11;
* @param value The bytes for conversionAction to set.
* @return This builder for chaining.
*/
public Builder setConversionActionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
conversionAction_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object orderId_ = "";
/**
*
* Transaction order id.
* Accessible only to customers on the allow-list.
*
*
* optional string order_id = 12;
* @return Whether the orderId field is set.
*/
public boolean hasOrderId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Transaction order id.
* Accessible only to customers on the allow-list.
*
*
* optional string order_id = 12;
* @return The orderId.
*/
public java.lang.String getOrderId() {
java.lang.Object ref = orderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
orderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Transaction order id.
* Accessible only to customers on the allow-list.
*
*
* optional string order_id = 12;
* @return The bytes for orderId.
*/
public com.google.protobuf.ByteString
getOrderIdBytes() {
java.lang.Object ref = orderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Transaction order id.
* Accessible only to customers on the allow-list.
*
*
* optional string order_id = 12;
* @param value The orderId to set.
* @return This builder for chaining.
*/
public Builder setOrderId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
orderId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Transaction order id.
* Accessible only to customers on the allow-list.
*
*
* optional string order_id = 12;
* @return This builder for chaining.
*/
public Builder clearOrderId() {
orderId_ = getDefaultInstance().getOrderId();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Transaction order id.
* Accessible only to customers on the allow-list.
*
*
* optional string order_id = 12;
* @param value The bytes for orderId to set.
* @return This builder for chaining.
*/
public Builder setOrderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
orderId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.ads.googleads.v17.common.StoreAttribute storeAttribute_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.StoreAttribute, com.google.ads.googleads.v17.common.StoreAttribute.Builder, com.google.ads.googleads.v17.common.StoreAttributeOrBuilder> storeAttributeBuilder_;
/**
*
* Store attributes of the transaction.
* Accessible only to customers on the allow-list.
*
*
* .google.ads.googleads.v17.common.StoreAttribute store_attribute = 6;
* @return Whether the storeAttribute field is set.
*/
public boolean hasStoreAttribute() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Store attributes of the transaction.
* Accessible only to customers on the allow-list.
*
*
* .google.ads.googleads.v17.common.StoreAttribute store_attribute = 6;
* @return The storeAttribute.
*/
public com.google.ads.googleads.v17.common.StoreAttribute getStoreAttribute() {
if (storeAttributeBuilder_ == null) {
return storeAttribute_ == null ? com.google.ads.googleads.v17.common.StoreAttribute.getDefaultInstance() : storeAttribute_;
} else {
return storeAttributeBuilder_.getMessage();
}
}
/**
*
* Store attributes of the transaction.
* Accessible only to customers on the allow-list.
*
*
* .google.ads.googleads.v17.common.StoreAttribute store_attribute = 6;
*/
public Builder setStoreAttribute(com.google.ads.googleads.v17.common.StoreAttribute value) {
if (storeAttributeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
storeAttribute_ = value;
} else {
storeAttributeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Store attributes of the transaction.
* Accessible only to customers on the allow-list.
*
*
* .google.ads.googleads.v17.common.StoreAttribute store_attribute = 6;
*/
public Builder setStoreAttribute(
com.google.ads.googleads.v17.common.StoreAttribute.Builder builderForValue) {
if (storeAttributeBuilder_ == null) {
storeAttribute_ = builderForValue.build();
} else {
storeAttributeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Store attributes of the transaction.
* Accessible only to customers on the allow-list.
*
*
* .google.ads.googleads.v17.common.StoreAttribute store_attribute = 6;
*/
public Builder mergeStoreAttribute(com.google.ads.googleads.v17.common.StoreAttribute value) {
if (storeAttributeBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
storeAttribute_ != null &&
storeAttribute_ != com.google.ads.googleads.v17.common.StoreAttribute.getDefaultInstance()) {
getStoreAttributeBuilder().mergeFrom(value);
} else {
storeAttribute_ = value;
}
} else {
storeAttributeBuilder_.mergeFrom(value);
}
if (storeAttribute_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* Store attributes of the transaction.
* Accessible only to customers on the allow-list.
*
*
* .google.ads.googleads.v17.common.StoreAttribute store_attribute = 6;
*/
public Builder clearStoreAttribute() {
bitField0_ = (bitField0_ & ~0x00000020);
storeAttribute_ = null;
if (storeAttributeBuilder_ != null) {
storeAttributeBuilder_.dispose();
storeAttributeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Store attributes of the transaction.
* Accessible only to customers on the allow-list.
*
*
* .google.ads.googleads.v17.common.StoreAttribute store_attribute = 6;
*/
public com.google.ads.googleads.v17.common.StoreAttribute.Builder getStoreAttributeBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getStoreAttributeFieldBuilder().getBuilder();
}
/**
*
* Store attributes of the transaction.
* Accessible only to customers on the allow-list.
*
*
* .google.ads.googleads.v17.common.StoreAttribute store_attribute = 6;
*/
public com.google.ads.googleads.v17.common.StoreAttributeOrBuilder getStoreAttributeOrBuilder() {
if (storeAttributeBuilder_ != null) {
return storeAttributeBuilder_.getMessageOrBuilder();
} else {
return storeAttribute_ == null ?
com.google.ads.googleads.v17.common.StoreAttribute.getDefaultInstance() : storeAttribute_;
}
}
/**
*
* Store attributes of the transaction.
* Accessible only to customers on the allow-list.
*
*
* .google.ads.googleads.v17.common.StoreAttribute store_attribute = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.StoreAttribute, com.google.ads.googleads.v17.common.StoreAttribute.Builder, com.google.ads.googleads.v17.common.StoreAttributeOrBuilder>
getStoreAttributeFieldBuilder() {
if (storeAttributeBuilder_ == null) {
storeAttributeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.StoreAttribute, com.google.ads.googleads.v17.common.StoreAttribute.Builder, com.google.ads.googleads.v17.common.StoreAttributeOrBuilder>(
getStoreAttribute(),
getParentForChildren(),
isClean());
storeAttribute_ = null;
}
return storeAttributeBuilder_;
}
private java.lang.Object customValue_ = "";
/**
*
* Value of the custom variable for each transaction.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_value = 13;
* @return Whether the customValue field is set.
*/
public boolean hasCustomValue() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Value of the custom variable for each transaction.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_value = 13;
* @return The customValue.
*/
public java.lang.String getCustomValue() {
java.lang.Object ref = customValue_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
customValue_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Value of the custom variable for each transaction.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_value = 13;
* @return The bytes for customValue.
*/
public com.google.protobuf.ByteString
getCustomValueBytes() {
java.lang.Object ref = customValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Value of the custom variable for each transaction.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_value = 13;
* @param value The customValue to set.
* @return This builder for chaining.
*/
public Builder setCustomValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
customValue_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Value of the custom variable for each transaction.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_value = 13;
* @return This builder for chaining.
*/
public Builder clearCustomValue() {
customValue_ = getDefaultInstance().getCustomValue();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* Value of the custom variable for each transaction.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_value = 13;
* @param value The bytes for customValue to set.
* @return This builder for chaining.
*/
public Builder setCustomValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
customValue_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private com.google.ads.googleads.v17.common.ItemAttribute itemAttribute_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ItemAttribute, com.google.ads.googleads.v17.common.ItemAttribute.Builder, com.google.ads.googleads.v17.common.ItemAttributeOrBuilder> itemAttributeBuilder_;
/**
*
* Item attributes of the transaction.
*
*
* .google.ads.googleads.v17.common.ItemAttribute item_attribute = 14;
* @return Whether the itemAttribute field is set.
*/
public boolean hasItemAttribute() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Item attributes of the transaction.
*
*
* .google.ads.googleads.v17.common.ItemAttribute item_attribute = 14;
* @return The itemAttribute.
*/
public com.google.ads.googleads.v17.common.ItemAttribute getItemAttribute() {
if (itemAttributeBuilder_ == null) {
return itemAttribute_ == null ? com.google.ads.googleads.v17.common.ItemAttribute.getDefaultInstance() : itemAttribute_;
} else {
return itemAttributeBuilder_.getMessage();
}
}
/**
*
* Item attributes of the transaction.
*
*
* .google.ads.googleads.v17.common.ItemAttribute item_attribute = 14;
*/
public Builder setItemAttribute(com.google.ads.googleads.v17.common.ItemAttribute value) {
if (itemAttributeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
itemAttribute_ = value;
} else {
itemAttributeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Item attributes of the transaction.
*
*
* .google.ads.googleads.v17.common.ItemAttribute item_attribute = 14;
*/
public Builder setItemAttribute(
com.google.ads.googleads.v17.common.ItemAttribute.Builder builderForValue) {
if (itemAttributeBuilder_ == null) {
itemAttribute_ = builderForValue.build();
} else {
itemAttributeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Item attributes of the transaction.
*
*
* .google.ads.googleads.v17.common.ItemAttribute item_attribute = 14;
*/
public Builder mergeItemAttribute(com.google.ads.googleads.v17.common.ItemAttribute value) {
if (itemAttributeBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
itemAttribute_ != null &&
itemAttribute_ != com.google.ads.googleads.v17.common.ItemAttribute.getDefaultInstance()) {
getItemAttributeBuilder().mergeFrom(value);
} else {
itemAttribute_ = value;
}
} else {
itemAttributeBuilder_.mergeFrom(value);
}
if (itemAttribute_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
* Item attributes of the transaction.
*
*
* .google.ads.googleads.v17.common.ItemAttribute item_attribute = 14;
*/
public Builder clearItemAttribute() {
bitField0_ = (bitField0_ & ~0x00000080);
itemAttribute_ = null;
if (itemAttributeBuilder_ != null) {
itemAttributeBuilder_.dispose();
itemAttributeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Item attributes of the transaction.
*
*
* .google.ads.googleads.v17.common.ItemAttribute item_attribute = 14;
*/
public com.google.ads.googleads.v17.common.ItemAttribute.Builder getItemAttributeBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getItemAttributeFieldBuilder().getBuilder();
}
/**
*
* Item attributes of the transaction.
*
*
* .google.ads.googleads.v17.common.ItemAttribute item_attribute = 14;
*/
public com.google.ads.googleads.v17.common.ItemAttributeOrBuilder getItemAttributeOrBuilder() {
if (itemAttributeBuilder_ != null) {
return itemAttributeBuilder_.getMessageOrBuilder();
} else {
return itemAttribute_ == null ?
com.google.ads.googleads.v17.common.ItemAttribute.getDefaultInstance() : itemAttribute_;
}
}
/**
*
* Item attributes of the transaction.
*
*
* .google.ads.googleads.v17.common.ItemAttribute item_attribute = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ItemAttribute, com.google.ads.googleads.v17.common.ItemAttribute.Builder, com.google.ads.googleads.v17.common.ItemAttributeOrBuilder>
getItemAttributeFieldBuilder() {
if (itemAttributeBuilder_ == null) {
itemAttributeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ItemAttribute, com.google.ads.googleads.v17.common.ItemAttribute.Builder, com.google.ads.googleads.v17.common.ItemAttributeOrBuilder>(
getItemAttribute(),
getParentForChildren(),
isClean());
itemAttribute_ = null;
}
return itemAttributeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.common.TransactionAttribute)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.TransactionAttribute)
private static final com.google.ads.googleads.v17.common.TransactionAttribute DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.TransactionAttribute();
}
public static com.google.ads.googleads.v17.common.TransactionAttribute getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionAttribute parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.TransactionAttribute getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy