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

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

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

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

/**
 * 
 * Advanced targeting settings for products.
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.AdvancedProductTargeting} */ public final class AdvancedProductTargeting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.AdvancedProductTargeting) AdvancedProductTargetingOrBuilder { private static final long serialVersionUID = 0L; // Use AdvancedProductTargeting.newBuilder() to construct. private AdvancedProductTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AdvancedProductTargeting() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AdvancedProductTargeting(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_AdvancedProductTargeting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_AdvancedProductTargeting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.AdvancedProductTargeting.class, com.google.ads.googleads.v17.services.AdvancedProductTargeting.Builder.class); } private int bitField0_; private int advancedTargetingCase_ = 0; @SuppressWarnings("serial") private java.lang.Object advancedTargeting_; public enum AdvancedTargetingCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { YOUTUBE_SELECT_SETTINGS(1), ADVANCEDTARGETING_NOT_SET(0); private final int value; private AdvancedTargetingCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AdvancedTargetingCase valueOf(int value) { return forNumber(value); } public static AdvancedTargetingCase forNumber(int value) { switch (value) { case 1: return YOUTUBE_SELECT_SETTINGS; case 0: return ADVANCEDTARGETING_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public AdvancedTargetingCase getAdvancedTargetingCase() { return AdvancedTargetingCase.forNumber( advancedTargetingCase_); } public static final int SURFACE_TARGETING_SETTINGS_FIELD_NUMBER = 2; private com.google.ads.googleads.v17.services.SurfaceTargeting surfaceTargetingSettings_; /** *
   * Surface targeting settings for this product.
   * 
* * .google.ads.googleads.v17.services.SurfaceTargeting surface_targeting_settings = 2; * @return Whether the surfaceTargetingSettings field is set. */ @java.lang.Override public boolean hasSurfaceTargetingSettings() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Surface targeting settings for this product.
   * 
* * .google.ads.googleads.v17.services.SurfaceTargeting surface_targeting_settings = 2; * @return The surfaceTargetingSettings. */ @java.lang.Override public com.google.ads.googleads.v17.services.SurfaceTargeting getSurfaceTargetingSettings() { return surfaceTargetingSettings_ == null ? com.google.ads.googleads.v17.services.SurfaceTargeting.getDefaultInstance() : surfaceTargetingSettings_; } /** *
   * Surface targeting settings for this product.
   * 
* * .google.ads.googleads.v17.services.SurfaceTargeting surface_targeting_settings = 2; */ @java.lang.Override public com.google.ads.googleads.v17.services.SurfaceTargetingOrBuilder getSurfaceTargetingSettingsOrBuilder() { return surfaceTargetingSettings_ == null ? com.google.ads.googleads.v17.services.SurfaceTargeting.getDefaultInstance() : surfaceTargetingSettings_; } public static final int TARGET_FREQUENCY_SETTINGS_FIELD_NUMBER = 3; private com.google.ads.googleads.v17.services.TargetFrequencySettings targetFrequencySettings_; /** *
   * Settings for a Target frequency campaign. Must be set when selecting the
   * TARGET_FREQUENCY product.
   *
   * See https://support.google.com/google-ads/answer/12400225 for more
   * information about Target Frequency campaigns.
   * 
* * .google.ads.googleads.v17.services.TargetFrequencySettings target_frequency_settings = 3; * @return Whether the targetFrequencySettings field is set. */ @java.lang.Override public boolean hasTargetFrequencySettings() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Settings for a Target frequency campaign. Must be set when selecting the
   * TARGET_FREQUENCY product.
   *
   * See https://support.google.com/google-ads/answer/12400225 for more
   * information about Target Frequency campaigns.
   * 
* * .google.ads.googleads.v17.services.TargetFrequencySettings target_frequency_settings = 3; * @return The targetFrequencySettings. */ @java.lang.Override public com.google.ads.googleads.v17.services.TargetFrequencySettings getTargetFrequencySettings() { return targetFrequencySettings_ == null ? com.google.ads.googleads.v17.services.TargetFrequencySettings.getDefaultInstance() : targetFrequencySettings_; } /** *
   * Settings for a Target frequency campaign. Must be set when selecting the
   * TARGET_FREQUENCY product.
   *
   * See https://support.google.com/google-ads/answer/12400225 for more
   * information about Target Frequency campaigns.
   * 
* * .google.ads.googleads.v17.services.TargetFrequencySettings target_frequency_settings = 3; */ @java.lang.Override public com.google.ads.googleads.v17.services.TargetFrequencySettingsOrBuilder getTargetFrequencySettingsOrBuilder() { return targetFrequencySettings_ == null ? com.google.ads.googleads.v17.services.TargetFrequencySettings.getDefaultInstance() : targetFrequencySettings_; } public static final int YOUTUBE_SELECT_SETTINGS_FIELD_NUMBER = 1; /** *
   * Settings for YouTube Select targeting.
   * 
* * .google.ads.googleads.v17.services.YouTubeSelectSettings youtube_select_settings = 1; * @return Whether the youtubeSelectSettings field is set. */ @java.lang.Override public boolean hasYoutubeSelectSettings() { return advancedTargetingCase_ == 1; } /** *
   * Settings for YouTube Select targeting.
   * 
* * .google.ads.googleads.v17.services.YouTubeSelectSettings youtube_select_settings = 1; * @return The youtubeSelectSettings. */ @java.lang.Override public com.google.ads.googleads.v17.services.YouTubeSelectSettings getYoutubeSelectSettings() { if (advancedTargetingCase_ == 1) { return (com.google.ads.googleads.v17.services.YouTubeSelectSettings) advancedTargeting_; } return com.google.ads.googleads.v17.services.YouTubeSelectSettings.getDefaultInstance(); } /** *
   * Settings for YouTube Select targeting.
   * 
* * .google.ads.googleads.v17.services.YouTubeSelectSettings youtube_select_settings = 1; */ @java.lang.Override public com.google.ads.googleads.v17.services.YouTubeSelectSettingsOrBuilder getYoutubeSelectSettingsOrBuilder() { if (advancedTargetingCase_ == 1) { return (com.google.ads.googleads.v17.services.YouTubeSelectSettings) advancedTargeting_; } return com.google.ads.googleads.v17.services.YouTubeSelectSettings.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (advancedTargetingCase_ == 1) { output.writeMessage(1, (com.google.ads.googleads.v17.services.YouTubeSelectSettings) advancedTargeting_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSurfaceTargetingSettings()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getTargetFrequencySettings()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (advancedTargetingCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.google.ads.googleads.v17.services.YouTubeSelectSettings) advancedTargeting_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSurfaceTargetingSettings()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTargetFrequencySettings()); } 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.AdvancedProductTargeting)) { return super.equals(obj); } com.google.ads.googleads.v17.services.AdvancedProductTargeting other = (com.google.ads.googleads.v17.services.AdvancedProductTargeting) obj; if (hasSurfaceTargetingSettings() != other.hasSurfaceTargetingSettings()) return false; if (hasSurfaceTargetingSettings()) { if (!getSurfaceTargetingSettings() .equals(other.getSurfaceTargetingSettings())) return false; } if (hasTargetFrequencySettings() != other.hasTargetFrequencySettings()) return false; if (hasTargetFrequencySettings()) { if (!getTargetFrequencySettings() .equals(other.getTargetFrequencySettings())) return false; } if (!getAdvancedTargetingCase().equals(other.getAdvancedTargetingCase())) return false; switch (advancedTargetingCase_) { case 1: if (!getYoutubeSelectSettings() .equals(other.getYoutubeSelectSettings())) return false; break; case 0: default: } 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 (hasSurfaceTargetingSettings()) { hash = (37 * hash) + SURFACE_TARGETING_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSurfaceTargetingSettings().hashCode(); } if (hasTargetFrequencySettings()) { hash = (37 * hash) + TARGET_FREQUENCY_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getTargetFrequencySettings().hashCode(); } switch (advancedTargetingCase_) { case 1: hash = (37 * hash) + YOUTUBE_SELECT_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getYoutubeSelectSettings().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.AdvancedProductTargeting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.AdvancedProductTargeting 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.AdvancedProductTargeting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.AdvancedProductTargeting 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.AdvancedProductTargeting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.AdvancedProductTargeting 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.AdvancedProductTargeting 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.AdvancedProductTargeting 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.AdvancedProductTargeting 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.AdvancedProductTargeting 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.AdvancedProductTargeting 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.AdvancedProductTargeting 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.AdvancedProductTargeting 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; } /** *
   * Advanced targeting settings for products.
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.AdvancedProductTargeting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.AdvancedProductTargeting) com.google.ads.googleads.v17.services.AdvancedProductTargetingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_AdvancedProductTargeting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_AdvancedProductTargeting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.AdvancedProductTargeting.class, com.google.ads.googleads.v17.services.AdvancedProductTargeting.Builder.class); } // Construct using com.google.ads.googleads.v17.services.AdvancedProductTargeting.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSurfaceTargetingSettingsFieldBuilder(); getTargetFrequencySettingsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; surfaceTargetingSettings_ = null; if (surfaceTargetingSettingsBuilder_ != null) { surfaceTargetingSettingsBuilder_.dispose(); surfaceTargetingSettingsBuilder_ = null; } targetFrequencySettings_ = null; if (targetFrequencySettingsBuilder_ != null) { targetFrequencySettingsBuilder_.dispose(); targetFrequencySettingsBuilder_ = null; } if (youtubeSelectSettingsBuilder_ != null) { youtubeSelectSettingsBuilder_.clear(); } advancedTargetingCase_ = 0; advancedTargeting_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_AdvancedProductTargeting_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.AdvancedProductTargeting getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.AdvancedProductTargeting.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.AdvancedProductTargeting build() { com.google.ads.googleads.v17.services.AdvancedProductTargeting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.AdvancedProductTargeting buildPartial() { com.google.ads.googleads.v17.services.AdvancedProductTargeting result = new com.google.ads.googleads.v17.services.AdvancedProductTargeting(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.services.AdvancedProductTargeting result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.surfaceTargetingSettings_ = surfaceTargetingSettingsBuilder_ == null ? surfaceTargetingSettings_ : surfaceTargetingSettingsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.targetFrequencySettings_ = targetFrequencySettingsBuilder_ == null ? targetFrequencySettings_ : targetFrequencySettingsBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.ads.googleads.v17.services.AdvancedProductTargeting result) { result.advancedTargetingCase_ = advancedTargetingCase_; result.advancedTargeting_ = this.advancedTargeting_; if (advancedTargetingCase_ == 1 && youtubeSelectSettingsBuilder_ != null) { result.advancedTargeting_ = youtubeSelectSettingsBuilder_.build(); } } @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.AdvancedProductTargeting) { return mergeFrom((com.google.ads.googleads.v17.services.AdvancedProductTargeting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.AdvancedProductTargeting other) { if (other == com.google.ads.googleads.v17.services.AdvancedProductTargeting.getDefaultInstance()) return this; if (other.hasSurfaceTargetingSettings()) { mergeSurfaceTargetingSettings(other.getSurfaceTargetingSettings()); } if (other.hasTargetFrequencySettings()) { mergeTargetFrequencySettings(other.getTargetFrequencySettings()); } switch (other.getAdvancedTargetingCase()) { case YOUTUBE_SELECT_SETTINGS: { mergeYoutubeSelectSettings(other.getYoutubeSelectSettings()); break; } case ADVANCEDTARGETING_NOT_SET: { break; } } 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: { input.readMessage( getYoutubeSelectSettingsFieldBuilder().getBuilder(), extensionRegistry); advancedTargetingCase_ = 1; break; } // case 10 case 18: { input.readMessage( getSurfaceTargetingSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 18 case 26: { input.readMessage( getTargetFrequencySettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int advancedTargetingCase_ = 0; private java.lang.Object advancedTargeting_; public AdvancedTargetingCase getAdvancedTargetingCase() { return AdvancedTargetingCase.forNumber( advancedTargetingCase_); } public Builder clearAdvancedTargeting() { advancedTargetingCase_ = 0; advancedTargeting_ = null; onChanged(); return this; } private int bitField0_; private com.google.ads.googleads.v17.services.SurfaceTargeting surfaceTargetingSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SurfaceTargeting, com.google.ads.googleads.v17.services.SurfaceTargeting.Builder, com.google.ads.googleads.v17.services.SurfaceTargetingOrBuilder> surfaceTargetingSettingsBuilder_; /** *
     * Surface targeting settings for this product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting surface_targeting_settings = 2; * @return Whether the surfaceTargetingSettings field is set. */ public boolean hasSurfaceTargetingSettings() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Surface targeting settings for this product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting surface_targeting_settings = 2; * @return The surfaceTargetingSettings. */ public com.google.ads.googleads.v17.services.SurfaceTargeting getSurfaceTargetingSettings() { if (surfaceTargetingSettingsBuilder_ == null) { return surfaceTargetingSettings_ == null ? com.google.ads.googleads.v17.services.SurfaceTargeting.getDefaultInstance() : surfaceTargetingSettings_; } else { return surfaceTargetingSettingsBuilder_.getMessage(); } } /** *
     * Surface targeting settings for this product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting surface_targeting_settings = 2; */ public Builder setSurfaceTargetingSettings(com.google.ads.googleads.v17.services.SurfaceTargeting value) { if (surfaceTargetingSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } surfaceTargetingSettings_ = value; } else { surfaceTargetingSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Surface targeting settings for this product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting surface_targeting_settings = 2; */ public Builder setSurfaceTargetingSettings( com.google.ads.googleads.v17.services.SurfaceTargeting.Builder builderForValue) { if (surfaceTargetingSettingsBuilder_ == null) { surfaceTargetingSettings_ = builderForValue.build(); } else { surfaceTargetingSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Surface targeting settings for this product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting surface_targeting_settings = 2; */ public Builder mergeSurfaceTargetingSettings(com.google.ads.googleads.v17.services.SurfaceTargeting value) { if (surfaceTargetingSettingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && surfaceTargetingSettings_ != null && surfaceTargetingSettings_ != com.google.ads.googleads.v17.services.SurfaceTargeting.getDefaultInstance()) { getSurfaceTargetingSettingsBuilder().mergeFrom(value); } else { surfaceTargetingSettings_ = value; } } else { surfaceTargetingSettingsBuilder_.mergeFrom(value); } if (surfaceTargetingSettings_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * Surface targeting settings for this product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting surface_targeting_settings = 2; */ public Builder clearSurfaceTargetingSettings() { bitField0_ = (bitField0_ & ~0x00000001); surfaceTargetingSettings_ = null; if (surfaceTargetingSettingsBuilder_ != null) { surfaceTargetingSettingsBuilder_.dispose(); surfaceTargetingSettingsBuilder_ = null; } onChanged(); return this; } /** *
     * Surface targeting settings for this product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting surface_targeting_settings = 2; */ public com.google.ads.googleads.v17.services.SurfaceTargeting.Builder getSurfaceTargetingSettingsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSurfaceTargetingSettingsFieldBuilder().getBuilder(); } /** *
     * Surface targeting settings for this product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting surface_targeting_settings = 2; */ public com.google.ads.googleads.v17.services.SurfaceTargetingOrBuilder getSurfaceTargetingSettingsOrBuilder() { if (surfaceTargetingSettingsBuilder_ != null) { return surfaceTargetingSettingsBuilder_.getMessageOrBuilder(); } else { return surfaceTargetingSettings_ == null ? com.google.ads.googleads.v17.services.SurfaceTargeting.getDefaultInstance() : surfaceTargetingSettings_; } } /** *
     * Surface targeting settings for this product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting surface_targeting_settings = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SurfaceTargeting, com.google.ads.googleads.v17.services.SurfaceTargeting.Builder, com.google.ads.googleads.v17.services.SurfaceTargetingOrBuilder> getSurfaceTargetingSettingsFieldBuilder() { if (surfaceTargetingSettingsBuilder_ == null) { surfaceTargetingSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SurfaceTargeting, com.google.ads.googleads.v17.services.SurfaceTargeting.Builder, com.google.ads.googleads.v17.services.SurfaceTargetingOrBuilder>( getSurfaceTargetingSettings(), getParentForChildren(), isClean()); surfaceTargetingSettings_ = null; } return surfaceTargetingSettingsBuilder_; } private com.google.ads.googleads.v17.services.TargetFrequencySettings targetFrequencySettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.TargetFrequencySettings, com.google.ads.googleads.v17.services.TargetFrequencySettings.Builder, com.google.ads.googleads.v17.services.TargetFrequencySettingsOrBuilder> targetFrequencySettingsBuilder_; /** *
     * Settings for a Target frequency campaign. Must be set when selecting the
     * TARGET_FREQUENCY product.
     *
     * See https://support.google.com/google-ads/answer/12400225 for more
     * information about Target Frequency campaigns.
     * 
* * .google.ads.googleads.v17.services.TargetFrequencySettings target_frequency_settings = 3; * @return Whether the targetFrequencySettings field is set. */ public boolean hasTargetFrequencySettings() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Settings for a Target frequency campaign. Must be set when selecting the
     * TARGET_FREQUENCY product.
     *
     * See https://support.google.com/google-ads/answer/12400225 for more
     * information about Target Frequency campaigns.
     * 
* * .google.ads.googleads.v17.services.TargetFrequencySettings target_frequency_settings = 3; * @return The targetFrequencySettings. */ public com.google.ads.googleads.v17.services.TargetFrequencySettings getTargetFrequencySettings() { if (targetFrequencySettingsBuilder_ == null) { return targetFrequencySettings_ == null ? com.google.ads.googleads.v17.services.TargetFrequencySettings.getDefaultInstance() : targetFrequencySettings_; } else { return targetFrequencySettingsBuilder_.getMessage(); } } /** *
     * Settings for a Target frequency campaign. Must be set when selecting the
     * TARGET_FREQUENCY product.
     *
     * See https://support.google.com/google-ads/answer/12400225 for more
     * information about Target Frequency campaigns.
     * 
* * .google.ads.googleads.v17.services.TargetFrequencySettings target_frequency_settings = 3; */ public Builder setTargetFrequencySettings(com.google.ads.googleads.v17.services.TargetFrequencySettings value) { if (targetFrequencySettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } targetFrequencySettings_ = value; } else { targetFrequencySettingsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Settings for a Target frequency campaign. Must be set when selecting the
     * TARGET_FREQUENCY product.
     *
     * See https://support.google.com/google-ads/answer/12400225 for more
     * information about Target Frequency campaigns.
     * 
* * .google.ads.googleads.v17.services.TargetFrequencySettings target_frequency_settings = 3; */ public Builder setTargetFrequencySettings( com.google.ads.googleads.v17.services.TargetFrequencySettings.Builder builderForValue) { if (targetFrequencySettingsBuilder_ == null) { targetFrequencySettings_ = builderForValue.build(); } else { targetFrequencySettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Settings for a Target frequency campaign. Must be set when selecting the
     * TARGET_FREQUENCY product.
     *
     * See https://support.google.com/google-ads/answer/12400225 for more
     * information about Target Frequency campaigns.
     * 
* * .google.ads.googleads.v17.services.TargetFrequencySettings target_frequency_settings = 3; */ public Builder mergeTargetFrequencySettings(com.google.ads.googleads.v17.services.TargetFrequencySettings value) { if (targetFrequencySettingsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && targetFrequencySettings_ != null && targetFrequencySettings_ != com.google.ads.googleads.v17.services.TargetFrequencySettings.getDefaultInstance()) { getTargetFrequencySettingsBuilder().mergeFrom(value); } else { targetFrequencySettings_ = value; } } else { targetFrequencySettingsBuilder_.mergeFrom(value); } if (targetFrequencySettings_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * Settings for a Target frequency campaign. Must be set when selecting the
     * TARGET_FREQUENCY product.
     *
     * See https://support.google.com/google-ads/answer/12400225 for more
     * information about Target Frequency campaigns.
     * 
* * .google.ads.googleads.v17.services.TargetFrequencySettings target_frequency_settings = 3; */ public Builder clearTargetFrequencySettings() { bitField0_ = (bitField0_ & ~0x00000002); targetFrequencySettings_ = null; if (targetFrequencySettingsBuilder_ != null) { targetFrequencySettingsBuilder_.dispose(); targetFrequencySettingsBuilder_ = null; } onChanged(); return this; } /** *
     * Settings for a Target frequency campaign. Must be set when selecting the
     * TARGET_FREQUENCY product.
     *
     * See https://support.google.com/google-ads/answer/12400225 for more
     * information about Target Frequency campaigns.
     * 
* * .google.ads.googleads.v17.services.TargetFrequencySettings target_frequency_settings = 3; */ public com.google.ads.googleads.v17.services.TargetFrequencySettings.Builder getTargetFrequencySettingsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTargetFrequencySettingsFieldBuilder().getBuilder(); } /** *
     * Settings for a Target frequency campaign. Must be set when selecting the
     * TARGET_FREQUENCY product.
     *
     * See https://support.google.com/google-ads/answer/12400225 for more
     * information about Target Frequency campaigns.
     * 
* * .google.ads.googleads.v17.services.TargetFrequencySettings target_frequency_settings = 3; */ public com.google.ads.googleads.v17.services.TargetFrequencySettingsOrBuilder getTargetFrequencySettingsOrBuilder() { if (targetFrequencySettingsBuilder_ != null) { return targetFrequencySettingsBuilder_.getMessageOrBuilder(); } else { return targetFrequencySettings_ == null ? com.google.ads.googleads.v17.services.TargetFrequencySettings.getDefaultInstance() : targetFrequencySettings_; } } /** *
     * Settings for a Target frequency campaign. Must be set when selecting the
     * TARGET_FREQUENCY product.
     *
     * See https://support.google.com/google-ads/answer/12400225 for more
     * information about Target Frequency campaigns.
     * 
* * .google.ads.googleads.v17.services.TargetFrequencySettings target_frequency_settings = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.TargetFrequencySettings, com.google.ads.googleads.v17.services.TargetFrequencySettings.Builder, com.google.ads.googleads.v17.services.TargetFrequencySettingsOrBuilder> getTargetFrequencySettingsFieldBuilder() { if (targetFrequencySettingsBuilder_ == null) { targetFrequencySettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.TargetFrequencySettings, com.google.ads.googleads.v17.services.TargetFrequencySettings.Builder, com.google.ads.googleads.v17.services.TargetFrequencySettingsOrBuilder>( getTargetFrequencySettings(), getParentForChildren(), isClean()); targetFrequencySettings_ = null; } return targetFrequencySettingsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.YouTubeSelectSettings, com.google.ads.googleads.v17.services.YouTubeSelectSettings.Builder, com.google.ads.googleads.v17.services.YouTubeSelectSettingsOrBuilder> youtubeSelectSettingsBuilder_; /** *
     * Settings for YouTube Select targeting.
     * 
* * .google.ads.googleads.v17.services.YouTubeSelectSettings youtube_select_settings = 1; * @return Whether the youtubeSelectSettings field is set. */ @java.lang.Override public boolean hasYoutubeSelectSettings() { return advancedTargetingCase_ == 1; } /** *
     * Settings for YouTube Select targeting.
     * 
* * .google.ads.googleads.v17.services.YouTubeSelectSettings youtube_select_settings = 1; * @return The youtubeSelectSettings. */ @java.lang.Override public com.google.ads.googleads.v17.services.YouTubeSelectSettings getYoutubeSelectSettings() { if (youtubeSelectSettingsBuilder_ == null) { if (advancedTargetingCase_ == 1) { return (com.google.ads.googleads.v17.services.YouTubeSelectSettings) advancedTargeting_; } return com.google.ads.googleads.v17.services.YouTubeSelectSettings.getDefaultInstance(); } else { if (advancedTargetingCase_ == 1) { return youtubeSelectSettingsBuilder_.getMessage(); } return com.google.ads.googleads.v17.services.YouTubeSelectSettings.getDefaultInstance(); } } /** *
     * Settings for YouTube Select targeting.
     * 
* * .google.ads.googleads.v17.services.YouTubeSelectSettings youtube_select_settings = 1; */ public Builder setYoutubeSelectSettings(com.google.ads.googleads.v17.services.YouTubeSelectSettings value) { if (youtubeSelectSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } advancedTargeting_ = value; onChanged(); } else { youtubeSelectSettingsBuilder_.setMessage(value); } advancedTargetingCase_ = 1; return this; } /** *
     * Settings for YouTube Select targeting.
     * 
* * .google.ads.googleads.v17.services.YouTubeSelectSettings youtube_select_settings = 1; */ public Builder setYoutubeSelectSettings( com.google.ads.googleads.v17.services.YouTubeSelectSettings.Builder builderForValue) { if (youtubeSelectSettingsBuilder_ == null) { advancedTargeting_ = builderForValue.build(); onChanged(); } else { youtubeSelectSettingsBuilder_.setMessage(builderForValue.build()); } advancedTargetingCase_ = 1; return this; } /** *
     * Settings for YouTube Select targeting.
     * 
* * .google.ads.googleads.v17.services.YouTubeSelectSettings youtube_select_settings = 1; */ public Builder mergeYoutubeSelectSettings(com.google.ads.googleads.v17.services.YouTubeSelectSettings value) { if (youtubeSelectSettingsBuilder_ == null) { if (advancedTargetingCase_ == 1 && advancedTargeting_ != com.google.ads.googleads.v17.services.YouTubeSelectSettings.getDefaultInstance()) { advancedTargeting_ = com.google.ads.googleads.v17.services.YouTubeSelectSettings.newBuilder((com.google.ads.googleads.v17.services.YouTubeSelectSettings) advancedTargeting_) .mergeFrom(value).buildPartial(); } else { advancedTargeting_ = value; } onChanged(); } else { if (advancedTargetingCase_ == 1) { youtubeSelectSettingsBuilder_.mergeFrom(value); } else { youtubeSelectSettingsBuilder_.setMessage(value); } } advancedTargetingCase_ = 1; return this; } /** *
     * Settings for YouTube Select targeting.
     * 
* * .google.ads.googleads.v17.services.YouTubeSelectSettings youtube_select_settings = 1; */ public Builder clearYoutubeSelectSettings() { if (youtubeSelectSettingsBuilder_ == null) { if (advancedTargetingCase_ == 1) { advancedTargetingCase_ = 0; advancedTargeting_ = null; onChanged(); } } else { if (advancedTargetingCase_ == 1) { advancedTargetingCase_ = 0; advancedTargeting_ = null; } youtubeSelectSettingsBuilder_.clear(); } return this; } /** *
     * Settings for YouTube Select targeting.
     * 
* * .google.ads.googleads.v17.services.YouTubeSelectSettings youtube_select_settings = 1; */ public com.google.ads.googleads.v17.services.YouTubeSelectSettings.Builder getYoutubeSelectSettingsBuilder() { return getYoutubeSelectSettingsFieldBuilder().getBuilder(); } /** *
     * Settings for YouTube Select targeting.
     * 
* * .google.ads.googleads.v17.services.YouTubeSelectSettings youtube_select_settings = 1; */ @java.lang.Override public com.google.ads.googleads.v17.services.YouTubeSelectSettingsOrBuilder getYoutubeSelectSettingsOrBuilder() { if ((advancedTargetingCase_ == 1) && (youtubeSelectSettingsBuilder_ != null)) { return youtubeSelectSettingsBuilder_.getMessageOrBuilder(); } else { if (advancedTargetingCase_ == 1) { return (com.google.ads.googleads.v17.services.YouTubeSelectSettings) advancedTargeting_; } return com.google.ads.googleads.v17.services.YouTubeSelectSettings.getDefaultInstance(); } } /** *
     * Settings for YouTube Select targeting.
     * 
* * .google.ads.googleads.v17.services.YouTubeSelectSettings youtube_select_settings = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.YouTubeSelectSettings, com.google.ads.googleads.v17.services.YouTubeSelectSettings.Builder, com.google.ads.googleads.v17.services.YouTubeSelectSettingsOrBuilder> getYoutubeSelectSettingsFieldBuilder() { if (youtubeSelectSettingsBuilder_ == null) { if (!(advancedTargetingCase_ == 1)) { advancedTargeting_ = com.google.ads.googleads.v17.services.YouTubeSelectSettings.getDefaultInstance(); } youtubeSelectSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.YouTubeSelectSettings, com.google.ads.googleads.v17.services.YouTubeSelectSettings.Builder, com.google.ads.googleads.v17.services.YouTubeSelectSettingsOrBuilder>( (com.google.ads.googleads.v17.services.YouTubeSelectSettings) advancedTargeting_, getParentForChildren(), isClean()); advancedTargeting_ = null; } advancedTargetingCase_ = 1; onChanged(); return youtubeSelectSettingsBuilder_; } @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.AdvancedProductTargeting) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.AdvancedProductTargeting) private static final com.google.ads.googleads.v17.services.AdvancedProductTargeting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.AdvancedProductTargeting(); } public static com.google.ads.googleads.v17.services.AdvancedProductTargeting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AdvancedProductTargeting 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.AdvancedProductTargeting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy