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

com.google.ads.googleads.v18.services.InsightsAudienceDescription Maven / Gradle / Ivy

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

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

/**
 * 
 * A text description of the audience of interest for which insights are being
 * requested in AudienceInsightsService.
 * 
* * Protobuf type {@code google.ads.googleads.v18.services.InsightsAudienceDescription} */ public final class InsightsAudienceDescription extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v18.services.InsightsAudienceDescription) InsightsAudienceDescriptionOrBuilder { private static final long serialVersionUID = 0L; // Use InsightsAudienceDescription.newBuilder() to construct. private InsightsAudienceDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InsightsAudienceDescription() { countryLocations_ = java.util.Collections.emptyList(); audienceDescription_ = ""; marketingObjective_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InsightsAudienceDescription(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v18_services_InsightsAudienceDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v18_services_InsightsAudienceDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.services.InsightsAudienceDescription.class, com.google.ads.googleads.v18.services.InsightsAudienceDescription.Builder.class); } public static final int COUNTRY_LOCATIONS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List countryLocations_; /** *
   * Required. The countries for the audience.
   * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getCountryLocationsList() { return countryLocations_; } /** *
   * Required. The countries for the audience.
   * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getCountryLocationsOrBuilderList() { return countryLocations_; } /** *
   * Required. The countries for the audience.
   * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getCountryLocationsCount() { return countryLocations_.size(); } /** *
   * Required. The countries for the audience.
   * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.ads.googleads.v18.common.LocationInfo getCountryLocations(int index) { return countryLocations_.get(index); } /** *
   * Required. The countries for the audience.
   * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.ads.googleads.v18.common.LocationInfoOrBuilder getCountryLocationsOrBuilder( int index) { return countryLocations_.get(index); } public static final int AUDIENCE_DESCRIPTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object audienceDescription_ = ""; /** *
   * Required. An English language text description of an audience to get
   * suggestions for. Maximum length is 2000 characters. For example, "Women in
   * their 30s who love to travel".
   * 
* * string audience_description = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audienceDescription. */ @java.lang.Override public java.lang.String getAudienceDescription() { java.lang.Object ref = audienceDescription_; 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(); audienceDescription_ = s; return s; } } /** *
   * Required. An English language text description of an audience to get
   * suggestions for. Maximum length is 2000 characters. For example, "Women in
   * their 30s who love to travel".
   * 
* * string audience_description = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for audienceDescription. */ @java.lang.Override public com.google.protobuf.ByteString getAudienceDescriptionBytes() { java.lang.Object ref = audienceDescription_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); audienceDescription_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MARKETING_OBJECTIVE_FIELD_NUMBER = 3; private int marketingObjective_ = 0; /** *
   * Optional. An optional marketing objective which will influence the type of
   * suggestions produced. AWARENESS will provide affinity audience segments,
   * while CONSIDERATION will provide in-market audience segments. Leaving it
   * unset will provide both.
   * 
* * .google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective marketing_objective = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for marketingObjective. */ @java.lang.Override public int getMarketingObjectiveValue() { return marketingObjective_; } /** *
   * Optional. An optional marketing objective which will influence the type of
   * suggestions produced. AWARENESS will provide affinity audience segments,
   * while CONSIDERATION will provide in-market audience segments. Leaving it
   * unset will provide both.
   * 
* * .google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective marketing_objective = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The marketingObjective. */ @java.lang.Override public com.google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective getMarketingObjective() { com.google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective result = com.google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective.forNumber(marketingObjective_); return result == null ? com.google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < countryLocations_.size(); i++) { output.writeMessage(1, countryLocations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audienceDescription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audienceDescription_); } if (marketingObjective_ != com.google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective.UNSPECIFIED.getNumber()) { output.writeEnum(3, marketingObjective_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < countryLocations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, countryLocations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audienceDescription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audienceDescription_); } if (marketingObjective_ != com.google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, marketingObjective_); } 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.v18.services.InsightsAudienceDescription)) { return super.equals(obj); } com.google.ads.googleads.v18.services.InsightsAudienceDescription other = (com.google.ads.googleads.v18.services.InsightsAudienceDescription) obj; if (!getCountryLocationsList() .equals(other.getCountryLocationsList())) return false; if (!getAudienceDescription() .equals(other.getAudienceDescription())) return false; if (marketingObjective_ != other.marketingObjective_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getCountryLocationsCount() > 0) { hash = (37 * hash) + COUNTRY_LOCATIONS_FIELD_NUMBER; hash = (53 * hash) + getCountryLocationsList().hashCode(); } hash = (37 * hash) + AUDIENCE_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getAudienceDescription().hashCode(); hash = (37 * hash) + MARKETING_OBJECTIVE_FIELD_NUMBER; hash = (53 * hash) + marketingObjective_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v18.services.InsightsAudienceDescription parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.services.InsightsAudienceDescription 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.v18.services.InsightsAudienceDescription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.services.InsightsAudienceDescription 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.v18.services.InsightsAudienceDescription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.services.InsightsAudienceDescription parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.services.InsightsAudienceDescription parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.services.InsightsAudienceDescription 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.v18.services.InsightsAudienceDescription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.services.InsightsAudienceDescription 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.v18.services.InsightsAudienceDescription parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.services.InsightsAudienceDescription 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.v18.services.InsightsAudienceDescription 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 text description of the audience of interest for which insights are being
   * requested in AudienceInsightsService.
   * 
* * Protobuf type {@code google.ads.googleads.v18.services.InsightsAudienceDescription} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.services.InsightsAudienceDescription) com.google.ads.googleads.v18.services.InsightsAudienceDescriptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v18_services_InsightsAudienceDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v18_services_InsightsAudienceDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.services.InsightsAudienceDescription.class, com.google.ads.googleads.v18.services.InsightsAudienceDescription.Builder.class); } // Construct using com.google.ads.googleads.v18.services.InsightsAudienceDescription.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (countryLocationsBuilder_ == null) { countryLocations_ = java.util.Collections.emptyList(); } else { countryLocations_ = null; countryLocationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); audienceDescription_ = ""; marketingObjective_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v18.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v18_services_InsightsAudienceDescription_descriptor; } @java.lang.Override public com.google.ads.googleads.v18.services.InsightsAudienceDescription getDefaultInstanceForType() { return com.google.ads.googleads.v18.services.InsightsAudienceDescription.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v18.services.InsightsAudienceDescription build() { com.google.ads.googleads.v18.services.InsightsAudienceDescription result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v18.services.InsightsAudienceDescription buildPartial() { com.google.ads.googleads.v18.services.InsightsAudienceDescription result = new com.google.ads.googleads.v18.services.InsightsAudienceDescription(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v18.services.InsightsAudienceDescription result) { if (countryLocationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { countryLocations_ = java.util.Collections.unmodifiableList(countryLocations_); bitField0_ = (bitField0_ & ~0x00000001); } result.countryLocations_ = countryLocations_; } else { result.countryLocations_ = countryLocationsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v18.services.InsightsAudienceDescription result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.audienceDescription_ = audienceDescription_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.marketingObjective_ = marketingObjective_; } } @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.v18.services.InsightsAudienceDescription) { return mergeFrom((com.google.ads.googleads.v18.services.InsightsAudienceDescription)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v18.services.InsightsAudienceDescription other) { if (other == com.google.ads.googleads.v18.services.InsightsAudienceDescription.getDefaultInstance()) return this; if (countryLocationsBuilder_ == null) { if (!other.countryLocations_.isEmpty()) { if (countryLocations_.isEmpty()) { countryLocations_ = other.countryLocations_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCountryLocationsIsMutable(); countryLocations_.addAll(other.countryLocations_); } onChanged(); } } else { if (!other.countryLocations_.isEmpty()) { if (countryLocationsBuilder_.isEmpty()) { countryLocationsBuilder_.dispose(); countryLocationsBuilder_ = null; countryLocations_ = other.countryLocations_; bitField0_ = (bitField0_ & ~0x00000001); countryLocationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCountryLocationsFieldBuilder() : null; } else { countryLocationsBuilder_.addAllMessages(other.countryLocations_); } } } if (!other.getAudienceDescription().isEmpty()) { audienceDescription_ = other.audienceDescription_; bitField0_ |= 0x00000002; onChanged(); } if (other.marketingObjective_ != 0) { setMarketingObjectiveValue(other.getMarketingObjectiveValue()); } 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: { com.google.ads.googleads.v18.common.LocationInfo m = input.readMessage( com.google.ads.googleads.v18.common.LocationInfo.parser(), extensionRegistry); if (countryLocationsBuilder_ == null) { ensureCountryLocationsIsMutable(); countryLocations_.add(m); } else { countryLocationsBuilder_.addMessage(m); } break; } // case 10 case 18: { audienceDescription_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { marketingObjective_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 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.util.List countryLocations_ = java.util.Collections.emptyList(); private void ensureCountryLocationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { countryLocations_ = new java.util.ArrayList(countryLocations_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.common.LocationInfo, com.google.ads.googleads.v18.common.LocationInfo.Builder, com.google.ads.googleads.v18.common.LocationInfoOrBuilder> countryLocationsBuilder_; /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getCountryLocationsList() { if (countryLocationsBuilder_ == null) { return java.util.Collections.unmodifiableList(countryLocations_); } else { return countryLocationsBuilder_.getMessageList(); } } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getCountryLocationsCount() { if (countryLocationsBuilder_ == null) { return countryLocations_.size(); } else { return countryLocationsBuilder_.getCount(); } } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v18.common.LocationInfo getCountryLocations(int index) { if (countryLocationsBuilder_ == null) { return countryLocations_.get(index); } else { return countryLocationsBuilder_.getMessage(index); } } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCountryLocations( int index, com.google.ads.googleads.v18.common.LocationInfo value) { if (countryLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCountryLocationsIsMutable(); countryLocations_.set(index, value); onChanged(); } else { countryLocationsBuilder_.setMessage(index, value); } return this; } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCountryLocations( int index, com.google.ads.googleads.v18.common.LocationInfo.Builder builderForValue) { if (countryLocationsBuilder_ == null) { ensureCountryLocationsIsMutable(); countryLocations_.set(index, builderForValue.build()); onChanged(); } else { countryLocationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addCountryLocations(com.google.ads.googleads.v18.common.LocationInfo value) { if (countryLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCountryLocationsIsMutable(); countryLocations_.add(value); onChanged(); } else { countryLocationsBuilder_.addMessage(value); } return this; } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addCountryLocations( int index, com.google.ads.googleads.v18.common.LocationInfo value) { if (countryLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCountryLocationsIsMutable(); countryLocations_.add(index, value); onChanged(); } else { countryLocationsBuilder_.addMessage(index, value); } return this; } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addCountryLocations( com.google.ads.googleads.v18.common.LocationInfo.Builder builderForValue) { if (countryLocationsBuilder_ == null) { ensureCountryLocationsIsMutable(); countryLocations_.add(builderForValue.build()); onChanged(); } else { countryLocationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addCountryLocations( int index, com.google.ads.googleads.v18.common.LocationInfo.Builder builderForValue) { if (countryLocationsBuilder_ == null) { ensureCountryLocationsIsMutable(); countryLocations_.add(index, builderForValue.build()); onChanged(); } else { countryLocationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllCountryLocations( java.lang.Iterable values) { if (countryLocationsBuilder_ == null) { ensureCountryLocationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, countryLocations_); onChanged(); } else { countryLocationsBuilder_.addAllMessages(values); } return this; } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCountryLocations() { if (countryLocationsBuilder_ == null) { countryLocations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { countryLocationsBuilder_.clear(); } return this; } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeCountryLocations(int index) { if (countryLocationsBuilder_ == null) { ensureCountryLocationsIsMutable(); countryLocations_.remove(index); onChanged(); } else { countryLocationsBuilder_.remove(index); } return this; } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v18.common.LocationInfo.Builder getCountryLocationsBuilder( int index) { return getCountryLocationsFieldBuilder().getBuilder(index); } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v18.common.LocationInfoOrBuilder getCountryLocationsOrBuilder( int index) { if (countryLocationsBuilder_ == null) { return countryLocations_.get(index); } else { return countryLocationsBuilder_.getMessageOrBuilder(index); } } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getCountryLocationsOrBuilderList() { if (countryLocationsBuilder_ != null) { return countryLocationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(countryLocations_); } } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v18.common.LocationInfo.Builder addCountryLocationsBuilder() { return getCountryLocationsFieldBuilder().addBuilder( com.google.ads.googleads.v18.common.LocationInfo.getDefaultInstance()); } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v18.common.LocationInfo.Builder addCountryLocationsBuilder( int index) { return getCountryLocationsFieldBuilder().addBuilder( index, com.google.ads.googleads.v18.common.LocationInfo.getDefaultInstance()); } /** *
     * Required. The countries for the audience.
     * 
* * repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getCountryLocationsBuilderList() { return getCountryLocationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.common.LocationInfo, com.google.ads.googleads.v18.common.LocationInfo.Builder, com.google.ads.googleads.v18.common.LocationInfoOrBuilder> getCountryLocationsFieldBuilder() { if (countryLocationsBuilder_ == null) { countryLocationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.common.LocationInfo, com.google.ads.googleads.v18.common.LocationInfo.Builder, com.google.ads.googleads.v18.common.LocationInfoOrBuilder>( countryLocations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); countryLocations_ = null; } return countryLocationsBuilder_; } private java.lang.Object audienceDescription_ = ""; /** *
     * Required. An English language text description of an audience to get
     * suggestions for. Maximum length is 2000 characters. For example, "Women in
     * their 30s who love to travel".
     * 
* * string audience_description = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audienceDescription. */ public java.lang.String getAudienceDescription() { java.lang.Object ref = audienceDescription_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); audienceDescription_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. An English language text description of an audience to get
     * suggestions for. Maximum length is 2000 characters. For example, "Women in
     * their 30s who love to travel".
     * 
* * string audience_description = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for audienceDescription. */ public com.google.protobuf.ByteString getAudienceDescriptionBytes() { java.lang.Object ref = audienceDescription_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); audienceDescription_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. An English language text description of an audience to get
     * suggestions for. Maximum length is 2000 characters. For example, "Women in
     * their 30s who love to travel".
     * 
* * string audience_description = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The audienceDescription to set. * @return This builder for chaining. */ public Builder setAudienceDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } audienceDescription_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Required. An English language text description of an audience to get
     * suggestions for. Maximum length is 2000 characters. For example, "Women in
     * their 30s who love to travel".
     * 
* * string audience_description = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAudienceDescription() { audienceDescription_ = getDefaultInstance().getAudienceDescription(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Required. An English language text description of an audience to get
     * suggestions for. Maximum length is 2000 characters. For example, "Women in
     * their 30s who love to travel".
     * 
* * string audience_description = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for audienceDescription to set. * @return This builder for chaining. */ public Builder setAudienceDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); audienceDescription_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int marketingObjective_ = 0; /** *
     * Optional. An optional marketing objective which will influence the type of
     * suggestions produced. AWARENESS will provide affinity audience segments,
     * while CONSIDERATION will provide in-market audience segments. Leaving it
     * unset will provide both.
     * 
* * .google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective marketing_objective = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for marketingObjective. */ @java.lang.Override public int getMarketingObjectiveValue() { return marketingObjective_; } /** *
     * Optional. An optional marketing objective which will influence the type of
     * suggestions produced. AWARENESS will provide affinity audience segments,
     * while CONSIDERATION will provide in-market audience segments. Leaving it
     * unset will provide both.
     * 
* * .google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective marketing_objective = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for marketingObjective to set. * @return This builder for chaining. */ public Builder setMarketingObjectiveValue(int value) { marketingObjective_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Optional. An optional marketing objective which will influence the type of
     * suggestions produced. AWARENESS will provide affinity audience segments,
     * while CONSIDERATION will provide in-market audience segments. Leaving it
     * unset will provide both.
     * 
* * .google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective marketing_objective = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The marketingObjective. */ @java.lang.Override public com.google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective getMarketingObjective() { com.google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective result = com.google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective.forNumber(marketingObjective_); return result == null ? com.google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective.UNRECOGNIZED : result; } /** *
     * Optional. An optional marketing objective which will influence the type of
     * suggestions produced. AWARENESS will provide affinity audience segments,
     * while CONSIDERATION will provide in-market audience segments. Leaving it
     * unset will provide both.
     * 
* * .google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective marketing_objective = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The marketingObjective to set. * @return This builder for chaining. */ public Builder setMarketingObjective(com.google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; marketingObjective_ = value.getNumber(); onChanged(); return this; } /** *
     * Optional. An optional marketing objective which will influence the type of
     * suggestions produced. AWARENESS will provide affinity audience segments,
     * while CONSIDERATION will provide in-market audience segments. Leaving it
     * unset will provide both.
     * 
* * .google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective marketing_objective = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearMarketingObjective() { bitField0_ = (bitField0_ & ~0x00000004); marketingObjective_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v18.services.InsightsAudienceDescription) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v18.services.InsightsAudienceDescription) private static final com.google.ads.googleads.v18.services.InsightsAudienceDescription DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v18.services.InsightsAudienceDescription(); } public static com.google.ads.googleads.v18.services.InsightsAudienceDescription getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InsightsAudienceDescription 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.v18.services.InsightsAudienceDescription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy