{@link + * AddDeals#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Name of the creative to add the deals to. See creative.name. + * @param content the {@link com.google.api.services.realtimebidding.v1.model.AddDealsRequest} + * @since 1.13 + */ + protected AddDeals(java.lang.String name, com.google.api.services.realtimebidding.v1.model.AddDealsRequest content) { + super(RealTimeBidding.this, "POST", REST_PATH, content, com.google.api.services.realtimebidding.v1.model.Creative.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^buyers/[^/]+/creatives/[^/]+$"); + } + } + + @Override + public AddDeals set$Xgafv(java.lang.String $Xgafv) { + return (AddDeals) super.set$Xgafv($Xgafv); + } + + @Override + public AddDeals setAccessToken(java.lang.String accessToken) { + return (AddDeals) super.setAccessToken(accessToken); + } + + @Override + public AddDeals setAlt(java.lang.String alt) { + return (AddDeals) super.setAlt(alt); + } + + @Override + public AddDeals setCallback(java.lang.String callback) { + return (AddDeals) super.setCallback(callback); + } + + @Override + public AddDeals setFields(java.lang.String fields) { + return (AddDeals) super.setFields(fields); + } + + @Override + public AddDeals setKey(java.lang.String key) { + return (AddDeals) super.setKey(key); + } + + @Override + public AddDeals setOauthToken(java.lang.String oauthToken) { + return (AddDeals) super.setOauthToken(oauthToken); + } + + @Override + public AddDeals setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddDeals) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddDeals setQuotaUser(java.lang.String quotaUser) { + return (AddDeals) super.setQuotaUser(quotaUser); + } + + @Override + public AddDeals setUploadType(java.lang.String uploadType) { + return (AddDeals) super.setUploadType(uploadType); + } + + @Override + public AddDeals setUploadProtocol(java.lang.String uploadProtocol) { + return (AddDeals) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the creative to add the deals to. See creative.name. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the creative to add the deals to. See creative.name. + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the creative to add the deals to. See creative.name. */ + public AddDeals setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^buyers/[^/]+/creatives/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public AddDeals set(String parameterName, Object value) { + return (AddDeals) super.set(parameterName, value); + } + } /** * Creates a creative. * diff --git a/clients/google-api-services-realtimebidding/v1/2.0.0/com/google/api/services/realtimebidding/v1/model/AddDealsRequest.java b/clients/google-api-services-realtimebidding/v1/2.0.0/com/google/api/services/realtimebidding/v1/model/AddDealsRequest.java new file mode 100644 index 00000000000..4fd6dd8d086 --- /dev/null +++ b/clients/google-api-services-realtimebidding/v1/2.0.0/com/google/api/services/realtimebidding/v1/model/AddDealsRequest.java @@ -0,0 +1,73 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.realtimebidding.v1.model; + +/** + * A request to add deals to a creative resource. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Real-time Bidding API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AddDealsRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The IDs of the deals to associate with the creative. This can include Programmatic + * Guaranteed, Private Auction, Preferred Deal, and Marketplace Package deal IDs. You can + * associate no more than 100 deal IDs per request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List