com.google.ads.googleads.v17.services.ConversionAdjustmentResult 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/services/conversion_adjustment_upload_service.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.services;
/**
*
* Information identifying a successfully processed ConversionAdjustment.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.ConversionAdjustmentResult}
*/
public final class ConversionAdjustmentResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.ConversionAdjustmentResult)
ConversionAdjustmentResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConversionAdjustmentResult.newBuilder() to construct.
private ConversionAdjustmentResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConversionAdjustmentResult() {
orderId_ = "";
conversionAction_ = "";
adjustmentDateTime_ = "";
adjustmentType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConversionAdjustmentResult();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.ConversionAdjustmentUploadServiceProto.internal_static_google_ads_googleads_v17_services_ConversionAdjustmentResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.ConversionAdjustmentUploadServiceProto.internal_static_google_ads_googleads_v17_services_ConversionAdjustmentResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.ConversionAdjustmentResult.class, com.google.ads.googleads.v17.services.ConversionAdjustmentResult.Builder.class);
}
private int bitField0_;
public static final int GCLID_DATE_TIME_PAIR_FIELD_NUMBER = 9;
private com.google.ads.googleads.v17.services.GclidDateTimePair gclidDateTimePair_;
/**
*
* The gclid and conversion date time of the conversion.
*
*
* .google.ads.googleads.v17.services.GclidDateTimePair gclid_date_time_pair = 9;
* @return Whether the gclidDateTimePair field is set.
*/
@java.lang.Override
public boolean hasGclidDateTimePair() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The gclid and conversion date time of the conversion.
*
*
* .google.ads.googleads.v17.services.GclidDateTimePair gclid_date_time_pair = 9;
* @return The gclidDateTimePair.
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.GclidDateTimePair getGclidDateTimePair() {
return gclidDateTimePair_ == null ? com.google.ads.googleads.v17.services.GclidDateTimePair.getDefaultInstance() : gclidDateTimePair_;
}
/**
*
* The gclid and conversion date time of the conversion.
*
*
* .google.ads.googleads.v17.services.GclidDateTimePair gclid_date_time_pair = 9;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.GclidDateTimePairOrBuilder getGclidDateTimePairOrBuilder() {
return gclidDateTimePair_ == null ? com.google.ads.googleads.v17.services.GclidDateTimePair.getDefaultInstance() : gclidDateTimePair_;
}
public static final int ORDER_ID_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object orderId_ = "";
/**
*
* The order ID of the conversion to be adjusted.
*
*
* string order_id = 10;
* @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;
}
}
/**
*
* The order ID of the conversion to be adjusted.
*
*
* string order_id = 10;
* @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 CONVERSION_ACTION_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object conversionAction_ = "";
/**
*
* Resource name of the conversion action associated with this conversion
* adjustment.
*
*
* optional string conversion_action = 7;
* @return Whether the conversionAction field is set.
*/
@java.lang.Override
public boolean hasConversionAction() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Resource name of the conversion action associated with this conversion
* adjustment.
*
*
* optional string conversion_action = 7;
* @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;
}
}
/**
*
* Resource name of the conversion action associated with this conversion
* adjustment.
*
*
* optional string conversion_action = 7;
* @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 ADJUSTMENT_DATE_TIME_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object adjustmentDateTime_ = "";
/**
*
* The date time at which the adjustment occurred. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string adjustment_date_time = 8;
* @return Whether the adjustmentDateTime field is set.
*/
@java.lang.Override
public boolean hasAdjustmentDateTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The date time at which the adjustment occurred. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string adjustment_date_time = 8;
* @return The adjustmentDateTime.
*/
@java.lang.Override
public java.lang.String getAdjustmentDateTime() {
java.lang.Object ref = adjustmentDateTime_;
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();
adjustmentDateTime_ = s;
return s;
}
}
/**
*
* The date time at which the adjustment occurred. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string adjustment_date_time = 8;
* @return The bytes for adjustmentDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAdjustmentDateTimeBytes() {
java.lang.Object ref = adjustmentDateTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adjustmentDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADJUSTMENT_TYPE_FIELD_NUMBER = 5;
private int adjustmentType_ = 0;
/**
*
* The adjustment type.
*
*
* .google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType adjustment_type = 5;
* @return The enum numeric value on the wire for adjustmentType.
*/
@java.lang.Override public int getAdjustmentTypeValue() {
return adjustmentType_;
}
/**
*
* The adjustment type.
*
*
* .google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType adjustment_type = 5;
* @return The adjustmentType.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType getAdjustmentType() {
com.google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType result = com.google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType.forNumber(adjustmentType_);
return result == null ? com.google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType.UNRECOGNIZED : result;
}
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 (adjustmentType_ != com.google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType.UNSPECIFIED.getNumber()) {
output.writeEnum(5, adjustmentType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, conversionAction_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, adjustmentDateTime_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(9, getGclidDateTimePair());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, orderId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (adjustmentType_ != com.google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, adjustmentType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, conversionAction_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, adjustmentDateTime_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getGclidDateTimePair());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, orderId_);
}
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.services.ConversionAdjustmentResult)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.services.ConversionAdjustmentResult other = (com.google.ads.googleads.v17.services.ConversionAdjustmentResult) obj;
if (hasGclidDateTimePair() != other.hasGclidDateTimePair()) return false;
if (hasGclidDateTimePair()) {
if (!getGclidDateTimePair()
.equals(other.getGclidDateTimePair())) return false;
}
if (!getOrderId()
.equals(other.getOrderId())) return false;
if (hasConversionAction() != other.hasConversionAction()) return false;
if (hasConversionAction()) {
if (!getConversionAction()
.equals(other.getConversionAction())) return false;
}
if (hasAdjustmentDateTime() != other.hasAdjustmentDateTime()) return false;
if (hasAdjustmentDateTime()) {
if (!getAdjustmentDateTime()
.equals(other.getAdjustmentDateTime())) return false;
}
if (adjustmentType_ != other.adjustmentType_) 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 (hasGclidDateTimePair()) {
hash = (37 * hash) + GCLID_DATE_TIME_PAIR_FIELD_NUMBER;
hash = (53 * hash) + getGclidDateTimePair().hashCode();
}
hash = (37 * hash) + ORDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getOrderId().hashCode();
if (hasConversionAction()) {
hash = (37 * hash) + CONVERSION_ACTION_FIELD_NUMBER;
hash = (53 * hash) + getConversionAction().hashCode();
}
if (hasAdjustmentDateTime()) {
hash = (37 * hash) + ADJUSTMENT_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getAdjustmentDateTime().hashCode();
}
hash = (37 * hash) + ADJUSTMENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + adjustmentType_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.services.ConversionAdjustmentResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.ConversionAdjustmentResult 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.services.ConversionAdjustmentResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.ConversionAdjustmentResult 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.services.ConversionAdjustmentResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.ConversionAdjustmentResult 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.services.ConversionAdjustmentResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.ConversionAdjustmentResult 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.services.ConversionAdjustmentResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.ConversionAdjustmentResult 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.services.ConversionAdjustmentResult 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.services.ConversionAdjustmentResult 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.services.ConversionAdjustmentResult 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;
}
/**
*
* Information identifying a successfully processed ConversionAdjustment.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.ConversionAdjustmentResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.ConversionAdjustmentResult)
com.google.ads.googleads.v17.services.ConversionAdjustmentResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.ConversionAdjustmentUploadServiceProto.internal_static_google_ads_googleads_v17_services_ConversionAdjustmentResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.ConversionAdjustmentUploadServiceProto.internal_static_google_ads_googleads_v17_services_ConversionAdjustmentResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.ConversionAdjustmentResult.class, com.google.ads.googleads.v17.services.ConversionAdjustmentResult.Builder.class);
}
// Construct using com.google.ads.googleads.v17.services.ConversionAdjustmentResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getGclidDateTimePairFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
gclidDateTimePair_ = null;
if (gclidDateTimePairBuilder_ != null) {
gclidDateTimePairBuilder_.dispose();
gclidDateTimePairBuilder_ = null;
}
orderId_ = "";
conversionAction_ = "";
adjustmentDateTime_ = "";
adjustmentType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.services.ConversionAdjustmentUploadServiceProto.internal_static_google_ads_googleads_v17_services_ConversionAdjustmentResult_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ConversionAdjustmentResult getDefaultInstanceForType() {
return com.google.ads.googleads.v17.services.ConversionAdjustmentResult.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ConversionAdjustmentResult build() {
com.google.ads.googleads.v17.services.ConversionAdjustmentResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ConversionAdjustmentResult buildPartial() {
com.google.ads.googleads.v17.services.ConversionAdjustmentResult result = new com.google.ads.googleads.v17.services.ConversionAdjustmentResult(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.services.ConversionAdjustmentResult result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.gclidDateTimePair_ = gclidDateTimePairBuilder_ == null
? gclidDateTimePair_
: gclidDateTimePairBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.orderId_ = orderId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.conversionAction_ = conversionAction_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.adjustmentDateTime_ = adjustmentDateTime_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.adjustmentType_ = adjustmentType_;
}
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.services.ConversionAdjustmentResult) {
return mergeFrom((com.google.ads.googleads.v17.services.ConversionAdjustmentResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.services.ConversionAdjustmentResult other) {
if (other == com.google.ads.googleads.v17.services.ConversionAdjustmentResult.getDefaultInstance()) return this;
if (other.hasGclidDateTimePair()) {
mergeGclidDateTimePair(other.getGclidDateTimePair());
}
if (!other.getOrderId().isEmpty()) {
orderId_ = other.orderId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasConversionAction()) {
conversionAction_ = other.conversionAction_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasAdjustmentDateTime()) {
adjustmentDateTime_ = other.adjustmentDateTime_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.adjustmentType_ != 0) {
setAdjustmentTypeValue(other.getAdjustmentTypeValue());
}
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 40: {
adjustmentType_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
case 58: {
conversionAction_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 58
case 66: {
adjustmentDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 66
case 74: {
input.readMessage(
getGclidDateTimePairFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 74
case 82: {
orderId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 82
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 com.google.ads.googleads.v17.services.GclidDateTimePair gclidDateTimePair_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.GclidDateTimePair, com.google.ads.googleads.v17.services.GclidDateTimePair.Builder, com.google.ads.googleads.v17.services.GclidDateTimePairOrBuilder> gclidDateTimePairBuilder_;
/**
*
* The gclid and conversion date time of the conversion.
*
*
* .google.ads.googleads.v17.services.GclidDateTimePair gclid_date_time_pair = 9;
* @return Whether the gclidDateTimePair field is set.
*/
public boolean hasGclidDateTimePair() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The gclid and conversion date time of the conversion.
*
*
* .google.ads.googleads.v17.services.GclidDateTimePair gclid_date_time_pair = 9;
* @return The gclidDateTimePair.
*/
public com.google.ads.googleads.v17.services.GclidDateTimePair getGclidDateTimePair() {
if (gclidDateTimePairBuilder_ == null) {
return gclidDateTimePair_ == null ? com.google.ads.googleads.v17.services.GclidDateTimePair.getDefaultInstance() : gclidDateTimePair_;
} else {
return gclidDateTimePairBuilder_.getMessage();
}
}
/**
*
* The gclid and conversion date time of the conversion.
*
*
* .google.ads.googleads.v17.services.GclidDateTimePair gclid_date_time_pair = 9;
*/
public Builder setGclidDateTimePair(com.google.ads.googleads.v17.services.GclidDateTimePair value) {
if (gclidDateTimePairBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gclidDateTimePair_ = value;
} else {
gclidDateTimePairBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The gclid and conversion date time of the conversion.
*
*
* .google.ads.googleads.v17.services.GclidDateTimePair gclid_date_time_pair = 9;
*/
public Builder setGclidDateTimePair(
com.google.ads.googleads.v17.services.GclidDateTimePair.Builder builderForValue) {
if (gclidDateTimePairBuilder_ == null) {
gclidDateTimePair_ = builderForValue.build();
} else {
gclidDateTimePairBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The gclid and conversion date time of the conversion.
*
*
* .google.ads.googleads.v17.services.GclidDateTimePair gclid_date_time_pair = 9;
*/
public Builder mergeGclidDateTimePair(com.google.ads.googleads.v17.services.GclidDateTimePair value) {
if (gclidDateTimePairBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
gclidDateTimePair_ != null &&
gclidDateTimePair_ != com.google.ads.googleads.v17.services.GclidDateTimePair.getDefaultInstance()) {
getGclidDateTimePairBuilder().mergeFrom(value);
} else {
gclidDateTimePair_ = value;
}
} else {
gclidDateTimePairBuilder_.mergeFrom(value);
}
if (gclidDateTimePair_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The gclid and conversion date time of the conversion.
*
*
* .google.ads.googleads.v17.services.GclidDateTimePair gclid_date_time_pair = 9;
*/
public Builder clearGclidDateTimePair() {
bitField0_ = (bitField0_ & ~0x00000001);
gclidDateTimePair_ = null;
if (gclidDateTimePairBuilder_ != null) {
gclidDateTimePairBuilder_.dispose();
gclidDateTimePairBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The gclid and conversion date time of the conversion.
*
*
* .google.ads.googleads.v17.services.GclidDateTimePair gclid_date_time_pair = 9;
*/
public com.google.ads.googleads.v17.services.GclidDateTimePair.Builder getGclidDateTimePairBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getGclidDateTimePairFieldBuilder().getBuilder();
}
/**
*
* The gclid and conversion date time of the conversion.
*
*
* .google.ads.googleads.v17.services.GclidDateTimePair gclid_date_time_pair = 9;
*/
public com.google.ads.googleads.v17.services.GclidDateTimePairOrBuilder getGclidDateTimePairOrBuilder() {
if (gclidDateTimePairBuilder_ != null) {
return gclidDateTimePairBuilder_.getMessageOrBuilder();
} else {
return gclidDateTimePair_ == null ?
com.google.ads.googleads.v17.services.GclidDateTimePair.getDefaultInstance() : gclidDateTimePair_;
}
}
/**
*
* The gclid and conversion date time of the conversion.
*
*
* .google.ads.googleads.v17.services.GclidDateTimePair gclid_date_time_pair = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.GclidDateTimePair, com.google.ads.googleads.v17.services.GclidDateTimePair.Builder, com.google.ads.googleads.v17.services.GclidDateTimePairOrBuilder>
getGclidDateTimePairFieldBuilder() {
if (gclidDateTimePairBuilder_ == null) {
gclidDateTimePairBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.GclidDateTimePair, com.google.ads.googleads.v17.services.GclidDateTimePair.Builder, com.google.ads.googleads.v17.services.GclidDateTimePairOrBuilder>(
getGclidDateTimePair(),
getParentForChildren(),
isClean());
gclidDateTimePair_ = null;
}
return gclidDateTimePairBuilder_;
}
private java.lang.Object orderId_ = "";
/**
*
* The order ID of the conversion to be adjusted.
*
*
* string order_id = 10;
* @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;
}
}
/**
*
* The order ID of the conversion to be adjusted.
*
*
* string order_id = 10;
* @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;
}
}
/**
*
* The order ID of the conversion to be adjusted.
*
*
* string order_id = 10;
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The order ID of the conversion to be adjusted.
*
*
* string order_id = 10;
* @return This builder for chaining.
*/
public Builder clearOrderId() {
orderId_ = getDefaultInstance().getOrderId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The order ID of the conversion to be adjusted.
*
*
* string order_id = 10;
* @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_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object conversionAction_ = "";
/**
*
* Resource name of the conversion action associated with this conversion
* adjustment.
*
*
* optional string conversion_action = 7;
* @return Whether the conversionAction field is set.
*/
public boolean hasConversionAction() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Resource name of the conversion action associated with this conversion
* adjustment.
*
*
* optional string conversion_action = 7;
* @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;
}
}
/**
*
* Resource name of the conversion action associated with this conversion
* adjustment.
*
*
* optional string conversion_action = 7;
* @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;
}
}
/**
*
* Resource name of the conversion action associated with this conversion
* adjustment.
*
*
* optional string conversion_action = 7;
* @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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Resource name of the conversion action associated with this conversion
* adjustment.
*
*
* optional string conversion_action = 7;
* @return This builder for chaining.
*/
public Builder clearConversionAction() {
conversionAction_ = getDefaultInstance().getConversionAction();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Resource name of the conversion action associated with this conversion
* adjustment.
*
*
* optional string conversion_action = 7;
* @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_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object adjustmentDateTime_ = "";
/**
*
* The date time at which the adjustment occurred. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string adjustment_date_time = 8;
* @return Whether the adjustmentDateTime field is set.
*/
public boolean hasAdjustmentDateTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The date time at which the adjustment occurred. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string adjustment_date_time = 8;
* @return The adjustmentDateTime.
*/
public java.lang.String getAdjustmentDateTime() {
java.lang.Object ref = adjustmentDateTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
adjustmentDateTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The date time at which the adjustment occurred. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string adjustment_date_time = 8;
* @return The bytes for adjustmentDateTime.
*/
public com.google.protobuf.ByteString
getAdjustmentDateTimeBytes() {
java.lang.Object ref = adjustmentDateTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adjustmentDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The date time at which the adjustment occurred. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string adjustment_date_time = 8;
* @param value The adjustmentDateTime to set.
* @return This builder for chaining.
*/
public Builder setAdjustmentDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
adjustmentDateTime_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The date time at which the adjustment occurred. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string adjustment_date_time = 8;
* @return This builder for chaining.
*/
public Builder clearAdjustmentDateTime() {
adjustmentDateTime_ = getDefaultInstance().getAdjustmentDateTime();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* The date time at which the adjustment occurred. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string adjustment_date_time = 8;
* @param value The bytes for adjustmentDateTime to set.
* @return This builder for chaining.
*/
public Builder setAdjustmentDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
adjustmentDateTime_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private int adjustmentType_ = 0;
/**
*
* The adjustment type.
*
*
* .google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType adjustment_type = 5;
* @return The enum numeric value on the wire for adjustmentType.
*/
@java.lang.Override public int getAdjustmentTypeValue() {
return adjustmentType_;
}
/**
*
* The adjustment type.
*
*
* .google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType adjustment_type = 5;
* @param value The enum numeric value on the wire for adjustmentType to set.
* @return This builder for chaining.
*/
public Builder setAdjustmentTypeValue(int value) {
adjustmentType_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The adjustment type.
*
*
* .google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType adjustment_type = 5;
* @return The adjustmentType.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType getAdjustmentType() {
com.google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType result = com.google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType.forNumber(adjustmentType_);
return result == null ? com.google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType.UNRECOGNIZED : result;
}
/**
*
* The adjustment type.
*
*
* .google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType adjustment_type = 5;
* @param value The adjustmentType to set.
* @return This builder for chaining.
*/
public Builder setAdjustmentType(com.google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
adjustmentType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The adjustment type.
*
*
* .google.ads.googleads.v17.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType adjustment_type = 5;
* @return This builder for chaining.
*/
public Builder clearAdjustmentType() {
bitField0_ = (bitField0_ & ~0x00000010);
adjustmentType_ = 0;
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.services.ConversionAdjustmentResult)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.ConversionAdjustmentResult)
private static final com.google.ads.googleads.v17.services.ConversionAdjustmentResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.ConversionAdjustmentResult();
}
public static com.google.ads.googleads.v17.services.ConversionAdjustmentResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConversionAdjustmentResult 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.services.ConversionAdjustmentResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy