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

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

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

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

/**
 * 
 * Response message for
 * [SmartCampaignSuggestService.SuggestSmartCampaignBudgets][]. Depending on
 * whether the system could suggest the options, either all of the options or
 * none of them might be returned.
 * 
* * Protobuf type {@code google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse} */ public final class SuggestSmartCampaignBudgetOptionsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse) SuggestSmartCampaignBudgetOptionsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SuggestSmartCampaignBudgetOptionsResponse.newBuilder() to construct. private SuggestSmartCampaignBudgetOptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SuggestSmartCampaignBudgetOptionsResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SuggestSmartCampaignBudgetOptionsResponse(); } @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.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.class, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Builder.class); } public interface MetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics) com.google.protobuf.MessageOrBuilder { /** *
     * The estimated min daily clicks.
     * 
* * int64 min_daily_clicks = 1; * @return The minDailyClicks. */ long getMinDailyClicks(); /** *
     * The estimated max daily clicks.
     * 
* * int64 max_daily_clicks = 2; * @return The maxDailyClicks. */ long getMaxDailyClicks(); } /** *
   * Performance metrics for a given budget option.
   * 
* * Protobuf type {@code google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics} */ public static final class Metrics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics) MetricsOrBuilder { private static final long serialVersionUID = 0L; // Use Metrics.newBuilder() to construct. private Metrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Metrics() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Metrics(); } @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.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_Metrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_Metrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.class, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.Builder.class); } public static final int MIN_DAILY_CLICKS_FIELD_NUMBER = 1; private long minDailyClicks_; /** *
     * The estimated min daily clicks.
     * 
* * int64 min_daily_clicks = 1; * @return The minDailyClicks. */ @java.lang.Override public long getMinDailyClicks() { return minDailyClicks_; } public static final int MAX_DAILY_CLICKS_FIELD_NUMBER = 2; private long maxDailyClicks_; /** *
     * The estimated max daily clicks.
     * 
* * int64 max_daily_clicks = 2; * @return The maxDailyClicks. */ @java.lang.Override public long getMaxDailyClicks() { return maxDailyClicks_; } 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 (minDailyClicks_ != 0L) { output.writeInt64(1, minDailyClicks_); } if (maxDailyClicks_ != 0L) { output.writeInt64(2, maxDailyClicks_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (minDailyClicks_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, minDailyClicks_); } if (maxDailyClicks_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, maxDailyClicks_); } 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.SuggestSmartCampaignBudgetOptionsResponse.Metrics)) { return super.equals(obj); } com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics other = (com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics) obj; if (getMinDailyClicks() != other.getMinDailyClicks()) return false; if (getMaxDailyClicks() != other.getMaxDailyClicks()) 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) + MIN_DAILY_CLICKS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinDailyClicks()); hash = (37 * hash) + MAX_DAILY_CLICKS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxDailyClicks()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics 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.SuggestSmartCampaignBudgetOptionsResponse.Metrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics 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.SuggestSmartCampaignBudgetOptionsResponse.Metrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics 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.SuggestSmartCampaignBudgetOptionsResponse.Metrics 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.SuggestSmartCampaignBudgetOptionsResponse.Metrics 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.SuggestSmartCampaignBudgetOptionsResponse.Metrics 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.SuggestSmartCampaignBudgetOptionsResponse.Metrics 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.SuggestSmartCampaignBudgetOptionsResponse.Metrics 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.SuggestSmartCampaignBudgetOptionsResponse.Metrics 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.SuggestSmartCampaignBudgetOptionsResponse.Metrics 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; } /** *
     * Performance metrics for a given budget option.
     * 
* * Protobuf type {@code google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics) com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.MetricsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_Metrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_Metrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.class, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.Builder.class); } // Construct using com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); minDailyClicks_ = 0L; maxDailyClicks_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_Metrics_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics getDefaultInstanceForType() { return com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics build() { com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics buildPartial() { com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics result = new com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics(this); result.minDailyClicks_ = minDailyClicks_; result.maxDailyClicks_ = maxDailyClicks_; 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.SuggestSmartCampaignBudgetOptionsResponse.Metrics) { return mergeFrom((com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics other) { if (other == com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.getDefaultInstance()) return this; if (other.getMinDailyClicks() != 0L) { setMinDailyClicks(other.getMinDailyClicks()); } if (other.getMaxDailyClicks() != 0L) { setMaxDailyClicks(other.getMaxDailyClicks()); } 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 8: { minDailyClicks_ = input.readInt64(); break; } // case 8 case 16: { maxDailyClicks_ = input.readInt64(); break; } // case 16 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 long minDailyClicks_ ; /** *
       * The estimated min daily clicks.
       * 
* * int64 min_daily_clicks = 1; * @return The minDailyClicks. */ @java.lang.Override public long getMinDailyClicks() { return minDailyClicks_; } /** *
       * The estimated min daily clicks.
       * 
* * int64 min_daily_clicks = 1; * @param value The minDailyClicks to set. * @return This builder for chaining. */ public Builder setMinDailyClicks(long value) { minDailyClicks_ = value; onChanged(); return this; } /** *
       * The estimated min daily clicks.
       * 
* * int64 min_daily_clicks = 1; * @return This builder for chaining. */ public Builder clearMinDailyClicks() { minDailyClicks_ = 0L; onChanged(); return this; } private long maxDailyClicks_ ; /** *
       * The estimated max daily clicks.
       * 
* * int64 max_daily_clicks = 2; * @return The maxDailyClicks. */ @java.lang.Override public long getMaxDailyClicks() { return maxDailyClicks_; } /** *
       * The estimated max daily clicks.
       * 
* * int64 max_daily_clicks = 2; * @param value The maxDailyClicks to set. * @return This builder for chaining. */ public Builder setMaxDailyClicks(long value) { maxDailyClicks_ = value; onChanged(); return this; } /** *
       * The estimated max daily clicks.
       * 
* * int64 max_daily_clicks = 2; * @return This builder for chaining. */ public Builder clearMaxDailyClicks() { maxDailyClicks_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics) private static final com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics(); } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Metrics 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.SuggestSmartCampaignBudgetOptionsResponse.Metrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BudgetOptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption) com.google.protobuf.MessageOrBuilder { /** *
     * The amount of the budget, in the local currency for the account.
     * Amount is specified in micros, where one million is equivalent to one
     * currency unit.
     * 
* * int64 daily_amount_micros = 1; * @return The dailyAmountMicros. */ long getDailyAmountMicros(); /** *
     * Metrics pertaining to the suggested budget, could be empty if there is
     * not enough information to derive the estimates.
     * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; * @return Whether the metrics field is set. */ boolean hasMetrics(); /** *
     * Metrics pertaining to the suggested budget, could be empty if there is
     * not enough information to derive the estimates.
     * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; * @return The metrics. */ com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics getMetrics(); /** *
     * Metrics pertaining to the suggested budget, could be empty if there is
     * not enough information to derive the estimates.
     * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; */ com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.MetricsOrBuilder getMetricsOrBuilder(); } /** *
   * Smart Campaign budget option.
   * 
* * Protobuf type {@code google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption} */ public static final class BudgetOption extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption) BudgetOptionOrBuilder { private static final long serialVersionUID = 0L; // Use BudgetOption.newBuilder() to construct. private BudgetOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BudgetOption() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BudgetOption(); } @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.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_BudgetOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_BudgetOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.class, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder.class); } public static final int DAILY_AMOUNT_MICROS_FIELD_NUMBER = 1; private long dailyAmountMicros_; /** *
     * The amount of the budget, in the local currency for the account.
     * Amount is specified in micros, where one million is equivalent to one
     * currency unit.
     * 
* * int64 daily_amount_micros = 1; * @return The dailyAmountMicros. */ @java.lang.Override public long getDailyAmountMicros() { return dailyAmountMicros_; } public static final int METRICS_FIELD_NUMBER = 2; private com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics_; /** *
     * Metrics pertaining to the suggested budget, could be empty if there is
     * not enough information to derive the estimates.
     * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; * @return Whether the metrics field is set. */ @java.lang.Override public boolean hasMetrics() { return metrics_ != null; } /** *
     * Metrics pertaining to the suggested budget, could be empty if there is
     * not enough information to derive the estimates.
     * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; * @return The metrics. */ @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics getMetrics() { return metrics_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.getDefaultInstance() : metrics_; } /** *
     * Metrics pertaining to the suggested budget, could be empty if there is
     * not enough information to derive the estimates.
     * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; */ @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.MetricsOrBuilder getMetricsOrBuilder() { return getMetrics(); } 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 (dailyAmountMicros_ != 0L) { output.writeInt64(1, dailyAmountMicros_); } if (metrics_ != null) { output.writeMessage(2, getMetrics()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (dailyAmountMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, dailyAmountMicros_); } if (metrics_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMetrics()); } 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.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption)) { return super.equals(obj); } com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption other = (com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption) obj; if (getDailyAmountMicros() != other.getDailyAmountMicros()) return false; if (hasMetrics() != other.hasMetrics()) return false; if (hasMetrics()) { if (!getMetrics() .equals(other.getMetrics())) 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) + DAILY_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDailyAmountMicros()); if (hasMetrics()) { hash = (37 * hash) + METRICS_FIELD_NUMBER; hash = (53 * hash) + getMetrics().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption 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.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption 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.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption 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.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption 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.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption 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.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption 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.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption 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.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption 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.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption 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.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption 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; } /** *
     * Smart Campaign budget option.
     * 
* * Protobuf type {@code google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption) com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_BudgetOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_BudgetOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.class, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder.class); } // Construct using com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); dailyAmountMicros_ = 0L; if (metricsBuilder_ == null) { metrics_ = null; } else { metrics_ = null; metricsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_BudgetOption_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getDefaultInstanceForType() { return com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption build() { com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption buildPartial() { com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption result = new com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption(this); result.dailyAmountMicros_ = dailyAmountMicros_; if (metricsBuilder_ == null) { result.metrics_ = metrics_; } else { result.metrics_ = metricsBuilder_.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.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption) { return mergeFrom((com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption other) { if (other == com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance()) return this; if (other.getDailyAmountMicros() != 0L) { setDailyAmountMicros(other.getDailyAmountMicros()); } if (other.hasMetrics()) { mergeMetrics(other.getMetrics()); } 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 8: { dailyAmountMicros_ = input.readInt64(); break; } // case 8 case 18: { input.readMessage( getMetricsFieldBuilder().getBuilder(), extensionRegistry); 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 long dailyAmountMicros_ ; /** *
       * The amount of the budget, in the local currency for the account.
       * Amount is specified in micros, where one million is equivalent to one
       * currency unit.
       * 
* * int64 daily_amount_micros = 1; * @return The dailyAmountMicros. */ @java.lang.Override public long getDailyAmountMicros() { return dailyAmountMicros_; } /** *
       * The amount of the budget, in the local currency for the account.
       * Amount is specified in micros, where one million is equivalent to one
       * currency unit.
       * 
* * int64 daily_amount_micros = 1; * @param value The dailyAmountMicros to set. * @return This builder for chaining. */ public Builder setDailyAmountMicros(long value) { dailyAmountMicros_ = value; onChanged(); return this; } /** *
       * The amount of the budget, in the local currency for the account.
       * Amount is specified in micros, where one million is equivalent to one
       * currency unit.
       * 
* * int64 daily_amount_micros = 1; * @return This builder for chaining. */ public Builder clearDailyAmountMicros() { dailyAmountMicros_ = 0L; onChanged(); return this; } private com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.Builder, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.MetricsOrBuilder> metricsBuilder_; /** *
       * Metrics pertaining to the suggested budget, could be empty if there is
       * not enough information to derive the estimates.
       * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; * @return Whether the metrics field is set. */ public boolean hasMetrics() { return metricsBuilder_ != null || metrics_ != null; } /** *
       * Metrics pertaining to the suggested budget, could be empty if there is
       * not enough information to derive the estimates.
       * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; * @return The metrics. */ public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics getMetrics() { if (metricsBuilder_ == null) { return metrics_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.getDefaultInstance() : metrics_; } else { return metricsBuilder_.getMessage(); } } /** *
       * Metrics pertaining to the suggested budget, could be empty if there is
       * not enough information to derive the estimates.
       * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; */ public Builder setMetrics(com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metrics_ = value; onChanged(); } else { metricsBuilder_.setMessage(value); } return this; } /** *
       * Metrics pertaining to the suggested budget, could be empty if there is
       * not enough information to derive the estimates.
       * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; */ public Builder setMetrics( com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.Builder builderForValue) { if (metricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); } else { metricsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Metrics pertaining to the suggested budget, could be empty if there is
       * not enough information to derive the estimates.
       * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; */ public Builder mergeMetrics(com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics value) { if (metricsBuilder_ == null) { if (metrics_ != null) { metrics_ = com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.newBuilder(metrics_).mergeFrom(value).buildPartial(); } else { metrics_ = value; } onChanged(); } else { metricsBuilder_.mergeFrom(value); } return this; } /** *
       * Metrics pertaining to the suggested budget, could be empty if there is
       * not enough information to derive the estimates.
       * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; */ public Builder clearMetrics() { if (metricsBuilder_ == null) { metrics_ = null; onChanged(); } else { metrics_ = null; metricsBuilder_ = null; } return this; } /** *
       * Metrics pertaining to the suggested budget, could be empty if there is
       * not enough information to derive the estimates.
       * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; */ public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.Builder getMetricsBuilder() { onChanged(); return getMetricsFieldBuilder().getBuilder(); } /** *
       * Metrics pertaining to the suggested budget, could be empty if there is
       * not enough information to derive the estimates.
       * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; */ public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.MetricsOrBuilder getMetricsOrBuilder() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilder(); } else { return metrics_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.getDefaultInstance() : metrics_; } } /** *
       * Metrics pertaining to the suggested budget, could be empty if there is
       * not enough information to derive the estimates.
       * 
* * .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics metrics = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.Builder, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.MetricsOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics.Builder, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.MetricsOrBuilder>( getMetrics(), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; } @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.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption) private static final com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption(); } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BudgetOption 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.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int LOW_FIELD_NUMBER = 1; private com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low_; /** *
   * Optional. The lowest budget option.
   * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the low field is set. */ @java.lang.Override public boolean hasLow() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Optional. The lowest budget option.
   * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The low. */ @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getLow() { return low_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : low_; } /** *
   * Optional. The lowest budget option.
   * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder getLowOrBuilder() { return low_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : low_; } public static final int RECOMMENDED_FIELD_NUMBER = 2; private com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended_; /** *
   * Optional. The recommended budget option.
   * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the recommended field is set. */ @java.lang.Override public boolean hasRecommended() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Optional. The recommended budget option.
   * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The recommended. */ @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getRecommended() { return recommended_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : recommended_; } /** *
   * Optional. The recommended budget option.
   * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder getRecommendedOrBuilder() { return recommended_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : recommended_; } public static final int HIGH_FIELD_NUMBER = 3; private com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high_; /** *
   * Optional. The highest budget option.
   * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the high field is set. */ @java.lang.Override public boolean hasHigh() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Optional. The highest budget option.
   * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The high. */ @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getHigh() { return high_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : high_; } /** *
   * Optional. The highest budget option.
   * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder getHighOrBuilder() { return high_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : high_; } 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, getLow()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getRecommended()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getHigh()); } 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, getLow()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRecommended()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getHigh()); } 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.SuggestSmartCampaignBudgetOptionsResponse)) { return super.equals(obj); } com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse other = (com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse) obj; if (hasLow() != other.hasLow()) return false; if (hasLow()) { if (!getLow() .equals(other.getLow())) return false; } if (hasRecommended() != other.hasRecommended()) return false; if (hasRecommended()) { if (!getRecommended() .equals(other.getRecommended())) return false; } if (hasHigh() != other.hasHigh()) return false; if (hasHigh()) { if (!getHigh() .equals(other.getHigh())) 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 (hasLow()) { hash = (37 * hash) + LOW_FIELD_NUMBER; hash = (53 * hash) + getLow().hashCode(); } if (hasRecommended()) { hash = (37 * hash) + RECOMMENDED_FIELD_NUMBER; hash = (53 * hash) + getRecommended().hashCode(); } if (hasHigh()) { hash = (37 * hash) + HIGH_FIELD_NUMBER; hash = (53 * hash) + getHigh().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse 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.SuggestSmartCampaignBudgetOptionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse 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.SuggestSmartCampaignBudgetOptionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse 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.SuggestSmartCampaignBudgetOptionsResponse 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.SuggestSmartCampaignBudgetOptionsResponse 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.SuggestSmartCampaignBudgetOptionsResponse 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.SuggestSmartCampaignBudgetOptionsResponse 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.SuggestSmartCampaignBudgetOptionsResponse 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.SuggestSmartCampaignBudgetOptionsResponse 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.SuggestSmartCampaignBudgetOptionsResponse 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; } /** *
   * Response message for
   * [SmartCampaignSuggestService.SuggestSmartCampaignBudgets][]. Depending on
   * whether the system could suggest the options, either all of the options or
   * none of them might be returned.
   * 
* * Protobuf type {@code google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse) com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.class, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.Builder.class); } // Construct using com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLowFieldBuilder(); getRecommendedFieldBuilder(); getHighFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (lowBuilder_ == null) { low_ = null; } else { lowBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (recommendedBuilder_ == null) { recommended_ = null; } else { recommendedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (highBuilder_ == null) { high_ = null; } else { highBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SuggestSmartCampaignBudgetOptionsResponse_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse getDefaultInstanceForType() { return com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse build() { com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse buildPartial() { com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse result = new com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (lowBuilder_ == null) { result.low_ = low_; } else { result.low_ = lowBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (recommendedBuilder_ == null) { result.recommended_ = recommended_; } else { result.recommended_ = recommendedBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { if (highBuilder_ == null) { result.high_ = high_; } else { result.high_ = highBuilder_.build(); } to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; 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.SuggestSmartCampaignBudgetOptionsResponse) { return mergeFrom((com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse other) { if (other == com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.getDefaultInstance()) return this; if (other.hasLow()) { mergeLow(other.getLow()); } if (other.hasRecommended()) { mergeRecommended(other.getRecommended()); } if (other.hasHigh()) { mergeHigh(other.getHigh()); } 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( getLowFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getRecommendedFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getHighFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder> lowBuilder_; /** *
     * Optional. The lowest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the low field is set. */ public boolean hasLow() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Optional. The lowest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The low. */ public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getLow() { if (lowBuilder_ == null) { return low_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : low_; } else { return lowBuilder_.getMessage(); } } /** *
     * Optional. The lowest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLow(com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption value) { if (lowBuilder_ == null) { if (value == null) { throw new NullPointerException(); } low_ = value; onChanged(); } else { lowBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
     * Optional. The lowest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLow( com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder builderForValue) { if (lowBuilder_ == null) { low_ = builderForValue.build(); onChanged(); } else { lowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
     * Optional. The lowest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeLow(com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption value) { if (lowBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && low_ != null && low_ != com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance()) { low_ = com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.newBuilder(low_).mergeFrom(value).buildPartial(); } else { low_ = value; } onChanged(); } else { lowBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
     * Optional. The lowest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearLow() { if (lowBuilder_ == null) { low_ = null; onChanged(); } else { lowBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
     * Optional. The lowest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder getLowBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLowFieldBuilder().getBuilder(); } /** *
     * Optional. The lowest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder getLowOrBuilder() { if (lowBuilder_ != null) { return lowBuilder_.getMessageOrBuilder(); } else { return low_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : low_; } } /** *
     * Optional. The lowest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder> getLowFieldBuilder() { if (lowBuilder_ == null) { lowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder>( getLow(), getParentForChildren(), isClean()); low_ = null; } return lowBuilder_; } private com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder> recommendedBuilder_; /** *
     * Optional. The recommended budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the recommended field is set. */ public boolean hasRecommended() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Optional. The recommended budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The recommended. */ public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getRecommended() { if (recommendedBuilder_ == null) { return recommended_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : recommended_; } else { return recommendedBuilder_.getMessage(); } } /** *
     * Optional. The recommended budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRecommended(com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption value) { if (recommendedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommended_ = value; onChanged(); } else { recommendedBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
     * Optional. The recommended budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRecommended( com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder builderForValue) { if (recommendedBuilder_ == null) { recommended_ = builderForValue.build(); onChanged(); } else { recommendedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
     * Optional. The recommended budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeRecommended(com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption value) { if (recommendedBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && recommended_ != null && recommended_ != com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance()) { recommended_ = com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.newBuilder(recommended_).mergeFrom(value).buildPartial(); } else { recommended_ = value; } onChanged(); } else { recommendedBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
     * Optional. The recommended budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearRecommended() { if (recommendedBuilder_ == null) { recommended_ = null; onChanged(); } else { recommendedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
     * Optional. The recommended budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder getRecommendedBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRecommendedFieldBuilder().getBuilder(); } /** *
     * Optional. The recommended budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder getRecommendedOrBuilder() { if (recommendedBuilder_ != null) { return recommendedBuilder_.getMessageOrBuilder(); } else { return recommended_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : recommended_; } } /** *
     * Optional. The recommended budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption recommended = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder> getRecommendedFieldBuilder() { if (recommendedBuilder_ == null) { recommendedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder>( getRecommended(), getParentForChildren(), isClean()); recommended_ = null; } return recommendedBuilder_; } private com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder> highBuilder_; /** *
     * Optional. The highest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the high field is set. */ public boolean hasHigh() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Optional. The highest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The high. */ public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getHigh() { if (highBuilder_ == null) { return high_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : high_; } else { return highBuilder_.getMessage(); } } /** *
     * Optional. The highest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHigh(com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption value) { if (highBuilder_ == null) { if (value == null) { throw new NullPointerException(); } high_ = value; onChanged(); } else { highBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
     * Optional. The highest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHigh( com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder builderForValue) { if (highBuilder_ == null) { high_ = builderForValue.build(); onChanged(); } else { highBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
     * Optional. The highest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeHigh(com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption value) { if (highBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && high_ != null && high_ != com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance()) { high_ = com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.newBuilder(high_).mergeFrom(value).buildPartial(); } else { high_ = value; } onChanged(); } else { highBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
     * Optional. The highest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearHigh() { if (highBuilder_ == null) { high_ = null; onChanged(); } else { highBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
     * Optional. The highest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder getHighBuilder() { bitField0_ |= 0x00000004; onChanged(); return getHighFieldBuilder().getBuilder(); } /** *
     * Optional. The highest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder getHighOrBuilder() { if (highBuilder_ != null) { return highBuilder_.getMessageOrBuilder(); } else { return high_ == null ? com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : high_; } } /** *
     * Optional. The highest budget option.
     * 
* * optional .google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption high = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder> getHighFieldBuilder() { if (highBuilder_ == null) { highBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder>( getHigh(), getParentForChildren(), isClean()); high_ = null; } return highBuilder_; } @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.SuggestSmartCampaignBudgetOptionsResponse) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse) private static final com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse(); } public static com.google.ads.googleads.v10.services.SuggestSmartCampaignBudgetOptionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SuggestSmartCampaignBudgetOptionsResponse 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.SuggestSmartCampaignBudgetOptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy