All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v17/services/audience_insights_service.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.services;

/**
 * 
 * Request message for
 * [AudienceInsightsService.GenerateAudienceOverlapInsights][google.ads.googleads.v17.services.AudienceInsightsService.GenerateAudienceOverlapInsights].
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest} */ public final class GenerateAudienceOverlapInsightsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest) GenerateAudienceOverlapInsightsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GenerateAudienceOverlapInsightsRequest.newBuilder() to construct. private GenerateAudienceOverlapInsightsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GenerateAudienceOverlapInsightsRequest() { customerId_ = ""; dimensions_ = java.util.Collections.emptyList(); customerInsightsGroup_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GenerateAudienceOverlapInsightsRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_GenerateAudienceOverlapInsightsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_GenerateAudienceOverlapInsightsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest.class, com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest.Builder.class); } private int bitField0_; public static final int CUSTOMER_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object customerId_ = ""; /** *
   * Required. The ID of the customer.
   * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customerId. */ @java.lang.Override public java.lang.String getCustomerId() { java.lang.Object ref = customerId_; 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(); customerId_ = s; return s; } } /** *
   * Required. The ID of the customer.
   * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for customerId. */ @java.lang.Override public com.google.protobuf.ByteString getCustomerIdBytes() { java.lang.Object ref = customerId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COUNTRY_LOCATION_FIELD_NUMBER = 2; private com.google.ads.googleads.v17.common.LocationInfo countryLocation_; /** *
   * Required. The country in which to calculate the sizes and overlaps of
   * audiences.
   * 
* * .google.ads.googleads.v17.common.LocationInfo country_location = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the countryLocation field is set. */ @java.lang.Override public boolean hasCountryLocation() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Required. The country in which to calculate the sizes and overlaps of
   * audiences.
   * 
* * .google.ads.googleads.v17.common.LocationInfo country_location = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The countryLocation. */ @java.lang.Override public com.google.ads.googleads.v17.common.LocationInfo getCountryLocation() { return countryLocation_ == null ? com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance() : countryLocation_; } /** *
   * Required. The country in which to calculate the sizes and overlaps of
   * audiences.
   * 
* * .google.ads.googleads.v17.common.LocationInfo country_location = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.ads.googleads.v17.common.LocationInfoOrBuilder getCountryLocationOrBuilder() { return countryLocation_ == null ? com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance() : countryLocation_; } public static final int PRIMARY_ATTRIBUTE_FIELD_NUMBER = 3; private com.google.ads.googleads.v17.services.AudienceInsightsAttribute primaryAttribute_; /** *
   * Required. The audience attribute that should be intersected with all other
   * eligible audiences.  This must be an Affinity or In-Market UserInterest, an
   * AgeRange or a Gender.
   * 
* * .google.ads.googleads.v17.services.AudienceInsightsAttribute primary_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the primaryAttribute field is set. */ @java.lang.Override public boolean hasPrimaryAttribute() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Required. The audience attribute that should be intersected with all other
   * eligible audiences.  This must be an Affinity or In-Market UserInterest, an
   * AgeRange or a Gender.
   * 
* * .google.ads.googleads.v17.services.AudienceInsightsAttribute primary_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The primaryAttribute. */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsAttribute getPrimaryAttribute() { return primaryAttribute_ == null ? com.google.ads.googleads.v17.services.AudienceInsightsAttribute.getDefaultInstance() : primaryAttribute_; } /** *
   * Required. The audience attribute that should be intersected with all other
   * eligible audiences.  This must be an Affinity or In-Market UserInterest, an
   * AgeRange or a Gender.
   * 
* * .google.ads.googleads.v17.services.AudienceInsightsAttribute primary_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsAttributeOrBuilder getPrimaryAttributeOrBuilder() { return primaryAttribute_ == null ? com.google.ads.googleads.v17.services.AudienceInsightsAttribute.getDefaultInstance() : primaryAttribute_; } 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.AudienceInsightsDimensionEnum.AudienceInsightsDimension> dimensions_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension>() { public com.google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension convert(java.lang.Integer from) { com.google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension result = com.google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension.forNumber(from); return result == null ? com.google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension.UNRECOGNIZED : result; } }; /** *
   * Required. The types of attributes of which to calculate the overlap with
   * the primary_attribute. The values must be a subset of
   * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
   * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @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.AudienceInsightsDimensionEnum.AudienceInsightsDimension>(dimensions_, dimensions_converter_); } /** *
   * Required. The types of attributes of which to calculate the overlap with
   * the primary_attribute. The values must be a subset of
   * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
   * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The count of dimensions. */ @java.lang.Override public int getDimensionsCount() { return dimensions_.size(); } /** *
   * Required. The types of attributes of which to calculate the overlap with
   * the primary_attribute. The values must be a subset of
   * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
   * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @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.AudienceInsightsDimensionEnum.AudienceInsightsDimension getDimensions(int index) { return dimensions_converter_.convert(dimensions_.get(index)); } /** *
   * Required. The types of attributes of which to calculate the overlap with
   * the primary_attribute. The values must be a subset of
   * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
   * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the enum numeric values on the wire for dimensions. */ @java.lang.Override public java.util.List getDimensionsValueList() { return dimensions_; } /** *
   * Required. The types of attributes of which to calculate the overlap with
   * the primary_attribute. The values must be a subset of
   * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
   * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @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 CUSTOMER_INSIGHTS_GROUP_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object customerInsightsGroup_ = ""; /** *
   * The name of the customer being planned for.  This is a user-defined value.
   * 
* * string customer_insights_group = 5; * @return The customerInsightsGroup. */ @java.lang.Override public java.lang.String getCustomerInsightsGroup() { java.lang.Object ref = customerInsightsGroup_; 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(); customerInsightsGroup_ = s; return s; } } /** *
   * The name of the customer being planned for.  This is a user-defined value.
   * 
* * string customer_insights_group = 5; * @return The bytes for customerInsightsGroup. */ @java.lang.Override public com.google.protobuf.ByteString getCustomerInsightsGroupBytes() { java.lang.Object ref = customerInsightsGroup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customerInsightsGroup_ = 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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customerId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCountryLocation()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getPrimaryAttribute()); } 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(customerInsightsGroup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, customerInsightsGroup_); } 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(customerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, customerId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCountryLocation()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPrimaryAttribute()); } { 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(customerInsightsGroup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, customerInsightsGroup_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest)) { return super.equals(obj); } com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest other = (com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest) obj; if (!getCustomerId() .equals(other.getCustomerId())) return false; if (hasCountryLocation() != other.hasCountryLocation()) return false; if (hasCountryLocation()) { if (!getCountryLocation() .equals(other.getCountryLocation())) return false; } if (hasPrimaryAttribute() != other.hasPrimaryAttribute()) return false; if (hasPrimaryAttribute()) { if (!getPrimaryAttribute() .equals(other.getPrimaryAttribute())) return false; } if (!dimensions_.equals(other.dimensions_)) return false; if (!getCustomerInsightsGroup() .equals(other.getCustomerInsightsGroup())) 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) + CUSTOMER_ID_FIELD_NUMBER; hash = (53 * hash) + getCustomerId().hashCode(); if (hasCountryLocation()) { hash = (37 * hash) + COUNTRY_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getCountryLocation().hashCode(); } if (hasPrimaryAttribute()) { hash = (37 * hash) + PRIMARY_ATTRIBUTE_FIELD_NUMBER; hash = (53 * hash) + getPrimaryAttribute().hashCode(); } if (getDimensionsCount() > 0) { hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; hash = (53 * hash) + dimensions_.hashCode(); } hash = (37 * hash) + CUSTOMER_INSIGHTS_GROUP_FIELD_NUMBER; hash = (53 * hash) + getCustomerInsightsGroup().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest 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; } /** *
   * Request message for
   * [AudienceInsightsService.GenerateAudienceOverlapInsights][google.ads.googleads.v17.services.AudienceInsightsService.GenerateAudienceOverlapInsights].
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest) com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_GenerateAudienceOverlapInsightsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_GenerateAudienceOverlapInsightsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest.class, com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest.Builder.class); } // Construct using com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCountryLocationFieldBuilder(); getPrimaryAttributeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; customerId_ = ""; countryLocation_ = null; if (countryLocationBuilder_ != null) { countryLocationBuilder_.dispose(); countryLocationBuilder_ = null; } primaryAttribute_ = null; if (primaryAttributeBuilder_ != null) { primaryAttributeBuilder_.dispose(); primaryAttributeBuilder_ = null; } dimensions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); customerInsightsGroup_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_GenerateAudienceOverlapInsightsRequest_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest build() { com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest buildPartial() { com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest result = new com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest result) { if (((bitField0_ & 0x00000008) != 0)) { dimensions_ = java.util.Collections.unmodifiableList(dimensions_); bitField0_ = (bitField0_ & ~0x00000008); } result.dimensions_ = dimensions_; } private void buildPartial0(com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.customerId_ = customerId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.countryLocation_ = countryLocationBuilder_ == null ? countryLocation_ : countryLocationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.primaryAttribute_ = primaryAttributeBuilder_ == null ? primaryAttribute_ : primaryAttributeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.customerInsightsGroup_ = customerInsightsGroup_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest) { return mergeFrom((com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest other) { if (other == com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest.getDefaultInstance()) return this; if (!other.getCustomerId().isEmpty()) { customerId_ = other.customerId_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasCountryLocation()) { mergeCountryLocation(other.getCountryLocation()); } if (other.hasPrimaryAttribute()) { mergePrimaryAttribute(other.getPrimaryAttribute()); } if (!other.dimensions_.isEmpty()) { if (dimensions_.isEmpty()) { dimensions_ = other.dimensions_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDimensionsIsMutable(); dimensions_.addAll(other.dimensions_); } onChanged(); } if (!other.getCustomerInsightsGroup().isEmpty()) { customerInsightsGroup_ = other.customerInsightsGroup_; bitField0_ |= 0x00000010; 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: { customerId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getCountryLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getPrimaryAttributeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; 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: { customerInsightsGroup_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 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 customerId_ = ""; /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customerId. */ public java.lang.String getCustomerId() { java.lang.Object ref = customerId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for customerId. */ public com.google.protobuf.ByteString getCustomerIdBytes() { java.lang.Object ref = customerId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The customerId to set. * @return This builder for chaining. */ public Builder setCustomerId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } customerId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearCustomerId() { customerId_ = getDefaultInstance().getCustomerId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for customerId to set. * @return This builder for chaining. */ public Builder setCustomerIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customerId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.ads.googleads.v17.common.LocationInfo countryLocation_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.LocationInfo, com.google.ads.googleads.v17.common.LocationInfo.Builder, com.google.ads.googleads.v17.common.LocationInfoOrBuilder> countryLocationBuilder_; /** *
     * Required. The country in which to calculate the sizes and overlaps of
     * audiences.
     * 
* * .google.ads.googleads.v17.common.LocationInfo country_location = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the countryLocation field is set. */ public boolean hasCountryLocation() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Required. The country in which to calculate the sizes and overlaps of
     * audiences.
     * 
* * .google.ads.googleads.v17.common.LocationInfo country_location = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The countryLocation. */ public com.google.ads.googleads.v17.common.LocationInfo getCountryLocation() { if (countryLocationBuilder_ == null) { return countryLocation_ == null ? com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance() : countryLocation_; } else { return countryLocationBuilder_.getMessage(); } } /** *
     * Required. The country in which to calculate the sizes and overlaps of
     * audiences.
     * 
* * .google.ads.googleads.v17.common.LocationInfo country_location = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCountryLocation(com.google.ads.googleads.v17.common.LocationInfo value) { if (countryLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } countryLocation_ = value; } else { countryLocationBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Required. The country in which to calculate the sizes and overlaps of
     * audiences.
     * 
* * .google.ads.googleads.v17.common.LocationInfo country_location = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCountryLocation( com.google.ads.googleads.v17.common.LocationInfo.Builder builderForValue) { if (countryLocationBuilder_ == null) { countryLocation_ = builderForValue.build(); } else { countryLocationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Required. The country in which to calculate the sizes and overlaps of
     * audiences.
     * 
* * .google.ads.googleads.v17.common.LocationInfo country_location = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCountryLocation(com.google.ads.googleads.v17.common.LocationInfo value) { if (countryLocationBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && countryLocation_ != null && countryLocation_ != com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance()) { getCountryLocationBuilder().mergeFrom(value); } else { countryLocation_ = value; } } else { countryLocationBuilder_.mergeFrom(value); } if (countryLocation_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * Required. The country in which to calculate the sizes and overlaps of
     * audiences.
     * 
* * .google.ads.googleads.v17.common.LocationInfo country_location = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCountryLocation() { bitField0_ = (bitField0_ & ~0x00000002); countryLocation_ = null; if (countryLocationBuilder_ != null) { countryLocationBuilder_.dispose(); countryLocationBuilder_ = null; } onChanged(); return this; } /** *
     * Required. The country in which to calculate the sizes and overlaps of
     * audiences.
     * 
* * .google.ads.googleads.v17.common.LocationInfo country_location = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v17.common.LocationInfo.Builder getCountryLocationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCountryLocationFieldBuilder().getBuilder(); } /** *
     * Required. The country in which to calculate the sizes and overlaps of
     * audiences.
     * 
* * .google.ads.googleads.v17.common.LocationInfo country_location = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v17.common.LocationInfoOrBuilder getCountryLocationOrBuilder() { if (countryLocationBuilder_ != null) { return countryLocationBuilder_.getMessageOrBuilder(); } else { return countryLocation_ == null ? com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance() : countryLocation_; } } /** *
     * Required. The country in which to calculate the sizes and overlaps of
     * audiences.
     * 
* * .google.ads.googleads.v17.common.LocationInfo country_location = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.LocationInfo, com.google.ads.googleads.v17.common.LocationInfo.Builder, com.google.ads.googleads.v17.common.LocationInfoOrBuilder> getCountryLocationFieldBuilder() { if (countryLocationBuilder_ == null) { countryLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.LocationInfo, com.google.ads.googleads.v17.common.LocationInfo.Builder, com.google.ads.googleads.v17.common.LocationInfoOrBuilder>( getCountryLocation(), getParentForChildren(), isClean()); countryLocation_ = null; } return countryLocationBuilder_; } private com.google.ads.googleads.v17.services.AudienceInsightsAttribute primaryAttribute_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsAttribute, com.google.ads.googleads.v17.services.AudienceInsightsAttribute.Builder, com.google.ads.googleads.v17.services.AudienceInsightsAttributeOrBuilder> primaryAttributeBuilder_; /** *
     * Required. The audience attribute that should be intersected with all other
     * eligible audiences.  This must be an Affinity or In-Market UserInterest, an
     * AgeRange or a Gender.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsAttribute primary_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the primaryAttribute field is set. */ public boolean hasPrimaryAttribute() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Required. The audience attribute that should be intersected with all other
     * eligible audiences.  This must be an Affinity or In-Market UserInterest, an
     * AgeRange or a Gender.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsAttribute primary_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The primaryAttribute. */ public com.google.ads.googleads.v17.services.AudienceInsightsAttribute getPrimaryAttribute() { if (primaryAttributeBuilder_ == null) { return primaryAttribute_ == null ? com.google.ads.googleads.v17.services.AudienceInsightsAttribute.getDefaultInstance() : primaryAttribute_; } else { return primaryAttributeBuilder_.getMessage(); } } /** *
     * Required. The audience attribute that should be intersected with all other
     * eligible audiences.  This must be an Affinity or In-Market UserInterest, an
     * AgeRange or a Gender.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsAttribute primary_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPrimaryAttribute(com.google.ads.googleads.v17.services.AudienceInsightsAttribute value) { if (primaryAttributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } primaryAttribute_ = value; } else { primaryAttributeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Required. The audience attribute that should be intersected with all other
     * eligible audiences.  This must be an Affinity or In-Market UserInterest, an
     * AgeRange or a Gender.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsAttribute primary_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPrimaryAttribute( com.google.ads.googleads.v17.services.AudienceInsightsAttribute.Builder builderForValue) { if (primaryAttributeBuilder_ == null) { primaryAttribute_ = builderForValue.build(); } else { primaryAttributeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Required. The audience attribute that should be intersected with all other
     * eligible audiences.  This must be an Affinity or In-Market UserInterest, an
     * AgeRange or a Gender.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsAttribute primary_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePrimaryAttribute(com.google.ads.googleads.v17.services.AudienceInsightsAttribute value) { if (primaryAttributeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && primaryAttribute_ != null && primaryAttribute_ != com.google.ads.googleads.v17.services.AudienceInsightsAttribute.getDefaultInstance()) { getPrimaryAttributeBuilder().mergeFrom(value); } else { primaryAttribute_ = value; } } else { primaryAttributeBuilder_.mergeFrom(value); } if (primaryAttribute_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * Required. The audience attribute that should be intersected with all other
     * eligible audiences.  This must be an Affinity or In-Market UserInterest, an
     * AgeRange or a Gender.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsAttribute primary_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPrimaryAttribute() { bitField0_ = (bitField0_ & ~0x00000004); primaryAttribute_ = null; if (primaryAttributeBuilder_ != null) { primaryAttributeBuilder_.dispose(); primaryAttributeBuilder_ = null; } onChanged(); return this; } /** *
     * Required. The audience attribute that should be intersected with all other
     * eligible audiences.  This must be an Affinity or In-Market UserInterest, an
     * AgeRange or a Gender.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsAttribute primary_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v17.services.AudienceInsightsAttribute.Builder getPrimaryAttributeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPrimaryAttributeFieldBuilder().getBuilder(); } /** *
     * Required. The audience attribute that should be intersected with all other
     * eligible audiences.  This must be an Affinity or In-Market UserInterest, an
     * AgeRange or a Gender.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsAttribute primary_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v17.services.AudienceInsightsAttributeOrBuilder getPrimaryAttributeOrBuilder() { if (primaryAttributeBuilder_ != null) { return primaryAttributeBuilder_.getMessageOrBuilder(); } else { return primaryAttribute_ == null ? com.google.ads.googleads.v17.services.AudienceInsightsAttribute.getDefaultInstance() : primaryAttribute_; } } /** *
     * Required. The audience attribute that should be intersected with all other
     * eligible audiences.  This must be an Affinity or In-Market UserInterest, an
     * AgeRange or a Gender.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsAttribute primary_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsAttribute, com.google.ads.googleads.v17.services.AudienceInsightsAttribute.Builder, com.google.ads.googleads.v17.services.AudienceInsightsAttributeOrBuilder> getPrimaryAttributeFieldBuilder() { if (primaryAttributeBuilder_ == null) { primaryAttributeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsAttribute, com.google.ads.googleads.v17.services.AudienceInsightsAttribute.Builder, com.google.ads.googleads.v17.services.AudienceInsightsAttributeOrBuilder>( getPrimaryAttribute(), getParentForChildren(), isClean()); primaryAttribute_ = null; } return primaryAttributeBuilder_; } private java.util.List dimensions_ = java.util.Collections.emptyList(); private void ensureDimensionsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { dimensions_ = new java.util.ArrayList(dimensions_); bitField0_ |= 0x00000008; } } /** *
     * Required. The types of attributes of which to calculate the overlap with
     * the primary_attribute. The values must be a subset of
     * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
     * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @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.AudienceInsightsDimensionEnum.AudienceInsightsDimension>(dimensions_, dimensions_converter_); } /** *
     * Required. The types of attributes of which to calculate the overlap with
     * the primary_attribute. The values must be a subset of
     * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
     * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The count of dimensions. */ public int getDimensionsCount() { return dimensions_.size(); } /** *
     * Required. The types of attributes of which to calculate the overlap with
     * the primary_attribute. The values must be a subset of
     * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
     * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The dimensions at the given index. */ public com.google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension getDimensions(int index) { return dimensions_converter_.convert(dimensions_.get(index)); } /** *
     * Required. The types of attributes of which to calculate the overlap with
     * the primary_attribute. The values must be a subset of
     * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
     * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @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.AudienceInsightsDimensionEnum.AudienceInsightsDimension value) { if (value == null) { throw new NullPointerException(); } ensureDimensionsIsMutable(); dimensions_.set(index, value.getNumber()); onChanged(); return this; } /** *
     * Required. The types of attributes of which to calculate the overlap with
     * the primary_attribute. The values must be a subset of
     * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
     * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @param value The dimensions to add. * @return This builder for chaining. */ public Builder addDimensions(com.google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension value) { if (value == null) { throw new NullPointerException(); } ensureDimensionsIsMutable(); dimensions_.add(value.getNumber()); onChanged(); return this; } /** *
     * Required. The types of attributes of which to calculate the overlap with
     * the primary_attribute. The values must be a subset of
     * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
     * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @param values The dimensions to add. * @return This builder for chaining. */ public Builder addAllDimensions( java.lang.Iterable values) { ensureDimensionsIsMutable(); for (com.google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension value : values) { dimensions_.add(value.getNumber()); } onChanged(); return this; } /** *
     * Required. The types of attributes of which to calculate the overlap with
     * the primary_attribute. The values must be a subset of
     * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
     * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearDimensions() { dimensions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * Required. The types of attributes of which to calculate the overlap with
     * the primary_attribute. The values must be a subset of
     * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
     * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the enum numeric values on the wire for dimensions. */ public java.util.List getDimensionsValueList() { return java.util.Collections.unmodifiableList(dimensions_); } /** *
     * Required. The types of attributes of which to calculate the overlap with
     * the primary_attribute. The values must be a subset of
     * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
     * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @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); } /** *
     * Required. The types of attributes of which to calculate the overlap with
     * the primary_attribute. The values must be a subset of
     * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
     * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @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; } /** *
     * Required. The types of attributes of which to calculate the overlap with
     * the primary_attribute. The values must be a subset of
     * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
     * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @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; } /** *
     * Required. The types of attributes of which to calculate the overlap with
     * the primary_attribute. The values must be a subset of
     * AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER.
     * 
* * repeated .google.ads.googleads.v17.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; * @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 customerInsightsGroup_ = ""; /** *
     * The name of the customer being planned for.  This is a user-defined value.
     * 
* * string customer_insights_group = 5; * @return The customerInsightsGroup. */ public java.lang.String getCustomerInsightsGroup() { java.lang.Object ref = customerInsightsGroup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerInsightsGroup_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name of the customer being planned for.  This is a user-defined value.
     * 
* * string customer_insights_group = 5; * @return The bytes for customerInsightsGroup. */ public com.google.protobuf.ByteString getCustomerInsightsGroupBytes() { java.lang.Object ref = customerInsightsGroup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customerInsightsGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name of the customer being planned for.  This is a user-defined value.
     * 
* * string customer_insights_group = 5; * @param value The customerInsightsGroup to set. * @return This builder for chaining. */ public Builder setCustomerInsightsGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } customerInsightsGroup_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The name of the customer being planned for.  This is a user-defined value.
     * 
* * string customer_insights_group = 5; * @return This builder for chaining. */ public Builder clearCustomerInsightsGroup() { customerInsightsGroup_ = getDefaultInstance().getCustomerInsightsGroup(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * The name of the customer being planned for.  This is a user-defined value.
     * 
* * string customer_insights_group = 5; * @param value The bytes for customerInsightsGroup to set. * @return This builder for chaining. */ public Builder setCustomerInsightsGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customerInsightsGroup_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest) private static final com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest(); } public static com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GenerateAudienceOverlapInsightsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy