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

com.google.ads.googleads.v17.services.SurfaceTargetingCombinations 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;

/**
 * 
 * The surface targeting combinations available for an ad product.
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.SurfaceTargetingCombinations} */ public final class SurfaceTargetingCombinations extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.SurfaceTargetingCombinations) SurfaceTargetingCombinationsOrBuilder { private static final long serialVersionUID = 0L; // Use SurfaceTargetingCombinations.newBuilder() to construct. private SurfaceTargetingCombinations(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SurfaceTargetingCombinations() { availableTargetingCombinations_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SurfaceTargetingCombinations(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_SurfaceTargetingCombinations_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_SurfaceTargetingCombinations_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.SurfaceTargetingCombinations.class, com.google.ads.googleads.v17.services.SurfaceTargetingCombinations.Builder.class); } private int bitField0_; public static final int DEFAULT_TARGETING_FIELD_NUMBER = 1; private com.google.ads.googleads.v17.services.SurfaceTargeting defaultTargeting_; /** *
   * Default surface targeting applied to the ad product.
   * 
* * .google.ads.googleads.v17.services.SurfaceTargeting default_targeting = 1; * @return Whether the defaultTargeting field is set. */ @java.lang.Override public boolean hasDefaultTargeting() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Default surface targeting applied to the ad product.
   * 
* * .google.ads.googleads.v17.services.SurfaceTargeting default_targeting = 1; * @return The defaultTargeting. */ @java.lang.Override public com.google.ads.googleads.v17.services.SurfaceTargeting getDefaultTargeting() { return defaultTargeting_ == null ? com.google.ads.googleads.v17.services.SurfaceTargeting.getDefaultInstance() : defaultTargeting_; } /** *
   * Default surface targeting applied to the ad product.
   * 
* * .google.ads.googleads.v17.services.SurfaceTargeting default_targeting = 1; */ @java.lang.Override public com.google.ads.googleads.v17.services.SurfaceTargetingOrBuilder getDefaultTargetingOrBuilder() { return defaultTargeting_ == null ? com.google.ads.googleads.v17.services.SurfaceTargeting.getDefaultInstance() : defaultTargeting_; } public static final int AVAILABLE_TARGETING_COMBINATIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List availableTargetingCombinations_; /** *
   * Available surface target combinations for the ad product.
   * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ @java.lang.Override public java.util.List getAvailableTargetingCombinationsList() { return availableTargetingCombinations_; } /** *
   * Available surface target combinations for the ad product.
   * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ @java.lang.Override public java.util.List getAvailableTargetingCombinationsOrBuilderList() { return availableTargetingCombinations_; } /** *
   * Available surface target combinations for the ad product.
   * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ @java.lang.Override public int getAvailableTargetingCombinationsCount() { return availableTargetingCombinations_.size(); } /** *
   * Available surface target combinations for the ad product.
   * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ @java.lang.Override public com.google.ads.googleads.v17.services.SurfaceTargeting getAvailableTargetingCombinations(int index) { return availableTargetingCombinations_.get(index); } /** *
   * Available surface target combinations for the ad product.
   * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ @java.lang.Override public com.google.ads.googleads.v17.services.SurfaceTargetingOrBuilder getAvailableTargetingCombinationsOrBuilder( int index) { return availableTargetingCombinations_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDefaultTargeting()); } for (int i = 0; i < availableTargetingCombinations_.size(); i++) { output.writeMessage(2, availableTargetingCombinations_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDefaultTargeting()); } for (int i = 0; i < availableTargetingCombinations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, availableTargetingCombinations_.get(i)); } 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.SurfaceTargetingCombinations)) { return super.equals(obj); } com.google.ads.googleads.v17.services.SurfaceTargetingCombinations other = (com.google.ads.googleads.v17.services.SurfaceTargetingCombinations) obj; if (hasDefaultTargeting() != other.hasDefaultTargeting()) return false; if (hasDefaultTargeting()) { if (!getDefaultTargeting() .equals(other.getDefaultTargeting())) return false; } if (!getAvailableTargetingCombinationsList() .equals(other.getAvailableTargetingCombinationsList())) 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 (hasDefaultTargeting()) { hash = (37 * hash) + DEFAULT_TARGETING_FIELD_NUMBER; hash = (53 * hash) + getDefaultTargeting().hashCode(); } if (getAvailableTargetingCombinationsCount() > 0) { hash = (37 * hash) + AVAILABLE_TARGETING_COMBINATIONS_FIELD_NUMBER; hash = (53 * hash) + getAvailableTargetingCombinationsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.SurfaceTargetingCombinations parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.SurfaceTargetingCombinations 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.SurfaceTargetingCombinations parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.SurfaceTargetingCombinations 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.SurfaceTargetingCombinations parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.SurfaceTargetingCombinations 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.SurfaceTargetingCombinations 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.SurfaceTargetingCombinations 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.SurfaceTargetingCombinations 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.SurfaceTargetingCombinations 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.SurfaceTargetingCombinations 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.SurfaceTargetingCombinations 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.SurfaceTargetingCombinations 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; } /** *
   * The surface targeting combinations available for an ad product.
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.SurfaceTargetingCombinations} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.SurfaceTargetingCombinations) com.google.ads.googleads.v17.services.SurfaceTargetingCombinationsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_SurfaceTargetingCombinations_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_SurfaceTargetingCombinations_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.SurfaceTargetingCombinations.class, com.google.ads.googleads.v17.services.SurfaceTargetingCombinations.Builder.class); } // Construct using com.google.ads.googleads.v17.services.SurfaceTargetingCombinations.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDefaultTargetingFieldBuilder(); getAvailableTargetingCombinationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; defaultTargeting_ = null; if (defaultTargetingBuilder_ != null) { defaultTargetingBuilder_.dispose(); defaultTargetingBuilder_ = null; } if (availableTargetingCombinationsBuilder_ == null) { availableTargetingCombinations_ = java.util.Collections.emptyList(); } else { availableTargetingCombinations_ = null; availableTargetingCombinationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); 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_SurfaceTargetingCombinations_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.SurfaceTargetingCombinations getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.SurfaceTargetingCombinations.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.SurfaceTargetingCombinations build() { com.google.ads.googleads.v17.services.SurfaceTargetingCombinations result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.SurfaceTargetingCombinations buildPartial() { com.google.ads.googleads.v17.services.SurfaceTargetingCombinations result = new com.google.ads.googleads.v17.services.SurfaceTargetingCombinations(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v17.services.SurfaceTargetingCombinations result) { if (availableTargetingCombinationsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { availableTargetingCombinations_ = java.util.Collections.unmodifiableList(availableTargetingCombinations_); bitField0_ = (bitField0_ & ~0x00000002); } result.availableTargetingCombinations_ = availableTargetingCombinations_; } else { result.availableTargetingCombinations_ = availableTargetingCombinationsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v17.services.SurfaceTargetingCombinations result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.defaultTargeting_ = defaultTargetingBuilder_ == null ? defaultTargeting_ : defaultTargetingBuilder_.build(); to_bitField0_ |= 0x00000001; } 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.SurfaceTargetingCombinations) { return mergeFrom((com.google.ads.googleads.v17.services.SurfaceTargetingCombinations)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.SurfaceTargetingCombinations other) { if (other == com.google.ads.googleads.v17.services.SurfaceTargetingCombinations.getDefaultInstance()) return this; if (other.hasDefaultTargeting()) { mergeDefaultTargeting(other.getDefaultTargeting()); } if (availableTargetingCombinationsBuilder_ == null) { if (!other.availableTargetingCombinations_.isEmpty()) { if (availableTargetingCombinations_.isEmpty()) { availableTargetingCombinations_ = other.availableTargetingCombinations_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAvailableTargetingCombinationsIsMutable(); availableTargetingCombinations_.addAll(other.availableTargetingCombinations_); } onChanged(); } } else { if (!other.availableTargetingCombinations_.isEmpty()) { if (availableTargetingCombinationsBuilder_.isEmpty()) { availableTargetingCombinationsBuilder_.dispose(); availableTargetingCombinationsBuilder_ = null; availableTargetingCombinations_ = other.availableTargetingCombinations_; bitField0_ = (bitField0_ & ~0x00000002); availableTargetingCombinationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAvailableTargetingCombinationsFieldBuilder() : null; } else { availableTargetingCombinationsBuilder_.addAllMessages(other.availableTargetingCombinations_); } } } 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( getDefaultTargetingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.ads.googleads.v17.services.SurfaceTargeting m = input.readMessage( com.google.ads.googleads.v17.services.SurfaceTargeting.parser(), extensionRegistry); if (availableTargetingCombinationsBuilder_ == null) { ensureAvailableTargetingCombinationsIsMutable(); availableTargetingCombinations_.add(m); } else { availableTargetingCombinationsBuilder_.addMessage(m); } break; } // case 18 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 com.google.ads.googleads.v17.services.SurfaceTargeting defaultTargeting_; 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> defaultTargetingBuilder_; /** *
     * Default surface targeting applied to the ad product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting default_targeting = 1; * @return Whether the defaultTargeting field is set. */ public boolean hasDefaultTargeting() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Default surface targeting applied to the ad product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting default_targeting = 1; * @return The defaultTargeting. */ public com.google.ads.googleads.v17.services.SurfaceTargeting getDefaultTargeting() { if (defaultTargetingBuilder_ == null) { return defaultTargeting_ == null ? com.google.ads.googleads.v17.services.SurfaceTargeting.getDefaultInstance() : defaultTargeting_; } else { return defaultTargetingBuilder_.getMessage(); } } /** *
     * Default surface targeting applied to the ad product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting default_targeting = 1; */ public Builder setDefaultTargeting(com.google.ads.googleads.v17.services.SurfaceTargeting value) { if (defaultTargetingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } defaultTargeting_ = value; } else { defaultTargetingBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Default surface targeting applied to the ad product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting default_targeting = 1; */ public Builder setDefaultTargeting( com.google.ads.googleads.v17.services.SurfaceTargeting.Builder builderForValue) { if (defaultTargetingBuilder_ == null) { defaultTargeting_ = builderForValue.build(); } else { defaultTargetingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Default surface targeting applied to the ad product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting default_targeting = 1; */ public Builder mergeDefaultTargeting(com.google.ads.googleads.v17.services.SurfaceTargeting value) { if (defaultTargetingBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && defaultTargeting_ != null && defaultTargeting_ != com.google.ads.googleads.v17.services.SurfaceTargeting.getDefaultInstance()) { getDefaultTargetingBuilder().mergeFrom(value); } else { defaultTargeting_ = value; } } else { defaultTargetingBuilder_.mergeFrom(value); } if (defaultTargeting_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * Default surface targeting applied to the ad product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting default_targeting = 1; */ public Builder clearDefaultTargeting() { bitField0_ = (bitField0_ & ~0x00000001); defaultTargeting_ = null; if (defaultTargetingBuilder_ != null) { defaultTargetingBuilder_.dispose(); defaultTargetingBuilder_ = null; } onChanged(); return this; } /** *
     * Default surface targeting applied to the ad product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting default_targeting = 1; */ public com.google.ads.googleads.v17.services.SurfaceTargeting.Builder getDefaultTargetingBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDefaultTargetingFieldBuilder().getBuilder(); } /** *
     * Default surface targeting applied to the ad product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting default_targeting = 1; */ public com.google.ads.googleads.v17.services.SurfaceTargetingOrBuilder getDefaultTargetingOrBuilder() { if (defaultTargetingBuilder_ != null) { return defaultTargetingBuilder_.getMessageOrBuilder(); } else { return defaultTargeting_ == null ? com.google.ads.googleads.v17.services.SurfaceTargeting.getDefaultInstance() : defaultTargeting_; } } /** *
     * Default surface targeting applied to the ad product.
     * 
* * .google.ads.googleads.v17.services.SurfaceTargeting default_targeting = 1; */ 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> getDefaultTargetingFieldBuilder() { if (defaultTargetingBuilder_ == null) { defaultTargetingBuilder_ = 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>( getDefaultTargeting(), getParentForChildren(), isClean()); defaultTargeting_ = null; } return defaultTargetingBuilder_; } private java.util.List availableTargetingCombinations_ = java.util.Collections.emptyList(); private void ensureAvailableTargetingCombinationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { availableTargetingCombinations_ = new java.util.ArrayList(availableTargetingCombinations_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.SurfaceTargeting, com.google.ads.googleads.v17.services.SurfaceTargeting.Builder, com.google.ads.googleads.v17.services.SurfaceTargetingOrBuilder> availableTargetingCombinationsBuilder_; /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public java.util.List getAvailableTargetingCombinationsList() { if (availableTargetingCombinationsBuilder_ == null) { return java.util.Collections.unmodifiableList(availableTargetingCombinations_); } else { return availableTargetingCombinationsBuilder_.getMessageList(); } } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public int getAvailableTargetingCombinationsCount() { if (availableTargetingCombinationsBuilder_ == null) { return availableTargetingCombinations_.size(); } else { return availableTargetingCombinationsBuilder_.getCount(); } } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public com.google.ads.googleads.v17.services.SurfaceTargeting getAvailableTargetingCombinations(int index) { if (availableTargetingCombinationsBuilder_ == null) { return availableTargetingCombinations_.get(index); } else { return availableTargetingCombinationsBuilder_.getMessage(index); } } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public Builder setAvailableTargetingCombinations( int index, com.google.ads.googleads.v17.services.SurfaceTargeting value) { if (availableTargetingCombinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAvailableTargetingCombinationsIsMutable(); availableTargetingCombinations_.set(index, value); onChanged(); } else { availableTargetingCombinationsBuilder_.setMessage(index, value); } return this; } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public Builder setAvailableTargetingCombinations( int index, com.google.ads.googleads.v17.services.SurfaceTargeting.Builder builderForValue) { if (availableTargetingCombinationsBuilder_ == null) { ensureAvailableTargetingCombinationsIsMutable(); availableTargetingCombinations_.set(index, builderForValue.build()); onChanged(); } else { availableTargetingCombinationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public Builder addAvailableTargetingCombinations(com.google.ads.googleads.v17.services.SurfaceTargeting value) { if (availableTargetingCombinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAvailableTargetingCombinationsIsMutable(); availableTargetingCombinations_.add(value); onChanged(); } else { availableTargetingCombinationsBuilder_.addMessage(value); } return this; } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public Builder addAvailableTargetingCombinations( int index, com.google.ads.googleads.v17.services.SurfaceTargeting value) { if (availableTargetingCombinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAvailableTargetingCombinationsIsMutable(); availableTargetingCombinations_.add(index, value); onChanged(); } else { availableTargetingCombinationsBuilder_.addMessage(index, value); } return this; } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public Builder addAvailableTargetingCombinations( com.google.ads.googleads.v17.services.SurfaceTargeting.Builder builderForValue) { if (availableTargetingCombinationsBuilder_ == null) { ensureAvailableTargetingCombinationsIsMutable(); availableTargetingCombinations_.add(builderForValue.build()); onChanged(); } else { availableTargetingCombinationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public Builder addAvailableTargetingCombinations( int index, com.google.ads.googleads.v17.services.SurfaceTargeting.Builder builderForValue) { if (availableTargetingCombinationsBuilder_ == null) { ensureAvailableTargetingCombinationsIsMutable(); availableTargetingCombinations_.add(index, builderForValue.build()); onChanged(); } else { availableTargetingCombinationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public Builder addAllAvailableTargetingCombinations( java.lang.Iterable values) { if (availableTargetingCombinationsBuilder_ == null) { ensureAvailableTargetingCombinationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, availableTargetingCombinations_); onChanged(); } else { availableTargetingCombinationsBuilder_.addAllMessages(values); } return this; } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public Builder clearAvailableTargetingCombinations() { if (availableTargetingCombinationsBuilder_ == null) { availableTargetingCombinations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { availableTargetingCombinationsBuilder_.clear(); } return this; } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public Builder removeAvailableTargetingCombinations(int index) { if (availableTargetingCombinationsBuilder_ == null) { ensureAvailableTargetingCombinationsIsMutable(); availableTargetingCombinations_.remove(index); onChanged(); } else { availableTargetingCombinationsBuilder_.remove(index); } return this; } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public com.google.ads.googleads.v17.services.SurfaceTargeting.Builder getAvailableTargetingCombinationsBuilder( int index) { return getAvailableTargetingCombinationsFieldBuilder().getBuilder(index); } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public com.google.ads.googleads.v17.services.SurfaceTargetingOrBuilder getAvailableTargetingCombinationsOrBuilder( int index) { if (availableTargetingCombinationsBuilder_ == null) { return availableTargetingCombinations_.get(index); } else { return availableTargetingCombinationsBuilder_.getMessageOrBuilder(index); } } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public java.util.List getAvailableTargetingCombinationsOrBuilderList() { if (availableTargetingCombinationsBuilder_ != null) { return availableTargetingCombinationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(availableTargetingCombinations_); } } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public com.google.ads.googleads.v17.services.SurfaceTargeting.Builder addAvailableTargetingCombinationsBuilder() { return getAvailableTargetingCombinationsFieldBuilder().addBuilder( com.google.ads.googleads.v17.services.SurfaceTargeting.getDefaultInstance()); } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public com.google.ads.googleads.v17.services.SurfaceTargeting.Builder addAvailableTargetingCombinationsBuilder( int index) { return getAvailableTargetingCombinationsFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.services.SurfaceTargeting.getDefaultInstance()); } /** *
     * Available surface target combinations for the ad product.
     * 
* * repeated .google.ads.googleads.v17.services.SurfaceTargeting available_targeting_combinations = 2; */ public java.util.List getAvailableTargetingCombinationsBuilderList() { return getAvailableTargetingCombinationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.SurfaceTargeting, com.google.ads.googleads.v17.services.SurfaceTargeting.Builder, com.google.ads.googleads.v17.services.SurfaceTargetingOrBuilder> getAvailableTargetingCombinationsFieldBuilder() { if (availableTargetingCombinationsBuilder_ == null) { availableTargetingCombinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.SurfaceTargeting, com.google.ads.googleads.v17.services.SurfaceTargeting.Builder, com.google.ads.googleads.v17.services.SurfaceTargetingOrBuilder>( availableTargetingCombinations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); availableTargetingCombinations_ = null; } return availableTargetingCombinationsBuilder_; } @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.SurfaceTargetingCombinations) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.SurfaceTargetingCombinations) private static final com.google.ads.googleads.v17.services.SurfaceTargetingCombinations DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.SurfaceTargetingCombinations(); } public static com.google.ads.googleads.v17.services.SurfaceTargetingCombinations getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SurfaceTargetingCombinations 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.SurfaceTargetingCombinations getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy