com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata 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 a third party Store Sales.
* This product is only for customers on the allow-list. Contact your
* Google business development representative for details on the upload
* configuration.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata}
*/
public final class StoreSalesThirdPartyMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata)
StoreSalesThirdPartyMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use StoreSalesThirdPartyMetadata.newBuilder() to construct.
private StoreSalesThirdPartyMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StoreSalesThirdPartyMetadata() {
advertiserUploadDateTime_ = "";
bridgeMapVersionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StoreSalesThirdPartyMetadata();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_StoreSalesThirdPartyMetadata_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_StoreSalesThirdPartyMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.class, com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.Builder.class);
}
private int bitField0_;
public static final int ADVERTISER_UPLOAD_DATE_TIME_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object advertiserUploadDateTime_ = "";
/**
*
* Time the advertiser uploaded the data to the partner. Required.
* The format is "YYYY-MM-DD HH:MM:SS".
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string advertiser_upload_date_time = 7;
* @return Whether the advertiserUploadDateTime field is set.
*/
@java.lang.Override
public boolean hasAdvertiserUploadDateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Time the advertiser uploaded the data to the partner. Required.
* The format is "YYYY-MM-DD HH:MM:SS".
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string advertiser_upload_date_time = 7;
* @return The advertiserUploadDateTime.
*/
@java.lang.Override
public java.lang.String getAdvertiserUploadDateTime() {
java.lang.Object ref = advertiserUploadDateTime_;
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();
advertiserUploadDateTime_ = s;
return s;
}
}
/**
*
* Time the advertiser uploaded the data to the partner. Required.
* The format is "YYYY-MM-DD HH:MM:SS".
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string advertiser_upload_date_time = 7;
* @return The bytes for advertiserUploadDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAdvertiserUploadDateTimeBytes() {
java.lang.Object ref = advertiserUploadDateTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
advertiserUploadDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALID_TRANSACTION_FRACTION_FIELD_NUMBER = 8;
private double validTransactionFraction_ = 0D;
/**
*
* The fraction of transactions that are valid. Invalid transactions may
* include invalid formats or values.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double valid_transaction_fraction = 8;
* @return Whether the validTransactionFraction field is set.
*/
@java.lang.Override
public boolean hasValidTransactionFraction() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The fraction of transactions that are valid. Invalid transactions may
* include invalid formats or values.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double valid_transaction_fraction = 8;
* @return The validTransactionFraction.
*/
@java.lang.Override
public double getValidTransactionFraction() {
return validTransactionFraction_;
}
public static final int PARTNER_MATCH_FRACTION_FIELD_NUMBER = 9;
private double partnerMatchFraction_ = 0D;
/**
*
* The fraction of valid transactions that are matched to a third party
* assigned user ID on the partner side.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double partner_match_fraction = 9;
* @return Whether the partnerMatchFraction field is set.
*/
@java.lang.Override
public boolean hasPartnerMatchFraction() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The fraction of valid transactions that are matched to a third party
* assigned user ID on the partner side.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double partner_match_fraction = 9;
* @return The partnerMatchFraction.
*/
@java.lang.Override
public double getPartnerMatchFraction() {
return partnerMatchFraction_;
}
public static final int PARTNER_UPLOAD_FRACTION_FIELD_NUMBER = 10;
private double partnerUploadFraction_ = 0D;
/**
*
* The fraction of valid transactions that are uploaded by the partner to
* Google.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double partner_upload_fraction = 10;
* @return Whether the partnerUploadFraction field is set.
*/
@java.lang.Override
public boolean hasPartnerUploadFraction() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The fraction of valid transactions that are uploaded by the partner to
* Google.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double partner_upload_fraction = 10;
* @return The partnerUploadFraction.
*/
@java.lang.Override
public double getPartnerUploadFraction() {
return partnerUploadFraction_;
}
public static final int BRIDGE_MAP_VERSION_ID_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object bridgeMapVersionId_ = "";
/**
*
* Version of partner IDs to be used for uploads. Required.
*
*
* optional string bridge_map_version_id = 11;
* @return Whether the bridgeMapVersionId field is set.
*/
@java.lang.Override
public boolean hasBridgeMapVersionId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Version of partner IDs to be used for uploads. Required.
*
*
* optional string bridge_map_version_id = 11;
* @return The bridgeMapVersionId.
*/
@java.lang.Override
public java.lang.String getBridgeMapVersionId() {
java.lang.Object ref = bridgeMapVersionId_;
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();
bridgeMapVersionId_ = s;
return s;
}
}
/**
*
* Version of partner IDs to be used for uploads. Required.
*
*
* optional string bridge_map_version_id = 11;
* @return The bytes for bridgeMapVersionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBridgeMapVersionIdBytes() {
java.lang.Object ref = bridgeMapVersionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bridgeMapVersionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARTNER_ID_FIELD_NUMBER = 12;
private long partnerId_ = 0L;
/**
*
* ID of the third party partner updating the transaction feed.
*
*
* optional int64 partner_id = 12;
* @return Whether the partnerId field is set.
*/
@java.lang.Override
public boolean hasPartnerId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* ID of the third party partner updating the transaction feed.
*
*
* optional int64 partner_id = 12;
* @return The partnerId.
*/
@java.lang.Override
public long getPartnerId() {
return partnerId_;
}
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_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, advertiserUploadDateTime_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(8, validTransactionFraction_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeDouble(9, partnerMatchFraction_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeDouble(10, partnerUploadFraction_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, bridgeMapVersionId_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(12, partnerId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, advertiserUploadDateTime_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, validTransactionFraction_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(9, partnerMatchFraction_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(10, partnerUploadFraction_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, bridgeMapVersionId_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, partnerId_);
}
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.StoreSalesThirdPartyMetadata)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata other = (com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata) obj;
if (hasAdvertiserUploadDateTime() != other.hasAdvertiserUploadDateTime()) return false;
if (hasAdvertiserUploadDateTime()) {
if (!getAdvertiserUploadDateTime()
.equals(other.getAdvertiserUploadDateTime())) return false;
}
if (hasValidTransactionFraction() != other.hasValidTransactionFraction()) return false;
if (hasValidTransactionFraction()) {
if (java.lang.Double.doubleToLongBits(getValidTransactionFraction())
!= java.lang.Double.doubleToLongBits(
other.getValidTransactionFraction())) return false;
}
if (hasPartnerMatchFraction() != other.hasPartnerMatchFraction()) return false;
if (hasPartnerMatchFraction()) {
if (java.lang.Double.doubleToLongBits(getPartnerMatchFraction())
!= java.lang.Double.doubleToLongBits(
other.getPartnerMatchFraction())) return false;
}
if (hasPartnerUploadFraction() != other.hasPartnerUploadFraction()) return false;
if (hasPartnerUploadFraction()) {
if (java.lang.Double.doubleToLongBits(getPartnerUploadFraction())
!= java.lang.Double.doubleToLongBits(
other.getPartnerUploadFraction())) return false;
}
if (hasBridgeMapVersionId() != other.hasBridgeMapVersionId()) return false;
if (hasBridgeMapVersionId()) {
if (!getBridgeMapVersionId()
.equals(other.getBridgeMapVersionId())) return false;
}
if (hasPartnerId() != other.hasPartnerId()) return false;
if (hasPartnerId()) {
if (getPartnerId()
!= other.getPartnerId()) 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 (hasAdvertiserUploadDateTime()) {
hash = (37 * hash) + ADVERTISER_UPLOAD_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getAdvertiserUploadDateTime().hashCode();
}
if (hasValidTransactionFraction()) {
hash = (37 * hash) + VALID_TRANSACTION_FRACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getValidTransactionFraction()));
}
if (hasPartnerMatchFraction()) {
hash = (37 * hash) + PARTNER_MATCH_FRACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getPartnerMatchFraction()));
}
if (hasPartnerUploadFraction()) {
hash = (37 * hash) + PARTNER_UPLOAD_FRACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getPartnerUploadFraction()));
}
if (hasBridgeMapVersionId()) {
hash = (37 * hash) + BRIDGE_MAP_VERSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getBridgeMapVersionId().hashCode();
}
if (hasPartnerId()) {
hash = (37 * hash) + PARTNER_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPartnerId());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata 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.StoreSalesThirdPartyMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata 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.StoreSalesThirdPartyMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata 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.StoreSalesThirdPartyMetadata 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.StoreSalesThirdPartyMetadata 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.StoreSalesThirdPartyMetadata 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.StoreSalesThirdPartyMetadata 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.StoreSalesThirdPartyMetadata 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.StoreSalesThirdPartyMetadata 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.StoreSalesThirdPartyMetadata 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 a third party Store Sales.
* This product is only for customers on the allow-list. Contact your
* Google business development representative for details on the upload
* configuration.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata)
com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_StoreSalesThirdPartyMetadata_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_StoreSalesThirdPartyMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.class, com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
advertiserUploadDateTime_ = "";
validTransactionFraction_ = 0D;
partnerMatchFraction_ = 0D;
partnerUploadFraction_ = 0D;
bridgeMapVersionId_ = "";
partnerId_ = 0L;
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_StoreSalesThirdPartyMetadata_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata build() {
com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata buildPartial() {
com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata result = new com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.advertiserUploadDateTime_ = advertiserUploadDateTime_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.validTransactionFraction_ = validTransactionFraction_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.partnerMatchFraction_ = partnerMatchFraction_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.partnerUploadFraction_ = partnerUploadFraction_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.bridgeMapVersionId_ = bridgeMapVersionId_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.partnerId_ = partnerId_;
to_bitField0_ |= 0x00000020;
}
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.StoreSalesThirdPartyMetadata) {
return mergeFrom((com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata other) {
if (other == com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata.getDefaultInstance()) return this;
if (other.hasAdvertiserUploadDateTime()) {
advertiserUploadDateTime_ = other.advertiserUploadDateTime_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasValidTransactionFraction()) {
setValidTransactionFraction(other.getValidTransactionFraction());
}
if (other.hasPartnerMatchFraction()) {
setPartnerMatchFraction(other.getPartnerMatchFraction());
}
if (other.hasPartnerUploadFraction()) {
setPartnerUploadFraction(other.getPartnerUploadFraction());
}
if (other.hasBridgeMapVersionId()) {
bridgeMapVersionId_ = other.bridgeMapVersionId_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasPartnerId()) {
setPartnerId(other.getPartnerId());
}
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 58: {
advertiserUploadDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 58
case 65: {
validTransactionFraction_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 65
case 73: {
partnerMatchFraction_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 73
case 81: {
partnerUploadFraction_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 81
case 90: {
bridgeMapVersionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 90
case 96: {
partnerId_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 96
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 advertiserUploadDateTime_ = "";
/**
*
* Time the advertiser uploaded the data to the partner. Required.
* The format is "YYYY-MM-DD HH:MM:SS".
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string advertiser_upload_date_time = 7;
* @return Whether the advertiserUploadDateTime field is set.
*/
public boolean hasAdvertiserUploadDateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Time the advertiser uploaded the data to the partner. Required.
* The format is "YYYY-MM-DD HH:MM:SS".
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string advertiser_upload_date_time = 7;
* @return The advertiserUploadDateTime.
*/
public java.lang.String getAdvertiserUploadDateTime() {
java.lang.Object ref = advertiserUploadDateTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
advertiserUploadDateTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Time the advertiser uploaded the data to the partner. Required.
* The format is "YYYY-MM-DD HH:MM:SS".
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string advertiser_upload_date_time = 7;
* @return The bytes for advertiserUploadDateTime.
*/
public com.google.protobuf.ByteString
getAdvertiserUploadDateTimeBytes() {
java.lang.Object ref = advertiserUploadDateTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
advertiserUploadDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Time the advertiser uploaded the data to the partner. Required.
* The format is "YYYY-MM-DD HH:MM:SS".
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string advertiser_upload_date_time = 7;
* @param value The advertiserUploadDateTime to set.
* @return This builder for chaining.
*/
public Builder setAdvertiserUploadDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
advertiserUploadDateTime_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Time the advertiser uploaded the data to the partner. Required.
* The format is "YYYY-MM-DD HH:MM:SS".
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string advertiser_upload_date_time = 7;
* @return This builder for chaining.
*/
public Builder clearAdvertiserUploadDateTime() {
advertiserUploadDateTime_ = getDefaultInstance().getAdvertiserUploadDateTime();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Time the advertiser uploaded the data to the partner. Required.
* The format is "YYYY-MM-DD HH:MM:SS".
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string advertiser_upload_date_time = 7;
* @param value The bytes for advertiserUploadDateTime to set.
* @return This builder for chaining.
*/
public Builder setAdvertiserUploadDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
advertiserUploadDateTime_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private double validTransactionFraction_ ;
/**
*
* The fraction of transactions that are valid. Invalid transactions may
* include invalid formats or values.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double valid_transaction_fraction = 8;
* @return Whether the validTransactionFraction field is set.
*/
@java.lang.Override
public boolean hasValidTransactionFraction() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The fraction of transactions that are valid. Invalid transactions may
* include invalid formats or values.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double valid_transaction_fraction = 8;
* @return The validTransactionFraction.
*/
@java.lang.Override
public double getValidTransactionFraction() {
return validTransactionFraction_;
}
/**
*
* The fraction of transactions that are valid. Invalid transactions may
* include invalid formats or values.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double valid_transaction_fraction = 8;
* @param value The validTransactionFraction to set.
* @return This builder for chaining.
*/
public Builder setValidTransactionFraction(double value) {
validTransactionFraction_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The fraction of transactions that are valid. Invalid transactions may
* include invalid formats or values.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double valid_transaction_fraction = 8;
* @return This builder for chaining.
*/
public Builder clearValidTransactionFraction() {
bitField0_ = (bitField0_ & ~0x00000002);
validTransactionFraction_ = 0D;
onChanged();
return this;
}
private double partnerMatchFraction_ ;
/**
*
* The fraction of valid transactions that are matched to a third party
* assigned user ID on the partner side.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double partner_match_fraction = 9;
* @return Whether the partnerMatchFraction field is set.
*/
@java.lang.Override
public boolean hasPartnerMatchFraction() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The fraction of valid transactions that are matched to a third party
* assigned user ID on the partner side.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double partner_match_fraction = 9;
* @return The partnerMatchFraction.
*/
@java.lang.Override
public double getPartnerMatchFraction() {
return partnerMatchFraction_;
}
/**
*
* The fraction of valid transactions that are matched to a third party
* assigned user ID on the partner side.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double partner_match_fraction = 9;
* @param value The partnerMatchFraction to set.
* @return This builder for chaining.
*/
public Builder setPartnerMatchFraction(double value) {
partnerMatchFraction_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The fraction of valid transactions that are matched to a third party
* assigned user ID on the partner side.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double partner_match_fraction = 9;
* @return This builder for chaining.
*/
public Builder clearPartnerMatchFraction() {
bitField0_ = (bitField0_ & ~0x00000004);
partnerMatchFraction_ = 0D;
onChanged();
return this;
}
private double partnerUploadFraction_ ;
/**
*
* The fraction of valid transactions that are uploaded by the partner to
* Google.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double partner_upload_fraction = 10;
* @return Whether the partnerUploadFraction field is set.
*/
@java.lang.Override
public boolean hasPartnerUploadFraction() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The fraction of valid transactions that are uploaded by the partner to
* Google.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double partner_upload_fraction = 10;
* @return The partnerUploadFraction.
*/
@java.lang.Override
public double getPartnerUploadFraction() {
return partnerUploadFraction_;
}
/**
*
* The fraction of valid transactions that are uploaded by the partner to
* Google.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double partner_upload_fraction = 10;
* @param value The partnerUploadFraction to set.
* @return This builder for chaining.
*/
public Builder setPartnerUploadFraction(double value) {
partnerUploadFraction_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The fraction of valid transactions that are uploaded by the partner to
* Google.
* Required.
* The fraction needs to be between 0 and 1 (excluding 0).
*
*
* optional double partner_upload_fraction = 10;
* @return This builder for chaining.
*/
public Builder clearPartnerUploadFraction() {
bitField0_ = (bitField0_ & ~0x00000008);
partnerUploadFraction_ = 0D;
onChanged();
return this;
}
private java.lang.Object bridgeMapVersionId_ = "";
/**
*
* Version of partner IDs to be used for uploads. Required.
*
*
* optional string bridge_map_version_id = 11;
* @return Whether the bridgeMapVersionId field is set.
*/
public boolean hasBridgeMapVersionId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Version of partner IDs to be used for uploads. Required.
*
*
* optional string bridge_map_version_id = 11;
* @return The bridgeMapVersionId.
*/
public java.lang.String getBridgeMapVersionId() {
java.lang.Object ref = bridgeMapVersionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
bridgeMapVersionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Version of partner IDs to be used for uploads. Required.
*
*
* optional string bridge_map_version_id = 11;
* @return The bytes for bridgeMapVersionId.
*/
public com.google.protobuf.ByteString
getBridgeMapVersionIdBytes() {
java.lang.Object ref = bridgeMapVersionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bridgeMapVersionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Version of partner IDs to be used for uploads. Required.
*
*
* optional string bridge_map_version_id = 11;
* @param value The bridgeMapVersionId to set.
* @return This builder for chaining.
*/
public Builder setBridgeMapVersionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
bridgeMapVersionId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Version of partner IDs to be used for uploads. Required.
*
*
* optional string bridge_map_version_id = 11;
* @return This builder for chaining.
*/
public Builder clearBridgeMapVersionId() {
bridgeMapVersionId_ = getDefaultInstance().getBridgeMapVersionId();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Version of partner IDs to be used for uploads. Required.
*
*
* optional string bridge_map_version_id = 11;
* @param value The bytes for bridgeMapVersionId to set.
* @return This builder for chaining.
*/
public Builder setBridgeMapVersionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
bridgeMapVersionId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private long partnerId_ ;
/**
*
* ID of the third party partner updating the transaction feed.
*
*
* optional int64 partner_id = 12;
* @return Whether the partnerId field is set.
*/
@java.lang.Override
public boolean hasPartnerId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* ID of the third party partner updating the transaction feed.
*
*
* optional int64 partner_id = 12;
* @return The partnerId.
*/
@java.lang.Override
public long getPartnerId() {
return partnerId_;
}
/**
*
* ID of the third party partner updating the transaction feed.
*
*
* optional int64 partner_id = 12;
* @param value The partnerId to set.
* @return This builder for chaining.
*/
public Builder setPartnerId(long value) {
partnerId_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* ID of the third party partner updating the transaction feed.
*
*
* optional int64 partner_id = 12;
* @return This builder for chaining.
*/
public Builder clearPartnerId() {
bitField0_ = (bitField0_ & ~0x00000020);
partnerId_ = 0L;
onChanged();
return this;
}
@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.StoreSalesThirdPartyMetadata)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata)
private static final com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata();
}
public static com.google.ads.googleads.v17.common.StoreSalesThirdPartyMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StoreSalesThirdPartyMetadata 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.StoreSalesThirdPartyMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy