com.google.ads.googleads.v17.common.StoreSalesMetadata 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;
/**
*
* Metadata for Store Sales Direct.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.StoreSalesMetadata}
*/
public final class StoreSalesMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.StoreSalesMetadata)
StoreSalesMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use StoreSalesMetadata.newBuilder() to construct.
private StoreSalesMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StoreSalesMetadata() {
customKey_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StoreSalesMetadata();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_StoreSalesMetadata_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_StoreSalesMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.StoreSalesMetadata.class, com.google.ads.googleads.v17.common.StoreSalesMetadata.Builder.class);
}
private int bitField0_;
public static final int LOYALTY_FRACTION_FIELD_NUMBER = 5;
private double loyaltyFraction_ = 0D;
/**
*
* This is the fraction of all transactions that are identifiable (for
* example, associated with any form of customer information). Required. The
* fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double loyalty_fraction = 5;
* @return Whether the loyaltyFraction field is set.
*/
@java.lang.Override
public boolean hasLoyaltyFraction() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* This is the fraction of all transactions that are identifiable (for
* example, associated with any form of customer information). Required. The
* fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double loyalty_fraction = 5;
* @return The loyaltyFraction.
*/
@java.lang.Override
public double getLoyaltyFraction() {
return loyaltyFraction_;
}
public static final int TRANSACTION_UPLOAD_FRACTION_FIELD_NUMBER = 6;
private double transactionUploadFraction_ = 0D;
/**
*
* This is the ratio of sales being uploaded compared to the overall sales
* that can be associated with a customer. Required.
* The fraction needs to be between 0 and 1 (excluding 0). For example, if you
* upload half the sales that you are able to associate with a customer, this
* would be 0.5.
*
*
* optional double transaction_upload_fraction = 6;
* @return Whether the transactionUploadFraction field is set.
*/
@java.lang.Override
public boolean hasTransactionUploadFraction() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* This is the ratio of sales being uploaded compared to the overall sales
* that can be associated with a customer. Required.
* The fraction needs to be between 0 and 1 (excluding 0). For example, if you
* upload half the sales that you are able to associate with a customer, this
* would be 0.5.
*
*
* optional double transaction_upload_fraction = 6;
* @return The transactionUploadFraction.
*/
@java.lang.Override
public double getTransactionUploadFraction() {
return transactionUploadFraction_;
}
public static final int CUSTOM_KEY_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object customKey_ = "";
/**
*
* Name of the store sales custom variable key. A predefined key that
* can be applied to the transaction and then later used for custom
* segmentation in reporting.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_key = 7;
* @return Whether the customKey field is set.
*/
@java.lang.Override
public boolean hasCustomKey() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Name of the store sales custom variable key. A predefined key that
* can be applied to the transaction and then later used for custom
* segmentation in reporting.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_key = 7;
* @return The customKey.
*/
@java.lang.Override
public java.lang.String getCustomKey() {
java.lang.Object ref = customKey_;
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();
customKey_ = s;
return s;
}
}
/**
*
* Name of the store sales custom variable key. A predefined key that
* can be applied to the transaction and then later used for custom
* segmentation in reporting.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_key = 7;
* @return The bytes for customKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCustomKeyBytes() {
java.lang.Object ref = customKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int THIRD_PARTY_METADATA_FIELD_NUMBER = 3;
private com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata thirdPartyMetadata_;
/**
*
* Metadata for a third party Store Sales upload.
*
*
* .google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
* @return Whether the thirdPartyMetadata field is set.
*/
@java.lang.Override
public boolean hasThirdPartyMetadata() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Metadata for a third party Store Sales upload.
*
*
* .google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
* @return The thirdPartyMetadata.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata getThirdPartyMetadata() {
return thirdPartyMetadata_ == null ? com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.getDefaultInstance() : thirdPartyMetadata_;
}
/**
*
* Metadata for a third party Store Sales upload.
*
*
* .google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadataOrBuilder getThirdPartyMetadataOrBuilder() {
return thirdPartyMetadata_ == null ? com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.getDefaultInstance() : thirdPartyMetadata_;
}
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_ & 0x00000008) != 0)) {
output.writeMessage(3, getThirdPartyMetadata());
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeDouble(5, loyaltyFraction_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(6, transactionUploadFraction_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, customKey_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getThirdPartyMetadata());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, loyaltyFraction_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, transactionUploadFraction_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, customKey_);
}
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.StoreSalesMetadata)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.StoreSalesMetadata other = (com.google.ads.googleads.v17.common.StoreSalesMetadata) obj;
if (hasLoyaltyFraction() != other.hasLoyaltyFraction()) return false;
if (hasLoyaltyFraction()) {
if (java.lang.Double.doubleToLongBits(getLoyaltyFraction())
!= java.lang.Double.doubleToLongBits(
other.getLoyaltyFraction())) return false;
}
if (hasTransactionUploadFraction() != other.hasTransactionUploadFraction()) return false;
if (hasTransactionUploadFraction()) {
if (java.lang.Double.doubleToLongBits(getTransactionUploadFraction())
!= java.lang.Double.doubleToLongBits(
other.getTransactionUploadFraction())) return false;
}
if (hasCustomKey() != other.hasCustomKey()) return false;
if (hasCustomKey()) {
if (!getCustomKey()
.equals(other.getCustomKey())) return false;
}
if (hasThirdPartyMetadata() != other.hasThirdPartyMetadata()) return false;
if (hasThirdPartyMetadata()) {
if (!getThirdPartyMetadata()
.equals(other.getThirdPartyMetadata())) 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 (hasLoyaltyFraction()) {
hash = (37 * hash) + LOYALTY_FRACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLoyaltyFraction()));
}
if (hasTransactionUploadFraction()) {
hash = (37 * hash) + TRANSACTION_UPLOAD_FRACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTransactionUploadFraction()));
}
if (hasCustomKey()) {
hash = (37 * hash) + CUSTOM_KEY_FIELD_NUMBER;
hash = (53 * hash) + getCustomKey().hashCode();
}
if (hasThirdPartyMetadata()) {
hash = (37 * hash) + THIRD_PARTY_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getThirdPartyMetadata().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.StoreSalesMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.StoreSalesMetadata 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.StoreSalesMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.StoreSalesMetadata 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.StoreSalesMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.StoreSalesMetadata 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.StoreSalesMetadata 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.StoreSalesMetadata 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.StoreSalesMetadata 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.StoreSalesMetadata 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.StoreSalesMetadata 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.StoreSalesMetadata 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.StoreSalesMetadata 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;
}
/**
*
* Metadata for Store Sales Direct.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.StoreSalesMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.StoreSalesMetadata)
com.google.ads.googleads.v17.common.StoreSalesMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_StoreSalesMetadata_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_StoreSalesMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.StoreSalesMetadata.class, com.google.ads.googleads.v17.common.StoreSalesMetadata.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.StoreSalesMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getThirdPartyMetadataFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
loyaltyFraction_ = 0D;
transactionUploadFraction_ = 0D;
customKey_ = "";
thirdPartyMetadata_ = null;
if (thirdPartyMetadataBuilder_ != null) {
thirdPartyMetadataBuilder_.dispose();
thirdPartyMetadataBuilder_ = 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_StoreSalesMetadata_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.StoreSalesMetadata getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.StoreSalesMetadata.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.StoreSalesMetadata build() {
com.google.ads.googleads.v17.common.StoreSalesMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.StoreSalesMetadata buildPartial() {
com.google.ads.googleads.v17.common.StoreSalesMetadata result = new com.google.ads.googleads.v17.common.StoreSalesMetadata(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.StoreSalesMetadata result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.loyaltyFraction_ = loyaltyFraction_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.transactionUploadFraction_ = transactionUploadFraction_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.customKey_ = customKey_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.thirdPartyMetadata_ = thirdPartyMetadataBuilder_ == null
? thirdPartyMetadata_
: thirdPartyMetadataBuilder_.build();
to_bitField0_ |= 0x00000008;
}
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.StoreSalesMetadata) {
return mergeFrom((com.google.ads.googleads.v17.common.StoreSalesMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.StoreSalesMetadata other) {
if (other == com.google.ads.googleads.v17.common.StoreSalesMetadata.getDefaultInstance()) return this;
if (other.hasLoyaltyFraction()) {
setLoyaltyFraction(other.getLoyaltyFraction());
}
if (other.hasTransactionUploadFraction()) {
setTransactionUploadFraction(other.getTransactionUploadFraction());
}
if (other.hasCustomKey()) {
customKey_ = other.customKey_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasThirdPartyMetadata()) {
mergeThirdPartyMetadata(other.getThirdPartyMetadata());
}
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 26: {
input.readMessage(
getThirdPartyMetadataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 26
case 41: {
loyaltyFraction_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 41
case 49: {
transactionUploadFraction_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 49
case 58: {
customKey_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 58
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 double loyaltyFraction_ ;
/**
*
* This is the fraction of all transactions that are identifiable (for
* example, associated with any form of customer information). Required. The
* fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double loyalty_fraction = 5;
* @return Whether the loyaltyFraction field is set.
*/
@java.lang.Override
public boolean hasLoyaltyFraction() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* This is the fraction of all transactions that are identifiable (for
* example, associated with any form of customer information). Required. The
* fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double loyalty_fraction = 5;
* @return The loyaltyFraction.
*/
@java.lang.Override
public double getLoyaltyFraction() {
return loyaltyFraction_;
}
/**
*
* This is the fraction of all transactions that are identifiable (for
* example, associated with any form of customer information). Required. The
* fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double loyalty_fraction = 5;
* @param value The loyaltyFraction to set.
* @return This builder for chaining.
*/
public Builder setLoyaltyFraction(double value) {
loyaltyFraction_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* This is the fraction of all transactions that are identifiable (for
* example, associated with any form of customer information). Required. The
* fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double loyalty_fraction = 5;
* @return This builder for chaining.
*/
public Builder clearLoyaltyFraction() {
bitField0_ = (bitField0_ & ~0x00000001);
loyaltyFraction_ = 0D;
onChanged();
return this;
}
private double transactionUploadFraction_ ;
/**
*
* This is the ratio of sales being uploaded compared to the overall sales
* that can be associated with a customer. Required.
* The fraction needs to be between 0 and 1 (excluding 0). For example, if you
* upload half the sales that you are able to associate with a customer, this
* would be 0.5.
*
*
* optional double transaction_upload_fraction = 6;
* @return Whether the transactionUploadFraction field is set.
*/
@java.lang.Override
public boolean hasTransactionUploadFraction() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* This is the ratio of sales being uploaded compared to the overall sales
* that can be associated with a customer. Required.
* The fraction needs to be between 0 and 1 (excluding 0). For example, if you
* upload half the sales that you are able to associate with a customer, this
* would be 0.5.
*
*
* optional double transaction_upload_fraction = 6;
* @return The transactionUploadFraction.
*/
@java.lang.Override
public double getTransactionUploadFraction() {
return transactionUploadFraction_;
}
/**
*
* This is the ratio of sales being uploaded compared to the overall sales
* that can be associated with a customer. Required.
* The fraction needs to be between 0 and 1 (excluding 0). For example, if you
* upload half the sales that you are able to associate with a customer, this
* would be 0.5.
*
*
* optional double transaction_upload_fraction = 6;
* @param value The transactionUploadFraction to set.
* @return This builder for chaining.
*/
public Builder setTransactionUploadFraction(double value) {
transactionUploadFraction_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* This is the ratio of sales being uploaded compared to the overall sales
* that can be associated with a customer. Required.
* The fraction needs to be between 0 and 1 (excluding 0). For example, if you
* upload half the sales that you are able to associate with a customer, this
* would be 0.5.
*
*
* optional double transaction_upload_fraction = 6;
* @return This builder for chaining.
*/
public Builder clearTransactionUploadFraction() {
bitField0_ = (bitField0_ & ~0x00000002);
transactionUploadFraction_ = 0D;
onChanged();
return this;
}
private java.lang.Object customKey_ = "";
/**
*
* Name of the store sales custom variable key. A predefined key that
* can be applied to the transaction and then later used for custom
* segmentation in reporting.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_key = 7;
* @return Whether the customKey field is set.
*/
public boolean hasCustomKey() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Name of the store sales custom variable key. A predefined key that
* can be applied to the transaction and then later used for custom
* segmentation in reporting.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_key = 7;
* @return The customKey.
*/
public java.lang.String getCustomKey() {
java.lang.Object ref = customKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
customKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the store sales custom variable key. A predefined key that
* can be applied to the transaction and then later used for custom
* segmentation in reporting.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_key = 7;
* @return The bytes for customKey.
*/
public com.google.protobuf.ByteString
getCustomKeyBytes() {
java.lang.Object ref = customKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the store sales custom variable key. A predefined key that
* can be applied to the transaction and then later used for custom
* segmentation in reporting.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_key = 7;
* @param value The customKey to set.
* @return This builder for chaining.
*/
public Builder setCustomKey(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
customKey_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Name of the store sales custom variable key. A predefined key that
* can be applied to the transaction and then later used for custom
* segmentation in reporting.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_key = 7;
* @return This builder for chaining.
*/
public Builder clearCustomKey() {
customKey_ = getDefaultInstance().getCustomKey();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Name of the store sales custom variable key. A predefined key that
* can be applied to the transaction and then later used for custom
* segmentation in reporting.
* Accessible only to customers on the allow-list.
*
*
* optional string custom_key = 7;
* @param value The bytes for customKey to set.
* @return This builder for chaining.
*/
public Builder setCustomKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
customKey_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata thirdPartyMetadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata, com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.Builder, com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadataOrBuilder> thirdPartyMetadataBuilder_;
/**
*
* Metadata for a third party Store Sales upload.
*
*
* .google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
* @return Whether the thirdPartyMetadata field is set.
*/
public boolean hasThirdPartyMetadata() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Metadata for a third party Store Sales upload.
*
*
* .google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
* @return The thirdPartyMetadata.
*/
public com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata getThirdPartyMetadata() {
if (thirdPartyMetadataBuilder_ == null) {
return thirdPartyMetadata_ == null ? com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.getDefaultInstance() : thirdPartyMetadata_;
} else {
return thirdPartyMetadataBuilder_.getMessage();
}
}
/**
*
* Metadata for a third party Store Sales upload.
*
*
* .google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
*/
public Builder setThirdPartyMetadata(com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata value) {
if (thirdPartyMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
thirdPartyMetadata_ = value;
} else {
thirdPartyMetadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Metadata for a third party Store Sales upload.
*
*
* .google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
*/
public Builder setThirdPartyMetadata(
com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.Builder builderForValue) {
if (thirdPartyMetadataBuilder_ == null) {
thirdPartyMetadata_ = builderForValue.build();
} else {
thirdPartyMetadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Metadata for a third party Store Sales upload.
*
*
* .google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
*/
public Builder mergeThirdPartyMetadata(com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata value) {
if (thirdPartyMetadataBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
thirdPartyMetadata_ != null &&
thirdPartyMetadata_ != com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.getDefaultInstance()) {
getThirdPartyMetadataBuilder().mergeFrom(value);
} else {
thirdPartyMetadata_ = value;
}
} else {
thirdPartyMetadataBuilder_.mergeFrom(value);
}
if (thirdPartyMetadata_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Metadata for a third party Store Sales upload.
*
*
* .google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
*/
public Builder clearThirdPartyMetadata() {
bitField0_ = (bitField0_ & ~0x00000008);
thirdPartyMetadata_ = null;
if (thirdPartyMetadataBuilder_ != null) {
thirdPartyMetadataBuilder_.dispose();
thirdPartyMetadataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Metadata for a third party Store Sales upload.
*
*
* .google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
*/
public com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.Builder getThirdPartyMetadataBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getThirdPartyMetadataFieldBuilder().getBuilder();
}
/**
*
* Metadata for a third party Store Sales upload.
*
*
* .google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
*/
public com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadataOrBuilder getThirdPartyMetadataOrBuilder() {
if (thirdPartyMetadataBuilder_ != null) {
return thirdPartyMetadataBuilder_.getMessageOrBuilder();
} else {
return thirdPartyMetadata_ == null ?
com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.getDefaultInstance() : thirdPartyMetadata_;
}
}
/**
*
* Metadata for a third party Store Sales upload.
*
*
* .google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata, com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.Builder, com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadataOrBuilder>
getThirdPartyMetadataFieldBuilder() {
if (thirdPartyMetadataBuilder_ == null) {
thirdPartyMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata, com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.Builder, com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadataOrBuilder>(
getThirdPartyMetadata(),
getParentForChildren(),
isClean());
thirdPartyMetadata_ = null;
}
return thirdPartyMetadataBuilder_;
}
@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.StoreSalesMetadata)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.StoreSalesMetadata)
private static final com.google.ads.googleads.v17.common.StoreSalesMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.StoreSalesMetadata();
}
public static com.google.ads.googleads.v17.common.StoreSalesMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StoreSalesMetadata 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.StoreSalesMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy