com.google.ads.googleads.v17.resources.ConversionValueRuleSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/resources/conversion_value_rule_set.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;
/**
*
* A conversion value rule set
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.ConversionValueRuleSet}
*/
public final class ConversionValueRuleSet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.ConversionValueRuleSet)
ConversionValueRuleSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConversionValueRuleSet.newBuilder() to construct.
private ConversionValueRuleSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConversionValueRuleSet() {
resourceName_ = "";
conversionValueRules_ =
com.google.protobuf.LazyStringArrayList.emptyList();
dimensions_ = java.util.Collections.emptyList();
ownerCustomer_ = "";
attachmentType_ = 0;
campaign_ = "";
status_ = 0;
conversionActionCategories_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConversionValueRuleSet();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.ConversionValueRuleSetProto.internal_static_google_ads_googleads_v17_resources_ConversionValueRuleSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.ConversionValueRuleSetProto.internal_static_google_ads_googleads_v17_resources_ConversionValueRuleSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.ConversionValueRuleSet.class, com.google.ads.googleads.v17.resources.ConversionValueRuleSet.Builder.class);
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the conversion value rule set.
* Conversion value rule set resource names have the form:
*
* `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_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 value rule set.
* Conversion value rule set resource names have the form:
*
* `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_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 = 2;
private long id_ = 0L;
/**
*
* Output only. The ID of the conversion value rule set.
*
*
* int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int CONVERSION_VALUE_RULES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList conversionValueRules_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Resource names of rules within the rule set.
*
*
* repeated string conversion_value_rules = 3 [(.google.api.resource_reference) = { ... }
* @return A list containing the conversionValueRules.
*/
public com.google.protobuf.ProtocolStringList
getConversionValueRulesList() {
return conversionValueRules_;
}
/**
*
* Resource names of rules within the rule set.
*
*
* repeated string conversion_value_rules = 3 [(.google.api.resource_reference) = { ... }
* @return The count of conversionValueRules.
*/
public int getConversionValueRulesCount() {
return conversionValueRules_.size();
}
/**
*
* Resource names of rules within the rule set.
*
*
* repeated string conversion_value_rules = 3 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The conversionValueRules at the given index.
*/
public java.lang.String getConversionValueRules(int index) {
return conversionValueRules_.get(index);
}
/**
*
* Resource names of rules within the rule set.
*
*
* repeated string conversion_value_rules = 3 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the conversionValueRules at the given index.
*/
public com.google.protobuf.ByteString
getConversionValueRulesBytes(int index) {
return conversionValueRules_.getByteString(index);
}
public static final int DIMENSIONS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List dimensions_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension> dimensions_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension>() {
public com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension convert(java.lang.Integer from) {
com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension result = com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension.forNumber(from);
return result == null ? com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension.UNRECOGNIZED : result;
}
};
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @return A list containing the dimensions.
*/
@java.lang.Override
public java.util.List getDimensionsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension>(dimensions_, dimensions_converter_);
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @return The count of dimensions.
*/
@java.lang.Override
public int getDimensionsCount() {
return dimensions_.size();
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @param index The index of the element to return.
* @return The dimensions at the given index.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension getDimensions(int index) {
return dimensions_converter_.convert(dimensions_.get(index));
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @return A list containing the enum numeric values on the wire for dimensions.
*/
@java.lang.Override
public java.util.List
getDimensionsValueList() {
return dimensions_;
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of dimensions at the given index.
*/
@java.lang.Override
public int getDimensionsValue(int index) {
return dimensions_.get(index);
}
private int dimensionsMemoizedSerializedSize;
public static final int OWNER_CUSTOMER_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object ownerCustomer_ = "";
/**
*
* Output only. The resource name of the conversion value rule set's owner
* customer. When the value rule set is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 5 [(.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 value rule set's owner
* customer. When the value rule set is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 5 [(.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 ATTACHMENT_TYPE_FIELD_NUMBER = 6;
private int attachmentType_ = 0;
/**
*
* Immutable. Defines the scope where the conversion value rule set is
* attached.
*
*
* .google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType attachment_type = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @return The enum numeric value on the wire for attachmentType.
*/
@java.lang.Override public int getAttachmentTypeValue() {
return attachmentType_;
}
/**
*
* Immutable. Defines the scope where the conversion value rule set is
* attached.
*
*
* .google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType attachment_type = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @return The attachmentType.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType getAttachmentType() {
com.google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType result = com.google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType.forNumber(attachmentType_);
return result == null ? com.google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType.UNRECOGNIZED : result;
}
public static final int CAMPAIGN_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object campaign_ = "";
/**
*
* The resource name of the campaign when the conversion value rule
* set is attached to a campaign.
*
*
* string campaign = 7 [(.google.api.resource_reference) = { ... }
* @return The campaign.
*/
@java.lang.Override
public java.lang.String getCampaign() {
java.lang.Object ref = campaign_;
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();
campaign_ = s;
return s;
}
}
/**
*
* The resource name of the campaign when the conversion value rule
* set is attached to a campaign.
*
*
* string campaign = 7 [(.google.api.resource_reference) = { ... }
* @return The bytes for campaign.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCampaignBytes() {
java.lang.Object ref = campaign_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaign_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 8;
private int status_ = 0;
/**
*
* Output only. The status of the conversion value rule set.
* ** Read-only **
*
*
* .google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Output only. The status of the conversion value rule set.
* ** Read-only **
*
*
* .google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus getStatus() {
com.google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus result = com.google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus.UNRECOGNIZED : result;
}
public static final int CONVERSION_ACTION_CATEGORIES_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private java.util.List conversionActionCategories_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory> conversionActionCategories_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory>() {
public com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory convert(java.lang.Integer from) {
com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory result = com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory.forNumber(from);
return result == null ? com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory.UNRECOGNIZED : result;
}
};
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return A list containing the conversionActionCategories.
*/
@java.lang.Override
public java.util.List getConversionActionCategoriesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory>(conversionActionCategories_, conversionActionCategories_converter_);
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return The count of conversionActionCategories.
*/
@java.lang.Override
public int getConversionActionCategoriesCount() {
return conversionActionCategories_.size();
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @param index The index of the element to return.
* @return The conversionActionCategories at the given index.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory getConversionActionCategories(int index) {
return conversionActionCategories_converter_.convert(conversionActionCategories_.get(index));
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return A list containing the enum numeric values on the wire for conversionActionCategories.
*/
@java.lang.Override
public java.util.List
getConversionActionCategoriesValueList() {
return conversionActionCategories_;
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @param index The index of the value to return.
* @return The enum numeric value on the wire of conversionActionCategories at the given index.
*/
@java.lang.Override
public int getConversionActionCategoriesValue(int index) {
return conversionActionCategories_.get(index);
}
private int conversionActionCategoriesMemoizedSerializedSize;
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 {
getSerializedSize();
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (id_ != 0L) {
output.writeInt64(2, id_);
}
for (int i = 0; i < conversionValueRules_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, conversionValueRules_.getRaw(i));
}
if (getDimensionsList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(dimensionsMemoizedSerializedSize);
}
for (int i = 0; i < dimensions_.size(); i++) {
output.writeEnumNoTag(dimensions_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownerCustomer_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ownerCustomer_);
}
if (attachmentType_ != com.google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType.UNSPECIFIED.getNumber()) {
output.writeEnum(6, attachmentType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(campaign_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, campaign_);
}
if (status_ != com.google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(8, status_);
}
if (getConversionActionCategoriesList().size() > 0) {
output.writeUInt32NoTag(74);
output.writeUInt32NoTag(conversionActionCategoriesMemoizedSerializedSize);
}
for (int i = 0; i < conversionActionCategories_.size(); i++) {
output.writeEnumNoTag(conversionActionCategories_.get(i));
}
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 (id_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, id_);
}
{
int dataSize = 0;
for (int i = 0; i < conversionValueRules_.size(); i++) {
dataSize += computeStringSizeNoTag(conversionValueRules_.getRaw(i));
}
size += dataSize;
size += 1 * getConversionValueRulesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < dimensions_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(dimensions_.get(i));
}
size += dataSize;
if (!getDimensionsList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}dimensionsMemoizedSerializedSize = dataSize;
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownerCustomer_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ownerCustomer_);
}
if (attachmentType_ != com.google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, attachmentType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(campaign_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, campaign_);
}
if (status_ != com.google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, status_);
}
{
int dataSize = 0;
for (int i = 0; i < conversionActionCategories_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(conversionActionCategories_.get(i));
}
size += dataSize;
if (!getConversionActionCategoriesList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}conversionActionCategoriesMemoizedSerializedSize = dataSize;
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.resources.ConversionValueRuleSet)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.ConversionValueRuleSet other = (com.google.ads.googleads.v17.resources.ConversionValueRuleSet) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (getId()
!= other.getId()) return false;
if (!getConversionValueRulesList()
.equals(other.getConversionValueRulesList())) return false;
if (!dimensions_.equals(other.dimensions_)) return false;
if (!getOwnerCustomer()
.equals(other.getOwnerCustomer())) return false;
if (attachmentType_ != other.attachmentType_) return false;
if (!getCampaign()
.equals(other.getCampaign())) return false;
if (status_ != other.status_) return false;
if (!conversionActionCategories_.equals(other.conversionActionCategories_)) 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();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
if (getConversionValueRulesCount() > 0) {
hash = (37 * hash) + CONVERSION_VALUE_RULES_FIELD_NUMBER;
hash = (53 * hash) + getConversionValueRulesList().hashCode();
}
if (getDimensionsCount() > 0) {
hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER;
hash = (53 * hash) + dimensions_.hashCode();
}
hash = (37 * hash) + OWNER_CUSTOMER_FIELD_NUMBER;
hash = (53 * hash) + getOwnerCustomer().hashCode();
hash = (37 * hash) + ATTACHMENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + attachmentType_;
hash = (37 * hash) + CAMPAIGN_FIELD_NUMBER;
hash = (53 * hash) + getCampaign().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getConversionActionCategoriesCount() > 0) {
hash = (37 * hash) + CONVERSION_ACTION_CATEGORIES_FIELD_NUMBER;
hash = (53 * hash) + conversionActionCategories_.hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.ConversionValueRuleSet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.ConversionValueRuleSet parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.ConversionValueRuleSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.ConversionValueRuleSet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.ConversionValueRuleSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.ConversionValueRuleSet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.ConversionValueRuleSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.ConversionValueRuleSet parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.ConversionValueRuleSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.ConversionValueRuleSet parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.ConversionValueRuleSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.ConversionValueRuleSet parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.resources.ConversionValueRuleSet 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 value rule set
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.ConversionValueRuleSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.ConversionValueRuleSet)
com.google.ads.googleads.v17.resources.ConversionValueRuleSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.ConversionValueRuleSetProto.internal_static_google_ads_googleads_v17_resources_ConversionValueRuleSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.ConversionValueRuleSetProto.internal_static_google_ads_googleads_v17_resources_ConversionValueRuleSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.ConversionValueRuleSet.class, com.google.ads.googleads.v17.resources.ConversionValueRuleSet.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.ConversionValueRuleSet.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
id_ = 0L;
conversionValueRules_ =
com.google.protobuf.LazyStringArrayList.emptyList();
dimensions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
ownerCustomer_ = "";
attachmentType_ = 0;
campaign_ = "";
status_ = 0;
conversionActionCategories_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.ConversionValueRuleSetProto.internal_static_google_ads_googleads_v17_resources_ConversionValueRuleSet_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.ConversionValueRuleSet getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.ConversionValueRuleSet.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.ConversionValueRuleSet build() {
com.google.ads.googleads.v17.resources.ConversionValueRuleSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.ConversionValueRuleSet buildPartial() {
com.google.ads.googleads.v17.resources.ConversionValueRuleSet result = new com.google.ads.googleads.v17.resources.ConversionValueRuleSet(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.resources.ConversionValueRuleSet result) {
if (((bitField0_ & 0x00000008) != 0)) {
dimensions_ = java.util.Collections.unmodifiableList(dimensions_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.dimensions_ = dimensions_;
if (((bitField0_ & 0x00000100) != 0)) {
conversionActionCategories_ = java.util.Collections.unmodifiableList(conversionActionCategories_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.conversionActionCategories_ = conversionActionCategories_;
}
private void buildPartial0(com.google.ads.googleads.v17.resources.ConversionValueRuleSet result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
conversionValueRules_.makeImmutable();
result.conversionValueRules_ = conversionValueRules_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.ownerCustomer_ = ownerCustomer_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.attachmentType_ = attachmentType_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.campaign_ = campaign_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.status_ = status_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.resources.ConversionValueRuleSet) {
return mergeFrom((com.google.ads.googleads.v17.resources.ConversionValueRuleSet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.ConversionValueRuleSet other) {
if (other == com.google.ads.googleads.v17.resources.ConversionValueRuleSet.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getId() != 0L) {
setId(other.getId());
}
if (!other.conversionValueRules_.isEmpty()) {
if (conversionValueRules_.isEmpty()) {
conversionValueRules_ = other.conversionValueRules_;
bitField0_ |= 0x00000004;
} else {
ensureConversionValueRulesIsMutable();
conversionValueRules_.addAll(other.conversionValueRules_);
}
onChanged();
}
if (!other.dimensions_.isEmpty()) {
if (dimensions_.isEmpty()) {
dimensions_ = other.dimensions_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureDimensionsIsMutable();
dimensions_.addAll(other.dimensions_);
}
onChanged();
}
if (!other.getOwnerCustomer().isEmpty()) {
ownerCustomer_ = other.ownerCustomer_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.attachmentType_ != 0) {
setAttachmentTypeValue(other.getAttachmentTypeValue());
}
if (!other.getCampaign().isEmpty()) {
campaign_ = other.campaign_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (!other.conversionActionCategories_.isEmpty()) {
if (conversionActionCategories_.isEmpty()) {
conversionActionCategories_ = other.conversionActionCategories_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureConversionActionCategoriesIsMutable();
conversionActionCategories_.addAll(other.conversionActionCategories_);
}
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 10: {
resourceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
id_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureConversionValueRulesIsMutable();
conversionValueRules_.add(s);
break;
} // case 26
case 32: {
int tmpRaw = input.readEnum();
ensureDimensionsIsMutable();
dimensions_.add(tmpRaw);
break;
} // case 32
case 34: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensureDimensionsIsMutable();
dimensions_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 34
case 42: {
ownerCustomer_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
attachmentType_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
campaign_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 64: {
status_ = input.readEnum();
bitField0_ |= 0x00000080;
break;
} // case 64
case 72: {
int tmpRaw = input.readEnum();
ensureConversionActionCategoriesIsMutable();
conversionActionCategories_.add(tmpRaw);
break;
} // case 72
case 74: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensureConversionActionCategoriesIsMutable();
conversionActionCategories_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 74
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 value rule set.
* Conversion value rule set resource names have the form:
*
* `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_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 value rule set.
* Conversion value rule set resource names have the form:
*
* `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_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 value rule set.
* Conversion value rule set resource names have the form:
*
* `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the conversion value rule set.
* Conversion value rule set resource names have the form:
*
* `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_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();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the conversion value rule set.
* Conversion value rule set resource names have the form:
*
* `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long id_ ;
/**
*
* Output only. The ID of the conversion value rule set.
*
*
* int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* Output only. The ID of the conversion value rule set.
*
*
* int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The ID of the conversion value rule set.
*
*
* int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList conversionValueRules_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureConversionValueRulesIsMutable() {
if (!conversionValueRules_.isModifiable()) {
conversionValueRules_ = new com.google.protobuf.LazyStringArrayList(conversionValueRules_);
}
bitField0_ |= 0x00000004;
}
/**
*
* Resource names of rules within the rule set.
*
*
* repeated string conversion_value_rules = 3 [(.google.api.resource_reference) = { ... }
* @return A list containing the conversionValueRules.
*/
public com.google.protobuf.ProtocolStringList
getConversionValueRulesList() {
conversionValueRules_.makeImmutable();
return conversionValueRules_;
}
/**
*
* Resource names of rules within the rule set.
*
*
* repeated string conversion_value_rules = 3 [(.google.api.resource_reference) = { ... }
* @return The count of conversionValueRules.
*/
public int getConversionValueRulesCount() {
return conversionValueRules_.size();
}
/**
*
* Resource names of rules within the rule set.
*
*
* repeated string conversion_value_rules = 3 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The conversionValueRules at the given index.
*/
public java.lang.String getConversionValueRules(int index) {
return conversionValueRules_.get(index);
}
/**
*
* Resource names of rules within the rule set.
*
*
* repeated string conversion_value_rules = 3 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the conversionValueRules at the given index.
*/
public com.google.protobuf.ByteString
getConversionValueRulesBytes(int index) {
return conversionValueRules_.getByteString(index);
}
/**
*
* Resource names of rules within the rule set.
*
*
* repeated string conversion_value_rules = 3 [(.google.api.resource_reference) = { ... }
* @param index The index to set the value at.
* @param value The conversionValueRules to set.
* @return This builder for chaining.
*/
public Builder setConversionValueRules(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureConversionValueRulesIsMutable();
conversionValueRules_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Resource names of rules within the rule set.
*
*
* repeated string conversion_value_rules = 3 [(.google.api.resource_reference) = { ... }
* @param value The conversionValueRules to add.
* @return This builder for chaining.
*/
public Builder addConversionValueRules(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureConversionValueRulesIsMutable();
conversionValueRules_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Resource names of rules within the rule set.
*
*
* repeated string conversion_value_rules = 3 [(.google.api.resource_reference) = { ... }
* @param values The conversionValueRules to add.
* @return This builder for chaining.
*/
public Builder addAllConversionValueRules(
java.lang.Iterable values) {
ensureConversionValueRulesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, conversionValueRules_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Resource names of rules within the rule set.
*
*
* repeated string conversion_value_rules = 3 [(.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearConversionValueRules() {
conversionValueRules_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
*
* Resource names of rules within the rule set.
*
*
* repeated string conversion_value_rules = 3 [(.google.api.resource_reference) = { ... }
* @param value The bytes of the conversionValueRules to add.
* @return This builder for chaining.
*/
public Builder addConversionValueRulesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureConversionValueRulesIsMutable();
conversionValueRules_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.util.List dimensions_ =
java.util.Collections.emptyList();
private void ensureDimensionsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
dimensions_ = new java.util.ArrayList(dimensions_);
bitField0_ |= 0x00000008;
}
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @return A list containing the dimensions.
*/
public java.util.List getDimensionsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension>(dimensions_, dimensions_converter_);
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @return The count of dimensions.
*/
public int getDimensionsCount() {
return dimensions_.size();
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @param index The index of the element to return.
* @return The dimensions at the given index.
*/
public com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension getDimensions(int index) {
return dimensions_converter_.convert(dimensions_.get(index));
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @param index The index to set the value at.
* @param value The dimensions to set.
* @return This builder for chaining.
*/
public Builder setDimensions(
int index, com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension value) {
if (value == null) {
throw new NullPointerException();
}
ensureDimensionsIsMutable();
dimensions_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @param value The dimensions to add.
* @return This builder for chaining.
*/
public Builder addDimensions(com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension value) {
if (value == null) {
throw new NullPointerException();
}
ensureDimensionsIsMutable();
dimensions_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @param values The dimensions to add.
* @return This builder for chaining.
*/
public Builder addAllDimensions(
java.lang.Iterable extends com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension> values) {
ensureDimensionsIsMutable();
for (com.google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension value : values) {
dimensions_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @return This builder for chaining.
*/
public Builder clearDimensions() {
dimensions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @return A list containing the enum numeric values on the wire for dimensions.
*/
public java.util.List
getDimensionsValueList() {
return java.util.Collections.unmodifiableList(dimensions_);
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of dimensions at the given index.
*/
public int getDimensionsValue(int index) {
return dimensions_.get(index);
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for dimensions to set.
* @return This builder for chaining.
*/
public Builder setDimensionsValue(
int index, int value) {
ensureDimensionsIsMutable();
dimensions_.set(index, value);
onChanged();
return this;
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @param value The enum numeric value on the wire for dimensions to add.
* @return This builder for chaining.
*/
public Builder addDimensionsValue(int value) {
ensureDimensionsIsMutable();
dimensions_.add(value);
onChanged();
return this;
}
/**
*
* Defines dimensions for Value Rule conditions. The condition types of value
* rules within this value rule set must be of these dimensions. The first
* entry in this list is the primary dimension of the included value rules.
* When using value rule primary dimension segmentation, conversion values
* will be segmented into the values adjusted by value rules and the original
* values, if some value rules apply.
*
*
* repeated .google.ads.googleads.v17.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
* @param values The enum numeric values on the wire for dimensions to add.
* @return This builder for chaining.
*/
public Builder addAllDimensionsValue(
java.lang.Iterable values) {
ensureDimensionsIsMutable();
for (int value : values) {
dimensions_.add(value);
}
onChanged();
return this;
}
private java.lang.Object ownerCustomer_ = "";
/**
*
* Output only. The resource name of the conversion value rule set's owner
* customer. When the value rule set is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 5 [(.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 value rule set's owner
* customer. When the value rule set is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 5 [(.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 value rule set's owner
* customer. When the value rule set is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 5 [(.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(); }
ownerCustomer_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Output only. The resource name of the conversion value rule set's owner
* customer. When the value rule set is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearOwnerCustomer() {
ownerCustomer_ = getDefaultInstance().getOwnerCustomer();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Output only. The resource name of the conversion value rule set's owner
* customer. When the value rule set is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 5 [(.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);
ownerCustomer_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private int attachmentType_ = 0;
/**
*
* Immutable. Defines the scope where the conversion value rule set is
* attached.
*
*
* .google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType attachment_type = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @return The enum numeric value on the wire for attachmentType.
*/
@java.lang.Override public int getAttachmentTypeValue() {
return attachmentType_;
}
/**
*
* Immutable. Defines the scope where the conversion value rule set is
* attached.
*
*
* .google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType attachment_type = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The enum numeric value on the wire for attachmentType to set.
* @return This builder for chaining.
*/
public Builder setAttachmentTypeValue(int value) {
attachmentType_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Immutable. Defines the scope where the conversion value rule set is
* attached.
*
*
* .google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType attachment_type = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @return The attachmentType.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType getAttachmentType() {
com.google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType result = com.google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType.forNumber(attachmentType_);
return result == null ? com.google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType.UNRECOGNIZED : result;
}
/**
*
* Immutable. Defines the scope where the conversion value rule set is
* attached.
*
*
* .google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType attachment_type = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The attachmentType to set.
* @return This builder for chaining.
*/
public Builder setAttachmentType(com.google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
attachmentType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Immutable. Defines the scope where the conversion value rule set is
* attached.
*
*
* .google.ads.googleads.v17.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType attachment_type = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearAttachmentType() {
bitField0_ = (bitField0_ & ~0x00000020);
attachmentType_ = 0;
onChanged();
return this;
}
private java.lang.Object campaign_ = "";
/**
*
* The resource name of the campaign when the conversion value rule
* set is attached to a campaign.
*
*
* string campaign = 7 [(.google.api.resource_reference) = { ... }
* @return The campaign.
*/
public java.lang.String getCampaign() {
java.lang.Object ref = campaign_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
campaign_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The resource name of the campaign when the conversion value rule
* set is attached to a campaign.
*
*
* string campaign = 7 [(.google.api.resource_reference) = { ... }
* @return The bytes for campaign.
*/
public com.google.protobuf.ByteString
getCampaignBytes() {
java.lang.Object ref = campaign_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaign_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The resource name of the campaign when the conversion value rule
* set is attached to a campaign.
*
*
* string campaign = 7 [(.google.api.resource_reference) = { ... }
* @param value The campaign to set.
* @return This builder for chaining.
*/
public Builder setCampaign(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
campaign_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* The resource name of the campaign when the conversion value rule
* set is attached to a campaign.
*
*
* string campaign = 7 [(.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearCampaign() {
campaign_ = getDefaultInstance().getCampaign();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* The resource name of the campaign when the conversion value rule
* set is attached to a campaign.
*
*
* string campaign = 7 [(.google.api.resource_reference) = { ... }
* @param value The bytes for campaign to set.
* @return This builder for chaining.
*/
public Builder setCampaignBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
campaign_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* Output only. The status of the conversion value rule set.
* ** Read-only **
*
*
* .google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Output only. The status of the conversion value rule set.
* ** Read-only **
*
*
* .google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @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;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Output only. The status of the conversion value rule set.
* ** Read-only **
*
*
* .google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus getStatus() {
com.google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus result = com.google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus.UNRECOGNIZED : result;
}
/**
*
* Output only. The status of the conversion value rule set.
* ** Read-only **
*
*
* .google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The status of the conversion value rule set.
* ** Read-only **
*
*
* .google.ads.googleads.v17.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000080);
status_ = 0;
onChanged();
return this;
}
private java.util.List conversionActionCategories_ =
java.util.Collections.emptyList();
private void ensureConversionActionCategoriesIsMutable() {
if (!((bitField0_ & 0x00000100) != 0)) {
conversionActionCategories_ = new java.util.ArrayList(conversionActionCategories_);
bitField0_ |= 0x00000100;
}
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return A list containing the conversionActionCategories.
*/
public java.util.List getConversionActionCategoriesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory>(conversionActionCategories_, conversionActionCategories_converter_);
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return The count of conversionActionCategories.
*/
public int getConversionActionCategoriesCount() {
return conversionActionCategories_.size();
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @param index The index of the element to return.
* @return The conversionActionCategories at the given index.
*/
public com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory getConversionActionCategories(int index) {
return conversionActionCategories_converter_.convert(conversionActionCategories_.get(index));
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @param index The index to set the value at.
* @param value The conversionActionCategories to set.
* @return This builder for chaining.
*/
public Builder setConversionActionCategories(
int index, com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory value) {
if (value == null) {
throw new NullPointerException();
}
ensureConversionActionCategoriesIsMutable();
conversionActionCategories_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The conversionActionCategories to add.
* @return This builder for chaining.
*/
public Builder addConversionActionCategories(com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory value) {
if (value == null) {
throw new NullPointerException();
}
ensureConversionActionCategoriesIsMutable();
conversionActionCategories_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @param values The conversionActionCategories to add.
* @return This builder for chaining.
*/
public Builder addAllConversionActionCategories(
java.lang.Iterable extends com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory> values) {
ensureConversionActionCategoriesIsMutable();
for (com.google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory value : values) {
conversionActionCategories_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearConversionActionCategories() {
conversionActionCategories_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return A list containing the enum numeric values on the wire for conversionActionCategories.
*/
public java.util.List
getConversionActionCategoriesValueList() {
return java.util.Collections.unmodifiableList(conversionActionCategories_);
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @param index The index of the value to return.
* @return The enum numeric value on the wire of conversionActionCategories at the given index.
*/
public int getConversionActionCategoriesValue(int index) {
return conversionActionCategories_.get(index);
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for conversionActionCategories to set.
* @return This builder for chaining.
*/
public Builder setConversionActionCategoriesValue(
int index, int value) {
ensureConversionActionCategoriesIsMutable();
conversionActionCategories_.set(index, value);
onChanged();
return this;
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The enum numeric value on the wire for conversionActionCategories to add.
* @return This builder for chaining.
*/
public Builder addConversionActionCategoriesValue(int value) {
ensureConversionActionCategoriesIsMutable();
conversionActionCategories_.add(value);
onChanged();
return this;
}
/**
*
* Immutable. The conversion action categories of the conversion value rule
* set.
*
*
* repeated .google.ads.googleads.v17.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @param values The enum numeric values on the wire for conversionActionCategories to add.
* @return This builder for chaining.
*/
public Builder addAllConversionActionCategoriesValue(
java.lang.Iterable values) {
ensureConversionActionCategoriesIsMutable();
for (int value : values) {
conversionActionCategories_.add(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.v17.resources.ConversionValueRuleSet)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.ConversionValueRuleSet)
private static final com.google.ads.googleads.v17.resources.ConversionValueRuleSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.ConversionValueRuleSet();
}
public static com.google.ads.googleads.v17.resources.ConversionValueRuleSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConversionValueRuleSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.ConversionValueRuleSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy