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

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

/**
 * 
 * A product being planned for reach.
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.PlannedProduct} */ public final class PlannedProduct extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.PlannedProduct) PlannedProductOrBuilder { private static final long serialVersionUID = 0L; // Use PlannedProduct.newBuilder() to construct. private PlannedProduct(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlannedProduct() { plannableProductCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PlannedProduct(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_PlannedProduct_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_PlannedProduct_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.PlannedProduct.class, com.google.ads.googleads.v17.services.PlannedProduct.Builder.class); } private int bitField0_; public static final int PLANNABLE_PRODUCT_CODE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object plannableProductCode_ = ""; /** *
   * Required. Selected product for planning.
   * The code associated with the ad product (for example: Trueview, Bumper).
   * To list the available plannable product codes use
   * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
   * 
* * optional string plannable_product_code = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the plannableProductCode field is set. */ @java.lang.Override public boolean hasPlannableProductCode() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Required. Selected product for planning.
   * The code associated with the ad product (for example: Trueview, Bumper).
   * To list the available plannable product codes use
   * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
   * 
* * optional string plannable_product_code = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The plannableProductCode. */ @java.lang.Override public java.lang.String getPlannableProductCode() { java.lang.Object ref = plannableProductCode_; 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(); plannableProductCode_ = s; return s; } } /** *
   * Required. Selected product for planning.
   * The code associated with the ad product (for example: Trueview, Bumper).
   * To list the available plannable product codes use
   * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
   * 
* * optional string plannable_product_code = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for plannableProductCode. */ @java.lang.Override public com.google.protobuf.ByteString getPlannableProductCodeBytes() { java.lang.Object ref = plannableProductCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); plannableProductCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUDGET_MICROS_FIELD_NUMBER = 4; private long budgetMicros_ = 0L; /** *
   * Required. Maximum budget allocation in micros for the selected product.
   * The value is specified in the selected planning currency_code.
   * For example: 1 000 000$ = 1 000 000 000 000 micros.
   * 
* * optional int64 budget_micros = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budgetMicros field is set. */ @java.lang.Override public boolean hasBudgetMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Required. Maximum budget allocation in micros for the selected product.
   * The value is specified in the selected planning currency_code.
   * For example: 1 000 000$ = 1 000 000 000 000 micros.
   * 
* * optional int64 budget_micros = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The budgetMicros. */ @java.lang.Override public long getBudgetMicros() { return budgetMicros_; } public static final int ADVANCED_PRODUCT_TARGETING_FIELD_NUMBER = 5; private com.google.ads.googleads.v17.services.AdvancedProductTargeting advancedProductTargeting_; /** *
   * Targeting settings for the selected product.
   * To list the available targeting for each product use
   * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
   * 
* * .google.ads.googleads.v17.services.AdvancedProductTargeting advanced_product_targeting = 5; * @return Whether the advancedProductTargeting field is set. */ @java.lang.Override public boolean hasAdvancedProductTargeting() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Targeting settings for the selected product.
   * To list the available targeting for each product use
   * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
   * 
* * .google.ads.googleads.v17.services.AdvancedProductTargeting advanced_product_targeting = 5; * @return The advancedProductTargeting. */ @java.lang.Override public com.google.ads.googleads.v17.services.AdvancedProductTargeting getAdvancedProductTargeting() { return advancedProductTargeting_ == null ? com.google.ads.googleads.v17.services.AdvancedProductTargeting.getDefaultInstance() : advancedProductTargeting_; } /** *
   * Targeting settings for the selected product.
   * To list the available targeting for each product use
   * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
   * 
* * .google.ads.googleads.v17.services.AdvancedProductTargeting advanced_product_targeting = 5; */ @java.lang.Override public com.google.ads.googleads.v17.services.AdvancedProductTargetingOrBuilder getAdvancedProductTargetingOrBuilder() { return advancedProductTargeting_ == null ? com.google.ads.googleads.v17.services.AdvancedProductTargeting.getDefaultInstance() : advancedProductTargeting_; } 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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, plannableProductCode_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(4, budgetMicros_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getAdvancedProductTargeting()); } 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.GeneratedMessageV3.computeStringSize(3, plannableProductCode_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, budgetMicros_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAdvancedProductTargeting()); } 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.PlannedProduct)) { return super.equals(obj); } com.google.ads.googleads.v17.services.PlannedProduct other = (com.google.ads.googleads.v17.services.PlannedProduct) obj; if (hasPlannableProductCode() != other.hasPlannableProductCode()) return false; if (hasPlannableProductCode()) { if (!getPlannableProductCode() .equals(other.getPlannableProductCode())) return false; } if (hasBudgetMicros() != other.hasBudgetMicros()) return false; if (hasBudgetMicros()) { if (getBudgetMicros() != other.getBudgetMicros()) return false; } if (hasAdvancedProductTargeting() != other.hasAdvancedProductTargeting()) return false; if (hasAdvancedProductTargeting()) { if (!getAdvancedProductTargeting() .equals(other.getAdvancedProductTargeting())) 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 (hasPlannableProductCode()) { hash = (37 * hash) + PLANNABLE_PRODUCT_CODE_FIELD_NUMBER; hash = (53 * hash) + getPlannableProductCode().hashCode(); } if (hasBudgetMicros()) { hash = (37 * hash) + BUDGET_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBudgetMicros()); } if (hasAdvancedProductTargeting()) { hash = (37 * hash) + ADVANCED_PRODUCT_TARGETING_FIELD_NUMBER; hash = (53 * hash) + getAdvancedProductTargeting().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.PlannedProduct parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.PlannedProduct 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.PlannedProduct parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.PlannedProduct 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.PlannedProduct parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.PlannedProduct 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.PlannedProduct 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.PlannedProduct 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.PlannedProduct 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.PlannedProduct 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.PlannedProduct 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.PlannedProduct 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.PlannedProduct 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 product being planned for reach.
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.PlannedProduct} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.PlannedProduct) com.google.ads.googleads.v17.services.PlannedProductOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_PlannedProduct_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_PlannedProduct_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.PlannedProduct.class, com.google.ads.googleads.v17.services.PlannedProduct.Builder.class); } // Construct using com.google.ads.googleads.v17.services.PlannedProduct.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAdvancedProductTargetingFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; plannableProductCode_ = ""; budgetMicros_ = 0L; advancedProductTargeting_ = null; if (advancedProductTargetingBuilder_ != null) { advancedProductTargetingBuilder_.dispose(); advancedProductTargetingBuilder_ = 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_PlannedProduct_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.PlannedProduct getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.PlannedProduct.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.PlannedProduct build() { com.google.ads.googleads.v17.services.PlannedProduct result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.PlannedProduct buildPartial() { com.google.ads.googleads.v17.services.PlannedProduct result = new com.google.ads.googleads.v17.services.PlannedProduct(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.services.PlannedProduct result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.plannableProductCode_ = plannableProductCode_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.budgetMicros_ = budgetMicros_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.advancedProductTargeting_ = advancedProductTargetingBuilder_ == null ? advancedProductTargeting_ : advancedProductTargetingBuilder_.build(); to_bitField0_ |= 0x00000004; } 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.PlannedProduct) { return mergeFrom((com.google.ads.googleads.v17.services.PlannedProduct)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.PlannedProduct other) { if (other == com.google.ads.googleads.v17.services.PlannedProduct.getDefaultInstance()) return this; if (other.hasPlannableProductCode()) { plannableProductCode_ = other.plannableProductCode_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasBudgetMicros()) { setBudgetMicros(other.getBudgetMicros()); } if (other.hasAdvancedProductTargeting()) { mergeAdvancedProductTargeting(other.getAdvancedProductTargeting()); } 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 26: { plannableProductCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 26 case 32: { budgetMicros_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 32 case 42: { input.readMessage( getAdvancedProductTargetingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object plannableProductCode_ = ""; /** *
     * Required. Selected product for planning.
     * The code associated with the ad product (for example: Trueview, Bumper).
     * To list the available plannable product codes use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * optional string plannable_product_code = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the plannableProductCode field is set. */ public boolean hasPlannableProductCode() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Required. Selected product for planning.
     * The code associated with the ad product (for example: Trueview, Bumper).
     * To list the available plannable product codes use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * optional string plannable_product_code = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The plannableProductCode. */ public java.lang.String getPlannableProductCode() { java.lang.Object ref = plannableProductCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); plannableProductCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. Selected product for planning.
     * The code associated with the ad product (for example: Trueview, Bumper).
     * To list the available plannable product codes use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * optional string plannable_product_code = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for plannableProductCode. */ public com.google.protobuf.ByteString getPlannableProductCodeBytes() { java.lang.Object ref = plannableProductCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); plannableProductCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. Selected product for planning.
     * The code associated with the ad product (for example: Trueview, Bumper).
     * To list the available plannable product codes use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * optional string plannable_product_code = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The plannableProductCode to set. * @return This builder for chaining. */ public Builder setPlannableProductCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } plannableProductCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Required. Selected product for planning.
     * The code associated with the ad product (for example: Trueview, Bumper).
     * To list the available plannable product codes use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * optional string plannable_product_code = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearPlannableProductCode() { plannableProductCode_ = getDefaultInstance().getPlannableProductCode(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Required. Selected product for planning.
     * The code associated with the ad product (for example: Trueview, Bumper).
     * To list the available plannable product codes use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * optional string plannable_product_code = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for plannableProductCode to set. * @return This builder for chaining. */ public Builder setPlannableProductCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); plannableProductCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long budgetMicros_ ; /** *
     * Required. Maximum budget allocation in micros for the selected product.
     * The value is specified in the selected planning currency_code.
     * For example: 1 000 000$ = 1 000 000 000 000 micros.
     * 
* * optional int64 budget_micros = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budgetMicros field is set. */ @java.lang.Override public boolean hasBudgetMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Required. Maximum budget allocation in micros for the selected product.
     * The value is specified in the selected planning currency_code.
     * For example: 1 000 000$ = 1 000 000 000 000 micros.
     * 
* * optional int64 budget_micros = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The budgetMicros. */ @java.lang.Override public long getBudgetMicros() { return budgetMicros_; } /** *
     * Required. Maximum budget allocation in micros for the selected product.
     * The value is specified in the selected planning currency_code.
     * For example: 1 000 000$ = 1 000 000 000 000 micros.
     * 
* * optional int64 budget_micros = 4 [(.google.api.field_behavior) = REQUIRED]; * @param value The budgetMicros to set. * @return This builder for chaining. */ public Builder setBudgetMicros(long value) { budgetMicros_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Required. Maximum budget allocation in micros for the selected product.
     * The value is specified in the selected planning currency_code.
     * For example: 1 000 000$ = 1 000 000 000 000 micros.
     * 
* * optional int64 budget_micros = 4 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearBudgetMicros() { bitField0_ = (bitField0_ & ~0x00000002); budgetMicros_ = 0L; onChanged(); return this; } private com.google.ads.googleads.v17.services.AdvancedProductTargeting advancedProductTargeting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AdvancedProductTargeting, com.google.ads.googleads.v17.services.AdvancedProductTargeting.Builder, com.google.ads.googleads.v17.services.AdvancedProductTargetingOrBuilder> advancedProductTargetingBuilder_; /** *
     * Targeting settings for the selected product.
     * To list the available targeting for each product use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * .google.ads.googleads.v17.services.AdvancedProductTargeting advanced_product_targeting = 5; * @return Whether the advancedProductTargeting field is set. */ public boolean hasAdvancedProductTargeting() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Targeting settings for the selected product.
     * To list the available targeting for each product use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * .google.ads.googleads.v17.services.AdvancedProductTargeting advanced_product_targeting = 5; * @return The advancedProductTargeting. */ public com.google.ads.googleads.v17.services.AdvancedProductTargeting getAdvancedProductTargeting() { if (advancedProductTargetingBuilder_ == null) { return advancedProductTargeting_ == null ? com.google.ads.googleads.v17.services.AdvancedProductTargeting.getDefaultInstance() : advancedProductTargeting_; } else { return advancedProductTargetingBuilder_.getMessage(); } } /** *
     * Targeting settings for the selected product.
     * To list the available targeting for each product use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * .google.ads.googleads.v17.services.AdvancedProductTargeting advanced_product_targeting = 5; */ public Builder setAdvancedProductTargeting(com.google.ads.googleads.v17.services.AdvancedProductTargeting value) { if (advancedProductTargetingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } advancedProductTargeting_ = value; } else { advancedProductTargetingBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Targeting settings for the selected product.
     * To list the available targeting for each product use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * .google.ads.googleads.v17.services.AdvancedProductTargeting advanced_product_targeting = 5; */ public Builder setAdvancedProductTargeting( com.google.ads.googleads.v17.services.AdvancedProductTargeting.Builder builderForValue) { if (advancedProductTargetingBuilder_ == null) { advancedProductTargeting_ = builderForValue.build(); } else { advancedProductTargetingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Targeting settings for the selected product.
     * To list the available targeting for each product use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * .google.ads.googleads.v17.services.AdvancedProductTargeting advanced_product_targeting = 5; */ public Builder mergeAdvancedProductTargeting(com.google.ads.googleads.v17.services.AdvancedProductTargeting value) { if (advancedProductTargetingBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && advancedProductTargeting_ != null && advancedProductTargeting_ != com.google.ads.googleads.v17.services.AdvancedProductTargeting.getDefaultInstance()) { getAdvancedProductTargetingBuilder().mergeFrom(value); } else { advancedProductTargeting_ = value; } } else { advancedProductTargetingBuilder_.mergeFrom(value); } if (advancedProductTargeting_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * Targeting settings for the selected product.
     * To list the available targeting for each product use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * .google.ads.googleads.v17.services.AdvancedProductTargeting advanced_product_targeting = 5; */ public Builder clearAdvancedProductTargeting() { bitField0_ = (bitField0_ & ~0x00000004); advancedProductTargeting_ = null; if (advancedProductTargetingBuilder_ != null) { advancedProductTargetingBuilder_.dispose(); advancedProductTargetingBuilder_ = null; } onChanged(); return this; } /** *
     * Targeting settings for the selected product.
     * To list the available targeting for each product use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * .google.ads.googleads.v17.services.AdvancedProductTargeting advanced_product_targeting = 5; */ public com.google.ads.googleads.v17.services.AdvancedProductTargeting.Builder getAdvancedProductTargetingBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAdvancedProductTargetingFieldBuilder().getBuilder(); } /** *
     * Targeting settings for the selected product.
     * To list the available targeting for each product use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * .google.ads.googleads.v17.services.AdvancedProductTargeting advanced_product_targeting = 5; */ public com.google.ads.googleads.v17.services.AdvancedProductTargetingOrBuilder getAdvancedProductTargetingOrBuilder() { if (advancedProductTargetingBuilder_ != null) { return advancedProductTargetingBuilder_.getMessageOrBuilder(); } else { return advancedProductTargeting_ == null ? com.google.ads.googleads.v17.services.AdvancedProductTargeting.getDefaultInstance() : advancedProductTargeting_; } } /** *
     * Targeting settings for the selected product.
     * To list the available targeting for each product use
     * [ReachPlanService.ListPlannableProducts][google.ads.googleads.v17.services.ReachPlanService.ListPlannableProducts].
     * 
* * .google.ads.googleads.v17.services.AdvancedProductTargeting advanced_product_targeting = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AdvancedProductTargeting, com.google.ads.googleads.v17.services.AdvancedProductTargeting.Builder, com.google.ads.googleads.v17.services.AdvancedProductTargetingOrBuilder> getAdvancedProductTargetingFieldBuilder() { if (advancedProductTargetingBuilder_ == null) { advancedProductTargetingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AdvancedProductTargeting, com.google.ads.googleads.v17.services.AdvancedProductTargeting.Builder, com.google.ads.googleads.v17.services.AdvancedProductTargetingOrBuilder>( getAdvancedProductTargeting(), getParentForChildren(), isClean()); advancedProductTargeting_ = null; } return advancedProductTargetingBuilder_; } @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.PlannedProduct) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.PlannedProduct) private static final com.google.ads.googleads.v17.services.PlannedProduct DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.PlannedProduct(); } public static com.google.ads.googleads.v17.services.PlannedProduct getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PlannedProduct 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.PlannedProduct getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy