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

com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest Maven / Gradle / Ivy

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

package com.google.ads.googleads.v10.services;

/**
 * 
 * Request message for [ReachPlanService.GenerateProductMixIdeas][google.ads.googleads.v10.services.ReachPlanService.GenerateProductMixIdeas].
 * 
* * Protobuf type {@code google.ads.googleads.v10.services.GenerateProductMixIdeasRequest} */ public final class GenerateProductMixIdeasRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.GenerateProductMixIdeasRequest) GenerateProductMixIdeasRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GenerateProductMixIdeasRequest.newBuilder() to construct. private GenerateProductMixIdeasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GenerateProductMixIdeasRequest() { customerId_ = ""; plannableLocationId_ = ""; currencyCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GenerateProductMixIdeasRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateProductMixIdeasRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateProductMixIdeasRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest.class, com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest.Builder.class); } public static final int CUSTOMER_ID_FIELD_NUMBER = 1; private volatile java.lang.Object customerId_; /** *
   * Required. The ID of the customer.
   * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customerId. */ @java.lang.Override public java.lang.String getCustomerId() { java.lang.Object ref = customerId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerId_ = s; return s; } } /** *
   * Required. The ID of the customer.
   * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for customerId. */ @java.lang.Override public com.google.protobuf.ByteString getCustomerIdBytes() { java.lang.Object ref = customerId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PLANNABLE_LOCATION_ID_FIELD_NUMBER = 6; private volatile java.lang.Object plannableLocationId_; /** *
   * Required. The ID of the location, this is one of the IDs returned by
   * [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations].
   * 
* * string plannable_location_id = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The plannableLocationId. */ @java.lang.Override public java.lang.String getPlannableLocationId() { java.lang.Object ref = plannableLocationId_; 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(); plannableLocationId_ = s; return s; } } /** *
   * Required. The ID of the location, this is one of the IDs returned by
   * [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations].
   * 
* * string plannable_location_id = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for plannableLocationId. */ @java.lang.Override public com.google.protobuf.ByteString getPlannableLocationIdBytes() { java.lang.Object ref = plannableLocationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); plannableLocationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CURRENCY_CODE_FIELD_NUMBER = 7; private volatile java.lang.Object currencyCode_; /** *
   * Required. Currency code.
   * Three-character ISO 4217 currency code.
   * 
* * string currency_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The currencyCode. */ @java.lang.Override public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; 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(); currencyCode_ = s; return s; } } /** *
   * Required. Currency code.
   * Three-character ISO 4217 currency code.
   * 
* * string currency_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for currencyCode. */ @java.lang.Override public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currencyCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUDGET_MICROS_FIELD_NUMBER = 8; private long budgetMicros_; /** *
   * Required. Total budget.
   * Amount in micros. One million is equivalent to one unit.
   * 
* * int64 budget_micros = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The budgetMicros. */ @java.lang.Override public long getBudgetMicros() { return budgetMicros_; } public static final int PREFERENCES_FIELD_NUMBER = 5; private com.google.ads.googleads.v10.services.Preferences preferences_; /** *
   * The preferences of the suggested product mix.
   * An unset preference is interpreted as all possible values are allowed,
   * unless explicitly specified.
   * 
* * .google.ads.googleads.v10.services.Preferences preferences = 5; * @return Whether the preferences field is set. */ @java.lang.Override public boolean hasPreferences() { return preferences_ != null; } /** *
   * The preferences of the suggested product mix.
   * An unset preference is interpreted as all possible values are allowed,
   * unless explicitly specified.
   * 
* * .google.ads.googleads.v10.services.Preferences preferences = 5; * @return The preferences. */ @java.lang.Override public com.google.ads.googleads.v10.services.Preferences getPreferences() { return preferences_ == null ? com.google.ads.googleads.v10.services.Preferences.getDefaultInstance() : preferences_; } /** *
   * The preferences of the suggested product mix.
   * An unset preference is interpreted as all possible values are allowed,
   * unless explicitly specified.
   * 
* * .google.ads.googleads.v10.services.Preferences preferences = 5; */ @java.lang.Override public com.google.ads.googleads.v10.services.PreferencesOrBuilder getPreferencesOrBuilder() { return getPreferences(); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customerId_); } if (preferences_ != null) { output.writeMessage(5, getPreferences()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(plannableLocationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, plannableLocationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, currencyCode_); } if (budgetMicros_ != 0L) { output.writeInt64(8, budgetMicros_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, customerId_); } if (preferences_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getPreferences()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(plannableLocationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, plannableLocationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, currencyCode_); } if (budgetMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, budgetMicros_); } 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.v10.services.GenerateProductMixIdeasRequest)) { return super.equals(obj); } com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest other = (com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest) obj; if (!getCustomerId() .equals(other.getCustomerId())) return false; if (!getPlannableLocationId() .equals(other.getPlannableLocationId())) return false; if (!getCurrencyCode() .equals(other.getCurrencyCode())) return false; if (getBudgetMicros() != other.getBudgetMicros()) return false; if (hasPreferences() != other.hasPreferences()) return false; if (hasPreferences()) { if (!getPreferences() .equals(other.getPreferences())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CUSTOMER_ID_FIELD_NUMBER; hash = (53 * hash) + getCustomerId().hashCode(); hash = (37 * hash) + PLANNABLE_LOCATION_ID_FIELD_NUMBER; hash = (53 * hash) + getPlannableLocationId().hashCode(); hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); hash = (37 * hash) + BUDGET_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBudgetMicros()); if (hasPreferences()) { hash = (37 * hash) + PREFERENCES_FIELD_NUMBER; hash = (53 * hash) + getPreferences().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest 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.v10.services.GenerateProductMixIdeasRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest 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.v10.services.GenerateProductMixIdeasRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest 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.v10.services.GenerateProductMixIdeasRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest 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.v10.services.GenerateProductMixIdeasRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest 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.v10.services.GenerateProductMixIdeasRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Request message for [ReachPlanService.GenerateProductMixIdeas][google.ads.googleads.v10.services.ReachPlanService.GenerateProductMixIdeas].
   * 
* * Protobuf type {@code google.ads.googleads.v10.services.GenerateProductMixIdeasRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.GenerateProductMixIdeasRequest) com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateProductMixIdeasRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateProductMixIdeasRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest.class, com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest.Builder.class); } // Construct using com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); customerId_ = ""; plannableLocationId_ = ""; currencyCode_ = ""; budgetMicros_ = 0L; if (preferencesBuilder_ == null) { preferences_ = null; } else { preferences_ = null; preferencesBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateProductMixIdeasRequest_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest getDefaultInstanceForType() { return com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest build() { com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest buildPartial() { com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest result = new com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest(this); result.customerId_ = customerId_; result.plannableLocationId_ = plannableLocationId_; result.currencyCode_ = currencyCode_; result.budgetMicros_ = budgetMicros_; if (preferencesBuilder_ == null) { result.preferences_ = preferences_; } else { result.preferences_ = preferencesBuilder_.build(); } onBuilt(); return result; } @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.v10.services.GenerateProductMixIdeasRequest) { return mergeFrom((com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest other) { if (other == com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest.getDefaultInstance()) return this; if (!other.getCustomerId().isEmpty()) { customerId_ = other.customerId_; onChanged(); } if (!other.getPlannableLocationId().isEmpty()) { plannableLocationId_ = other.plannableLocationId_; onChanged(); } if (!other.getCurrencyCode().isEmpty()) { currencyCode_ = other.currencyCode_; onChanged(); } if (other.getBudgetMicros() != 0L) { setBudgetMicros(other.getBudgetMicros()); } if (other.hasPreferences()) { mergePreferences(other.getPreferences()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { customerId_ = input.readStringRequireUtf8(); break; } // case 10 case 42: { input.readMessage( getPreferencesFieldBuilder().getBuilder(), extensionRegistry); break; } // case 42 case 50: { plannableLocationId_ = input.readStringRequireUtf8(); break; } // case 50 case 58: { currencyCode_ = input.readStringRequireUtf8(); break; } // case 58 case 64: { budgetMicros_ = input.readInt64(); break; } // case 64 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 java.lang.Object customerId_ = ""; /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customerId. */ public java.lang.String getCustomerId() { java.lang.Object ref = customerId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for customerId. */ public com.google.protobuf.ByteString getCustomerIdBytes() { java.lang.Object ref = customerId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The customerId to set. * @return This builder for chaining. */ public Builder setCustomerId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } customerId_ = value; onChanged(); return this; } /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearCustomerId() { customerId_ = getDefaultInstance().getCustomerId(); onChanged(); return this; } /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for customerId to set. * @return This builder for chaining. */ public Builder setCustomerIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customerId_ = value; onChanged(); return this; } private java.lang.Object plannableLocationId_ = ""; /** *
     * Required. The ID of the location, this is one of the IDs returned by
     * [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations].
     * 
* * string plannable_location_id = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The plannableLocationId. */ public java.lang.String getPlannableLocationId() { java.lang.Object ref = plannableLocationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); plannableLocationId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. The ID of the location, this is one of the IDs returned by
     * [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations].
     * 
* * string plannable_location_id = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for plannableLocationId. */ public com.google.protobuf.ByteString getPlannableLocationIdBytes() { java.lang.Object ref = plannableLocationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); plannableLocationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. The ID of the location, this is one of the IDs returned by
     * [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations].
     * 
* * string plannable_location_id = 6 [(.google.api.field_behavior) = REQUIRED]; * @param value The plannableLocationId to set. * @return This builder for chaining. */ public Builder setPlannableLocationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } plannableLocationId_ = value; onChanged(); return this; } /** *
     * Required. The ID of the location, this is one of the IDs returned by
     * [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations].
     * 
* * string plannable_location_id = 6 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearPlannableLocationId() { plannableLocationId_ = getDefaultInstance().getPlannableLocationId(); onChanged(); return this; } /** *
     * Required. The ID of the location, this is one of the IDs returned by
     * [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations].
     * 
* * string plannable_location_id = 6 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for plannableLocationId to set. * @return This builder for chaining. */ public Builder setPlannableLocationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); plannableLocationId_ = value; onChanged(); return this; } private java.lang.Object currencyCode_ = ""; /** *
     * Required. Currency code.
     * Three-character ISO 4217 currency code.
     * 
* * string currency_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. Currency code.
     * Three-character ISO 4217 currency code.
     * 
* * string currency_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for currencyCode. */ public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currencyCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. Currency code.
     * Three-character ISO 4217 currency code.
     * 
* * string currency_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @param value The currencyCode to set. * @return This builder for chaining. */ public Builder setCurrencyCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } currencyCode_ = value; onChanged(); return this; } /** *
     * Required. Currency code.
     * Three-character ISO 4217 currency code.
     * 
* * string currency_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearCurrencyCode() { currencyCode_ = getDefaultInstance().getCurrencyCode(); onChanged(); return this; } /** *
     * Required. Currency code.
     * Three-character ISO 4217 currency code.
     * 
* * string currency_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ public Builder setCurrencyCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currencyCode_ = value; onChanged(); return this; } private long budgetMicros_ ; /** *
     * Required. Total budget.
     * Amount in micros. One million is equivalent to one unit.
     * 
* * int64 budget_micros = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The budgetMicros. */ @java.lang.Override public long getBudgetMicros() { return budgetMicros_; } /** *
     * Required. Total budget.
     * Amount in micros. One million is equivalent to one unit.
     * 
* * int64 budget_micros = 8 [(.google.api.field_behavior) = REQUIRED]; * @param value The budgetMicros to set. * @return This builder for chaining. */ public Builder setBudgetMicros(long value) { budgetMicros_ = value; onChanged(); return this; } /** *
     * Required. Total budget.
     * Amount in micros. One million is equivalent to one unit.
     * 
* * int64 budget_micros = 8 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearBudgetMicros() { budgetMicros_ = 0L; onChanged(); return this; } private com.google.ads.googleads.v10.services.Preferences preferences_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.Preferences, com.google.ads.googleads.v10.services.Preferences.Builder, com.google.ads.googleads.v10.services.PreferencesOrBuilder> preferencesBuilder_; /** *
     * The preferences of the suggested product mix.
     * An unset preference is interpreted as all possible values are allowed,
     * unless explicitly specified.
     * 
* * .google.ads.googleads.v10.services.Preferences preferences = 5; * @return Whether the preferences field is set. */ public boolean hasPreferences() { return preferencesBuilder_ != null || preferences_ != null; } /** *
     * The preferences of the suggested product mix.
     * An unset preference is interpreted as all possible values are allowed,
     * unless explicitly specified.
     * 
* * .google.ads.googleads.v10.services.Preferences preferences = 5; * @return The preferences. */ public com.google.ads.googleads.v10.services.Preferences getPreferences() { if (preferencesBuilder_ == null) { return preferences_ == null ? com.google.ads.googleads.v10.services.Preferences.getDefaultInstance() : preferences_; } else { return preferencesBuilder_.getMessage(); } } /** *
     * The preferences of the suggested product mix.
     * An unset preference is interpreted as all possible values are allowed,
     * unless explicitly specified.
     * 
* * .google.ads.googleads.v10.services.Preferences preferences = 5; */ public Builder setPreferences(com.google.ads.googleads.v10.services.Preferences value) { if (preferencesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } preferences_ = value; onChanged(); } else { preferencesBuilder_.setMessage(value); } return this; } /** *
     * The preferences of the suggested product mix.
     * An unset preference is interpreted as all possible values are allowed,
     * unless explicitly specified.
     * 
* * .google.ads.googleads.v10.services.Preferences preferences = 5; */ public Builder setPreferences( com.google.ads.googleads.v10.services.Preferences.Builder builderForValue) { if (preferencesBuilder_ == null) { preferences_ = builderForValue.build(); onChanged(); } else { preferencesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The preferences of the suggested product mix.
     * An unset preference is interpreted as all possible values are allowed,
     * unless explicitly specified.
     * 
* * .google.ads.googleads.v10.services.Preferences preferences = 5; */ public Builder mergePreferences(com.google.ads.googleads.v10.services.Preferences value) { if (preferencesBuilder_ == null) { if (preferences_ != null) { preferences_ = com.google.ads.googleads.v10.services.Preferences.newBuilder(preferences_).mergeFrom(value).buildPartial(); } else { preferences_ = value; } onChanged(); } else { preferencesBuilder_.mergeFrom(value); } return this; } /** *
     * The preferences of the suggested product mix.
     * An unset preference is interpreted as all possible values are allowed,
     * unless explicitly specified.
     * 
* * .google.ads.googleads.v10.services.Preferences preferences = 5; */ public Builder clearPreferences() { if (preferencesBuilder_ == null) { preferences_ = null; onChanged(); } else { preferences_ = null; preferencesBuilder_ = null; } return this; } /** *
     * The preferences of the suggested product mix.
     * An unset preference is interpreted as all possible values are allowed,
     * unless explicitly specified.
     * 
* * .google.ads.googleads.v10.services.Preferences preferences = 5; */ public com.google.ads.googleads.v10.services.Preferences.Builder getPreferencesBuilder() { onChanged(); return getPreferencesFieldBuilder().getBuilder(); } /** *
     * The preferences of the suggested product mix.
     * An unset preference is interpreted as all possible values are allowed,
     * unless explicitly specified.
     * 
* * .google.ads.googleads.v10.services.Preferences preferences = 5; */ public com.google.ads.googleads.v10.services.PreferencesOrBuilder getPreferencesOrBuilder() { if (preferencesBuilder_ != null) { return preferencesBuilder_.getMessageOrBuilder(); } else { return preferences_ == null ? com.google.ads.googleads.v10.services.Preferences.getDefaultInstance() : preferences_; } } /** *
     * The preferences of the suggested product mix.
     * An unset preference is interpreted as all possible values are allowed,
     * unless explicitly specified.
     * 
* * .google.ads.googleads.v10.services.Preferences preferences = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.Preferences, com.google.ads.googleads.v10.services.Preferences.Builder, com.google.ads.googleads.v10.services.PreferencesOrBuilder> getPreferencesFieldBuilder() { if (preferencesBuilder_ == null) { preferencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.Preferences, com.google.ads.googleads.v10.services.Preferences.Builder, com.google.ads.googleads.v10.services.PreferencesOrBuilder>( getPreferences(), getParentForChildren(), isClean()); preferences_ = null; } return preferencesBuilder_; } @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.v10.services.GenerateProductMixIdeasRequest) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.GenerateProductMixIdeasRequest) private static final com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest(); } public static com.google.ads.googleads.v10.services.GenerateProductMixIdeasRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GenerateProductMixIdeasRequest 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.v10.services.GenerateProductMixIdeasRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy