com.google.ads.googleads.v10.resources.ConversionAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/resources/conversion_action.proto
package com.google.ads.googleads.v10.resources;
/**
*
* A conversion action.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.ConversionAction}
*/
public final class ConversionAction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.ConversionAction)
ConversionActionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConversionAction.newBuilder() to construct.
private ConversionAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConversionAction() {
resourceName_ = "";
name_ = "";
status_ = 0;
type_ = 0;
origin_ = 0;
category_ = 0;
ownerCustomer_ = "";
countingType_ = 0;
tagSnippets_ = java.util.Collections.emptyList();
appId_ = "";
mobileAppVendor_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConversionAction();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.ConversionAction.class, com.google.ads.googleads.v10.resources.ConversionAction.Builder.class);
}
public interface AttributionModelSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* The attribution model type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel attribution_model = 1;
* @return The enum numeric value on the wire for attributionModel.
*/
int getAttributionModelValue();
/**
*
* The attribution model type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel attribution_model = 1;
* @return The attributionModel.
*/
com.google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel getAttributionModel();
/**
*
* Output only. The status of the data-driven attribution model for the conversion
* action.
*
*
* .google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for dataDrivenModelStatus.
*/
int getDataDrivenModelStatusValue();
/**
*
* Output only. The status of the data-driven attribution model for the conversion
* action.
*
*
* .google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The dataDrivenModelStatus.
*/
com.google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus getDataDrivenModelStatus();
}
/**
*
* Settings related to this conversion action's attribution model.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings}
*/
public static final class AttributionModelSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings)
AttributionModelSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttributionModelSettings.newBuilder() to construct.
private AttributionModelSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttributionModelSettings() {
attributionModel_ = 0;
dataDrivenModelStatus_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AttributionModelSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_AttributionModelSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_AttributionModelSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.class, com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.Builder.class);
}
public static final int ATTRIBUTION_MODEL_FIELD_NUMBER = 1;
private int attributionModel_;
/**
*
* The attribution model type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel attribution_model = 1;
* @return The enum numeric value on the wire for attributionModel.
*/
@java.lang.Override public int getAttributionModelValue() {
return attributionModel_;
}
/**
*
* The attribution model type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel attribution_model = 1;
* @return The attributionModel.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel getAttributionModel() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel result = com.google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel.valueOf(attributionModel_);
return result == null ? com.google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel.UNRECOGNIZED : result;
}
public static final int DATA_DRIVEN_MODEL_STATUS_FIELD_NUMBER = 2;
private int dataDrivenModelStatus_;
/**
*
* Output only. The status of the data-driven attribution model for the conversion
* action.
*
*
* .google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for dataDrivenModelStatus.
*/
@java.lang.Override public int getDataDrivenModelStatusValue() {
return dataDrivenModelStatus_;
}
/**
*
* Output only. The status of the data-driven attribution model for the conversion
* action.
*
*
* .google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The dataDrivenModelStatus.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus getDataDrivenModelStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus result = com.google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus.valueOf(dataDrivenModelStatus_);
return result == null ? com.google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus.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 (attributionModel_ != com.google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel.UNSPECIFIED.getNumber()) {
output.writeEnum(1, attributionModel_);
}
if (dataDrivenModelStatus_ != com.google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(2, dataDrivenModelStatus_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (attributionModel_ != com.google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, attributionModel_);
}
if (dataDrivenModelStatus_ != com.google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, dataDrivenModelStatus_);
}
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.v10.resources.ConversionAction.AttributionModelSettings)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings other = (com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings) obj;
if (attributionModel_ != other.attributionModel_) return false;
if (dataDrivenModelStatus_ != other.dataDrivenModelStatus_) 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();
hash = (37 * hash) + ATTRIBUTION_MODEL_FIELD_NUMBER;
hash = (53 * hash) + attributionModel_;
hash = (37 * hash) + DATA_DRIVEN_MODEL_STATUS_FIELD_NUMBER;
hash = (53 * hash) + dataDrivenModelStatus_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings 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.v10.resources.ConversionAction.AttributionModelSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings 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.v10.resources.ConversionAction.AttributionModelSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings 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.v10.resources.ConversionAction.AttributionModelSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings 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.v10.resources.ConversionAction.AttributionModelSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings 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.v10.resources.ConversionAction.AttributionModelSettings 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;
}
/**
*
* Settings related to this conversion action's attribution model.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings)
com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_AttributionModelSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_AttributionModelSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.class, com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
attributionModel_ = 0;
dataDrivenModelStatus_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_AttributionModelSettings_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings build() {
com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings buildPartial() {
com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings result = new com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings(this);
result.attributionModel_ = attributionModel_;
result.dataDrivenModelStatus_ = dataDrivenModelStatus_;
onBuilt();
return result;
}
@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.v10.resources.ConversionAction.AttributionModelSettings) {
return mergeFrom((com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings other) {
if (other == com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.getDefaultInstance()) return this;
if (other.attributionModel_ != 0) {
setAttributionModelValue(other.getAttributionModelValue());
}
if (other.dataDrivenModelStatus_ != 0) {
setDataDrivenModelStatusValue(other.getDataDrivenModelStatusValue());
}
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 8: {
attributionModel_ = input.readEnum();
break;
} // case 8
case 16: {
dataDrivenModelStatus_ = input.readEnum();
break;
} // case 16
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 attributionModel_ = 0;
/**
*
* The attribution model type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel attribution_model = 1;
* @return The enum numeric value on the wire for attributionModel.
*/
@java.lang.Override public int getAttributionModelValue() {
return attributionModel_;
}
/**
*
* The attribution model type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel attribution_model = 1;
* @param value The enum numeric value on the wire for attributionModel to set.
* @return This builder for chaining.
*/
public Builder setAttributionModelValue(int value) {
attributionModel_ = value;
onChanged();
return this;
}
/**
*
* The attribution model type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel attribution_model = 1;
* @return The attributionModel.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel getAttributionModel() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel result = com.google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel.valueOf(attributionModel_);
return result == null ? com.google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel.UNRECOGNIZED : result;
}
/**
*
* The attribution model type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel attribution_model = 1;
* @param value The attributionModel to set.
* @return This builder for chaining.
*/
public Builder setAttributionModel(com.google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel value) {
if (value == null) {
throw new NullPointerException();
}
attributionModel_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The attribution model type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.AttributionModelEnum.AttributionModel attribution_model = 1;
* @return This builder for chaining.
*/
public Builder clearAttributionModel() {
attributionModel_ = 0;
onChanged();
return this;
}
private int dataDrivenModelStatus_ = 0;
/**
*
* Output only. The status of the data-driven attribution model for the conversion
* action.
*
*
* .google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for dataDrivenModelStatus.
*/
@java.lang.Override public int getDataDrivenModelStatusValue() {
return dataDrivenModelStatus_;
}
/**
*
* Output only. The status of the data-driven attribution model for the conversion
* action.
*
*
* .google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for dataDrivenModelStatus to set.
* @return This builder for chaining.
*/
public Builder setDataDrivenModelStatusValue(int value) {
dataDrivenModelStatus_ = value;
onChanged();
return this;
}
/**
*
* Output only. The status of the data-driven attribution model for the conversion
* action.
*
*
* .google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The dataDrivenModelStatus.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus getDataDrivenModelStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus result = com.google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus.valueOf(dataDrivenModelStatus_);
return result == null ? com.google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus.UNRECOGNIZED : result;
}
/**
*
* Output only. The status of the data-driven attribution model for the conversion
* action.
*
*
* .google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The dataDrivenModelStatus to set.
* @return This builder for chaining.
*/
public Builder setDataDrivenModelStatus(com.google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus value) {
if (value == null) {
throw new NullPointerException();
}
dataDrivenModelStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The status of the data-driven attribution model for the conversion
* action.
*
*
* .google.ads.googleads.v10.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearDataDrivenModelStatus() {
dataDrivenModelStatus_ = 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.v10.resources.ConversionAction.AttributionModelSettings)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings)
private static final com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings();
}
public static com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttributionModelSettings 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.v10.resources.ConversionAction.AttributionModelSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.ConversionAction.ValueSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* The value to use when conversion events for this conversion action are
* sent with an invalid, disallowed or missing value, or when
* this conversion action is configured to always use the default value.
*
*
* optional double default_value = 4;
* @return Whether the defaultValue field is set.
*/
boolean hasDefaultValue();
/**
*
* The value to use when conversion events for this conversion action are
* sent with an invalid, disallowed or missing value, or when
* this conversion action is configured to always use the default value.
*
*
* optional double default_value = 4;
* @return The defaultValue.
*/
double getDefaultValue();
/**
*
* The currency code to use when conversion events for this conversion
* action are sent with an invalid or missing currency code, or when this
* conversion action is configured to always use the default value.
*
*
* optional string default_currency_code = 5;
* @return Whether the defaultCurrencyCode field is set.
*/
boolean hasDefaultCurrencyCode();
/**
*
* The currency code to use when conversion events for this conversion
* action are sent with an invalid or missing currency code, or when this
* conversion action is configured to always use the default value.
*
*
* optional string default_currency_code = 5;
* @return The defaultCurrencyCode.
*/
java.lang.String getDefaultCurrencyCode();
/**
*
* The currency code to use when conversion events for this conversion
* action are sent with an invalid or missing currency code, or when this
* conversion action is configured to always use the default value.
*
*
* optional string default_currency_code = 5;
* @return The bytes for defaultCurrencyCode.
*/
com.google.protobuf.ByteString
getDefaultCurrencyCodeBytes();
/**
*
* Controls whether the default value and default currency code are used in
* place of the value and currency code specified in conversion events for
* this conversion action.
*
*
* optional bool always_use_default_value = 6;
* @return Whether the alwaysUseDefaultValue field is set.
*/
boolean hasAlwaysUseDefaultValue();
/**
*
* Controls whether the default value and default currency code are used in
* place of the value and currency code specified in conversion events for
* this conversion action.
*
*
* optional bool always_use_default_value = 6;
* @return The alwaysUseDefaultValue.
*/
boolean getAlwaysUseDefaultValue();
}
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.ConversionAction.ValueSettings}
*/
public static final class ValueSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.ConversionAction.ValueSettings)
ValueSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValueSettings.newBuilder() to construct.
private ValueSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValueSettings() {
defaultCurrencyCode_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValueSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_ValueSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_ValueSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.class, com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.Builder.class);
}
private int bitField0_;
public static final int DEFAULT_VALUE_FIELD_NUMBER = 4;
private double defaultValue_;
/**
*
* The value to use when conversion events for this conversion action are
* sent with an invalid, disallowed or missing value, or when
* this conversion action is configured to always use the default value.
*
*
* optional double default_value = 4;
* @return Whether the defaultValue field is set.
*/
@java.lang.Override
public boolean hasDefaultValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The value to use when conversion events for this conversion action are
* sent with an invalid, disallowed or missing value, or when
* this conversion action is configured to always use the default value.
*
*
* optional double default_value = 4;
* @return The defaultValue.
*/
@java.lang.Override
public double getDefaultValue() {
return defaultValue_;
}
public static final int DEFAULT_CURRENCY_CODE_FIELD_NUMBER = 5;
private volatile java.lang.Object defaultCurrencyCode_;
/**
*
* The currency code to use when conversion events for this conversion
* action are sent with an invalid or missing currency code, or when this
* conversion action is configured to always use the default value.
*
*
* optional string default_currency_code = 5;
* @return Whether the defaultCurrencyCode field is set.
*/
@java.lang.Override
public boolean hasDefaultCurrencyCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The currency code to use when conversion events for this conversion
* action are sent with an invalid or missing currency code, or when this
* conversion action is configured to always use the default value.
*
*
* optional string default_currency_code = 5;
* @return The defaultCurrencyCode.
*/
@java.lang.Override
public java.lang.String getDefaultCurrencyCode() {
java.lang.Object ref = defaultCurrencyCode_;
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();
defaultCurrencyCode_ = s;
return s;
}
}
/**
*
* The currency code to use when conversion events for this conversion
* action are sent with an invalid or missing currency code, or when this
* conversion action is configured to always use the default value.
*
*
* optional string default_currency_code = 5;
* @return The bytes for defaultCurrencyCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultCurrencyCodeBytes() {
java.lang.Object ref = defaultCurrencyCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultCurrencyCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALWAYS_USE_DEFAULT_VALUE_FIELD_NUMBER = 6;
private boolean alwaysUseDefaultValue_;
/**
*
* Controls whether the default value and default currency code are used in
* place of the value and currency code specified in conversion events for
* this conversion action.
*
*
* optional bool always_use_default_value = 6;
* @return Whether the alwaysUseDefaultValue field is set.
*/
@java.lang.Override
public boolean hasAlwaysUseDefaultValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Controls whether the default value and default currency code are used in
* place of the value and currency code specified in conversion events for
* this conversion action.
*
*
* optional bool always_use_default_value = 6;
* @return The alwaysUseDefaultValue.
*/
@java.lang.Override
public boolean getAlwaysUseDefaultValue() {
return alwaysUseDefaultValue_;
}
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)) {
output.writeDouble(4, defaultValue_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, defaultCurrencyCode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(6, alwaysUseDefaultValue_);
}
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.CodedOutputStream
.computeDoubleSize(4, defaultValue_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, defaultCurrencyCode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, alwaysUseDefaultValue_);
}
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.v10.resources.ConversionAction.ValueSettings)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings other = (com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings) obj;
if (hasDefaultValue() != other.hasDefaultValue()) return false;
if (hasDefaultValue()) {
if (java.lang.Double.doubleToLongBits(getDefaultValue())
!= java.lang.Double.doubleToLongBits(
other.getDefaultValue())) return false;
}
if (hasDefaultCurrencyCode() != other.hasDefaultCurrencyCode()) return false;
if (hasDefaultCurrencyCode()) {
if (!getDefaultCurrencyCode()
.equals(other.getDefaultCurrencyCode())) return false;
}
if (hasAlwaysUseDefaultValue() != other.hasAlwaysUseDefaultValue()) return false;
if (hasAlwaysUseDefaultValue()) {
if (getAlwaysUseDefaultValue()
!= other.getAlwaysUseDefaultValue()) 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 (hasDefaultValue()) {
hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDefaultValue()));
}
if (hasDefaultCurrencyCode()) {
hash = (37 * hash) + DEFAULT_CURRENCY_CODE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultCurrencyCode().hashCode();
}
if (hasAlwaysUseDefaultValue()) {
hash = (37 * hash) + ALWAYS_USE_DEFAULT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAlwaysUseDefaultValue());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings 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.v10.resources.ConversionAction.ValueSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings 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.v10.resources.ConversionAction.ValueSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings 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.v10.resources.ConversionAction.ValueSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings 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.v10.resources.ConversionAction.ValueSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings 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.v10.resources.ConversionAction.ValueSettings 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;
}
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.ConversionAction.ValueSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.ConversionAction.ValueSettings)
com.google.ads.googleads.v10.resources.ConversionAction.ValueSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_ValueSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_ValueSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.class, com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
defaultValue_ = 0D;
bitField0_ = (bitField0_ & ~0x00000001);
defaultCurrencyCode_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
alwaysUseDefaultValue_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_ValueSettings_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings build() {
com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings buildPartial() {
com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings result = new com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.defaultValue_ = defaultValue_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.defaultCurrencyCode_ = defaultCurrencyCode_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.alwaysUseDefaultValue_ = alwaysUseDefaultValue_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@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.v10.resources.ConversionAction.ValueSettings) {
return mergeFrom((com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings other) {
if (other == com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.getDefaultInstance()) return this;
if (other.hasDefaultValue()) {
setDefaultValue(other.getDefaultValue());
}
if (other.hasDefaultCurrencyCode()) {
bitField0_ |= 0x00000002;
defaultCurrencyCode_ = other.defaultCurrencyCode_;
onChanged();
}
if (other.hasAlwaysUseDefaultValue()) {
setAlwaysUseDefaultValue(other.getAlwaysUseDefaultValue());
}
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 33: {
defaultValue_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 33
case 42: {
defaultCurrencyCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 42
case 48: {
alwaysUseDefaultValue_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 48
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 defaultValue_ ;
/**
*
* The value to use when conversion events for this conversion action are
* sent with an invalid, disallowed or missing value, or when
* this conversion action is configured to always use the default value.
*
*
* optional double default_value = 4;
* @return Whether the defaultValue field is set.
*/
@java.lang.Override
public boolean hasDefaultValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The value to use when conversion events for this conversion action are
* sent with an invalid, disallowed or missing value, or when
* this conversion action is configured to always use the default value.
*
*
* optional double default_value = 4;
* @return The defaultValue.
*/
@java.lang.Override
public double getDefaultValue() {
return defaultValue_;
}
/**
*
* The value to use when conversion events for this conversion action are
* sent with an invalid, disallowed or missing value, or when
* this conversion action is configured to always use the default value.
*
*
* optional double default_value = 4;
* @param value The defaultValue to set.
* @return This builder for chaining.
*/
public Builder setDefaultValue(double value) {
bitField0_ |= 0x00000001;
defaultValue_ = value;
onChanged();
return this;
}
/**
*
* The value to use when conversion events for this conversion action are
* sent with an invalid, disallowed or missing value, or when
* this conversion action is configured to always use the default value.
*
*
* optional double default_value = 4;
* @return This builder for chaining.
*/
public Builder clearDefaultValue() {
bitField0_ = (bitField0_ & ~0x00000001);
defaultValue_ = 0D;
onChanged();
return this;
}
private java.lang.Object defaultCurrencyCode_ = "";
/**
*
* The currency code to use when conversion events for this conversion
* action are sent with an invalid or missing currency code, or when this
* conversion action is configured to always use the default value.
*
*
* optional string default_currency_code = 5;
* @return Whether the defaultCurrencyCode field is set.
*/
public boolean hasDefaultCurrencyCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The currency code to use when conversion events for this conversion
* action are sent with an invalid or missing currency code, or when this
* conversion action is configured to always use the default value.
*
*
* optional string default_currency_code = 5;
* @return The defaultCurrencyCode.
*/
public java.lang.String getDefaultCurrencyCode() {
java.lang.Object ref = defaultCurrencyCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultCurrencyCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The currency code to use when conversion events for this conversion
* action are sent with an invalid or missing currency code, or when this
* conversion action is configured to always use the default value.
*
*
* optional string default_currency_code = 5;
* @return The bytes for defaultCurrencyCode.
*/
public com.google.protobuf.ByteString
getDefaultCurrencyCodeBytes() {
java.lang.Object ref = defaultCurrencyCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultCurrencyCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The currency code to use when conversion events for this conversion
* action are sent with an invalid or missing currency code, or when this
* conversion action is configured to always use the default value.
*
*
* optional string default_currency_code = 5;
* @param value The defaultCurrencyCode to set.
* @return This builder for chaining.
*/
public Builder setDefaultCurrencyCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
defaultCurrencyCode_ = value;
onChanged();
return this;
}
/**
*
* The currency code to use when conversion events for this conversion
* action are sent with an invalid or missing currency code, or when this
* conversion action is configured to always use the default value.
*
*
* optional string default_currency_code = 5;
* @return This builder for chaining.
*/
public Builder clearDefaultCurrencyCode() {
bitField0_ = (bitField0_ & ~0x00000002);
defaultCurrencyCode_ = getDefaultInstance().getDefaultCurrencyCode();
onChanged();
return this;
}
/**
*
* The currency code to use when conversion events for this conversion
* action are sent with an invalid or missing currency code, or when this
* conversion action is configured to always use the default value.
*
*
* optional string default_currency_code = 5;
* @param value The bytes for defaultCurrencyCode to set.
* @return This builder for chaining.
*/
public Builder setDefaultCurrencyCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
defaultCurrencyCode_ = value;
onChanged();
return this;
}
private boolean alwaysUseDefaultValue_ ;
/**
*
* Controls whether the default value and default currency code are used in
* place of the value and currency code specified in conversion events for
* this conversion action.
*
*
* optional bool always_use_default_value = 6;
* @return Whether the alwaysUseDefaultValue field is set.
*/
@java.lang.Override
public boolean hasAlwaysUseDefaultValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Controls whether the default value and default currency code are used in
* place of the value and currency code specified in conversion events for
* this conversion action.
*
*
* optional bool always_use_default_value = 6;
* @return The alwaysUseDefaultValue.
*/
@java.lang.Override
public boolean getAlwaysUseDefaultValue() {
return alwaysUseDefaultValue_;
}
/**
*
* Controls whether the default value and default currency code are used in
* place of the value and currency code specified in conversion events for
* this conversion action.
*
*
* optional bool always_use_default_value = 6;
* @param value The alwaysUseDefaultValue to set.
* @return This builder for chaining.
*/
public Builder setAlwaysUseDefaultValue(boolean value) {
bitField0_ |= 0x00000004;
alwaysUseDefaultValue_ = value;
onChanged();
return this;
}
/**
*
* Controls whether the default value and default currency code are used in
* place of the value and currency code specified in conversion events for
* this conversion action.
*
*
* optional bool always_use_default_value = 6;
* @return This builder for chaining.
*/
public Builder clearAlwaysUseDefaultValue() {
bitField0_ = (bitField0_ & ~0x00000004);
alwaysUseDefaultValue_ = false;
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.v10.resources.ConversionAction.ValueSettings)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.ConversionAction.ValueSettings)
private static final com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings();
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValueSettings 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.v10.resources.ConversionAction.ValueSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ThirdPartyAppAnalyticsSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The event name of a third-party app analytics conversion.
*
*
* optional string event_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the eventName field is set.
*/
boolean hasEventName();
/**
*
* Output only. The event name of a third-party app analytics conversion.
*
*
* optional string event_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The eventName.
*/
java.lang.String getEventName();
/**
*
* Output only. The event name of a third-party app analytics conversion.
*
*
* optional string event_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for eventName.
*/
com.google.protobuf.ByteString
getEventNameBytes();
/**
*
* Output only. Name of the third-party app analytics provider.
*
*
* string provider_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The providerName.
*/
java.lang.String getProviderName();
/**
*
* Output only. Name of the third-party app analytics provider.
*
*
* string provider_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for providerName.
*/
com.google.protobuf.ByteString
getProviderNameBytes();
}
/**
*
* Settings related to a third party app analytics conversion action.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings}
*/
public static final class ThirdPartyAppAnalyticsSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings)
ThirdPartyAppAnalyticsSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ThirdPartyAppAnalyticsSettings.newBuilder() to construct.
private ThirdPartyAppAnalyticsSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ThirdPartyAppAnalyticsSettings() {
eventName_ = "";
providerName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ThirdPartyAppAnalyticsSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_ThirdPartyAppAnalyticsSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_ThirdPartyAppAnalyticsSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.class, com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.Builder.class);
}
private int bitField0_;
public static final int EVENT_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object eventName_;
/**
*
* Output only. The event name of a third-party app analytics conversion.
*
*
* optional string event_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the eventName field is set.
*/
@java.lang.Override
public boolean hasEventName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The event name of a third-party app analytics conversion.
*
*
* optional string event_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The eventName.
*/
@java.lang.Override
public java.lang.String getEventName() {
java.lang.Object ref = eventName_;
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();
eventName_ = s;
return s;
}
}
/**
*
* Output only. The event name of a third-party app analytics conversion.
*
*
* optional string event_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for eventName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEventNameBytes() {
java.lang.Object ref = eventName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROVIDER_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object providerName_;
/**
*
* Output only. Name of the third-party app analytics provider.
*
*
* string provider_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The providerName.
*/
@java.lang.Override
public java.lang.String getProviderName() {
java.lang.Object ref = providerName_;
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();
providerName_ = s;
return s;
}
}
/**
*
* Output only. Name of the third-party app analytics provider.
*
*
* string provider_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for providerName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProviderNameBytes() {
java.lang.Object ref = providerName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
providerName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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, 2, eventName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(providerName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, providerName_);
}
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(2, eventName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(providerName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, providerName_);
}
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.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings other = (com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings) obj;
if (hasEventName() != other.hasEventName()) return false;
if (hasEventName()) {
if (!getEventName()
.equals(other.getEventName())) return false;
}
if (!getProviderName()
.equals(other.getProviderName())) 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 (hasEventName()) {
hash = (37 * hash) + EVENT_NAME_FIELD_NUMBER;
hash = (53 * hash) + getEventName().hashCode();
}
hash = (37 * hash) + PROVIDER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getProviderName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings 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.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings 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.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings 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.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings 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.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings 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.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings 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;
}
/**
*
* Settings related to a third party app analytics conversion action.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings)
com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_ThirdPartyAppAnalyticsSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_ThirdPartyAppAnalyticsSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.class, com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
eventName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
providerName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_ThirdPartyAppAnalyticsSettings_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings build() {
com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings buildPartial() {
com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings result = new com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.eventName_ = eventName_;
result.providerName_ = providerName_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@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.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings) {
return mergeFrom((com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings other) {
if (other == com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.getDefaultInstance()) return this;
if (other.hasEventName()) {
bitField0_ |= 0x00000001;
eventName_ = other.eventName_;
onChanged();
}
if (!other.getProviderName().isEmpty()) {
providerName_ = other.providerName_;
onChanged();
}
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 18: {
eventName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 18
case 26: {
providerName_ = input.readStringRequireUtf8();
break;
} // case 26
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 eventName_ = "";
/**
*
* Output only. The event name of a third-party app analytics conversion.
*
*
* optional string event_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the eventName field is set.
*/
public boolean hasEventName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The event name of a third-party app analytics conversion.
*
*
* optional string event_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The eventName.
*/
public java.lang.String getEventName() {
java.lang.Object ref = eventName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
eventName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The event name of a third-party app analytics conversion.
*
*
* optional string event_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for eventName.
*/
public com.google.protobuf.ByteString
getEventNameBytes() {
java.lang.Object ref = eventName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The event name of a third-party app analytics conversion.
*
*
* optional string event_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The eventName to set.
* @return This builder for chaining.
*/
public Builder setEventName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
eventName_ = value;
onChanged();
return this;
}
/**
*
* Output only. The event name of a third-party app analytics conversion.
*
*
* optional string event_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEventName() {
bitField0_ = (bitField0_ & ~0x00000001);
eventName_ = getDefaultInstance().getEventName();
onChanged();
return this;
}
/**
*
* Output only. The event name of a third-party app analytics conversion.
*
*
* optional string event_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for eventName to set.
* @return This builder for chaining.
*/
public Builder setEventNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
eventName_ = value;
onChanged();
return this;
}
private java.lang.Object providerName_ = "";
/**
*
* Output only. Name of the third-party app analytics provider.
*
*
* string provider_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The providerName.
*/
public java.lang.String getProviderName() {
java.lang.Object ref = providerName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
providerName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. Name of the third-party app analytics provider.
*
*
* string provider_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for providerName.
*/
public com.google.protobuf.ByteString
getProviderNameBytes() {
java.lang.Object ref = providerName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
providerName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. Name of the third-party app analytics provider.
*
*
* string provider_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The providerName to set.
* @return This builder for chaining.
*/
public Builder setProviderName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
providerName_ = value;
onChanged();
return this;
}
/**
*
* Output only. Name of the third-party app analytics provider.
*
*
* string provider_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearProviderName() {
providerName_ = getDefaultInstance().getProviderName();
onChanged();
return this;
}
/**
*
* Output only. Name of the third-party app analytics provider.
*
*
* string provider_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for providerName to set.
* @return This builder for chaining.
*/
public Builder setProviderNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
providerName_ = value;
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.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings)
private static final com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings();
}
public static com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ThirdPartyAppAnalyticsSettings 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.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FirebaseSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The event name of a Firebase conversion.
*
*
* optional string event_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the eventName field is set.
*/
boolean hasEventName();
/**
*
* Output only. The event name of a Firebase conversion.
*
*
* optional string event_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The eventName.
*/
java.lang.String getEventName();
/**
*
* Output only. The event name of a Firebase conversion.
*
*
* optional string event_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for eventName.
*/
com.google.protobuf.ByteString
getEventNameBytes();
/**
*
* Output only. The Firebase project ID of the conversion.
*
*
* optional string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the projectId field is set.
*/
boolean hasProjectId();
/**
*
* Output only. The Firebase project ID of the conversion.
*
*
* optional string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The projectId.
*/
java.lang.String getProjectId();
/**
*
* Output only. The Firebase project ID of the conversion.
*
*
* optional string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for projectId.
*/
com.google.protobuf.ByteString
getProjectIdBytes();
}
/**
*
* Settings related to a Firebase conversion action.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings}
*/
public static final class FirebaseSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings)
FirebaseSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use FirebaseSettings.newBuilder() to construct.
private FirebaseSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FirebaseSettings() {
eventName_ = "";
projectId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FirebaseSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_FirebaseSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_FirebaseSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.class, com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.Builder.class);
}
private int bitField0_;
public static final int EVENT_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object eventName_;
/**
*
* Output only. The event name of a Firebase conversion.
*
*
* optional string event_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the eventName field is set.
*/
@java.lang.Override
public boolean hasEventName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The event name of a Firebase conversion.
*
*
* optional string event_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The eventName.
*/
@java.lang.Override
public java.lang.String getEventName() {
java.lang.Object ref = eventName_;
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();
eventName_ = s;
return s;
}
}
/**
*
* Output only. The event name of a Firebase conversion.
*
*
* optional string event_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for eventName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEventNameBytes() {
java.lang.Object ref = eventName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROJECT_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object projectId_;
/**
*
* Output only. The Firebase project ID of the conversion.
*
*
* optional string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the projectId field is set.
*/
@java.lang.Override
public boolean hasProjectId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The Firebase project ID of the conversion.
*
*
* optional string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The projectId.
*/
@java.lang.Override
public java.lang.String getProjectId() {
java.lang.Object ref = projectId_;
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();
projectId_ = s;
return s;
}
}
/**
*
* Output only. The Firebase project ID of the conversion.
*
*
* optional string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for projectId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProjectIdBytes() {
java.lang.Object ref = projectId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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, 3, eventName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, projectId_);
}
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(3, eventName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, projectId_);
}
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.v10.resources.ConversionAction.FirebaseSettings)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings other = (com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings) obj;
if (hasEventName() != other.hasEventName()) return false;
if (hasEventName()) {
if (!getEventName()
.equals(other.getEventName())) return false;
}
if (hasProjectId() != other.hasProjectId()) return false;
if (hasProjectId()) {
if (!getProjectId()
.equals(other.getProjectId())) 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 (hasEventName()) {
hash = (37 * hash) + EVENT_NAME_FIELD_NUMBER;
hash = (53 * hash) + getEventName().hashCode();
}
if (hasProjectId()) {
hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + getProjectId().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings 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.v10.resources.ConversionAction.FirebaseSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings 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.v10.resources.ConversionAction.FirebaseSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings 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.v10.resources.ConversionAction.FirebaseSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings 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.v10.resources.ConversionAction.FirebaseSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings 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.v10.resources.ConversionAction.FirebaseSettings 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;
}
/**
*
* Settings related to a Firebase conversion action.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings)
com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_FirebaseSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_FirebaseSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.class, com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
eventName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
projectId_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_FirebaseSettings_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings build() {
com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings buildPartial() {
com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings result = new com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.eventName_ = eventName_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.projectId_ = projectId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@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.v10.resources.ConversionAction.FirebaseSettings) {
return mergeFrom((com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings other) {
if (other == com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.getDefaultInstance()) return this;
if (other.hasEventName()) {
bitField0_ |= 0x00000001;
eventName_ = other.eventName_;
onChanged();
}
if (other.hasProjectId()) {
bitField0_ |= 0x00000002;
projectId_ = other.projectId_;
onChanged();
}
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: {
eventName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 26
case 34: {
projectId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 34
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 eventName_ = "";
/**
*
* Output only. The event name of a Firebase conversion.
*
*
* optional string event_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the eventName field is set.
*/
public boolean hasEventName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The event name of a Firebase conversion.
*
*
* optional string event_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The eventName.
*/
public java.lang.String getEventName() {
java.lang.Object ref = eventName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
eventName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The event name of a Firebase conversion.
*
*
* optional string event_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for eventName.
*/
public com.google.protobuf.ByteString
getEventNameBytes() {
java.lang.Object ref = eventName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The event name of a Firebase conversion.
*
*
* optional string event_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The eventName to set.
* @return This builder for chaining.
*/
public Builder setEventName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
eventName_ = value;
onChanged();
return this;
}
/**
*
* Output only. The event name of a Firebase conversion.
*
*
* optional string event_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEventName() {
bitField0_ = (bitField0_ & ~0x00000001);
eventName_ = getDefaultInstance().getEventName();
onChanged();
return this;
}
/**
*
* Output only. The event name of a Firebase conversion.
*
*
* optional string event_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for eventName to set.
* @return This builder for chaining.
*/
public Builder setEventNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
eventName_ = value;
onChanged();
return this;
}
private java.lang.Object projectId_ = "";
/**
*
* Output only. The Firebase project ID of the conversion.
*
*
* optional string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the projectId field is set.
*/
public boolean hasProjectId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The Firebase project ID of the conversion.
*
*
* optional string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The projectId.
*/
public java.lang.String getProjectId() {
java.lang.Object ref = projectId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
projectId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The Firebase project ID of the conversion.
*
*
* optional string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for projectId.
*/
public com.google.protobuf.ByteString
getProjectIdBytes() {
java.lang.Object ref = projectId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The Firebase project ID of the conversion.
*
*
* optional string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The projectId to set.
* @return This builder for chaining.
*/
public Builder setProjectId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
projectId_ = value;
onChanged();
return this;
}
/**
*
* Output only. The Firebase project ID of the conversion.
*
*
* optional string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearProjectId() {
bitField0_ = (bitField0_ & ~0x00000002);
projectId_ = getDefaultInstance().getProjectId();
onChanged();
return this;
}
/**
*
* Output only. The Firebase project ID of the conversion.
*
*
* optional string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for projectId to set.
* @return This builder for chaining.
*/
public Builder setProjectIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
projectId_ = value;
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.v10.resources.ConversionAction.FirebaseSettings)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings)
private static final com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings();
}
public static com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FirebaseSettings 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.v10.resources.ConversionAction.FirebaseSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object resourceName_;
/**
*
* Immutable. The resource name of the conversion action.
* Conversion action resource names have the form:
* `customers/{customer_id}/conversionActions/{conversion_action_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
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();
resourceName_ = s;
return s;
}
}
/**
*
* Immutable. The resource name of the conversion action.
* Conversion action resource names have the form:
* `customers/{customer_id}/conversionActions/{conversion_action_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 21;
private long id_;
/**
*
* Output only. The ID of the conversion action.
*
*
* optional int64 id = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The ID of the conversion action.
*
*
* optional int64 id = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int NAME_FIELD_NUMBER = 22;
private volatile java.lang.Object name_;
/**
*
* The name of the conversion action.
* This field is required and should not be empty when creating new
* conversion actions.
*
*
* optional string name = 22;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The name of the conversion action.
* This field is required and should not be empty when creating new
* conversion actions.
*
*
* optional string name = 22;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* The name of the conversion action.
* This field is required and should not be empty when creating new
* conversion actions.
*
*
* optional string name = 22;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 4;
private int status_;
/**
*
* The status of this conversion action for conversion event accrual.
*
*
* .google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The status of this conversion action for conversion event accrual.
*
*
* .google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4;
* @return The status.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus getStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus result = com.google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus.valueOf(status_);
return result == null ? com.google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus.UNRECOGNIZED : result;
}
public static final int TYPE_FIELD_NUMBER = 5;
private int type_;
/**
*
* Immutable. The type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Immutable. The type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return The type.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType getType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType result = com.google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType.valueOf(type_);
return result == null ? com.google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType.UNRECOGNIZED : result;
}
public static final int ORIGIN_FIELD_NUMBER = 30;
private int origin_;
/**
*
* Output only. The conversion origin of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin origin = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for origin.
*/
@java.lang.Override public int getOriginValue() {
return origin_;
}
/**
*
* Output only. The conversion origin of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin origin = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The origin.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin getOrigin() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin result = com.google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin.valueOf(origin_);
return result == null ? com.google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin.UNRECOGNIZED : result;
}
public static final int PRIMARY_FOR_GOAL_FIELD_NUMBER = 31;
private boolean primaryForGoal_;
/**
*
* If a conversion action's primary_for_goal bit is false, the conversion
* action is non-biddable for all campaigns regardless of their customer
* conversion goal or campaign conversion goal.
* However, custom conversion goals do not respect primary_for_goal, so if
* a campaign has a custom conversion goal configured with a
* primary_for_goal = false conversion action, that conversion action is
* still biddable.
* By default, primary_for_goal will be true if not set. In V9,
* primary_for_goal can only be set to false after creation through an
* 'update' operation because it's not declared as optional.
*
*
* optional bool primary_for_goal = 31;
* @return Whether the primaryForGoal field is set.
*/
@java.lang.Override
public boolean hasPrimaryForGoal() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* If a conversion action's primary_for_goal bit is false, the conversion
* action is non-biddable for all campaigns regardless of their customer
* conversion goal or campaign conversion goal.
* However, custom conversion goals do not respect primary_for_goal, so if
* a campaign has a custom conversion goal configured with a
* primary_for_goal = false conversion action, that conversion action is
* still biddable.
* By default, primary_for_goal will be true if not set. In V9,
* primary_for_goal can only be set to false after creation through an
* 'update' operation because it's not declared as optional.
*
*
* optional bool primary_for_goal = 31;
* @return The primaryForGoal.
*/
@java.lang.Override
public boolean getPrimaryForGoal() {
return primaryForGoal_;
}
public static final int CATEGORY_FIELD_NUMBER = 6;
private int category_;
/**
*
* The category of conversions reported for this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6;
* @return The enum numeric value on the wire for category.
*/
@java.lang.Override public int getCategoryValue() {
return category_;
}
/**
*
* The category of conversions reported for this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6;
* @return The category.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory getCategory() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory result = com.google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory.valueOf(category_);
return result == null ? com.google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory.UNRECOGNIZED : result;
}
public static final int OWNER_CUSTOMER_FIELD_NUMBER = 23;
private volatile java.lang.Object ownerCustomer_;
/**
*
* Output only. The resource name of the conversion action owner customer, or null if this
* is a system-defined conversion action.
*
*
* optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return Whether the ownerCustomer field is set.
*/
@java.lang.Override
public boolean hasOwnerCustomer() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. The resource name of the conversion action owner customer, or null if this
* is a system-defined conversion action.
*
*
* optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The ownerCustomer.
*/
@java.lang.Override
public java.lang.String getOwnerCustomer() {
java.lang.Object ref = ownerCustomer_;
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();
ownerCustomer_ = s;
return s;
}
}
/**
*
* Output only. The resource name of the conversion action owner customer, or null if this
* is a system-defined conversion action.
*
*
* optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for ownerCustomer.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOwnerCustomerBytes() {
java.lang.Object ref = ownerCustomer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ownerCustomer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INCLUDE_IN_CONVERSIONS_METRIC_FIELD_NUMBER = 24;
private boolean includeInConversionsMetric_;
/**
*
* Whether this conversion action should be included in the "conversions"
* metric.
*
*
* optional bool include_in_conversions_metric = 24;
* @return Whether the includeInConversionsMetric field is set.
*/
@java.lang.Override
public boolean hasIncludeInConversionsMetric() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Whether this conversion action should be included in the "conversions"
* metric.
*
*
* optional bool include_in_conversions_metric = 24;
* @return The includeInConversionsMetric.
*/
@java.lang.Override
public boolean getIncludeInConversionsMetric() {
return includeInConversionsMetric_;
}
public static final int CLICK_THROUGH_LOOKBACK_WINDOW_DAYS_FIELD_NUMBER = 25;
private long clickThroughLookbackWindowDays_;
/**
*
* The maximum number of days that may elapse between an interaction
* (for example, a click) and a conversion event.
*
*
* optional int64 click_through_lookback_window_days = 25;
* @return Whether the clickThroughLookbackWindowDays field is set.
*/
@java.lang.Override
public boolean hasClickThroughLookbackWindowDays() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The maximum number of days that may elapse between an interaction
* (for example, a click) and a conversion event.
*
*
* optional int64 click_through_lookback_window_days = 25;
* @return The clickThroughLookbackWindowDays.
*/
@java.lang.Override
public long getClickThroughLookbackWindowDays() {
return clickThroughLookbackWindowDays_;
}
public static final int VIEW_THROUGH_LOOKBACK_WINDOW_DAYS_FIELD_NUMBER = 26;
private long viewThroughLookbackWindowDays_;
/**
*
* The maximum number of days which may elapse between an impression and a
* conversion without an interaction.
*
*
* optional int64 view_through_lookback_window_days = 26;
* @return Whether the viewThroughLookbackWindowDays field is set.
*/
@java.lang.Override
public boolean hasViewThroughLookbackWindowDays() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* The maximum number of days which may elapse between an impression and a
* conversion without an interaction.
*
*
* optional int64 view_through_lookback_window_days = 26;
* @return The viewThroughLookbackWindowDays.
*/
@java.lang.Override
public long getViewThroughLookbackWindowDays() {
return viewThroughLookbackWindowDays_;
}
public static final int VALUE_SETTINGS_FIELD_NUMBER = 11;
private com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings valueSettings_;
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
* @return Whether the valueSettings field is set.
*/
@java.lang.Override
public boolean hasValueSettings() {
return valueSettings_ != null;
}
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
* @return The valueSettings.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings getValueSettings() {
return valueSettings_ == null ? com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.getDefaultInstance() : valueSettings_;
}
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.ValueSettingsOrBuilder getValueSettingsOrBuilder() {
return getValueSettings();
}
public static final int COUNTING_TYPE_FIELD_NUMBER = 12;
private int countingType_;
/**
*
* How to count conversion events for the conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12;
* @return The enum numeric value on the wire for countingType.
*/
@java.lang.Override public int getCountingTypeValue() {
return countingType_;
}
/**
*
* How to count conversion events for the conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12;
* @return The countingType.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType getCountingType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType result = com.google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType.valueOf(countingType_);
return result == null ? com.google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType.UNRECOGNIZED : result;
}
public static final int ATTRIBUTION_MODEL_SETTINGS_FIELD_NUMBER = 13;
private com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attributionModelSettings_;
/**
*
* Settings related to this conversion action's attribution model.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
* @return Whether the attributionModelSettings field is set.
*/
@java.lang.Override
public boolean hasAttributionModelSettings() {
return attributionModelSettings_ != null;
}
/**
*
* Settings related to this conversion action's attribution model.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
* @return The attributionModelSettings.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings getAttributionModelSettings() {
return attributionModelSettings_ == null ? com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.getDefaultInstance() : attributionModelSettings_;
}
/**
*
* Settings related to this conversion action's attribution model.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettingsOrBuilder getAttributionModelSettingsOrBuilder() {
return getAttributionModelSettings();
}
public static final int TAG_SNIPPETS_FIELD_NUMBER = 14;
private java.util.List tagSnippets_;
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List getTagSnippetsList() {
return tagSnippets_;
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.TagSnippetOrBuilder>
getTagSnippetsOrBuilderList() {
return tagSnippets_;
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public int getTagSnippetsCount() {
return tagSnippets_.size();
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TagSnippet getTagSnippets(int index) {
return tagSnippets_.get(index);
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TagSnippetOrBuilder getTagSnippetsOrBuilder(
int index) {
return tagSnippets_.get(index);
}
public static final int PHONE_CALL_DURATION_SECONDS_FIELD_NUMBER = 27;
private long phoneCallDurationSeconds_;
/**
*
* The phone call duration in seconds after which a conversion should be
* reported for this conversion action.
* The value must be between 0 and 10000, inclusive.
*
*
* optional int64 phone_call_duration_seconds = 27;
* @return Whether the phoneCallDurationSeconds field is set.
*/
@java.lang.Override
public boolean hasPhoneCallDurationSeconds() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* The phone call duration in seconds after which a conversion should be
* reported for this conversion action.
* The value must be between 0 and 10000, inclusive.
*
*
* optional int64 phone_call_duration_seconds = 27;
* @return The phoneCallDurationSeconds.
*/
@java.lang.Override
public long getPhoneCallDurationSeconds() {
return phoneCallDurationSeconds_;
}
public static final int APP_ID_FIELD_NUMBER = 28;
private volatile java.lang.Object appId_;
/**
*
* App ID for an app conversion action.
*
*
* optional string app_id = 28;
* @return Whether the appId field is set.
*/
@java.lang.Override
public boolean hasAppId() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* App ID for an app conversion action.
*
*
* optional string app_id = 28;
* @return The appId.
*/
@java.lang.Override
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
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();
appId_ = s;
return s;
}
}
/**
*
* App ID for an app conversion action.
*
*
* optional string app_id = 28;
* @return The bytes for appId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MOBILE_APP_VENDOR_FIELD_NUMBER = 17;
private int mobileAppVendor_;
/**
*
* Output only. Mobile app vendor for an app conversion action.
*
*
* .google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for mobileAppVendor.
*/
@java.lang.Override public int getMobileAppVendorValue() {
return mobileAppVendor_;
}
/**
*
* Output only. Mobile app vendor for an app conversion action.
*
*
* .google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The mobileAppVendor.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor getMobileAppVendor() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor result = com.google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor.valueOf(mobileAppVendor_);
return result == null ? com.google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor.UNRECOGNIZED : result;
}
public static final int FIREBASE_SETTINGS_FIELD_NUMBER = 18;
private com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebaseSettings_;
/**
*
* Output only. Firebase settings for Firebase conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the firebaseSettings field is set.
*/
@java.lang.Override
public boolean hasFirebaseSettings() {
return firebaseSettings_ != null;
}
/**
*
* Output only. Firebase settings for Firebase conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The firebaseSettings.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings getFirebaseSettings() {
return firebaseSettings_ == null ? com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.getDefaultInstance() : firebaseSettings_;
}
/**
*
* Output only. Firebase settings for Firebase conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettingsOrBuilder getFirebaseSettingsOrBuilder() {
return getFirebaseSettings();
}
public static final int THIRD_PARTY_APP_ANALYTICS_SETTINGS_FIELD_NUMBER = 19;
private com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings thirdPartyAppAnalyticsSettings_;
/**
*
* Output only. Third Party App Analytics settings for third party conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the thirdPartyAppAnalyticsSettings field is set.
*/
@java.lang.Override
public boolean hasThirdPartyAppAnalyticsSettings() {
return thirdPartyAppAnalyticsSettings_ != null;
}
/**
*
* Output only. Third Party App Analytics settings for third party conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The thirdPartyAppAnalyticsSettings.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings getThirdPartyAppAnalyticsSettings() {
return thirdPartyAppAnalyticsSettings_ == null ? com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.getDefaultInstance() : thirdPartyAppAnalyticsSettings_;
}
/**
*
* Output only. Third Party App Analytics settings for third party conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettingsOrBuilder getThirdPartyAppAnalyticsSettingsOrBuilder() {
return getThirdPartyAppAnalyticsSettings();
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (status_ != com.google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(4, status_);
}
if (type_ != com.google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType.UNSPECIFIED.getNumber()) {
output.writeEnum(5, type_);
}
if (category_ != com.google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory.UNSPECIFIED.getNumber()) {
output.writeEnum(6, category_);
}
if (valueSettings_ != null) {
output.writeMessage(11, getValueSettings());
}
if (countingType_ != com.google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType.UNSPECIFIED.getNumber()) {
output.writeEnum(12, countingType_);
}
if (attributionModelSettings_ != null) {
output.writeMessage(13, getAttributionModelSettings());
}
for (int i = 0; i < tagSnippets_.size(); i++) {
output.writeMessage(14, tagSnippets_.get(i));
}
if (mobileAppVendor_ != com.google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor.UNSPECIFIED.getNumber()) {
output.writeEnum(17, mobileAppVendor_);
}
if (firebaseSettings_ != null) {
output.writeMessage(18, getFirebaseSettings());
}
if (thirdPartyAppAnalyticsSettings_ != null) {
output.writeMessage(19, getThirdPartyAppAnalyticsSettings());
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(21, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 22, name_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 23, ownerCustomer_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(24, includeInConversionsMetric_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(25, clickThroughLookbackWindowDays_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(26, viewThroughLookbackWindowDays_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt64(27, phoneCallDurationSeconds_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 28, appId_);
}
if (origin_ != com.google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin.UNSPECIFIED.getNumber()) {
output.writeEnum(30, origin_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(31, primaryForGoal_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
}
if (status_ != com.google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, status_);
}
if (type_ != com.google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, type_);
}
if (category_ != com.google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, category_);
}
if (valueSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getValueSettings());
}
if (countingType_ != com.google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(12, countingType_);
}
if (attributionModelSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getAttributionModelSettings());
}
for (int i = 0; i < tagSnippets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, tagSnippets_.get(i));
}
if (mobileAppVendor_ != com.google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(17, mobileAppVendor_);
}
if (firebaseSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getFirebaseSettings());
}
if (thirdPartyAppAnalyticsSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, getThirdPartyAppAnalyticsSettings());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(21, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, name_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, ownerCustomer_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(24, includeInConversionsMetric_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(25, clickThroughLookbackWindowDays_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(26, viewThroughLookbackWindowDays_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(27, phoneCallDurationSeconds_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, appId_);
}
if (origin_ != com.google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(30, origin_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(31, primaryForGoal_);
}
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.v10.resources.ConversionAction)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.ConversionAction other = (com.google.ads.googleads.v10.resources.ConversionAction) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (status_ != other.status_) return false;
if (type_ != other.type_) return false;
if (origin_ != other.origin_) return false;
if (hasPrimaryForGoal() != other.hasPrimaryForGoal()) return false;
if (hasPrimaryForGoal()) {
if (getPrimaryForGoal()
!= other.getPrimaryForGoal()) return false;
}
if (category_ != other.category_) return false;
if (hasOwnerCustomer() != other.hasOwnerCustomer()) return false;
if (hasOwnerCustomer()) {
if (!getOwnerCustomer()
.equals(other.getOwnerCustomer())) return false;
}
if (hasIncludeInConversionsMetric() != other.hasIncludeInConversionsMetric()) return false;
if (hasIncludeInConversionsMetric()) {
if (getIncludeInConversionsMetric()
!= other.getIncludeInConversionsMetric()) return false;
}
if (hasClickThroughLookbackWindowDays() != other.hasClickThroughLookbackWindowDays()) return false;
if (hasClickThroughLookbackWindowDays()) {
if (getClickThroughLookbackWindowDays()
!= other.getClickThroughLookbackWindowDays()) return false;
}
if (hasViewThroughLookbackWindowDays() != other.hasViewThroughLookbackWindowDays()) return false;
if (hasViewThroughLookbackWindowDays()) {
if (getViewThroughLookbackWindowDays()
!= other.getViewThroughLookbackWindowDays()) return false;
}
if (hasValueSettings() != other.hasValueSettings()) return false;
if (hasValueSettings()) {
if (!getValueSettings()
.equals(other.getValueSettings())) return false;
}
if (countingType_ != other.countingType_) return false;
if (hasAttributionModelSettings() != other.hasAttributionModelSettings()) return false;
if (hasAttributionModelSettings()) {
if (!getAttributionModelSettings()
.equals(other.getAttributionModelSettings())) return false;
}
if (!getTagSnippetsList()
.equals(other.getTagSnippetsList())) return false;
if (hasPhoneCallDurationSeconds() != other.hasPhoneCallDurationSeconds()) return false;
if (hasPhoneCallDurationSeconds()) {
if (getPhoneCallDurationSeconds()
!= other.getPhoneCallDurationSeconds()) return false;
}
if (hasAppId() != other.hasAppId()) return false;
if (hasAppId()) {
if (!getAppId()
.equals(other.getAppId())) return false;
}
if (mobileAppVendor_ != other.mobileAppVendor_) return false;
if (hasFirebaseSettings() != other.hasFirebaseSettings()) return false;
if (hasFirebaseSettings()) {
if (!getFirebaseSettings()
.equals(other.getFirebaseSettings())) return false;
}
if (hasThirdPartyAppAnalyticsSettings() != other.hasThirdPartyAppAnalyticsSettings()) return false;
if (hasThirdPartyAppAnalyticsSettings()) {
if (!getThirdPartyAppAnalyticsSettings()
.equals(other.getThirdPartyAppAnalyticsSettings())) 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();
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + ORIGIN_FIELD_NUMBER;
hash = (53 * hash) + origin_;
if (hasPrimaryForGoal()) {
hash = (37 * hash) + PRIMARY_FOR_GOAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPrimaryForGoal());
}
hash = (37 * hash) + CATEGORY_FIELD_NUMBER;
hash = (53 * hash) + category_;
if (hasOwnerCustomer()) {
hash = (37 * hash) + OWNER_CUSTOMER_FIELD_NUMBER;
hash = (53 * hash) + getOwnerCustomer().hashCode();
}
if (hasIncludeInConversionsMetric()) {
hash = (37 * hash) + INCLUDE_IN_CONVERSIONS_METRIC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIncludeInConversionsMetric());
}
if (hasClickThroughLookbackWindowDays()) {
hash = (37 * hash) + CLICK_THROUGH_LOOKBACK_WINDOW_DAYS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getClickThroughLookbackWindowDays());
}
if (hasViewThroughLookbackWindowDays()) {
hash = (37 * hash) + VIEW_THROUGH_LOOKBACK_WINDOW_DAYS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getViewThroughLookbackWindowDays());
}
if (hasValueSettings()) {
hash = (37 * hash) + VALUE_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getValueSettings().hashCode();
}
hash = (37 * hash) + COUNTING_TYPE_FIELD_NUMBER;
hash = (53 * hash) + countingType_;
if (hasAttributionModelSettings()) {
hash = (37 * hash) + ATTRIBUTION_MODEL_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getAttributionModelSettings().hashCode();
}
if (getTagSnippetsCount() > 0) {
hash = (37 * hash) + TAG_SNIPPETS_FIELD_NUMBER;
hash = (53 * hash) + getTagSnippetsList().hashCode();
}
if (hasPhoneCallDurationSeconds()) {
hash = (37 * hash) + PHONE_CALL_DURATION_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPhoneCallDurationSeconds());
}
if (hasAppId()) {
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
}
hash = (37 * hash) + MOBILE_APP_VENDOR_FIELD_NUMBER;
hash = (53 * hash) + mobileAppVendor_;
if (hasFirebaseSettings()) {
hash = (37 * hash) + FIREBASE_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getFirebaseSettings().hashCode();
}
if (hasThirdPartyAppAnalyticsSettings()) {
hash = (37 * hash) + THIRD_PARTY_APP_ANALYTICS_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getThirdPartyAppAnalyticsSettings().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.ConversionAction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction 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.v10.resources.ConversionAction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction 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.v10.resources.ConversionAction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.ConversionAction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.resources.ConversionAction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction 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.v10.resources.ConversionAction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction 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.v10.resources.ConversionAction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.ConversionAction 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.v10.resources.ConversionAction 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;
}
/**
*
* A conversion action.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.ConversionAction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.ConversionAction)
com.google.ads.googleads.v10.resources.ConversionActionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.ConversionAction.class, com.google.ads.googleads.v10.resources.ConversionAction.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.ConversionAction.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
resourceName_ = "";
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
status_ = 0;
type_ = 0;
origin_ = 0;
primaryForGoal_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
category_ = 0;
ownerCustomer_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
includeInConversionsMetric_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
clickThroughLookbackWindowDays_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
viewThroughLookbackWindowDays_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
if (valueSettingsBuilder_ == null) {
valueSettings_ = null;
} else {
valueSettings_ = null;
valueSettingsBuilder_ = null;
}
countingType_ = 0;
if (attributionModelSettingsBuilder_ == null) {
attributionModelSettings_ = null;
} else {
attributionModelSettings_ = null;
attributionModelSettingsBuilder_ = null;
}
if (tagSnippetsBuilder_ == null) {
tagSnippets_ = java.util.Collections.emptyList();
} else {
tagSnippets_ = null;
tagSnippetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
phoneCallDurationSeconds_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
appId_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
mobileAppVendor_ = 0;
if (firebaseSettingsBuilder_ == null) {
firebaseSettings_ = null;
} else {
firebaseSettings_ = null;
firebaseSettingsBuilder_ = null;
}
if (thirdPartyAppAnalyticsSettingsBuilder_ == null) {
thirdPartyAppAnalyticsSettings_ = null;
} else {
thirdPartyAppAnalyticsSettings_ = null;
thirdPartyAppAnalyticsSettingsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.ConversionActionProto.internal_static_google_ads_googleads_v10_resources_ConversionAction_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.ConversionAction.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction build() {
com.google.ads.googleads.v10.resources.ConversionAction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionAction buildPartial() {
com.google.ads.googleads.v10.resources.ConversionAction result = new com.google.ads.googleads.v10.resources.ConversionAction(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.resourceName_ = resourceName_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
result.status_ = status_;
result.type_ = type_;
result.origin_ = origin_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.primaryForGoal_ = primaryForGoal_;
to_bitField0_ |= 0x00000004;
}
result.category_ = category_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.ownerCustomer_ = ownerCustomer_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.includeInConversionsMetric_ = includeInConversionsMetric_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.clickThroughLookbackWindowDays_ = clickThroughLookbackWindowDays_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.viewThroughLookbackWindowDays_ = viewThroughLookbackWindowDays_;
to_bitField0_ |= 0x00000040;
}
if (valueSettingsBuilder_ == null) {
result.valueSettings_ = valueSettings_;
} else {
result.valueSettings_ = valueSettingsBuilder_.build();
}
result.countingType_ = countingType_;
if (attributionModelSettingsBuilder_ == null) {
result.attributionModelSettings_ = attributionModelSettings_;
} else {
result.attributionModelSettings_ = attributionModelSettingsBuilder_.build();
}
if (tagSnippetsBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
tagSnippets_ = java.util.Collections.unmodifiableList(tagSnippets_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.tagSnippets_ = tagSnippets_;
} else {
result.tagSnippets_ = tagSnippetsBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.phoneCallDurationSeconds_ = phoneCallDurationSeconds_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
to_bitField0_ |= 0x00000100;
}
result.appId_ = appId_;
result.mobileAppVendor_ = mobileAppVendor_;
if (firebaseSettingsBuilder_ == null) {
result.firebaseSettings_ = firebaseSettings_;
} else {
result.firebaseSettings_ = firebaseSettingsBuilder_.build();
}
if (thirdPartyAppAnalyticsSettingsBuilder_ == null) {
result.thirdPartyAppAnalyticsSettings_ = thirdPartyAppAnalyticsSettings_;
} else {
result.thirdPartyAppAnalyticsSettings_ = thirdPartyAppAnalyticsSettingsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@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.v10.resources.ConversionAction) {
return mergeFrom((com.google.ads.googleads.v10.resources.ConversionAction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.ConversionAction other) {
if (other == com.google.ads.googleads.v10.resources.ConversionAction.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
onChanged();
}
if (other.hasId()) {
setId(other.getId());
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.origin_ != 0) {
setOriginValue(other.getOriginValue());
}
if (other.hasPrimaryForGoal()) {
setPrimaryForGoal(other.getPrimaryForGoal());
}
if (other.category_ != 0) {
setCategoryValue(other.getCategoryValue());
}
if (other.hasOwnerCustomer()) {
bitField0_ |= 0x00000008;
ownerCustomer_ = other.ownerCustomer_;
onChanged();
}
if (other.hasIncludeInConversionsMetric()) {
setIncludeInConversionsMetric(other.getIncludeInConversionsMetric());
}
if (other.hasClickThroughLookbackWindowDays()) {
setClickThroughLookbackWindowDays(other.getClickThroughLookbackWindowDays());
}
if (other.hasViewThroughLookbackWindowDays()) {
setViewThroughLookbackWindowDays(other.getViewThroughLookbackWindowDays());
}
if (other.hasValueSettings()) {
mergeValueSettings(other.getValueSettings());
}
if (other.countingType_ != 0) {
setCountingTypeValue(other.getCountingTypeValue());
}
if (other.hasAttributionModelSettings()) {
mergeAttributionModelSettings(other.getAttributionModelSettings());
}
if (tagSnippetsBuilder_ == null) {
if (!other.tagSnippets_.isEmpty()) {
if (tagSnippets_.isEmpty()) {
tagSnippets_ = other.tagSnippets_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureTagSnippetsIsMutable();
tagSnippets_.addAll(other.tagSnippets_);
}
onChanged();
}
} else {
if (!other.tagSnippets_.isEmpty()) {
if (tagSnippetsBuilder_.isEmpty()) {
tagSnippetsBuilder_.dispose();
tagSnippetsBuilder_ = null;
tagSnippets_ = other.tagSnippets_;
bitField0_ = (bitField0_ & ~0x00000080);
tagSnippetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTagSnippetsFieldBuilder() : null;
} else {
tagSnippetsBuilder_.addAllMessages(other.tagSnippets_);
}
}
}
if (other.hasPhoneCallDurationSeconds()) {
setPhoneCallDurationSeconds(other.getPhoneCallDurationSeconds());
}
if (other.hasAppId()) {
bitField0_ |= 0x00000200;
appId_ = other.appId_;
onChanged();
}
if (other.mobileAppVendor_ != 0) {
setMobileAppVendorValue(other.getMobileAppVendorValue());
}
if (other.hasFirebaseSettings()) {
mergeFirebaseSettings(other.getFirebaseSettings());
}
if (other.hasThirdPartyAppAnalyticsSettings()) {
mergeThirdPartyAppAnalyticsSettings(other.getThirdPartyAppAnalyticsSettings());
}
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 10: {
resourceName_ = input.readStringRequireUtf8();
break;
} // case 10
case 32: {
status_ = input.readEnum();
break;
} // case 32
case 40: {
type_ = input.readEnum();
break;
} // case 40
case 48: {
category_ = input.readEnum();
break;
} // case 48
case 90: {
input.readMessage(
getValueSettingsFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 90
case 96: {
countingType_ = input.readEnum();
break;
} // case 96
case 106: {
input.readMessage(
getAttributionModelSettingsFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 106
case 114: {
com.google.ads.googleads.v10.common.TagSnippet m =
input.readMessage(
com.google.ads.googleads.v10.common.TagSnippet.parser(),
extensionRegistry);
if (tagSnippetsBuilder_ == null) {
ensureTagSnippetsIsMutable();
tagSnippets_.add(m);
} else {
tagSnippetsBuilder_.addMessage(m);
}
break;
} // case 114
case 136: {
mobileAppVendor_ = input.readEnum();
break;
} // case 136
case 146: {
input.readMessage(
getFirebaseSettingsFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 146
case 154: {
input.readMessage(
getThirdPartyAppAnalyticsSettingsFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 154
case 168: {
id_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 168
case 178: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 178
case 186: {
ownerCustomer_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 186
case 192: {
includeInConversionsMetric_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 192
case 200: {
clickThroughLookbackWindowDays_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 200
case 208: {
viewThroughLookbackWindowDays_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 208
case 216: {
phoneCallDurationSeconds_ = input.readInt64();
bitField0_ |= 0x00000100;
break;
} // case 216
case 226: {
appId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 226
case 240: {
origin_ = input.readEnum();
break;
} // case 240
case 248: {
primaryForGoal_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 248
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 resourceName_ = "";
/**
*
* Immutable. The resource name of the conversion action.
* Conversion action resource names have the form:
* `customers/{customer_id}/conversionActions/{conversion_action_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The resource name of the conversion action.
* Conversion action resource names have the form:
* `customers/{customer_id}/conversionActions/{conversion_action_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The resource name of the conversion action.
* Conversion action resource names have the form:
* `customers/{customer_id}/conversionActions/{conversion_action_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceName_ = value;
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the conversion action.
* Conversion action resource names have the form:
* `customers/{customer_id}/conversionActions/{conversion_action_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the conversion action.
* Conversion action resource names have the form:
* `customers/{customer_id}/conversionActions/{conversion_action_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceName_ = value;
onChanged();
return this;
}
private long id_ ;
/**
*
* Output only. The ID of the conversion action.
*
*
* optional int64 id = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The ID of the conversion action.
*
*
* optional int64 id = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* Output only. The ID of the conversion action.
*
*
* optional int64 id = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
*
* Output only. The ID of the conversion action.
*
*
* optional int64 id = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* The name of the conversion action.
* This field is required and should not be empty when creating new
* conversion actions.
*
*
* optional string name = 22;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The name of the conversion action.
* This field is required and should not be empty when creating new
* conversion actions.
*
*
* optional string name = 22;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the conversion action.
* This field is required and should not be empty when creating new
* conversion actions.
*
*
* optional string name = 22;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the conversion action.
* This field is required and should not be empty when creating new
* conversion actions.
*
*
* optional string name = 22;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
*
* The name of the conversion action.
* This field is required and should not be empty when creating new
* conversion actions.
*
*
* optional string name = 22;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* The name of the conversion action.
* This field is required and should not be empty when creating new
* conversion actions.
*
*
* optional string name = 22;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* The status of this conversion action for conversion event accrual.
*
*
* .google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The status of this conversion action for conversion event accrual.
*
*
* .google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* The status of this conversion action for conversion event accrual.
*
*
* .google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4;
* @return The status.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus getStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus result = com.google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus.valueOf(status_);
return result == null ? com.google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus.UNRECOGNIZED : result;
}
/**
*
* The status of this conversion action for conversion event accrual.
*
*
* .google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The status of this conversion action for conversion event accrual.
*
*
* .google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private int type_ = 0;
/**
*
* Immutable. The type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Immutable. The type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* Immutable. The type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return The type.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType getType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType result = com.google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType.valueOf(type_);
return result == null ? com.google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType.UNRECOGNIZED : result;
}
/**
*
* Immutable. The type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Immutable. The type of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private int origin_ = 0;
/**
*
* Output only. The conversion origin of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin origin = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for origin.
*/
@java.lang.Override public int getOriginValue() {
return origin_;
}
/**
*
* Output only. The conversion origin of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin origin = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for origin to set.
* @return This builder for chaining.
*/
public Builder setOriginValue(int value) {
origin_ = value;
onChanged();
return this;
}
/**
*
* Output only. The conversion origin of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin origin = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The origin.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin getOrigin() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin result = com.google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin.valueOf(origin_);
return result == null ? com.google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin.UNRECOGNIZED : result;
}
/**
*
* Output only. The conversion origin of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin origin = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The origin to set.
* @return This builder for chaining.
*/
public Builder setOrigin(com.google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin value) {
if (value == null) {
throw new NullPointerException();
}
origin_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The conversion origin of this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin origin = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearOrigin() {
origin_ = 0;
onChanged();
return this;
}
private boolean primaryForGoal_ ;
/**
*
* If a conversion action's primary_for_goal bit is false, the conversion
* action is non-biddable for all campaigns regardless of their customer
* conversion goal or campaign conversion goal.
* However, custom conversion goals do not respect primary_for_goal, so if
* a campaign has a custom conversion goal configured with a
* primary_for_goal = false conversion action, that conversion action is
* still biddable.
* By default, primary_for_goal will be true if not set. In V9,
* primary_for_goal can only be set to false after creation through an
* 'update' operation because it's not declared as optional.
*
*
* optional bool primary_for_goal = 31;
* @return Whether the primaryForGoal field is set.
*/
@java.lang.Override
public boolean hasPrimaryForGoal() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* If a conversion action's primary_for_goal bit is false, the conversion
* action is non-biddable for all campaigns regardless of their customer
* conversion goal or campaign conversion goal.
* However, custom conversion goals do not respect primary_for_goal, so if
* a campaign has a custom conversion goal configured with a
* primary_for_goal = false conversion action, that conversion action is
* still biddable.
* By default, primary_for_goal will be true if not set. In V9,
* primary_for_goal can only be set to false after creation through an
* 'update' operation because it's not declared as optional.
*
*
* optional bool primary_for_goal = 31;
* @return The primaryForGoal.
*/
@java.lang.Override
public boolean getPrimaryForGoal() {
return primaryForGoal_;
}
/**
*
* If a conversion action's primary_for_goal bit is false, the conversion
* action is non-biddable for all campaigns regardless of their customer
* conversion goal or campaign conversion goal.
* However, custom conversion goals do not respect primary_for_goal, so if
* a campaign has a custom conversion goal configured with a
* primary_for_goal = false conversion action, that conversion action is
* still biddable.
* By default, primary_for_goal will be true if not set. In V9,
* primary_for_goal can only be set to false after creation through an
* 'update' operation because it's not declared as optional.
*
*
* optional bool primary_for_goal = 31;
* @param value The primaryForGoal to set.
* @return This builder for chaining.
*/
public Builder setPrimaryForGoal(boolean value) {
bitField0_ |= 0x00000004;
primaryForGoal_ = value;
onChanged();
return this;
}
/**
*
* If a conversion action's primary_for_goal bit is false, the conversion
* action is non-biddable for all campaigns regardless of their customer
* conversion goal or campaign conversion goal.
* However, custom conversion goals do not respect primary_for_goal, so if
* a campaign has a custom conversion goal configured with a
* primary_for_goal = false conversion action, that conversion action is
* still biddable.
* By default, primary_for_goal will be true if not set. In V9,
* primary_for_goal can only be set to false after creation through an
* 'update' operation because it's not declared as optional.
*
*
* optional bool primary_for_goal = 31;
* @return This builder for chaining.
*/
public Builder clearPrimaryForGoal() {
bitField0_ = (bitField0_ & ~0x00000004);
primaryForGoal_ = false;
onChanged();
return this;
}
private int category_ = 0;
/**
*
* The category of conversions reported for this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6;
* @return The enum numeric value on the wire for category.
*/
@java.lang.Override public int getCategoryValue() {
return category_;
}
/**
*
* The category of conversions reported for this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6;
* @param value The enum numeric value on the wire for category to set.
* @return This builder for chaining.
*/
public Builder setCategoryValue(int value) {
category_ = value;
onChanged();
return this;
}
/**
*
* The category of conversions reported for this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6;
* @return The category.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory getCategory() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory result = com.google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory.valueOf(category_);
return result == null ? com.google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory.UNRECOGNIZED : result;
}
/**
*
* The category of conversions reported for this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6;
* @param value The category to set.
* @return This builder for chaining.
*/
public Builder setCategory(com.google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory value) {
if (value == null) {
throw new NullPointerException();
}
category_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The category of conversions reported for this conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6;
* @return This builder for chaining.
*/
public Builder clearCategory() {
category_ = 0;
onChanged();
return this;
}
private java.lang.Object ownerCustomer_ = "";
/**
*
* Output only. The resource name of the conversion action owner customer, or null if this
* is a system-defined conversion action.
*
*
* optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return Whether the ownerCustomer field is set.
*/
public boolean hasOwnerCustomer() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. The resource name of the conversion action owner customer, or null if this
* is a system-defined conversion action.
*
*
* optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The ownerCustomer.
*/
public java.lang.String getOwnerCustomer() {
java.lang.Object ref = ownerCustomer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ownerCustomer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The resource name of the conversion action owner customer, or null if this
* is a system-defined conversion action.
*
*
* optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for ownerCustomer.
*/
public com.google.protobuf.ByteString
getOwnerCustomerBytes() {
java.lang.Object ref = ownerCustomer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ownerCustomer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The resource name of the conversion action owner customer, or null if this
* is a system-defined conversion action.
*
*
* optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The ownerCustomer to set.
* @return This builder for chaining.
*/
public Builder setOwnerCustomer(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
ownerCustomer_ = value;
onChanged();
return this;
}
/**
*
* Output only. The resource name of the conversion action owner customer, or null if this
* is a system-defined conversion action.
*
*
* optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearOwnerCustomer() {
bitField0_ = (bitField0_ & ~0x00000008);
ownerCustomer_ = getDefaultInstance().getOwnerCustomer();
onChanged();
return this;
}
/**
*
* Output only. The resource name of the conversion action owner customer, or null if this
* is a system-defined conversion action.
*
*
* optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for ownerCustomer to set.
* @return This builder for chaining.
*/
public Builder setOwnerCustomerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000008;
ownerCustomer_ = value;
onChanged();
return this;
}
private boolean includeInConversionsMetric_ ;
/**
*
* Whether this conversion action should be included in the "conversions"
* metric.
*
*
* optional bool include_in_conversions_metric = 24;
* @return Whether the includeInConversionsMetric field is set.
*/
@java.lang.Override
public boolean hasIncludeInConversionsMetric() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Whether this conversion action should be included in the "conversions"
* metric.
*
*
* optional bool include_in_conversions_metric = 24;
* @return The includeInConversionsMetric.
*/
@java.lang.Override
public boolean getIncludeInConversionsMetric() {
return includeInConversionsMetric_;
}
/**
*
* Whether this conversion action should be included in the "conversions"
* metric.
*
*
* optional bool include_in_conversions_metric = 24;
* @param value The includeInConversionsMetric to set.
* @return This builder for chaining.
*/
public Builder setIncludeInConversionsMetric(boolean value) {
bitField0_ |= 0x00000010;
includeInConversionsMetric_ = value;
onChanged();
return this;
}
/**
*
* Whether this conversion action should be included in the "conversions"
* metric.
*
*
* optional bool include_in_conversions_metric = 24;
* @return This builder for chaining.
*/
public Builder clearIncludeInConversionsMetric() {
bitField0_ = (bitField0_ & ~0x00000010);
includeInConversionsMetric_ = false;
onChanged();
return this;
}
private long clickThroughLookbackWindowDays_ ;
/**
*
* The maximum number of days that may elapse between an interaction
* (for example, a click) and a conversion event.
*
*
* optional int64 click_through_lookback_window_days = 25;
* @return Whether the clickThroughLookbackWindowDays field is set.
*/
@java.lang.Override
public boolean hasClickThroughLookbackWindowDays() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The maximum number of days that may elapse between an interaction
* (for example, a click) and a conversion event.
*
*
* optional int64 click_through_lookback_window_days = 25;
* @return The clickThroughLookbackWindowDays.
*/
@java.lang.Override
public long getClickThroughLookbackWindowDays() {
return clickThroughLookbackWindowDays_;
}
/**
*
* The maximum number of days that may elapse between an interaction
* (for example, a click) and a conversion event.
*
*
* optional int64 click_through_lookback_window_days = 25;
* @param value The clickThroughLookbackWindowDays to set.
* @return This builder for chaining.
*/
public Builder setClickThroughLookbackWindowDays(long value) {
bitField0_ |= 0x00000020;
clickThroughLookbackWindowDays_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of days that may elapse between an interaction
* (for example, a click) and a conversion event.
*
*
* optional int64 click_through_lookback_window_days = 25;
* @return This builder for chaining.
*/
public Builder clearClickThroughLookbackWindowDays() {
bitField0_ = (bitField0_ & ~0x00000020);
clickThroughLookbackWindowDays_ = 0L;
onChanged();
return this;
}
private long viewThroughLookbackWindowDays_ ;
/**
*
* The maximum number of days which may elapse between an impression and a
* conversion without an interaction.
*
*
* optional int64 view_through_lookback_window_days = 26;
* @return Whether the viewThroughLookbackWindowDays field is set.
*/
@java.lang.Override
public boolean hasViewThroughLookbackWindowDays() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* The maximum number of days which may elapse between an impression and a
* conversion without an interaction.
*
*
* optional int64 view_through_lookback_window_days = 26;
* @return The viewThroughLookbackWindowDays.
*/
@java.lang.Override
public long getViewThroughLookbackWindowDays() {
return viewThroughLookbackWindowDays_;
}
/**
*
* The maximum number of days which may elapse between an impression and a
* conversion without an interaction.
*
*
* optional int64 view_through_lookback_window_days = 26;
* @param value The viewThroughLookbackWindowDays to set.
* @return This builder for chaining.
*/
public Builder setViewThroughLookbackWindowDays(long value) {
bitField0_ |= 0x00000040;
viewThroughLookbackWindowDays_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of days which may elapse between an impression and a
* conversion without an interaction.
*
*
* optional int64 view_through_lookback_window_days = 26;
* @return This builder for chaining.
*/
public Builder clearViewThroughLookbackWindowDays() {
bitField0_ = (bitField0_ & ~0x00000040);
viewThroughLookbackWindowDays_ = 0L;
onChanged();
return this;
}
private com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings valueSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings, com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.Builder, com.google.ads.googleads.v10.resources.ConversionAction.ValueSettingsOrBuilder> valueSettingsBuilder_;
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
* @return Whether the valueSettings field is set.
*/
public boolean hasValueSettings() {
return valueSettingsBuilder_ != null || valueSettings_ != null;
}
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
* @return The valueSettings.
*/
public com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings getValueSettings() {
if (valueSettingsBuilder_ == null) {
return valueSettings_ == null ? com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.getDefaultInstance() : valueSettings_;
} else {
return valueSettingsBuilder_.getMessage();
}
}
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
*/
public Builder setValueSettings(com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings value) {
if (valueSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
valueSettings_ = value;
onChanged();
} else {
valueSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
*/
public Builder setValueSettings(
com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.Builder builderForValue) {
if (valueSettingsBuilder_ == null) {
valueSettings_ = builderForValue.build();
onChanged();
} else {
valueSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
*/
public Builder mergeValueSettings(com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings value) {
if (valueSettingsBuilder_ == null) {
if (valueSettings_ != null) {
valueSettings_ =
com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.newBuilder(valueSettings_).mergeFrom(value).buildPartial();
} else {
valueSettings_ = value;
}
onChanged();
} else {
valueSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
*/
public Builder clearValueSettings() {
if (valueSettingsBuilder_ == null) {
valueSettings_ = null;
onChanged();
} else {
valueSettings_ = null;
valueSettingsBuilder_ = null;
}
return this;
}
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
*/
public com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.Builder getValueSettingsBuilder() {
onChanged();
return getValueSettingsFieldBuilder().getBuilder();
}
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
*/
public com.google.ads.googleads.v10.resources.ConversionAction.ValueSettingsOrBuilder getValueSettingsOrBuilder() {
if (valueSettingsBuilder_ != null) {
return valueSettingsBuilder_.getMessageOrBuilder();
} else {
return valueSettings_ == null ?
com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.getDefaultInstance() : valueSettings_;
}
}
/**
*
* Settings related to the value for conversion events associated with this
* conversion action.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings, com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.Builder, com.google.ads.googleads.v10.resources.ConversionAction.ValueSettingsOrBuilder>
getValueSettingsFieldBuilder() {
if (valueSettingsBuilder_ == null) {
valueSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings, com.google.ads.googleads.v10.resources.ConversionAction.ValueSettings.Builder, com.google.ads.googleads.v10.resources.ConversionAction.ValueSettingsOrBuilder>(
getValueSettings(),
getParentForChildren(),
isClean());
valueSettings_ = null;
}
return valueSettingsBuilder_;
}
private int countingType_ = 0;
/**
*
* How to count conversion events for the conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12;
* @return The enum numeric value on the wire for countingType.
*/
@java.lang.Override public int getCountingTypeValue() {
return countingType_;
}
/**
*
* How to count conversion events for the conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12;
* @param value The enum numeric value on the wire for countingType to set.
* @return This builder for chaining.
*/
public Builder setCountingTypeValue(int value) {
countingType_ = value;
onChanged();
return this;
}
/**
*
* How to count conversion events for the conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12;
* @return The countingType.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType getCountingType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType result = com.google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType.valueOf(countingType_);
return result == null ? com.google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType.UNRECOGNIZED : result;
}
/**
*
* How to count conversion events for the conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12;
* @param value The countingType to set.
* @return This builder for chaining.
*/
public Builder setCountingType(com.google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType value) {
if (value == null) {
throw new NullPointerException();
}
countingType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* How to count conversion events for the conversion action.
*
*
* .google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12;
* @return This builder for chaining.
*/
public Builder clearCountingType() {
countingType_ = 0;
onChanged();
return this;
}
private com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attributionModelSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings, com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.Builder, com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettingsOrBuilder> attributionModelSettingsBuilder_;
/**
*
* Settings related to this conversion action's attribution model.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
* @return Whether the attributionModelSettings field is set.
*/
public boolean hasAttributionModelSettings() {
return attributionModelSettingsBuilder_ != null || attributionModelSettings_ != null;
}
/**
*
* Settings related to this conversion action's attribution model.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
* @return The attributionModelSettings.
*/
public com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings getAttributionModelSettings() {
if (attributionModelSettingsBuilder_ == null) {
return attributionModelSettings_ == null ? com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.getDefaultInstance() : attributionModelSettings_;
} else {
return attributionModelSettingsBuilder_.getMessage();
}
}
/**
*
* Settings related to this conversion action's attribution model.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
*/
public Builder setAttributionModelSettings(com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings value) {
if (attributionModelSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
attributionModelSettings_ = value;
onChanged();
} else {
attributionModelSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Settings related to this conversion action's attribution model.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
*/
public Builder setAttributionModelSettings(
com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.Builder builderForValue) {
if (attributionModelSettingsBuilder_ == null) {
attributionModelSettings_ = builderForValue.build();
onChanged();
} else {
attributionModelSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Settings related to this conversion action's attribution model.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
*/
public Builder mergeAttributionModelSettings(com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings value) {
if (attributionModelSettingsBuilder_ == null) {
if (attributionModelSettings_ != null) {
attributionModelSettings_ =
com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.newBuilder(attributionModelSettings_).mergeFrom(value).buildPartial();
} else {
attributionModelSettings_ = value;
}
onChanged();
} else {
attributionModelSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Settings related to this conversion action's attribution model.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
*/
public Builder clearAttributionModelSettings() {
if (attributionModelSettingsBuilder_ == null) {
attributionModelSettings_ = null;
onChanged();
} else {
attributionModelSettings_ = null;
attributionModelSettingsBuilder_ = null;
}
return this;
}
/**
*
* Settings related to this conversion action's attribution model.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
*/
public com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.Builder getAttributionModelSettingsBuilder() {
onChanged();
return getAttributionModelSettingsFieldBuilder().getBuilder();
}
/**
*
* Settings related to this conversion action's attribution model.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
*/
public com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettingsOrBuilder getAttributionModelSettingsOrBuilder() {
if (attributionModelSettingsBuilder_ != null) {
return attributionModelSettingsBuilder_.getMessageOrBuilder();
} else {
return attributionModelSettings_ == null ?
com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.getDefaultInstance() : attributionModelSettings_;
}
}
/**
*
* Settings related to this conversion action's attribution model.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings, com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.Builder, com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettingsOrBuilder>
getAttributionModelSettingsFieldBuilder() {
if (attributionModelSettingsBuilder_ == null) {
attributionModelSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings, com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings.Builder, com.google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettingsOrBuilder>(
getAttributionModelSettings(),
getParentForChildren(),
isClean());
attributionModelSettings_ = null;
}
return attributionModelSettingsBuilder_;
}
private java.util.List tagSnippets_ =
java.util.Collections.emptyList();
private void ensureTagSnippetsIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
tagSnippets_ = new java.util.ArrayList(tagSnippets_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.TagSnippet, com.google.ads.googleads.v10.common.TagSnippet.Builder, com.google.ads.googleads.v10.common.TagSnippetOrBuilder> tagSnippetsBuilder_;
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List getTagSnippetsList() {
if (tagSnippetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tagSnippets_);
} else {
return tagSnippetsBuilder_.getMessageList();
}
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public int getTagSnippetsCount() {
if (tagSnippetsBuilder_ == null) {
return tagSnippets_.size();
} else {
return tagSnippetsBuilder_.getCount();
}
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.common.TagSnippet getTagSnippets(int index) {
if (tagSnippetsBuilder_ == null) {
return tagSnippets_.get(index);
} else {
return tagSnippetsBuilder_.getMessage(index);
}
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setTagSnippets(
int index, com.google.ads.googleads.v10.common.TagSnippet value) {
if (tagSnippetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagSnippetsIsMutable();
tagSnippets_.set(index, value);
onChanged();
} else {
tagSnippetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setTagSnippets(
int index, com.google.ads.googleads.v10.common.TagSnippet.Builder builderForValue) {
if (tagSnippetsBuilder_ == null) {
ensureTagSnippetsIsMutable();
tagSnippets_.set(index, builderForValue.build());
onChanged();
} else {
tagSnippetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addTagSnippets(com.google.ads.googleads.v10.common.TagSnippet value) {
if (tagSnippetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagSnippetsIsMutable();
tagSnippets_.add(value);
onChanged();
} else {
tagSnippetsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addTagSnippets(
int index, com.google.ads.googleads.v10.common.TagSnippet value) {
if (tagSnippetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagSnippetsIsMutable();
tagSnippets_.add(index, value);
onChanged();
} else {
tagSnippetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addTagSnippets(
com.google.ads.googleads.v10.common.TagSnippet.Builder builderForValue) {
if (tagSnippetsBuilder_ == null) {
ensureTagSnippetsIsMutable();
tagSnippets_.add(builderForValue.build());
onChanged();
} else {
tagSnippetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addTagSnippets(
int index, com.google.ads.googleads.v10.common.TagSnippet.Builder builderForValue) {
if (tagSnippetsBuilder_ == null) {
ensureTagSnippetsIsMutable();
tagSnippets_.add(index, builderForValue.build());
onChanged();
} else {
tagSnippetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addAllTagSnippets(
java.lang.Iterable extends com.google.ads.googleads.v10.common.TagSnippet> values) {
if (tagSnippetsBuilder_ == null) {
ensureTagSnippetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tagSnippets_);
onChanged();
} else {
tagSnippetsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearTagSnippets() {
if (tagSnippetsBuilder_ == null) {
tagSnippets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
tagSnippetsBuilder_.clear();
}
return this;
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder removeTagSnippets(int index) {
if (tagSnippetsBuilder_ == null) {
ensureTagSnippetsIsMutable();
tagSnippets_.remove(index);
onChanged();
} else {
tagSnippetsBuilder_.remove(index);
}
return this;
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.common.TagSnippet.Builder getTagSnippetsBuilder(
int index) {
return getTagSnippetsFieldBuilder().getBuilder(index);
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.common.TagSnippetOrBuilder getTagSnippetsOrBuilder(
int index) {
if (tagSnippetsBuilder_ == null) {
return tagSnippets_.get(index); } else {
return tagSnippetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List extends com.google.ads.googleads.v10.common.TagSnippetOrBuilder>
getTagSnippetsOrBuilderList() {
if (tagSnippetsBuilder_ != null) {
return tagSnippetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tagSnippets_);
}
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.common.TagSnippet.Builder addTagSnippetsBuilder() {
return getTagSnippetsFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.TagSnippet.getDefaultInstance());
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.common.TagSnippet.Builder addTagSnippetsBuilder(
int index) {
return getTagSnippetsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.TagSnippet.getDefaultInstance());
}
/**
*
* Output only. The snippets used for tracking conversions.
*
*
* repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List
getTagSnippetsBuilderList() {
return getTagSnippetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.TagSnippet, com.google.ads.googleads.v10.common.TagSnippet.Builder, com.google.ads.googleads.v10.common.TagSnippetOrBuilder>
getTagSnippetsFieldBuilder() {
if (tagSnippetsBuilder_ == null) {
tagSnippetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.TagSnippet, com.google.ads.googleads.v10.common.TagSnippet.Builder, com.google.ads.googleads.v10.common.TagSnippetOrBuilder>(
tagSnippets_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
tagSnippets_ = null;
}
return tagSnippetsBuilder_;
}
private long phoneCallDurationSeconds_ ;
/**
*
* The phone call duration in seconds after which a conversion should be
* reported for this conversion action.
* The value must be between 0 and 10000, inclusive.
*
*
* optional int64 phone_call_duration_seconds = 27;
* @return Whether the phoneCallDurationSeconds field is set.
*/
@java.lang.Override
public boolean hasPhoneCallDurationSeconds() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* The phone call duration in seconds after which a conversion should be
* reported for this conversion action.
* The value must be between 0 and 10000, inclusive.
*
*
* optional int64 phone_call_duration_seconds = 27;
* @return The phoneCallDurationSeconds.
*/
@java.lang.Override
public long getPhoneCallDurationSeconds() {
return phoneCallDurationSeconds_;
}
/**
*
* The phone call duration in seconds after which a conversion should be
* reported for this conversion action.
* The value must be between 0 and 10000, inclusive.
*
*
* optional int64 phone_call_duration_seconds = 27;
* @param value The phoneCallDurationSeconds to set.
* @return This builder for chaining.
*/
public Builder setPhoneCallDurationSeconds(long value) {
bitField0_ |= 0x00000100;
phoneCallDurationSeconds_ = value;
onChanged();
return this;
}
/**
*
* The phone call duration in seconds after which a conversion should be
* reported for this conversion action.
* The value must be between 0 and 10000, inclusive.
*
*
* optional int64 phone_call_duration_seconds = 27;
* @return This builder for chaining.
*/
public Builder clearPhoneCallDurationSeconds() {
bitField0_ = (bitField0_ & ~0x00000100);
phoneCallDurationSeconds_ = 0L;
onChanged();
return this;
}
private java.lang.Object appId_ = "";
/**
*
* App ID for an app conversion action.
*
*
* optional string app_id = 28;
* @return Whether the appId field is set.
*/
public boolean hasAppId() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* App ID for an app conversion action.
*
*
* optional string app_id = 28;
* @return The appId.
*/
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
appId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* App ID for an app conversion action.
*
*
* optional string app_id = 28;
* @return The bytes for appId.
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* App ID for an app conversion action.
*
*
* optional string app_id = 28;
* @param value The appId to set.
* @return This builder for chaining.
*/
public Builder setAppId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
appId_ = value;
onChanged();
return this;
}
/**
*
* App ID for an app conversion action.
*
*
* optional string app_id = 28;
* @return This builder for chaining.
*/
public Builder clearAppId() {
bitField0_ = (bitField0_ & ~0x00000200);
appId_ = getDefaultInstance().getAppId();
onChanged();
return this;
}
/**
*
* App ID for an app conversion action.
*
*
* optional string app_id = 28;
* @param value The bytes for appId to set.
* @return This builder for chaining.
*/
public Builder setAppIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000200;
appId_ = value;
onChanged();
return this;
}
private int mobileAppVendor_ = 0;
/**
*
* Output only. Mobile app vendor for an app conversion action.
*
*
* .google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for mobileAppVendor.
*/
@java.lang.Override public int getMobileAppVendorValue() {
return mobileAppVendor_;
}
/**
*
* Output only. Mobile app vendor for an app conversion action.
*
*
* .google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for mobileAppVendor to set.
* @return This builder for chaining.
*/
public Builder setMobileAppVendorValue(int value) {
mobileAppVendor_ = value;
onChanged();
return this;
}
/**
*
* Output only. Mobile app vendor for an app conversion action.
*
*
* .google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The mobileAppVendor.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor getMobileAppVendor() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor result = com.google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor.valueOf(mobileAppVendor_);
return result == null ? com.google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor.UNRECOGNIZED : result;
}
/**
*
* Output only. Mobile app vendor for an app conversion action.
*
*
* .google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The mobileAppVendor to set.
* @return This builder for chaining.
*/
public Builder setMobileAppVendor(com.google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor value) {
if (value == null) {
throw new NullPointerException();
}
mobileAppVendor_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Mobile app vendor for an app conversion action.
*
*
* .google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearMobileAppVendor() {
mobileAppVendor_ = 0;
onChanged();
return this;
}
private com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebaseSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings, com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.Builder, com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettingsOrBuilder> firebaseSettingsBuilder_;
/**
*
* Output only. Firebase settings for Firebase conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the firebaseSettings field is set.
*/
public boolean hasFirebaseSettings() {
return firebaseSettingsBuilder_ != null || firebaseSettings_ != null;
}
/**
*
* Output only. Firebase settings for Firebase conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The firebaseSettings.
*/
public com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings getFirebaseSettings() {
if (firebaseSettingsBuilder_ == null) {
return firebaseSettings_ == null ? com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.getDefaultInstance() : firebaseSettings_;
} else {
return firebaseSettingsBuilder_.getMessage();
}
}
/**
*
* Output only. Firebase settings for Firebase conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setFirebaseSettings(com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings value) {
if (firebaseSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
firebaseSettings_ = value;
onChanged();
} else {
firebaseSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Output only. Firebase settings for Firebase conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setFirebaseSettings(
com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.Builder builderForValue) {
if (firebaseSettingsBuilder_ == null) {
firebaseSettings_ = builderForValue.build();
onChanged();
} else {
firebaseSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. Firebase settings for Firebase conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeFirebaseSettings(com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings value) {
if (firebaseSettingsBuilder_ == null) {
if (firebaseSettings_ != null) {
firebaseSettings_ =
com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.newBuilder(firebaseSettings_).mergeFrom(value).buildPartial();
} else {
firebaseSettings_ = value;
}
onChanged();
} else {
firebaseSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Output only. Firebase settings for Firebase conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearFirebaseSettings() {
if (firebaseSettingsBuilder_ == null) {
firebaseSettings_ = null;
onChanged();
} else {
firebaseSettings_ = null;
firebaseSettingsBuilder_ = null;
}
return this;
}
/**
*
* Output only. Firebase settings for Firebase conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.Builder getFirebaseSettingsBuilder() {
onChanged();
return getFirebaseSettingsFieldBuilder().getBuilder();
}
/**
*
* Output only. Firebase settings for Firebase conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettingsOrBuilder getFirebaseSettingsOrBuilder() {
if (firebaseSettingsBuilder_ != null) {
return firebaseSettingsBuilder_.getMessageOrBuilder();
} else {
return firebaseSettings_ == null ?
com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.getDefaultInstance() : firebaseSettings_;
}
}
/**
*
* Output only. Firebase settings for Firebase conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings, com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.Builder, com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettingsOrBuilder>
getFirebaseSettingsFieldBuilder() {
if (firebaseSettingsBuilder_ == null) {
firebaseSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings, com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings.Builder, com.google.ads.googleads.v10.resources.ConversionAction.FirebaseSettingsOrBuilder>(
getFirebaseSettings(),
getParentForChildren(),
isClean());
firebaseSettings_ = null;
}
return firebaseSettingsBuilder_;
}
private com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings thirdPartyAppAnalyticsSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings, com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.Builder, com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettingsOrBuilder> thirdPartyAppAnalyticsSettingsBuilder_;
/**
*
* Output only. Third Party App Analytics settings for third party conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the thirdPartyAppAnalyticsSettings field is set.
*/
public boolean hasThirdPartyAppAnalyticsSettings() {
return thirdPartyAppAnalyticsSettingsBuilder_ != null || thirdPartyAppAnalyticsSettings_ != null;
}
/**
*
* Output only. Third Party App Analytics settings for third party conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The thirdPartyAppAnalyticsSettings.
*/
public com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings getThirdPartyAppAnalyticsSettings() {
if (thirdPartyAppAnalyticsSettingsBuilder_ == null) {
return thirdPartyAppAnalyticsSettings_ == null ? com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.getDefaultInstance() : thirdPartyAppAnalyticsSettings_;
} else {
return thirdPartyAppAnalyticsSettingsBuilder_.getMessage();
}
}
/**
*
* Output only. Third Party App Analytics settings for third party conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setThirdPartyAppAnalyticsSettings(com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings value) {
if (thirdPartyAppAnalyticsSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
thirdPartyAppAnalyticsSettings_ = value;
onChanged();
} else {
thirdPartyAppAnalyticsSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Output only. Third Party App Analytics settings for third party conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setThirdPartyAppAnalyticsSettings(
com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.Builder builderForValue) {
if (thirdPartyAppAnalyticsSettingsBuilder_ == null) {
thirdPartyAppAnalyticsSettings_ = builderForValue.build();
onChanged();
} else {
thirdPartyAppAnalyticsSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. Third Party App Analytics settings for third party conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeThirdPartyAppAnalyticsSettings(com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings value) {
if (thirdPartyAppAnalyticsSettingsBuilder_ == null) {
if (thirdPartyAppAnalyticsSettings_ != null) {
thirdPartyAppAnalyticsSettings_ =
com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.newBuilder(thirdPartyAppAnalyticsSettings_).mergeFrom(value).buildPartial();
} else {
thirdPartyAppAnalyticsSettings_ = value;
}
onChanged();
} else {
thirdPartyAppAnalyticsSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Output only. Third Party App Analytics settings for third party conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearThirdPartyAppAnalyticsSettings() {
if (thirdPartyAppAnalyticsSettingsBuilder_ == null) {
thirdPartyAppAnalyticsSettings_ = null;
onChanged();
} else {
thirdPartyAppAnalyticsSettings_ = null;
thirdPartyAppAnalyticsSettingsBuilder_ = null;
}
return this;
}
/**
*
* Output only. Third Party App Analytics settings for third party conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.Builder getThirdPartyAppAnalyticsSettingsBuilder() {
onChanged();
return getThirdPartyAppAnalyticsSettingsFieldBuilder().getBuilder();
}
/**
*
* Output only. Third Party App Analytics settings for third party conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettingsOrBuilder getThirdPartyAppAnalyticsSettingsOrBuilder() {
if (thirdPartyAppAnalyticsSettingsBuilder_ != null) {
return thirdPartyAppAnalyticsSettingsBuilder_.getMessageOrBuilder();
} else {
return thirdPartyAppAnalyticsSettings_ == null ?
com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.getDefaultInstance() : thirdPartyAppAnalyticsSettings_;
}
}
/**
*
* Output only. Third Party App Analytics settings for third party conversion types.
*
*
* .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings, com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.Builder, com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettingsOrBuilder>
getThirdPartyAppAnalyticsSettingsFieldBuilder() {
if (thirdPartyAppAnalyticsSettingsBuilder_ == null) {
thirdPartyAppAnalyticsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings, com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.Builder, com.google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettingsOrBuilder>(
getThirdPartyAppAnalyticsSettings(),
getParentForChildren(),
isClean());
thirdPartyAppAnalyticsSettings_ = null;
}
return thirdPartyAppAnalyticsSettingsBuilder_;
}
@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.v10.resources.ConversionAction)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.ConversionAction)
private static final com.google.ads.googleads.v10.resources.ConversionAction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.ConversionAction();
}
public static com.google.ads.googleads.v10.resources.ConversionAction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConversionAction 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.v10.resources.ConversionAction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy