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

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

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

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

/**
 * 
 * Request message for
 * [ExperimentService.GraduateExperiment][google.ads.googleads.v17.services.ExperimentService.GraduateExperiment].
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.GraduateExperimentRequest} */ public final class GraduateExperimentRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.GraduateExperimentRequest) GraduateExperimentRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GraduateExperimentRequest.newBuilder() to construct. private GraduateExperimentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GraduateExperimentRequest() { experiment_ = ""; campaignBudgetMappings_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GraduateExperimentRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.ExperimentServiceProto.internal_static_google_ads_googleads_v17_services_GraduateExperimentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.ExperimentServiceProto.internal_static_google_ads_googleads_v17_services_GraduateExperimentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.GraduateExperimentRequest.class, com.google.ads.googleads.v17.services.GraduateExperimentRequest.Builder.class); } public static final int EXPERIMENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object experiment_ = ""; /** *
   * Required. The experiment to be graduated.
   * 
* * string experiment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The experiment. */ @java.lang.Override public java.lang.String getExperiment() { java.lang.Object ref = experiment_; 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(); experiment_ = s; return s; } } /** *
   * Required. The experiment to be graduated.
   * 
* * string experiment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for experiment. */ @java.lang.Override public com.google.protobuf.ByteString getExperimentBytes() { java.lang.Object ref = experiment_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); experiment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CAMPAIGN_BUDGET_MAPPINGS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List campaignBudgetMappings_; /** *
   * Required. List of campaign budget mappings for graduation. Each campaign
   * that appears here will graduate, and will be assigned a new budget that is
   * paired with it in the mapping. The maximum size is one.
   * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getCampaignBudgetMappingsList() { return campaignBudgetMappings_; } /** *
   * Required. List of campaign budget mappings for graduation. Each campaign
   * that appears here will graduate, and will be assigned a new budget that is
   * paired with it in the mapping. The maximum size is one.
   * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getCampaignBudgetMappingsOrBuilderList() { return campaignBudgetMappings_; } /** *
   * Required. List of campaign budget mappings for graduation. Each campaign
   * that appears here will graduate, and will be assigned a new budget that is
   * paired with it in the mapping. The maximum size is one.
   * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getCampaignBudgetMappingsCount() { return campaignBudgetMappings_.size(); } /** *
   * Required. List of campaign budget mappings for graduation. Each campaign
   * that appears here will graduate, and will be assigned a new budget that is
   * paired with it in the mapping. The maximum size is one.
   * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.ads.googleads.v17.services.CampaignBudgetMapping getCampaignBudgetMappings(int index) { return campaignBudgetMappings_.get(index); } /** *
   * Required. List of campaign budget mappings for graduation. Each campaign
   * that appears here will graduate, and will be assigned a new budget that is
   * paired with it in the mapping. The maximum size is one.
   * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.ads.googleads.v17.services.CampaignBudgetMappingOrBuilder getCampaignBudgetMappingsOrBuilder( int index) { return campaignBudgetMappings_.get(index); } public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** *
   * If true, the request is validated but not executed. Only errors are
   * returned, not results.
   * 
* * bool validate_only = 3; * @return The validateOnly. */ @java.lang.Override public boolean getValidateOnly() { return validateOnly_; } 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(experiment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, experiment_); } for (int i = 0; i < campaignBudgetMappings_.size(); i++) { output.writeMessage(2, campaignBudgetMappings_.get(i)); } if (validateOnly_ != false) { output.writeBool(3, validateOnly_); } 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(experiment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, experiment_); } for (int i = 0; i < campaignBudgetMappings_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, campaignBudgetMappings_.get(i)); } if (validateOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v17.services.GraduateExperimentRequest)) { return super.equals(obj); } com.google.ads.googleads.v17.services.GraduateExperimentRequest other = (com.google.ads.googleads.v17.services.GraduateExperimentRequest) obj; if (!getExperiment() .equals(other.getExperiment())) return false; if (!getCampaignBudgetMappingsList() .equals(other.getCampaignBudgetMappingsList())) return false; if (getValidateOnly() != other.getValidateOnly()) 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) + EXPERIMENT_FIELD_NUMBER; hash = (53 * hash) + getExperiment().hashCode(); if (getCampaignBudgetMappingsCount() > 0) { hash = (37 * hash) + CAMPAIGN_BUDGET_MAPPINGS_FIELD_NUMBER; hash = (53 * hash) + getCampaignBudgetMappingsList().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.GraduateExperimentRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.GraduateExperimentRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.GraduateExperimentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.GraduateExperimentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.GraduateExperimentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.GraduateExperimentRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.GraduateExperimentRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.GraduateExperimentRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.services.GraduateExperimentRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.GraduateExperimentRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.services.GraduateExperimentRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.GraduateExperimentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v17.services.GraduateExperimentRequest 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
   * [ExperimentService.GraduateExperiment][google.ads.googleads.v17.services.ExperimentService.GraduateExperiment].
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.GraduateExperimentRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.GraduateExperimentRequest) com.google.ads.googleads.v17.services.GraduateExperimentRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.ExperimentServiceProto.internal_static_google_ads_googleads_v17_services_GraduateExperimentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.ExperimentServiceProto.internal_static_google_ads_googleads_v17_services_GraduateExperimentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.GraduateExperimentRequest.class, com.google.ads.googleads.v17.services.GraduateExperimentRequest.Builder.class); } // Construct using com.google.ads.googleads.v17.services.GraduateExperimentRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; experiment_ = ""; if (campaignBudgetMappingsBuilder_ == null) { campaignBudgetMappings_ = java.util.Collections.emptyList(); } else { campaignBudgetMappings_ = null; campaignBudgetMappingsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); validateOnly_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.services.ExperimentServiceProto.internal_static_google_ads_googleads_v17_services_GraduateExperimentRequest_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.GraduateExperimentRequest getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.GraduateExperimentRequest.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.GraduateExperimentRequest build() { com.google.ads.googleads.v17.services.GraduateExperimentRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.GraduateExperimentRequest buildPartial() { com.google.ads.googleads.v17.services.GraduateExperimentRequest result = new com.google.ads.googleads.v17.services.GraduateExperimentRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v17.services.GraduateExperimentRequest result) { if (campaignBudgetMappingsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { campaignBudgetMappings_ = java.util.Collections.unmodifiableList(campaignBudgetMappings_); bitField0_ = (bitField0_ & ~0x00000002); } result.campaignBudgetMappings_ = campaignBudgetMappings_; } else { result.campaignBudgetMappings_ = campaignBudgetMappingsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v17.services.GraduateExperimentRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.experiment_ = experiment_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v17.services.GraduateExperimentRequest) { return mergeFrom((com.google.ads.googleads.v17.services.GraduateExperimentRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.GraduateExperimentRequest other) { if (other == com.google.ads.googleads.v17.services.GraduateExperimentRequest.getDefaultInstance()) return this; if (!other.getExperiment().isEmpty()) { experiment_ = other.experiment_; bitField0_ |= 0x00000001; onChanged(); } if (campaignBudgetMappingsBuilder_ == null) { if (!other.campaignBudgetMappings_.isEmpty()) { if (campaignBudgetMappings_.isEmpty()) { campaignBudgetMappings_ = other.campaignBudgetMappings_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCampaignBudgetMappingsIsMutable(); campaignBudgetMappings_.addAll(other.campaignBudgetMappings_); } onChanged(); } } else { if (!other.campaignBudgetMappings_.isEmpty()) { if (campaignBudgetMappingsBuilder_.isEmpty()) { campaignBudgetMappingsBuilder_.dispose(); campaignBudgetMappingsBuilder_ = null; campaignBudgetMappings_ = other.campaignBudgetMappings_; bitField0_ = (bitField0_ & ~0x00000002); campaignBudgetMappingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCampaignBudgetMappingsFieldBuilder() : null; } else { campaignBudgetMappingsBuilder_.addAllMessages(other.campaignBudgetMappings_); } } } if (other.getValidateOnly() != false) { setValidateOnly(other.getValidateOnly()); } 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: { experiment_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.ads.googleads.v17.services.CampaignBudgetMapping m = input.readMessage( com.google.ads.googleads.v17.services.CampaignBudgetMapping.parser(), extensionRegistry); if (campaignBudgetMappingsBuilder_ == null) { ensureCampaignBudgetMappingsIsMutable(); campaignBudgetMappings_.add(m); } else { campaignBudgetMappingsBuilder_.addMessage(m); } break; } // case 18 case 24: { validateOnly_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object experiment_ = ""; /** *
     * Required. The experiment to be graduated.
     * 
* * string experiment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The experiment. */ public java.lang.String getExperiment() { java.lang.Object ref = experiment_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); experiment_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. The experiment to be graduated.
     * 
* * string experiment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for experiment. */ public com.google.protobuf.ByteString getExperimentBytes() { java.lang.Object ref = experiment_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); experiment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. The experiment to be graduated.
     * 
* * string experiment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The experiment to set. * @return This builder for chaining. */ public Builder setExperiment( java.lang.String value) { if (value == null) { throw new NullPointerException(); } experiment_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Required. The experiment to be graduated.
     * 
* * string experiment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearExperiment() { experiment_ = getDefaultInstance().getExperiment(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Required. The experiment to be graduated.
     * 
* * string experiment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for experiment to set. * @return This builder for chaining. */ public Builder setExperimentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); experiment_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List campaignBudgetMappings_ = java.util.Collections.emptyList(); private void ensureCampaignBudgetMappingsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { campaignBudgetMappings_ = new java.util.ArrayList(campaignBudgetMappings_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.CampaignBudgetMapping, com.google.ads.googleads.v17.services.CampaignBudgetMapping.Builder, com.google.ads.googleads.v17.services.CampaignBudgetMappingOrBuilder> campaignBudgetMappingsBuilder_; /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getCampaignBudgetMappingsList() { if (campaignBudgetMappingsBuilder_ == null) { return java.util.Collections.unmodifiableList(campaignBudgetMappings_); } else { return campaignBudgetMappingsBuilder_.getMessageList(); } } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public int getCampaignBudgetMappingsCount() { if (campaignBudgetMappingsBuilder_ == null) { return campaignBudgetMappings_.size(); } else { return campaignBudgetMappingsBuilder_.getCount(); } } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v17.services.CampaignBudgetMapping getCampaignBudgetMappings(int index) { if (campaignBudgetMappingsBuilder_ == null) { return campaignBudgetMappings_.get(index); } else { return campaignBudgetMappingsBuilder_.getMessage(index); } } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCampaignBudgetMappings( int index, com.google.ads.googleads.v17.services.CampaignBudgetMapping value) { if (campaignBudgetMappingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCampaignBudgetMappingsIsMutable(); campaignBudgetMappings_.set(index, value); onChanged(); } else { campaignBudgetMappingsBuilder_.setMessage(index, value); } return this; } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCampaignBudgetMappings( int index, com.google.ads.googleads.v17.services.CampaignBudgetMapping.Builder builderForValue) { if (campaignBudgetMappingsBuilder_ == null) { ensureCampaignBudgetMappingsIsMutable(); campaignBudgetMappings_.set(index, builderForValue.build()); onChanged(); } else { campaignBudgetMappingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addCampaignBudgetMappings(com.google.ads.googleads.v17.services.CampaignBudgetMapping value) { if (campaignBudgetMappingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCampaignBudgetMappingsIsMutable(); campaignBudgetMappings_.add(value); onChanged(); } else { campaignBudgetMappingsBuilder_.addMessage(value); } return this; } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addCampaignBudgetMappings( int index, com.google.ads.googleads.v17.services.CampaignBudgetMapping value) { if (campaignBudgetMappingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCampaignBudgetMappingsIsMutable(); campaignBudgetMappings_.add(index, value); onChanged(); } else { campaignBudgetMappingsBuilder_.addMessage(index, value); } return this; } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addCampaignBudgetMappings( com.google.ads.googleads.v17.services.CampaignBudgetMapping.Builder builderForValue) { if (campaignBudgetMappingsBuilder_ == null) { ensureCampaignBudgetMappingsIsMutable(); campaignBudgetMappings_.add(builderForValue.build()); onChanged(); } else { campaignBudgetMappingsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addCampaignBudgetMappings( int index, com.google.ads.googleads.v17.services.CampaignBudgetMapping.Builder builderForValue) { if (campaignBudgetMappingsBuilder_ == null) { ensureCampaignBudgetMappingsIsMutable(); campaignBudgetMappings_.add(index, builderForValue.build()); onChanged(); } else { campaignBudgetMappingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllCampaignBudgetMappings( java.lang.Iterable values) { if (campaignBudgetMappingsBuilder_ == null) { ensureCampaignBudgetMappingsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, campaignBudgetMappings_); onChanged(); } else { campaignBudgetMappingsBuilder_.addAllMessages(values); } return this; } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCampaignBudgetMappings() { if (campaignBudgetMappingsBuilder_ == null) { campaignBudgetMappings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { campaignBudgetMappingsBuilder_.clear(); } return this; } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeCampaignBudgetMappings(int index) { if (campaignBudgetMappingsBuilder_ == null) { ensureCampaignBudgetMappingsIsMutable(); campaignBudgetMappings_.remove(index); onChanged(); } else { campaignBudgetMappingsBuilder_.remove(index); } return this; } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v17.services.CampaignBudgetMapping.Builder getCampaignBudgetMappingsBuilder( int index) { return getCampaignBudgetMappingsFieldBuilder().getBuilder(index); } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v17.services.CampaignBudgetMappingOrBuilder getCampaignBudgetMappingsOrBuilder( int index) { if (campaignBudgetMappingsBuilder_ == null) { return campaignBudgetMappings_.get(index); } else { return campaignBudgetMappingsBuilder_.getMessageOrBuilder(index); } } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getCampaignBudgetMappingsOrBuilderList() { if (campaignBudgetMappingsBuilder_ != null) { return campaignBudgetMappingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(campaignBudgetMappings_); } } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v17.services.CampaignBudgetMapping.Builder addCampaignBudgetMappingsBuilder() { return getCampaignBudgetMappingsFieldBuilder().addBuilder( com.google.ads.googleads.v17.services.CampaignBudgetMapping.getDefaultInstance()); } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v17.services.CampaignBudgetMapping.Builder addCampaignBudgetMappingsBuilder( int index) { return getCampaignBudgetMappingsFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.services.CampaignBudgetMapping.getDefaultInstance()); } /** *
     * Required. List of campaign budget mappings for graduation. Each campaign
     * that appears here will graduate, and will be assigned a new budget that is
     * paired with it in the mapping. The maximum size is one.
     * 
* * repeated .google.ads.googleads.v17.services.CampaignBudgetMapping campaign_budget_mappings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getCampaignBudgetMappingsBuilderList() { return getCampaignBudgetMappingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.CampaignBudgetMapping, com.google.ads.googleads.v17.services.CampaignBudgetMapping.Builder, com.google.ads.googleads.v17.services.CampaignBudgetMappingOrBuilder> getCampaignBudgetMappingsFieldBuilder() { if (campaignBudgetMappingsBuilder_ == null) { campaignBudgetMappingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.CampaignBudgetMapping, com.google.ads.googleads.v17.services.CampaignBudgetMapping.Builder, com.google.ads.googleads.v17.services.CampaignBudgetMappingOrBuilder>( campaignBudgetMappings_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); campaignBudgetMappings_ = null; } return campaignBudgetMappingsBuilder_; } private boolean validateOnly_ ; /** *
     * If true, the request is validated but not executed. Only errors are
     * returned, not results.
     * 
* * bool validate_only = 3; * @return The validateOnly. */ @java.lang.Override public boolean getValidateOnly() { return validateOnly_; } /** *
     * If true, the request is validated but not executed. Only errors are
     * returned, not results.
     * 
* * bool validate_only = 3; * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * If true, the request is validated but not executed. Only errors are
     * returned, not results.
     * 
* * bool validate_only = 3; * @return This builder for chaining. */ public Builder clearValidateOnly() { bitField0_ = (bitField0_ & ~0x00000004); validateOnly_ = false; 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.v17.services.GraduateExperimentRequest) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.GraduateExperimentRequest) private static final com.google.ads.googleads.v17.services.GraduateExperimentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.GraduateExperimentRequest(); } public static com.google.ads.googleads.v17.services.GraduateExperimentRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GraduateExperimentRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v17.services.GraduateExperimentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy