diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/README.md b/clients/google-api-services-curationpartners/v1/2.0.0/README.md new file mode 100644 index 00000000000..fdd3d49bbbb --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/README.md @@ -0,0 +1,44 @@ +# Curation Partners API Client Library for Java + +Curation partners API is an externally available HTTP API for curators to programmatically manage their data segments and curated packages used by ad agencies. + +This page contains information about getting started with the Curation Partners API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the Curation Partners API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the Curation Partners API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-curationpartners + v1-rev20260828-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-curationpartners:v1-rev20260828-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-curationpartners/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/curationpartners/v1/ diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartners.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartners.java new file mode 100644 index 00000000000..b61c8d2c069 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartners.java @@ -0,0 +1,3819 @@ +/* + * 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.curationpartners.v1; + +/** + * Service definition for CurationPartners (v1). + * + *

+ * Curation partners API is an externally available HTTP API for curators to programmatically manage their data segments and curated packages used by ad agencies. + *

+ * + *

+ * For more information about this service, see the + * API Documentation + *

+ * + *

+ * This service uses {@link CurationPartnersRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *

+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class CurationPartners extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { + + // Note: Leave this static initializer at the top of the file. + static { + com.google.api.client.util.Preconditions.checkState( + (com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 || + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && + com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) || + com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2, + "You are currently running with version %s of google-api-client. " + + "You need at least version 1.31.1 of google-api-client to run version " + + "2.0.0 of the Curation Partners API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); + } + + /** + * The default encoded root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_ROOT_URL = "https://curationpartners.googleapis.com/"; + + /** + * The default encoded mTLS root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.31 + */ + public static final String DEFAULT_MTLS_ROOT_URL = "https://curationpartners.mtls.googleapis.com/"; + + /** + * The default encoded service path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_SERVICE_PATH = ""; + + /** + * The default encoded batch path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.23 + */ + public static final String DEFAULT_BATCH_PATH = "batch"; + + /** + * The default encoded base URL of the service. This is determined when the library is generated + * and normally should not be changed. + */ + public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; + + /** + * Constructor. + * + *

+ * Use {@link Builder} if you need to specify any of the optional parameters. + *

+ * + * @param transport HTTP transport, which should normally be: + * + * @param jsonFactory JSON factory, which may be: + * + * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public CurationPartners(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + this(new Builder(transport, jsonFactory, httpRequestInitializer)); + } + + /** + * @param builder builder + */ + CurationPartners(Builder builder) { + super(builder); + } + + @Override + protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { + super.initialize(httpClientRequest); + } + + /** + * An accessor for creating requests from the Curators collection. + * + *

The typical use is:

+ *
+   *   {@code CurationPartners curationpartners = new CurationPartners(...);}
+   *   {@code CurationPartners.Curators.List request = curationpartners.curators().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Curators curators() { + return new Curators(); + } + + /** + * The "curators" collection of methods. + */ + public class Curators { + + /** + * An accessor for creating requests from the CuratedPackages collection. + * + *

The typical use is:

+ *
+     *   {@code CurationPartners curationpartners = new CurationPartners(...);}
+     *   {@code CurationPartners.CuratedPackages.List request = curationpartners.curatedPackages().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public CuratedPackages curatedPackages() { + return new CuratedPackages(); + } + + /** + * The "curatedPackages" collection of methods. + */ + public class CuratedPackages { + + /** + * Activates an existing curated package. + * + * Create a request for the method "curatedPackages.activate". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Activate#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the curated package to activate. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.ActivateCuratedPackageRequest} + * @return the request + */ + public Activate activate(java.lang.String name, com.google.api.services.curationpartners.v1.model.ActivateCuratedPackageRequest content) throws java.io.IOException { + Activate result = new Activate(name, content); + initialize(result); + return result; + } + + public class Activate extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}:activate"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/curatedPackages/[^/]+$"); + + /** + * Activates an existing curated package. + * + * Create a request for the method "curatedPackages.activate". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Activate#execute()} method to invoke the remote operation. + *

{@link + * Activate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the curated package to activate. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.ActivateCuratedPackageRequest} + * @since 1.13 + */ + protected Activate(java.lang.String name, com.google.api.services.curationpartners.v1.model.ActivateCuratedPackageRequest content) { + super(CurationPartners.this, "POST", REST_PATH, content, com.google.api.services.curationpartners.v1.model.CuratedPackage.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 " + + "^curators/[^/]+/curatedPackages/[^/]+$"); + } + } + + @Override + public Activate set$Xgafv(java.lang.String $Xgafv) { + return (Activate) super.set$Xgafv($Xgafv); + } + + @Override + public Activate setAccessToken(java.lang.String accessToken) { + return (Activate) super.setAccessToken(accessToken); + } + + @Override + public Activate setAlt(java.lang.String alt) { + return (Activate) super.setAlt(alt); + } + + @Override + public Activate setCallback(java.lang.String callback) { + return (Activate) super.setCallback(callback); + } + + @Override + public Activate setFields(java.lang.String fields) { + return (Activate) super.setFields(fields); + } + + @Override + public Activate setKey(java.lang.String key) { + return (Activate) super.setKey(key); + } + + @Override + public Activate setOauthToken(java.lang.String oauthToken) { + return (Activate) super.setOauthToken(oauthToken); + } + + @Override + public Activate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Activate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Activate setQuotaUser(java.lang.String quotaUser) { + return (Activate) super.setQuotaUser(quotaUser); + } + + @Override + public Activate setUploadType(java.lang.String uploadType) { + return (Activate) super.setUploadType(uploadType); + } + + @Override + public Activate setUploadProtocol(java.lang.String uploadProtocol) { + return (Activate) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the curated package to activate. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the curated package to activate. Format: + `curators/{accountId}/curatedPackages/{curatedPackageId}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the curated package to activate. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + */ + public Activate 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 " + + "^curators/[^/]+/curatedPackages/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Activate set(String parameterName, Object value) { + return (Activate) super.set(parameterName, value); + } + } + /** + * Creates a new curated package. + * + * Create a request for the method "curatedPackages.create". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent curator account where this curated package will be created. Format: + * `curators/{accountId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.CuratedPackage} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.curationpartners.v1.model.CuratedPackage content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+parent}/curatedPackages"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+$"); + + /** + * Creates a new curated package. + * + * Create a request for the method "curatedPackages.create". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent curator account where this curated package will be created. Format: + * `curators/{accountId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.CuratedPackage} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.curationpartners.v1.model.CuratedPackage content) { + super(CurationPartners.this, "POST", REST_PATH, content, com.google.api.services.curationpartners.v1.model.CuratedPackage.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^curators/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent curator account where this curated package will be created. Format: + * `curators/{accountId}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent curator account where this curated package will be created. Format: + `curators/{accountId}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent curator account where this curated package will be created. Format: + * `curators/{accountId}` + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^curators/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deactivates an existing curated package. + * + * Create a request for the method "curatedPackages.deactivate". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Deactivate#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the curated package to deactivate. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.DeactivateCuratedPackageRequest} + * @return the request + */ + public Deactivate deactivate(java.lang.String name, com.google.api.services.curationpartners.v1.model.DeactivateCuratedPackageRequest content) throws java.io.IOException { + Deactivate result = new Deactivate(name, content); + initialize(result); + return result; + } + + public class Deactivate extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}:deactivate"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/curatedPackages/[^/]+$"); + + /** + * Deactivates an existing curated package. + * + * Create a request for the method "curatedPackages.deactivate". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Deactivate#execute()} method to invoke the remote + * operation.

{@link + * Deactivate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the curated package to deactivate. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.DeactivateCuratedPackageRequest} + * @since 1.13 + */ + protected Deactivate(java.lang.String name, com.google.api.services.curationpartners.v1.model.DeactivateCuratedPackageRequest content) { + super(CurationPartners.this, "POST", REST_PATH, content, com.google.api.services.curationpartners.v1.model.CuratedPackage.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 " + + "^curators/[^/]+/curatedPackages/[^/]+$"); + } + } + + @Override + public Deactivate set$Xgafv(java.lang.String $Xgafv) { + return (Deactivate) super.set$Xgafv($Xgafv); + } + + @Override + public Deactivate setAccessToken(java.lang.String accessToken) { + return (Deactivate) super.setAccessToken(accessToken); + } + + @Override + public Deactivate setAlt(java.lang.String alt) { + return (Deactivate) super.setAlt(alt); + } + + @Override + public Deactivate setCallback(java.lang.String callback) { + return (Deactivate) super.setCallback(callback); + } + + @Override + public Deactivate setFields(java.lang.String fields) { + return (Deactivate) super.setFields(fields); + } + + @Override + public Deactivate setKey(java.lang.String key) { + return (Deactivate) super.setKey(key); + } + + @Override + public Deactivate setOauthToken(java.lang.String oauthToken) { + return (Deactivate) super.setOauthToken(oauthToken); + } + + @Override + public Deactivate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deactivate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Deactivate setQuotaUser(java.lang.String quotaUser) { + return (Deactivate) super.setQuotaUser(quotaUser); + } + + @Override + public Deactivate setUploadType(java.lang.String uploadType) { + return (Deactivate) super.setUploadType(uploadType); + } + + @Override + public Deactivate setUploadProtocol(java.lang.String uploadProtocol) { + return (Deactivate) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the curated package to deactivate. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the curated package to deactivate. Format: + `curators/{accountId}/curatedPackages/{curatedPackageId}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the curated package to deactivate. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + */ + public Deactivate 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 " + + "^curators/[^/]+/curatedPackages/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Deactivate set(String parameterName, Object value) { + return (Deactivate) super.set(parameterName, value); + } + } + /** + * Gets a curated package given its resource name. + * + * Create a request for the method "curatedPackages.get". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the curated package to retrieve. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/curatedPackages/[^/]+$"); + + /** + * Gets a curated package given its resource name. + * + * Create a request for the method "curatedPackages.get". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the curated package to retrieve. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CurationPartners.this, "GET", REST_PATH, null, com.google.api.services.curationpartners.v1.model.CuratedPackage.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 " + + "^curators/[^/]+/curatedPackages/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the curated package to retrieve. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the curated package to retrieve. Format: + `curators/{accountId}/curatedPackages/{curatedPackageId}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the curated package to retrieve. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + */ + public Get 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 " + + "^curators/[^/]+/curatedPackages/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists curated packages owned by the specified curator. + * + * Create a request for the method "curatedPackages.list". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent curator account which owns this collection of curated packages. Format: + * `curators/{accountId}` + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+parent}/curatedPackages"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+$"); + + /** + * Lists curated packages owned by the specified curator. + * + * Create a request for the method "curatedPackages.list". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent curator account which owns this collection of curated packages. Format: + * `curators/{accountId}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CurationPartners.this, "GET", REST_PATH, null, com.google.api.services.curationpartners.v1.model.ListCuratedPackagesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^curators/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent curator account which owns this collection of curated packages. + * Format: `curators/{accountId}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent curator account which owns this collection of curated packages. Format: + `curators/{accountId}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent curator account which owns this collection of curated packages. + * Format: `curators/{accountId}` + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^curators/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Optional query string using the [Cloud API list filtering syntax](/authorized- + * buyers/apis/guides/list-filters). Supported columns for filtering are: * displayName * + * createTime * updateTime * state * feeCpm.currencyCode * feeCpm.units * feeCpm.nanos * + * floorPriceCpm.currencyCode * floorPriceCpm.units * floorPriceCpm.nanos + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Optional query string using the [Cloud API list filtering syntax](/authorized- + buyers/apis/guides/list-filters). Supported columns for filtering are: * displayName * createTime * + updateTime * state * feeCpm.currencyCode * feeCpm.units * feeCpm.nanos * floorPriceCpm.currencyCode + * floorPriceCpm.units * floorPriceCpm.nanos + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Optional query string using the [Cloud API list filtering syntax](/authorized- + * buyers/apis/guides/list-filters). Supported columns for filtering are: * displayName * + * createTime * updateTime * state * feeCpm.currencyCode * feeCpm.units * feeCpm.nanos * + * floorPriceCpm.currencyCode * floorPriceCpm.units * floorPriceCpm.nanos + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Requested page size. The server may return fewer results than requested. Max + * allowed page size is 500. If unspecified, the server will default to 500. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. The server may return fewer results than requested. Max allowed page + size is 500. If unspecified, the server will default to 500. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. The server may return fewer results than requested. Max + * allowed page size is 500. If unspecified, the server will default to 500. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListCuratedPackages` call. Provide this + * to retrieve the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListCuratedPackages` call. Provide this to + retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListCuratedPackages` call. Provide this + * to retrieve the subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates an existing curated package. + * + * Create a request for the method "curatedPackages.patch". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique resource name for the curated package. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.CuratedPackage} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.curationpartners.v1.model.CuratedPackage content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/curatedPackages/[^/]+$"); + + /** + * Updates an existing curated package. + * + * Create a request for the method "curatedPackages.patch". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. The unique resource name for the curated package. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.CuratedPackage} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.curationpartners.v1.model.CuratedPackage content) { + super(CurationPartners.this, "PATCH", REST_PATH, content, com.google.api.services.curationpartners.v1.model.CuratedPackage.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 " + + "^curators/[^/]+/curatedPackages/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The unique resource name for the curated package. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique resource name for the curated package. Format: + `curators/{accountId}/curatedPackages/{curatedPackageId}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique resource name for the curated package. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + */ + public Patch 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 " + + "^curators/[^/]+/curatedPackages/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. List of fields to be updated. If empty or unspecified, the service will update + * all fields populated in the update request excluding the output only fields and primitive + * fields with default value. Note that explicit field mask is required in order to reset a + * primitive field back to its default value, for example, false for boolean fields, 0 for + * integer fields. A special field mask consisting of a single path "*" can be used to + * indicate full replacement (the equivalent of PUT method), updatable fields unset or + * unspecified in the input will be cleared or set to default value. Output only fields will + * be ignored regardless of the value of updateMask. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. List of fields to be updated. If empty or unspecified, the service will update all fields + populated in the update request excluding the output only fields and primitive fields with default + value. Note that explicit field mask is required in order to reset a primitive field back to its + default value, for example, false for boolean fields, 0 for integer fields. A special field mask + consisting of a single path "*" can be used to indicate full replacement (the equivalent of PUT + method), updatable fields unset or unspecified in the input will be cleared or set to default + value. Output only fields will be ignored regardless of the value of updateMask. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. List of fields to be updated. If empty or unspecified, the service will update + * all fields populated in the update request excluding the output only fields and primitive + * fields with default value. Note that explicit field mask is required in order to reset a + * primitive field back to its default value, for example, false for boolean fields, 0 for + * integer fields. A special field mask consisting of a single path "*" can be used to + * indicate full replacement (the equivalent of PUT method), updatable fields unset or + * unspecified in the input will be cleared or set to default value. Output only fields will + * be ignored regardless of the value of updateMask. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the DataSegments collection. + * + *

The typical use is:

+ *
+     *   {@code CurationPartners curationpartners = new CurationPartners(...);}
+     *   {@code CurationPartners.DataSegments.List request = curationpartners.dataSegments().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public DataSegments dataSegments() { + return new DataSegments(); + } + + /** + * The "dataSegments" collection of methods. + */ + public class DataSegments { + + /** + * Activates a data segment. + * + * Create a request for the method "dataSegments.activate". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Activate#execute()} method to invoke the remote operation. + * + * @param name Required. Name of data segment to activate. Format: + * `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.ActivateDataSegmentRequest} + * @return the request + */ + public Activate activate(java.lang.String name, com.google.api.services.curationpartners.v1.model.ActivateDataSegmentRequest content) throws java.io.IOException { + Activate result = new Activate(name, content); + initialize(result); + return result; + } + + public class Activate extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}:activate"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/dataSegments/[^/]+$"); + + /** + * Activates a data segment. + * + * Create a request for the method "dataSegments.activate". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Activate#execute()} method to invoke the remote operation. + *

{@link + * Activate#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 data segment to activate. Format: + * `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.ActivateDataSegmentRequest} + * @since 1.13 + */ + protected Activate(java.lang.String name, com.google.api.services.curationpartners.v1.model.ActivateDataSegmentRequest content) { + super(CurationPartners.this, "POST", REST_PATH, content, com.google.api.services.curationpartners.v1.model.DataSegment.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 " + + "^curators/[^/]+/dataSegments/[^/]+$"); + } + } + + @Override + public Activate set$Xgafv(java.lang.String $Xgafv) { + return (Activate) super.set$Xgafv($Xgafv); + } + + @Override + public Activate setAccessToken(java.lang.String accessToken) { + return (Activate) super.setAccessToken(accessToken); + } + + @Override + public Activate setAlt(java.lang.String alt) { + return (Activate) super.setAlt(alt); + } + + @Override + public Activate setCallback(java.lang.String callback) { + return (Activate) super.setCallback(callback); + } + + @Override + public Activate setFields(java.lang.String fields) { + return (Activate) super.setFields(fields); + } + + @Override + public Activate setKey(java.lang.String key) { + return (Activate) super.setKey(key); + } + + @Override + public Activate setOauthToken(java.lang.String oauthToken) { + return (Activate) super.setOauthToken(oauthToken); + } + + @Override + public Activate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Activate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Activate setQuotaUser(java.lang.String quotaUser) { + return (Activate) super.setQuotaUser(quotaUser); + } + + @Override + public Activate setUploadType(java.lang.String uploadType) { + return (Activate) super.setUploadType(uploadType); + } + + @Override + public Activate setUploadProtocol(java.lang.String uploadProtocol) { + return (Activate) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of data segment to activate. Format: + * `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of data segment to activate. Format: + `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of data segment to activate. Format: + * `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + */ + public Activate 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 " + + "^curators/[^/]+/dataSegments/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Activate set(String parameterName, Object value) { + return (Activate) super.set(parameterName, value); + } + } + /** + * Creates a data segment owned by the listed curator. The data segment will be created in the + * `ACTIVE` state, meaning it will be immediately available for buyers to use in preferred deals, + * private auction deals, and auction packages. + * + * Create a request for the method "dataSegments.create". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where this data segment will be created. Format: + * `curators/{accountId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.DataSegment} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.curationpartners.v1.model.DataSegment content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+parent}/dataSegments"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+$"); + + /** + * Creates a data segment owned by the listed curator. The data segment will be created in the + * `ACTIVE` state, meaning it will be immediately available for buyers to use in preferred deals, + * private auction deals, and auction packages. + * + * Create a request for the method "dataSegments.create". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where this data segment will be created. Format: + * `curators/{accountId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.DataSegment} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.curationpartners.v1.model.DataSegment content) { + super(CurationPartners.this, "POST", REST_PATH, content, com.google.api.services.curationpartners.v1.model.DataSegment.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^curators/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where this data segment will be created. Format: + * `curators/{accountId}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this data segment will be created. Format: + `curators/{accountId}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this data segment will be created. Format: + * `curators/{accountId}` + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^curators/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deactivates a data segment. + * + * Create a request for the method "dataSegments.deactivate". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Deactivate#execute()} method to invoke the remote operation. + * + * @param name Required. Name of data segment to deactivate. Format: + * `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.DeactivateDataSegmentRequest} + * @return the request + */ + public Deactivate deactivate(java.lang.String name, com.google.api.services.curationpartners.v1.model.DeactivateDataSegmentRequest content) throws java.io.IOException { + Deactivate result = new Deactivate(name, content); + initialize(result); + return result; + } + + public class Deactivate extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}:deactivate"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/dataSegments/[^/]+$"); + + /** + * Deactivates a data segment. + * + * Create a request for the method "dataSegments.deactivate". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Deactivate#execute()} method to invoke the remote + * operation.

{@link + * Deactivate#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 data segment to deactivate. Format: + * `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.DeactivateDataSegmentRequest} + * @since 1.13 + */ + protected Deactivate(java.lang.String name, com.google.api.services.curationpartners.v1.model.DeactivateDataSegmentRequest content) { + super(CurationPartners.this, "POST", REST_PATH, content, com.google.api.services.curationpartners.v1.model.DataSegment.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 " + + "^curators/[^/]+/dataSegments/[^/]+$"); + } + } + + @Override + public Deactivate set$Xgafv(java.lang.String $Xgafv) { + return (Deactivate) super.set$Xgafv($Xgafv); + } + + @Override + public Deactivate setAccessToken(java.lang.String accessToken) { + return (Deactivate) super.setAccessToken(accessToken); + } + + @Override + public Deactivate setAlt(java.lang.String alt) { + return (Deactivate) super.setAlt(alt); + } + + @Override + public Deactivate setCallback(java.lang.String callback) { + return (Deactivate) super.setCallback(callback); + } + + @Override + public Deactivate setFields(java.lang.String fields) { + return (Deactivate) super.setFields(fields); + } + + @Override + public Deactivate setKey(java.lang.String key) { + return (Deactivate) super.setKey(key); + } + + @Override + public Deactivate setOauthToken(java.lang.String oauthToken) { + return (Deactivate) super.setOauthToken(oauthToken); + } + + @Override + public Deactivate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deactivate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Deactivate setQuotaUser(java.lang.String quotaUser) { + return (Deactivate) super.setQuotaUser(quotaUser); + } + + @Override + public Deactivate setUploadType(java.lang.String uploadType) { + return (Deactivate) super.setUploadType(uploadType); + } + + @Override + public Deactivate setUploadProtocol(java.lang.String uploadProtocol) { + return (Deactivate) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of data segment to deactivate. Format: + * `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of data segment to deactivate. Format: + `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of data segment to deactivate. Format: + * `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + */ + public Deactivate 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 " + + "^curators/[^/]+/dataSegments/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Deactivate set(String parameterName, Object value) { + return (Deactivate) super.set(parameterName, value); + } + } + /** + * Gets a data segment given its name. + * + * Create a request for the method "dataSegments.get". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of data segment to get. Format: + * `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/dataSegments/[^/]+$"); + + /** + * Gets a data segment given its name. + * + * Create a request for the method "dataSegments.get". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#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 data segment to get. Format: + * `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CurationPartners.this, "GET", REST_PATH, null, com.google.api.services.curationpartners.v1.model.DataSegment.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 " + + "^curators/[^/]+/dataSegments/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of data segment to get. Format: + * `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of data segment to get. Format: + `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of data segment to get. Format: + * `curators/{accountId}/dataSegments/{curatorDataSegmentId}` + */ + public Get 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 " + + "^curators/[^/]+/dataSegments/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * List the data segments owned by a curator. + * + * Create a request for the method "dataSegments.list". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Name of the parent curator that can access the data segment. Format: + * `curators/{accountId}` + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+parent}/dataSegments"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+$"); + + /** + * List the data segments owned by a curator. + * + * Create a request for the method "dataSegments.list". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. Name of the parent curator that can access the data segment. Format: + * `curators/{accountId}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CurationPartners.this, "GET", REST_PATH, null, com.google.api.services.curationpartners.v1.model.ListDataSegmentsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^curators/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the parent curator that can access the data segment. Format: + * `curators/{accountId}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Name of the parent curator that can access the data segment. Format: + `curators/{accountId}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Name of the parent curator that can access the data segment. Format: + * `curators/{accountId}` + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^curators/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Requested page size. The server may return fewer results than requested. Max + * allowed page size is 500. If unspecified, the server will default to 500. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. The server may return fewer results than requested. Max allowed page + size is 500. If unspecified, the server will default to 500. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. The server may return fewer results than requested. Max + * allowed page size is 500. If unspecified, the server will default to 500. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. The page token as returned. ListDataSegmentsResponse.nextPageToken */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The page token as returned. ListDataSegmentsResponse.nextPageToken + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. The page token as returned. ListDataSegmentsResponse.nextPageToken */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a data segment. + * + * Create a request for the method "dataSegments.patch". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Immutable. Identifier. The unique identifier for the data segment. Account ID corresponds to the + * account ID that created the segment. Format: + * `curators/{curatorAccountId}/dataSegments/{curatorDataSegmentId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.DataSegment} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.curationpartners.v1.model.DataSegment content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/dataSegments/[^/]+$"); + + /** + * Updates a data segment. + * + * Create a request for the method "dataSegments.patch". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Immutable. Identifier. The unique identifier for the data segment. Account ID corresponds to the + * account ID that created the segment. Format: + * `curators/{curatorAccountId}/dataSegments/{curatorDataSegmentId}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.DataSegment} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.curationpartners.v1.model.DataSegment content) { + super(CurationPartners.this, "PATCH", REST_PATH, content, com.google.api.services.curationpartners.v1.model.DataSegment.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 " + + "^curators/[^/]+/dataSegments/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Immutable. Identifier. The unique identifier for the data segment. Account ID corresponds + * to the account ID that created the segment. Format: + * `curators/{curatorAccountId}/dataSegments/{curatorDataSegmentId}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Immutable. Identifier. The unique identifier for the data segment. Account ID corresponds to the + account ID that created the segment. Format: + `curators/{curatorAccountId}/dataSegments/{curatorDataSegmentId}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. Identifier. The unique identifier for the data segment. Account ID corresponds + * to the account ID that created the segment. Format: + * `curators/{curatorAccountId}/dataSegments/{curatorDataSegmentId}` + */ + public Patch 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 " + + "^curators/[^/]+/dataSegments/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. List of fields to be updated. If empty or unspecified, the service will update + * all fields populated in the update request excluding the output only fields and primitive + * fields with default value. Note that explicit field mask is required in order to reset a + * primitive field back to its default value, for example, false for boolean fields, 0 for + * integer fields. A special field mask consisting of a single path "*" can be used to + * indicate full replacement(the equivalent of PUT method), updatable fields unset or + * unspecified in the input will be cleared or set to default value. Output only fields will + * be ignored regardless of the value of updateMask. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. List of fields to be updated. If empty or unspecified, the service will update all fields + populated in the update request excluding the output only fields and primitive fields with default + value. Note that explicit field mask is required in order to reset a primitive field back to its + default value, for example, false for boolean fields, 0 for integer fields. A special field mask + consisting of a single path "*" can be used to indicate full replacement(the equivalent of PUT + method), updatable fields unset or unspecified in the input will be cleared or set to default + value. Output only fields will be ignored regardless of the value of updateMask. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. List of fields to be updated. If empty or unspecified, the service will update + * all fields populated in the update request excluding the output only fields and primitive + * fields with default value. Note that explicit field mask is required in order to reset a + * primitive field back to its default value, for example, false for boolean fields, 0 for + * integer fields. A special field mask consisting of a single path "*" can be used to + * indicate full replacement(the equivalent of PUT method), updatable fields unset or + * unspecified in the input will be cleared or set to default value. Output only fields will + * be ignored regardless of the value of updateMask. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Reports collection. + * + *

The typical use is:

+ *
+     *   {@code CurationPartners curationpartners = new CurationPartners(...);}
+     *   {@code CurationPartners.Reports.List request = curationpartners.reports().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Reports reports() { + return new Reports(); + } + + /** + * The "reports" collection of methods. + */ + public class Reports { + + /** + * Creates a `Report` object. + * + * Create a request for the method "reports.create". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where this `Report` will be created. Format: `curators/{account_id}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.Report} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.curationpartners.v1.model.Report content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+parent}/reports"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+$"); + + /** + * Creates a `Report` object. + * + * Create a request for the method "reports.create". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where this `Report` will be created. Format: `curators/{account_id}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.Report} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.curationpartners.v1.model.Report content) { + super(CurationPartners.this, "POST", REST_PATH, content, com.google.api.services.curationpartners.v1.model.Report.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^curators/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where this `Report` will be created. Format: + * `curators/{account_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this `Report` will be created. Format: `curators/{account_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this `Report` will be created. Format: + * `curators/{account_id}` + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^curators/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a `Report` object. + * + * Create a request for the method "reports.delete". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name of the report to delete. Format: `curators/{account_id}/reports/{report_id}` + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/reports/[^/]+$"); + + /** + * Deletes a `Report` object. + * + * Create a request for the method "reports.delete". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Resource name of the report to delete. Format: `curators/{account_id}/reports/{report_id}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CurationPartners.this, "DELETE", REST_PATH, null, com.google.api.services.curationpartners.v1.model.Empty.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 " + + "^curators/[^/]+/reports/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Resource name of the report to delete. Format: + * `curators/{account_id}/reports/{report_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name of the report to delete. Format: + `curators/{account_id}/reports/{report_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name of the report to delete. Format: + * `curators/{account_id}/reports/{report_id}` + */ + public Delete 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 " + + "^curators/[^/]+/reports/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves a `Report` object. + * + * Create a request for the method "reports.get". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the report. Format: `curators/{account_id}/reports/{report_id}` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/reports/[^/]+$"); + + /** + * Retrieves a `Report` object. + * + * Create a request for the method "reports.get". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The resource name of the report. Format: `curators/{account_id}/reports/{report_id}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CurationPartners.this, "GET", REST_PATH, null, com.google.api.services.curationpartners.v1.model.Report.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 " + + "^curators/[^/]+/reports/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the report. Format: + * `curators/{account_id}/reports/{report_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the report. Format: `curators/{account_id}/reports/{report_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the report. Format: + * `curators/{account_id}/reports/{report_id}` + */ + public Get 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 " + + "^curators/[^/]+/reports/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists `Report` objects. + * + * Create a request for the method "reports.list". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent, which owns this collection of reports. Format: `curators/{account_id}` + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+parent}/reports"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+$"); + + /** + * Lists `Report` objects. + * + * Create a request for the method "reports.list". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent, which owns this collection of reports. Format: `curators/{account_id}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CurationPartners.this, "GET", REST_PATH, null, com.google.api.services.curationpartners.v1.model.ListReportsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^curators/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent, which owns this collection of reports. Format: + * `curators/{account_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent, which owns this collection of reports. Format: `curators/{account_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent, which owns this collection of reports. Format: + * `curators/{account_id}` + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^curators/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Expression to filter the response. See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Expression to filter the response. See syntax details at + https://developers.google.com/ad-manager/api/beta/filters + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Expression to filter the response. See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Expression to specify sorting order. See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Expression to specify sorting order. See syntax details at + https://developers.google.com/ad-manager/api/beta/filters#order + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Expression to specify sorting order. See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of `Reports` to return. The service may return fewer than + * this value. If unspecified, at most 50 `Reports` will be returned. The maximum value is + * 1000; values greater than 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of `Reports` to return. The service may return fewer than this value. + If unspecified, at most 50 `Reports` will be returned. The maximum value is 1000; values greater + than 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of `Reports` to return. The service may return fewer than + * this value. If unspecified, at most 50 `Reports` will be returned. The maximum value is + * 1000; values greater than 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListReports` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListReports` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListReports` call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to `ListReports` must match the + call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListReports` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListReports` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Optional. Number of individual resources to skip while paginating. */ + @com.google.api.client.util.Key + private java.lang.Integer skip; + + /** Optional. Number of individual resources to skip while paginating. + */ + public java.lang.Integer getSkip() { + return skip; + } + + /** Optional. Number of individual resources to skip while paginating. */ + public List setSkip(java.lang.Integer skip) { + this.skip = skip; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a `Report` object. + * + * Create a request for the method "reports.patch". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name of the report. Report resource name have the form: + * `curators/{account_id}/reports/{report_id}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.Report} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.curationpartners.v1.model.Report content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/reports/[^/]+$"); + + /** + * Updates a `Report` object. + * + * Create a request for the method "reports.patch". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. The resource name of the report. Report resource name have the form: + * `curators/{account_id}/reports/{report_id}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.Report} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.curationpartners.v1.model.Report content) { + super(CurationPartners.this, "PATCH", REST_PATH, content, com.google.api.services.curationpartners.v1.model.Report.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 " + + "^curators/[^/]+/reports/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The resource name of the report. Report resource name have the form: + * `curators/{account_id}/reports/{report_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the report. Report resource name have the form: + `curators/{account_id}/reports/{report_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the report. Report resource name have the form: + * `curators/{account_id}/reports/{report_id}` + */ + public Patch 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 " + + "^curators/[^/]+/reports/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Initiates the execution of an existing report asynchronously. Users can get the report by polling + * this operation using `OperationsService.GetOperation`. Poll every 5 seconds initially, with an + * exponential backoff. Once a report is complete, the operation will contain a `RunReportResponse` + * in its response field containing a report_result that can be passed to the + * `FetchReportResultRows` method to retrieve the report data. + * + * Create a request for the method "reports.run". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Run#execute()} method to invoke the remote operation. + * + * @param name Required. The report to run. Format: `curators/{account_id}/reports/{report_id}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.RunReportRequest} + * @return the request + */ + public Run run(java.lang.String name, com.google.api.services.curationpartners.v1.model.RunReportRequest content) throws java.io.IOException { + Run result = new Run(name, content); + initialize(result); + return result; + } + + public class Run extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}:run"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/reports/[^/]+$"); + + /** + * Initiates the execution of an existing report asynchronously. Users can get the report by + * polling this operation using `OperationsService.GetOperation`. Poll every 5 seconds initially, + * with an exponential backoff. Once a report is complete, the operation will contain a + * `RunReportResponse` in its response field containing a report_result that can be passed to the + * `FetchReportResultRows` method to retrieve the report data. + * + * Create a request for the method "reports.run". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Run#execute()} method to invoke the remote operation.

+ * {@link Run#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The report to run. Format: `curators/{account_id}/reports/{report_id}` + * @param content the {@link com.google.api.services.curationpartners.v1.model.RunReportRequest} + * @since 1.13 + */ + protected Run(java.lang.String name, com.google.api.services.curationpartners.v1.model.RunReportRequest content) { + super(CurationPartners.this, "POST", REST_PATH, content, com.google.api.services.curationpartners.v1.model.Operation.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 " + + "^curators/[^/]+/reports/[^/]+$"); + } + } + + @Override + public Run set$Xgafv(java.lang.String $Xgafv) { + return (Run) super.set$Xgafv($Xgafv); + } + + @Override + public Run setAccessToken(java.lang.String accessToken) { + return (Run) super.setAccessToken(accessToken); + } + + @Override + public Run setAlt(java.lang.String alt) { + return (Run) super.setAlt(alt); + } + + @Override + public Run setCallback(java.lang.String callback) { + return (Run) super.setCallback(callback); + } + + @Override + public Run setFields(java.lang.String fields) { + return (Run) super.setFields(fields); + } + + @Override + public Run setKey(java.lang.String key) { + return (Run) super.setKey(key); + } + + @Override + public Run setOauthToken(java.lang.String oauthToken) { + return (Run) super.setOauthToken(oauthToken); + } + + @Override + public Run setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Run) super.setPrettyPrint(prettyPrint); + } + + @Override + public Run setQuotaUser(java.lang.String quotaUser) { + return (Run) super.setQuotaUser(quotaUser); + } + + @Override + public Run setUploadType(java.lang.String uploadType) { + return (Run) super.setUploadType(uploadType); + } + + @Override + public Run setUploadProtocol(java.lang.String uploadProtocol) { + return (Run) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The report to run. Format: `curators/{account_id}/reports/{report_id}` */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The report to run. Format: `curators/{account_id}/reports/{report_id}` + */ + public java.lang.String getName() { + return name; + } + + /** Required. The report to run. Format: `curators/{account_id}/reports/{report_id}` */ + public Run 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 " + + "^curators/[^/]+/reports/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Run set(String parameterName, Object value) { + return (Run) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+       *   {@code CurationPartners curationpartners = new CurationPartners(...);}
+       *   {@code CurationPartners.Operations.List request = curationpartners.operations().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/reports/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CurationPartners.this, "GET", REST_PATH, null, com.google.api.services.curationpartners.v1.model.Operation.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 " + + "^curators/[^/]+/reports/[^/]+/operations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get 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 " + + "^curators/[^/]+/reports/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Results collection. + * + *

The typical use is:

+ *
+       *   {@code CurationPartners curationpartners = new CurationPartners(...);}
+       *   {@code CurationPartners.Results.List request = curationpartners.results().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Results results() { + return new Results(); + } + + /** + * The "results" collection of methods. + */ + public class Results { + + /** + * Returns the result rows from a completed report. The caller must have previously called + * `RunReport` and waited for that operation to complete. The rows will be returned according to the + * order specified by the `sorts` member of the report definition. + * + * Create a request for the method "results.fetchRows". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link FetchRows#execute()} method to invoke the remote operation. + * + * @param name The report result being fetched. Format: + * `curators/{account_id}/reports/{report_id}/results/{report_result_id}` + * @return the request + */ + public FetchRows fetchRows(java.lang.String name) throws java.io.IOException { + FetchRows result = new FetchRows(name); + initialize(result); + return result; + } + + public class FetchRows extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/{+name}:fetchRows"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^curators/[^/]+/reports/[^/]+/results/[^/]+$"); + + /** + * Returns the result rows from a completed report. The caller must have previously called + * `RunReport` and waited for that operation to complete. The rows will be returned according to + * the order specified by the `sorts` member of the report definition. + * + * Create a request for the method "results.fetchRows". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link FetchRows#execute()} method to invoke the remote + * operation.

{@link + * FetchRows#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The report result being fetched. Format: + * `curators/{account_id}/reports/{report_id}/results/{report_result_id}` + * @since 1.13 + */ + protected FetchRows(java.lang.String name) { + super(CurationPartners.this, "GET", REST_PATH, null, com.google.api.services.curationpartners.v1.model.FetchReportResultRowsResponse.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 " + + "^curators/[^/]+/reports/[^/]+/results/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public FetchRows set$Xgafv(java.lang.String $Xgafv) { + return (FetchRows) super.set$Xgafv($Xgafv); + } + + @Override + public FetchRows setAccessToken(java.lang.String accessToken) { + return (FetchRows) super.setAccessToken(accessToken); + } + + @Override + public FetchRows setAlt(java.lang.String alt) { + return (FetchRows) super.setAlt(alt); + } + + @Override + public FetchRows setCallback(java.lang.String callback) { + return (FetchRows) super.setCallback(callback); + } + + @Override + public FetchRows setFields(java.lang.String fields) { + return (FetchRows) super.setFields(fields); + } + + @Override + public FetchRows setKey(java.lang.String key) { + return (FetchRows) super.setKey(key); + } + + @Override + public FetchRows setOauthToken(java.lang.String oauthToken) { + return (FetchRows) super.setOauthToken(oauthToken); + } + + @Override + public FetchRows setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FetchRows) super.setPrettyPrint(prettyPrint); + } + + @Override + public FetchRows setQuotaUser(java.lang.String quotaUser) { + return (FetchRows) super.setQuotaUser(quotaUser); + } + + @Override + public FetchRows setUploadType(java.lang.String uploadType) { + return (FetchRows) super.setUploadType(uploadType); + } + + @Override + public FetchRows setUploadProtocol(java.lang.String uploadProtocol) { + return (FetchRows) super.setUploadProtocol(uploadProtocol); + } + + /** + * The report result being fetched. Format: + * `curators/{account_id}/reports/{report_id}/results/{report_result_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The report result being fetched. Format: + `curators/{account_id}/reports/{report_id}/results/{report_result_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * The report result being fetched. Format: + * `curators/{account_id}/reports/{report_id}/results/{report_result_id}` + */ + public FetchRows 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 " + + "^curators/[^/]+/reports/[^/]+/results/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The maximum number of rows to return. The service may return fewer than this + * value. If unspecified, at most 1,000 rows will be returned. The maximum value is + * 10,000; values greater than 10,000 will be reduced to 10,000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of rows to return. The service may return fewer than this value. If + unspecified, at most 1,000 rows will be returned. The maximum value is 10,000; values greater than + 10,000 will be reduced to 10,000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of rows to return. The service may return fewer than this + * value. If unspecified, at most 1,000 rows will be returned. The maximum value is + * 10,000; values greater than 10,000 will be reduced to 10,000. + */ + public FetchRows setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `FetchReportResultRows` call. Provide + * this to retrieve the second and subsequent batches of rows. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `FetchReportResultRows` call. Provide this to + retrieve the second and subsequent batches of rows. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `FetchReportResultRows` call. Provide + * this to retrieve the second and subsequent batches of rows. + */ + public FetchRows setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public FetchRows set(String parameterName, Object value) { + return (FetchRows) super.set(parameterName, value); + } + } + + } + } + } + + /** + * An accessor for creating requests from the MediaPlanners collection. + * + *

The typical use is:

+ *
+   *   {@code CurationPartners curationpartners = new CurationPartners(...);}
+   *   {@code CurationPartners.MediaPlanners.List request = curationpartners.mediaPlanners().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public MediaPlanners mediaPlanners() { + return new MediaPlanners(); + } + + /** + * The "mediaPlanners" collection of methods. + */ + public class MediaPlanners { + + /** + * Lists all media planner accounts that the caller has access to. For curators, this will return + * all media planners that have accepted curator terms. For other accounts, attempting to list media + * planners will return an error. + * + * Create a request for the method "mediaPlanners.list". + * + * This request holds the parameters needed by the curationpartners server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @return the request + */ + public List list() throws java.io.IOException { + List result = new List(); + initialize(result); + return result; + } + + public class List extends CurationPartnersRequest { + + private static final String REST_PATH = "v1/mediaPlanners"; + + /** + * Lists all media planner accounts that the caller has access to. For curators, this will return + * all media planners that have accepted curator terms. For other accounts, attempting to list + * media planners will return an error. + * + * Create a request for the method "mediaPlanners.list". + * + * This request holds the parameters needed by the the curationpartners server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @since 1.13 + */ + protected List() { + super(CurationPartners.this, "GET", REST_PATH, null, com.google.api.services.curationpartners.v1.model.ListMediaPlannersResponse.class); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Optional query string using the [Cloud API list filtering syntax](/authorized- + * buyers/apis/guides/list-filters). Supported columns for filtering are: * `name` * + * `displayName` * `ancestorNames` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional query string using the [Cloud API list filtering syntax](/authorized- + buyers/apis/guides/list-filters). Supported columns for filtering are: * `name` * `displayName` * + `ancestorNames` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional query string using the [Cloud API list filtering syntax](/authorized- + * buyers/apis/guides/list-filters). Supported columns for filtering are: * `name` * + * `displayName` * `ancestorNames` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of media planners to return. If unspecified, at most 100 media planners + * will be returned. The maximum value is 500; values above 500 will be coerced to 500. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of media planners to return. If unspecified, at most 100 media planners will be + returned. The maximum value is 500; values above 500 will be coerced to 500. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of media planners to return. If unspecified, at most 100 media planners + * will be returned. The maximum value is 500; values above 500 will be coerced to 500. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A token identifying a page of results the server should return.This value is + * received from a previous `ListMediaPlanners` call in + * ListMediaPlannersResponse.nextPageToken. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results the server should return.This value is received + from a previous `ListMediaPlanners` call in ListMediaPlannersResponse.nextPageToken. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token identifying a page of results the server should return.This value is + * received from a previous `ListMediaPlanners` call in + * ListMediaPlannersResponse.nextPageToken. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * Builder for {@link CurationPartners}. + * + *

+ * Implementation is not thread-safe. + *

+ * + * @since 1.3.0 + */ + public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { + + private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { + // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. + // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. + // Use the regular endpoint for all other cases. + String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); + useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; + if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { + return DEFAULT_MTLS_ROOT_URL; + } + return DEFAULT_ROOT_URL; + } + + /** + * Returns an instance of a new builder. + * + * @param transport HTTP transport, which should normally be: + *
    + *
  • Google App Engine: + * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • + *
  • Android: {@code newCompatibleTransport} from + * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • + *
+ * @param jsonFactory JSON factory, which may be: + *
    + *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • + *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • + *
  • Android Honeycomb or higher: + * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • + *
+ * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + super( + transport, + jsonFactory, + Builder.chooseEndpoint(transport), + DEFAULT_SERVICE_PATH, + httpRequestInitializer, + false); + setBatchPath(DEFAULT_BATCH_PATH); + } + + /** Builds a new instance of {@link CurationPartners}. */ + @Override + public CurationPartners build() { + return new CurationPartners(this); + } + + @Override + public Builder setRootUrl(String rootUrl) { + return (Builder) super.setRootUrl(rootUrl); + } + + @Override + public Builder setServicePath(String servicePath) { + return (Builder) super.setServicePath(servicePath); + } + + @Override + public Builder setBatchPath(String batchPath) { + return (Builder) super.setBatchPath(batchPath); + } + + @Override + public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); + } + + @Override + public Builder setApplicationName(String applicationName) { + return (Builder) super.setApplicationName(applicationName); + } + + @Override + public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { + return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); + } + + @Override + public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { + return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); + } + + @Override + public Builder setSuppressAllChecks(boolean suppressAllChecks) { + return (Builder) super.setSuppressAllChecks(suppressAllChecks); + } + + /** + * Set the {@link CurationPartnersRequestInitializer}. + * + * @since 1.12 + */ + public Builder setCurationPartnersRequestInitializer( + CurationPartnersRequestInitializer curationpartnersRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(curationpartnersRequestInitializer); + } + + @Override + public Builder setGoogleClientRequestInitializer( + com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); + } + + @Override + public Builder setUniverseDomain(String universeDomain) { + return (Builder) super.setUniverseDomain(universeDomain); + } + } +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartnersRequest.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartnersRequest.java new file mode 100644 index 00000000000..74dc2205072 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartnersRequest.java @@ -0,0 +1,267 @@ +/* + * 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.curationpartners.v1; + +/** + * CurationPartners request. + * + * @since 1.3 + */ +@SuppressWarnings("javadoc") +public abstract class CurationPartnersRequest extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest { + + /** + * @param client Google client + * @param method HTTP Method + * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/" + * the base path from the base URL will be stripped out. The URI template can also be a + * full URL. URI template expansion is done using + * {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)} + * @param content A POJO that can be serialized into JSON or {@code null} for none + * @param responseClass response class to parse into + */ + public CurationPartnersRequest( + CurationPartners client, String method, String uriTemplate, Object content, Class responseClass) { + super( + client, + method, + uriTemplate, + content, + responseClass); + } + + /** V1 error format. */ + @com.google.api.client.util.Key("$.xgafv") + private java.lang.String $Xgafv; + + /** + * V1 error format. + */ + public java.lang.String get$Xgafv() { + return $Xgafv; + } + + /** V1 error format. */ + public CurationPartnersRequest set$Xgafv(java.lang.String $Xgafv) { + this.$Xgafv = $Xgafv; + return this; + } + + /** OAuth access token. */ + @com.google.api.client.util.Key("access_token") + private java.lang.String accessToken; + + /** + * OAuth access token. + */ + public java.lang.String getAccessToken() { + return accessToken; + } + + /** OAuth access token. */ + public CurationPartnersRequest setAccessToken(java.lang.String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** Data format for response. */ + @com.google.api.client.util.Key + private java.lang.String alt; + + /** + * Data format for response. [default: json] + */ + public java.lang.String getAlt() { + return alt; + } + + /** Data format for response. */ + public CurationPartnersRequest setAlt(java.lang.String alt) { + this.alt = alt; + return this; + } + + /** JSONP */ + @com.google.api.client.util.Key + private java.lang.String callback; + + /** + * JSONP + */ + public java.lang.String getCallback() { + return callback; + } + + /** JSONP */ + public CurationPartnersRequest setCallback(java.lang.String callback) { + this.callback = callback; + return this; + } + + /** Selector specifying which fields to include in a partial response. */ + @com.google.api.client.util.Key + private java.lang.String fields; + + /** + * Selector specifying which fields to include in a partial response. + */ + public java.lang.String getFields() { + return fields; + } + + /** Selector specifying which fields to include in a partial response. */ + public CurationPartnersRequest setFields(java.lang.String fields) { + this.fields = fields; + return this; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public java.lang.String getKey() { + return key; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public CurationPartnersRequest setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** OAuth 2.0 token for the current user. */ + @com.google.api.client.util.Key("oauth_token") + private java.lang.String oauthToken; + + /** + * OAuth 2.0 token for the current user. + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** OAuth 2.0 token for the current user. */ + public CurationPartnersRequest setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + /** Returns response with indentations and line breaks. */ + @com.google.api.client.util.Key + private java.lang.Boolean prettyPrint; + + /** + * Returns response with indentations and line breaks. [default: true] + */ + public java.lang.Boolean getPrettyPrint() { + return prettyPrint; + } + + /** Returns response with indentations and line breaks. */ + public CurationPartnersRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + this.prettyPrint = prettyPrint; + return this; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String quotaUser; + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public java.lang.String getQuotaUser() { + return quotaUser; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public CurationPartnersRequest setQuotaUser(java.lang.String quotaUser) { + this.quotaUser = quotaUser; + return this; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + @com.google.api.client.util.Key + private java.lang.String uploadType; + + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + public java.lang.String getUploadType() { + return uploadType; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + public CurationPartnersRequest setUploadType(java.lang.String uploadType) { + this.uploadType = uploadType; + return this; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + @com.google.api.client.util.Key("upload_protocol") + private java.lang.String uploadProtocol; + + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + public java.lang.String getUploadProtocol() { + return uploadProtocol; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + public CurationPartnersRequest setUploadProtocol(java.lang.String uploadProtocol) { + this.uploadProtocol = uploadProtocol; + return this; + } + + @Override + public final CurationPartners getAbstractGoogleClient() { + return (CurationPartners) super.getAbstractGoogleClient(); + } + + @Override + public CurationPartnersRequest setDisableGZipContent(boolean disableGZipContent) { + return (CurationPartnersRequest) super.setDisableGZipContent(disableGZipContent); + } + + @Override + public CurationPartnersRequest setRequestHeaders(com.google.api.client.http.HttpHeaders headers) { + return (CurationPartnersRequest) super.setRequestHeaders(headers); + } + + @Override + public CurationPartnersRequest set(String parameterName, Object value) { + return (CurationPartnersRequest) super.set(parameterName, value); + } +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartnersRequestInitializer.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartnersRequestInitializer.java new file mode 100644 index 00000000000..2e531c4111d --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartnersRequestInitializer.java @@ -0,0 +1,119 @@ +/* + * 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.curationpartners.v1; + +/** + * CurationPartners request initializer for setting properties like key and userIp. + * + *

+ * The simplest usage is to use it to set the key parameter: + *

+ * + *
+  public static final GoogleClientRequestInitializer KEY_INITIALIZER =
+      new CurationPartnersRequestInitializer(KEY);
+ * 
+ * + *

+ * There is also a constructor to set both the key and userIp parameters: + *

+ * + *
+  public static final GoogleClientRequestInitializer INITIALIZER =
+      new CurationPartnersRequestInitializer(KEY, USER_IP);
+ * 
+ * + *

+ * If you want to implement custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer extends CurationPartnersRequestInitializer {
+
+    {@literal @}Override
+    public void initializeCurationPartnersRequest(CurationPartnersRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Finally, to set the key and userIp parameters and insert custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer2 extends CurationPartnersRequestInitializer {
+
+    public MyKeyRequestInitializer() {
+      super(KEY, USER_IP);
+    }
+
+    {@literal @}Override
+    public void initializeCurationPartnersRequest(CurationPartnersRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Subclasses should be thread-safe. + *

+ * + * @since 1.12 + */ +public class CurationPartnersRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public CurationPartnersRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public CurationPartnersRequestInitializer(String key) { + super(key); + } + + /** + * @param key API key or {@code null} to leave it unchanged + * @param userIp user IP or {@code null} to leave it unchanged + */ + public CurationPartnersRequestInitializer(String key, String userIp) { + super(key, userIp); + } + + @Override + public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest request) throws java.io.IOException { + super.initializeJsonRequest(request); + initializeCurationPartnersRequest((CurationPartnersRequest) request); + } + + /** + * Initializes CurationPartners request. + * + *

+ * Default implementation does nothing. Called from + * {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}. + *

+ * + * @throws java.io.IOException I/O exception + */ + protected void initializeCurationPartnersRequest(CurationPartnersRequest request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartnersScopes.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartnersScopes.java new file mode 100644 index 00000000000..d42ccee45ee --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartnersScopes.java @@ -0,0 +1,42 @@ +/* + * 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.curationpartners.v1; + +/** + * Available OAuth 2.0 scopes for use with the Curation Partners API. + * + * @since 1.4 + */ +public class CurationPartnersScopes { + + /** See, create, edit, and delete data entities in your Curation account.. */ + public static final String CURATION_PARTNERS = "https://www.googleapis.com/auth/curation-partners"; + + /** + * Returns an unmodifiable set that contains all scopes declared by this class. + * + * @since 1.16 + */ + public static java.util.Set all() { + java.util.Set set = new java.util.HashSet(); + set.add(CURATION_PARTNERS); + return java.util.Collections.unmodifiableSet(set); + } + + private CurationPartnersScopes() { + } +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/AccessControlSettings.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/AccessControlSettings.java new file mode 100644 index 00000000000..a8b46a94cb3 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/AccessControlSettings.java @@ -0,0 +1,76 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Settings for controlling access to a curated package. + * + *

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 Curation Partners 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 AccessControlSettings extends com.google.api.client.json.GenericJson { + + /** + * Required. Immutable. The list of media planners that are explicitly granted access to the + * curated package. Eligible media planners can be found in the mediaPlanners.list method. Only a + * single media planner may be allowlisted at this time. Format: + * `mediaPlanners/{mediaPlannerAccountId}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowlistedMediaPlanners; + + /** + * Required. Immutable. The list of media planners that are explicitly granted access to the + * curated package. Eligible media planners can be found in the mediaPlanners.list method. Only a + * single media planner may be allowlisted at this time. Format: + * `mediaPlanners/{mediaPlannerAccountId}` + * @return value or {@code null} for none + */ + public java.util.List getAllowlistedMediaPlanners() { + return allowlistedMediaPlanners; + } + + /** + * Required. Immutable. The list of media planners that are explicitly granted access to the + * curated package. Eligible media planners can be found in the mediaPlanners.list method. Only a + * single media planner may be allowlisted at this time. Format: + * `mediaPlanners/{mediaPlannerAccountId}` + * @param allowlistedMediaPlanners allowlistedMediaPlanners or {@code null} for none + */ + public AccessControlSettings setAllowlistedMediaPlanners(java.util.List allowlistedMediaPlanners) { + this.allowlistedMediaPlanners = allowlistedMediaPlanners; + return this; + } + + @Override + public AccessControlSettings set(String fieldName, Object value) { + return (AccessControlSettings) super.set(fieldName, value); + } + + @Override + public AccessControlSettings clone() { + return (AccessControlSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ActivateCuratedPackageRequest.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ActivateCuratedPackageRequest.java new file mode 100644 index 00000000000..cf9ce04590a --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ActivateCuratedPackageRequest.java @@ -0,0 +1,43 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Request message for ActivateCuratedPackage. + * + *

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 Curation Partners 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 ActivateCuratedPackageRequest extends com.google.api.client.json.GenericJson { + + @Override + public ActivateCuratedPackageRequest set(String fieldName, Object value) { + return (ActivateCuratedPackageRequest) super.set(fieldName, value); + } + + @Override + public ActivateCuratedPackageRequest clone() { + return (ActivateCuratedPackageRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ActivateDataSegmentRequest.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ActivateDataSegmentRequest.java new file mode 100644 index 00000000000..d1be2272388 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ActivateDataSegmentRequest.java @@ -0,0 +1,43 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Request message for activating a data segment + * + *

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 Curation Partners 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 ActivateDataSegmentRequest extends com.google.api.client.json.GenericJson { + + @Override + public ActivateDataSegmentRequest set(String fieldName, Object value) { + return (ActivateDataSegmentRequest) super.set(fieldName, value); + } + + @Override + public ActivateDataSegmentRequest clone() { + return (ActivateDataSegmentRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/AdSize.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/AdSize.java new file mode 100644 index 00000000000..4d3472b45e5 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/AdSize.java @@ -0,0 +1,115 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Represents size of a single ad slot, or a creative. + * + *

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 Curation Partners 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 AdSize extends com.google.api.client.json.GenericJson { + + /** + * The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long height; + + /** + * The type of the ad slot size. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long width; + + /** + * The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`. + * @return value or {@code null} for none + */ + public java.lang.Long getHeight() { + return height; + } + + /** + * The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`. + * @param height height or {@code null} for none + */ + public AdSize setHeight(java.lang.Long height) { + this.height = height; + return this; + } + + /** + * The type of the ad slot size. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of the ad slot size. + * @param type type or {@code null} for none + */ + public AdSize setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`. + * @return value or {@code null} for none + */ + public java.lang.Long getWidth() { + return width; + } + + /** + * The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`. + * @param width width or {@code null} for none + */ + public AdSize setWidth(java.lang.Long width) { + this.width = width; + return this; + } + + @Override + public AdSize set(String fieldName, Object value) { + return (AdSize) super.set(fieldName, value); + } + + @Override + public AdSize clone() { + return (AdSize) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/CriteriaTargeting.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/CriteriaTargeting.java new file mode 100644 index 00000000000..e2def19ecbf --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/CriteriaTargeting.java @@ -0,0 +1,92 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Generic targeting used for targeting dimensions that contains a list of included and excluded + * numeric IDs. This cannot be filtered using list filter syntax. + * + *

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 Curation Partners 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 CriteriaTargeting extends com.google.api.client.json.GenericJson { + + /** + * A list of numeric IDs to be excluded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.List excludedCriteriaIds; + + /** + * A list of numeric IDs to be included. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.List targetedCriteriaIds; + + /** + * A list of numeric IDs to be excluded. + * @return value or {@code null} for none + */ + public java.util.List getExcludedCriteriaIds() { + return excludedCriteriaIds; + } + + /** + * A list of numeric IDs to be excluded. + * @param excludedCriteriaIds excludedCriteriaIds or {@code null} for none + */ + public CriteriaTargeting setExcludedCriteriaIds(java.util.List excludedCriteriaIds) { + this.excludedCriteriaIds = excludedCriteriaIds; + return this; + } + + /** + * A list of numeric IDs to be included. + * @return value or {@code null} for none + */ + public java.util.List getTargetedCriteriaIds() { + return targetedCriteriaIds; + } + + /** + * A list of numeric IDs to be included. + * @param targetedCriteriaIds targetedCriteriaIds or {@code null} for none + */ + public CriteriaTargeting setTargetedCriteriaIds(java.util.List targetedCriteriaIds) { + this.targetedCriteriaIds = targetedCriteriaIds; + return this; + } + + @Override + public CriteriaTargeting set(String fieldName, Object value) { + return (CriteriaTargeting) super.set(fieldName, value); + } + + @Override + public CriteriaTargeting clone() { + return (CriteriaTargeting) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/CuratedPackage.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/CuratedPackage.java new file mode 100644 index 00000000000..5b1f79a4251 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/CuratedPackage.java @@ -0,0 +1,364 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Represents a curated package of inventory created and managed by a Curator. + * + *

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 Curation Partners 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 CuratedPackage extends com.google.api.client.json.GenericJson { + + /** + * Required. Settings for controlling access to the curated package. Access to this curated + * package is limited to the allowlisted media planners and the creator. Buyers and bidders can + * not be allowlisted for or have direct access to this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AccessControlSettings accessSettings; + + /** + * Output only. The timestamp when the curated package was created. Can be used to filter the + * response of the curatedPackages.list method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Immutable. The visibility of the combined curation package fee and data segment fees + * (the total curation fee). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String curationFeeVisibility; + + /** + * Optional. A description of the curated package, provided by the curator. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The display name assigned to the curated package by the curator. Can be used to + * filter the response of the curatedPackages.list method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. The CPM fee charged by the curator to buyers using this curated package. Can be used + * to filter the response of the curatedPackages.list method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Money feeCpm; + + /** + * Optional. The minimum CPM a buyer has to bid to participate in auctions for inventory in this + * curated package. Can be used to filter the response of the curatedPackages.list method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Money floorPriceCpm; + + /** + * Optional. The fee will be charged as a percentage of the impression cost, represented in + * millipercent. For example, 1% is represented as 1000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long millipercentOfMediaFee; + + /** + * Identifier. The unique resource name for the curated package. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The state of the curated package. Can be used to filter the response of the + * curatedPackages.list method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Optional. Targeting criteria for the curated package. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PackageTargeting targeting; + + /** + * Output only. The timestamp when the curated package was last updated. Can be used to filter the + * response of the curatedPackages.list method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. Settings for controlling access to the curated package. Access to this curated + * package is limited to the allowlisted media planners and the creator. Buyers and bidders can + * not be allowlisted for or have direct access to this resource. + * @return value or {@code null} for none + */ + public AccessControlSettings getAccessSettings() { + return accessSettings; + } + + /** + * Required. Settings for controlling access to the curated package. Access to this curated + * package is limited to the allowlisted media planners and the creator. Buyers and bidders can + * not be allowlisted for or have direct access to this resource. + * @param accessSettings accessSettings or {@code null} for none + */ + public CuratedPackage setAccessSettings(AccessControlSettings accessSettings) { + this.accessSettings = accessSettings; + return this; + } + + /** + * Output only. The timestamp when the curated package was created. Can be used to filter the + * response of the curatedPackages.list method. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The timestamp when the curated package was created. Can be used to filter the + * response of the curatedPackages.list method. + * @param createTime createTime or {@code null} for none + */ + public CuratedPackage setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Immutable. The visibility of the combined curation package fee and data segment fees + * (the total curation fee). + * @return value or {@code null} for none + */ + public java.lang.String getCurationFeeVisibility() { + return curationFeeVisibility; + } + + /** + * Optional. Immutable. The visibility of the combined curation package fee and data segment fees + * (the total curation fee). + * @param curationFeeVisibility curationFeeVisibility or {@code null} for none + */ + public CuratedPackage setCurationFeeVisibility(java.lang.String curationFeeVisibility) { + this.curationFeeVisibility = curationFeeVisibility; + return this; + } + + /** + * Optional. A description of the curated package, provided by the curator. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. A description of the curated package, provided by the curator. + * @param description description or {@code null} for none + */ + public CuratedPackage setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The display name assigned to the curated package by the curator. Can be used to + * filter the response of the curatedPackages.list method. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. The display name assigned to the curated package by the curator. Can be used to + * filter the response of the curatedPackages.list method. + * @param displayName displayName or {@code null} for none + */ + public CuratedPackage setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. The CPM fee charged by the curator to buyers using this curated package. Can be used + * to filter the response of the curatedPackages.list method. + * @return value or {@code null} for none + */ + public Money getFeeCpm() { + return feeCpm; + } + + /** + * Optional. The CPM fee charged by the curator to buyers using this curated package. Can be used + * to filter the response of the curatedPackages.list method. + * @param feeCpm feeCpm or {@code null} for none + */ + public CuratedPackage setFeeCpm(Money feeCpm) { + this.feeCpm = feeCpm; + return this; + } + + /** + * Optional. The minimum CPM a buyer has to bid to participate in auctions for inventory in this + * curated package. Can be used to filter the response of the curatedPackages.list method. + * @return value or {@code null} for none + */ + public Money getFloorPriceCpm() { + return floorPriceCpm; + } + + /** + * Optional. The minimum CPM a buyer has to bid to participate in auctions for inventory in this + * curated package. Can be used to filter the response of the curatedPackages.list method. + * @param floorPriceCpm floorPriceCpm or {@code null} for none + */ + public CuratedPackage setFloorPriceCpm(Money floorPriceCpm) { + this.floorPriceCpm = floorPriceCpm; + return this; + } + + /** + * Optional. The fee will be charged as a percentage of the impression cost, represented in + * millipercent. For example, 1% is represented as 1000. + * @return value or {@code null} for none + */ + public java.lang.Long getMillipercentOfMediaFee() { + return millipercentOfMediaFee; + } + + /** + * Optional. The fee will be charged as a percentage of the impression cost, represented in + * millipercent. For example, 1% is represented as 1000. + * @param millipercentOfMediaFee millipercentOfMediaFee or {@code null} for none + */ + public CuratedPackage setMillipercentOfMediaFee(java.lang.Long millipercentOfMediaFee) { + this.millipercentOfMediaFee = millipercentOfMediaFee; + return this; + } + + /** + * Identifier. The unique resource name for the curated package. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique resource name for the curated package. Format: + * `curators/{accountId}/curatedPackages/{curatedPackageId}` + * @param name name or {@code null} for none + */ + public CuratedPackage setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The state of the curated package. Can be used to filter the response of the + * curatedPackages.list method. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the curated package. Can be used to filter the response of the + * curatedPackages.list method. + * @param state state or {@code null} for none + */ + public CuratedPackage setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Optional. Targeting criteria for the curated package. + * @return value or {@code null} for none + */ + public PackageTargeting getTargeting() { + return targeting; + } + + /** + * Optional. Targeting criteria for the curated package. + * @param targeting targeting or {@code null} for none + */ + public CuratedPackage setTargeting(PackageTargeting targeting) { + this.targeting = targeting; + return this; + } + + /** + * Output only. The timestamp when the curated package was last updated. Can be used to filter the + * response of the curatedPackages.list method. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The timestamp when the curated package was last updated. Can be used to filter the + * response of the curatedPackages.list method. + * @param updateTime updateTime or {@code null} for none + */ + public CuratedPackage setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public CuratedPackage set(String fieldName, Object value) { + return (CuratedPackage) super.set(fieldName, value); + } + + @Override + public CuratedPackage clone() { + return (CuratedPackage) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DataSegment.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DataSegment.java new file mode 100644 index 00000000000..20110ae6bc7 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DataSegment.java @@ -0,0 +1,240 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Defines an identifier for a segment of inventory that can be targeted by curators or media + * planners in the deals or auction packages UI. Curation of inventory is done by curators on + * external platforms. -- Next ID: 9 -- + * + *

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 Curation Partners 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 DataSegment extends com.google.api.client.json.GenericJson { + + /** + * Optional. A fixed fee charged per thousand impressions. Once set, the currency code cannot be + * changed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Money cpmFee; + + /** + * Output only. Time the data segment was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The fee will be charged as a percentage of the impression cost, represented in + * millipercent. For example, 1% is represented as 1000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long millipercentOfMediaFee; + + /** + * Immutable. Identifier. The unique identifier for the data segment. Account ID corresponds to + * the account ID that created the segment. Format: + * `curators/{curatorAccountId}/dataSegments/{curatorDataSegmentId}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The state of the data segment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. Time the data segment was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. Immutable. The ID of the User List wrapped by this Data Segment. Curators with a + * linked Data Partner account can create a data segment that wraps a user list owned by the + * linked Data Partner account. User lists can be uploaded and managed using the [Data Manager + * API](https://developers.google.com/data-manager/api/data-partners/audiences). Linking a user + * list to a data segment lets you define a segment of inventory that is based on an audience you + * create. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userListId; + + /** + * Optional. A fixed fee charged per thousand impressions. Once set, the currency code cannot be + * changed. + * @return value or {@code null} for none + */ + public Money getCpmFee() { + return cpmFee; + } + + /** + * Optional. A fixed fee charged per thousand impressions. Once set, the currency code cannot be + * changed. + * @param cpmFee cpmFee or {@code null} for none + */ + public DataSegment setCpmFee(Money cpmFee) { + this.cpmFee = cpmFee; + return this; + } + + /** + * Output only. Time the data segment was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Time the data segment was created. + * @param createTime createTime or {@code null} for none + */ + public DataSegment setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. The fee will be charged as a percentage of the impression cost, represented in + * millipercent. For example, 1% is represented as 1000. + * @return value or {@code null} for none + */ + public java.lang.Long getMillipercentOfMediaFee() { + return millipercentOfMediaFee; + } + + /** + * Optional. The fee will be charged as a percentage of the impression cost, represented in + * millipercent. For example, 1% is represented as 1000. + * @param millipercentOfMediaFee millipercentOfMediaFee or {@code null} for none + */ + public DataSegment setMillipercentOfMediaFee(java.lang.Long millipercentOfMediaFee) { + this.millipercentOfMediaFee = millipercentOfMediaFee; + return this; + } + + /** + * Immutable. Identifier. The unique identifier for the data segment. Account ID corresponds to + * the account ID that created the segment. Format: + * `curators/{curatorAccountId}/dataSegments/{curatorDataSegmentId}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. Identifier. The unique identifier for the data segment. Account ID corresponds to + * the account ID that created the segment. Format: + * `curators/{curatorAccountId}/dataSegments/{curatorDataSegmentId}` + * @param name name or {@code null} for none + */ + public DataSegment setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The state of the data segment. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the data segment. + * @param state state or {@code null} for none + */ + public DataSegment setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. Time the data segment was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Time the data segment was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public DataSegment setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Optional. Immutable. The ID of the User List wrapped by this Data Segment. Curators with a + * linked Data Partner account can create a data segment that wraps a user list owned by the + * linked Data Partner account. User lists can be uploaded and managed using the [Data Manager + * API](https://developers.google.com/data-manager/api/data-partners/audiences). Linking a user + * list to a data segment lets you define a segment of inventory that is based on an audience you + * create. + * @return value or {@code null} for none + */ + public java.lang.String getUserListId() { + return userListId; + } + + /** + * Optional. Immutable. The ID of the User List wrapped by this Data Segment. Curators with a + * linked Data Partner account can create a data segment that wraps a user list owned by the + * linked Data Partner account. User lists can be uploaded and managed using the [Data Manager + * API](https://developers.google.com/data-manager/api/data-partners/audiences). Linking a user + * list to a data segment lets you define a segment of inventory that is based on an audience you + * create. + * @param userListId userListId or {@code null} for none + */ + public DataSegment setUserListId(java.lang.String userListId) { + this.userListId = userListId; + return this; + } + + @Override + public DataSegment set(String fieldName, Object value) { + return (DataSegment) super.set(fieldName, value); + } + + @Override + public DataSegment clone() { + return (DataSegment) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Date.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Date.java new file mode 100644 index 00000000000..1cceae87b5f --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Date.java @@ -0,0 +1,124 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Represents a whole or partial calendar date, such as a birthday. The time of day and time zone + * are either specified elsewhere or are insignificant. The date is relative to the Gregorian + * Calendar. This can represent one of the following: * A full date, with non-zero year, month, and + * day values. * A month and day, with a zero year (for example, an anniversary). * A year on its + * own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit + * card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * + * google.protobuf.Timestamp + * + *

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 Curation Partners 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 Date extends com.google.api.client.json.GenericJson { + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer day; + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer month; + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer year; + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @return value or {@code null} for none + */ + public java.lang.Integer getDay() { + return day; + } + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @param day day or {@code null} for none + */ + public Date setDay(java.lang.Integer day) { + this.day = day; + return this; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @return value or {@code null} for none + */ + public java.lang.Integer getMonth() { + return month; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @param month month or {@code null} for none + */ + public Date setMonth(java.lang.Integer month) { + this.month = month; + return this; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @return value or {@code null} for none + */ + public java.lang.Integer getYear() { + return year; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @param year year or {@code null} for none + */ + public Date setYear(java.lang.Integer year) { + this.year = year; + return this; + } + + @Override + public Date set(String fieldName, Object value) { + return (Date) super.set(fieldName, value); + } + + @Override + public Date clone() { + return (Date) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DateRange.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DateRange.java new file mode 100644 index 00000000000..bf66c766a06 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DateRange.java @@ -0,0 +1,91 @@ +/* + * 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.curationpartners.v1.model; + +/** + * A date range for a report. + * + *

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 Curation Partners 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 DateRange extends com.google.api.client.json.GenericJson { + + /** + * A fixed date range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FixedDateRange fixed; + + /** + * A relative date range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String relative; + + /** + * A fixed date range. + * @return value or {@code null} for none + */ + public FixedDateRange getFixed() { + return fixed; + } + + /** + * A fixed date range. + * @param fixed fixed or {@code null} for none + */ + public DateRange setFixed(FixedDateRange fixed) { + this.fixed = fixed; + return this; + } + + /** + * A relative date range. + * @return value or {@code null} for none + */ + public java.lang.String getRelative() { + return relative; + } + + /** + * A relative date range. + * @param relative relative or {@code null} for none + */ + public DateRange setRelative(java.lang.String relative) { + this.relative = relative; + return this; + } + + @Override + public DateRange set(String fieldName, Object value) { + return (DateRange) super.set(fieldName, value); + } + + @Override + public DateRange clone() { + return (DateRange) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DeactivateCuratedPackageRequest.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DeactivateCuratedPackageRequest.java new file mode 100644 index 00000000000..84f5546dedb --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DeactivateCuratedPackageRequest.java @@ -0,0 +1,43 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Request message for DeactivateCuratedPackage. + * + *

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 Curation Partners 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 DeactivateCuratedPackageRequest extends com.google.api.client.json.GenericJson { + + @Override + public DeactivateCuratedPackageRequest set(String fieldName, Object value) { + return (DeactivateCuratedPackageRequest) super.set(fieldName, value); + } + + @Override + public DeactivateCuratedPackageRequest clone() { + return (DeactivateCuratedPackageRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DeactivateDataSegmentRequest.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DeactivateDataSegmentRequest.java new file mode 100644 index 00000000000..1137ad6ced6 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DeactivateDataSegmentRequest.java @@ -0,0 +1,43 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Request message for deactivating a data segment + * + *

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 Curation Partners 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 DeactivateDataSegmentRequest extends com.google.api.client.json.GenericJson { + + @Override + public DeactivateDataSegmentRequest set(String fieldName, Object value) { + return (DeactivateDataSegmentRequest) super.set(fieldName, value); + } + + @Override + public DeactivateDataSegmentRequest clone() { + return (DeactivateDataSegmentRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DoubleList.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DoubleList.java new file mode 100644 index 00000000000..3ed856f24a1 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DoubleList.java @@ -0,0 +1,67 @@ +/* + * 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.curationpartners.v1.model; + +/** + * A list of double values. + * + *

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 Curation Partners 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 DoubleList extends com.google.api.client.json.GenericJson { + + /** + * The values + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * The values + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * The values + * @param values values or {@code null} for none + */ + public DoubleList setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public DoubleList set(String fieldName, Object value) { + return (DoubleList) super.set(fieldName, value); + } + + @Override + public DoubleList clone() { + return (DoubleList) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Empty.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Empty.java new file mode 100644 index 00000000000..ca22a65d9f4 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Empty.java @@ -0,0 +1,45 @@ +/* + * 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.curationpartners.v1.model; + +/** + * A generic empty message that you can re-use to avoid defining duplicated empty messages in your + * APIs. A typical example is to use it as the request or the response type of an API method. For + * instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + * + *

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 Curation Partners 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 Empty extends com.google.api.client.json.GenericJson { + + @Override + public Empty set(String fieldName, Object value) { + return (Empty) super.set(fieldName, value); + } + + @Override + public Empty clone() { + return (Empty) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FetchReportResultRowsResponse.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FetchReportResultRowsResponse.java new file mode 100644 index 00000000000..d2dbaf0ca9e --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FetchReportResultRowsResponse.java @@ -0,0 +1,175 @@ +/* + * 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.curationpartners.v1.model; + +/** + * The response message for the fetch report result rows endpoint. + * + *

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 Curation Partners 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 FetchReportResultRowsResponse extends com.google.api.client.json.GenericJson { + + /** + * The computed fixed date ranges this report includes. Only returned with the first page of + * results (when page_token is not included in the request). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dateRanges; + + /** + * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Up to `page_size` rows of report data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rows; + + /** + * The time at which the report was scheduled to run. For non-scheduled reports, this is the time + * at which the report was requested to be run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String runTime; + + /** + * The total number of rows available from this report. Useful for pagination. Only returned with + * the first page of results (when page_token is not included in the request). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalRowCount; + + /** + * The computed fixed date ranges this report includes. Only returned with the first page of + * results (when page_token is not included in the request). + * @return value or {@code null} for none + */ + public java.util.List getDateRanges() { + return dateRanges; + } + + /** + * The computed fixed date ranges this report includes. Only returned with the first page of + * results (when page_token is not included in the request). + * @param dateRanges dateRanges or {@code null} for none + */ + public FetchReportResultRowsResponse setDateRanges(java.util.List dateRanges) { + this.dateRanges = dateRanges; + return this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public FetchReportResultRowsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Up to `page_size` rows of report data. + * @return value or {@code null} for none + */ + public java.util.List getRows() { + return rows; + } + + /** + * Up to `page_size` rows of report data. + * @param rows rows or {@code null} for none + */ + public FetchReportResultRowsResponse setRows(java.util.List rows) { + this.rows = rows; + return this; + } + + /** + * The time at which the report was scheduled to run. For non-scheduled reports, this is the time + * at which the report was requested to be run. + * @return value or {@code null} for none + */ + public String getRunTime() { + return runTime; + } + + /** + * The time at which the report was scheduled to run. For non-scheduled reports, this is the time + * at which the report was requested to be run. + * @param runTime runTime or {@code null} for none + */ + public FetchReportResultRowsResponse setRunTime(String runTime) { + this.runTime = runTime; + return this; + } + + /** + * The total number of rows available from this report. Useful for pagination. Only returned with + * the first page of results (when page_token is not included in the request). + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalRowCount() { + return totalRowCount; + } + + /** + * The total number of rows available from this report. Useful for pagination. Only returned with + * the first page of results (when page_token is not included in the request). + * @param totalRowCount totalRowCount or {@code null} for none + */ + public FetchReportResultRowsResponse setTotalRowCount(java.lang.Integer totalRowCount) { + this.totalRowCount = totalRowCount; + return this; + } + + @Override + public FetchReportResultRowsResponse set(String fieldName, Object value) { + return (FetchReportResultRowsResponse) super.set(fieldName, value); + } + + @Override + public FetchReportResultRowsResponse clone() { + return (FetchReportResultRowsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Field.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Field.java new file mode 100644 index 00000000000..4aa2a091080 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Field.java @@ -0,0 +1,91 @@ +/* + * 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.curationpartners.v1.model; + +/** + * A dimension or a metric in a report. + * + *

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 Curation Partners 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 Field extends com.google.api.client.json.GenericJson { + + /** + * The dimension this field represents. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dimension; + + /** + * The metric this field represents. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metric; + + /** + * The dimension this field represents. + * @return value or {@code null} for none + */ + public java.lang.String getDimension() { + return dimension; + } + + /** + * The dimension this field represents. + * @param dimension dimension or {@code null} for none + */ + public Field setDimension(java.lang.String dimension) { + this.dimension = dimension; + return this; + } + + /** + * The metric this field represents. + * @return value or {@code null} for none + */ + public java.lang.String getMetric() { + return metric; + } + + /** + * The metric this field represents. + * @param metric metric or {@code null} for none + */ + public Field setMetric(java.lang.String metric) { + this.metric = metric; + return this; + } + + @Override + public Field set(String fieldName, Object value) { + return (Field) super.set(fieldName, value); + } + + @Override + public Field clone() { + return (Field) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FieldFilter.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FieldFilter.java new file mode 100644 index 00000000000..63c1d2141af --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FieldFilter.java @@ -0,0 +1,115 @@ +/* + * 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.curationpartners.v1.model; + +/** + * A filter on a specific field. + * + *

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 Curation Partners 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 FieldFilter extends com.google.api.client.json.GenericJson { + + /** + * Required. The field to filter on. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Field field; + + /** + * Required. The operation of this filter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** + * Required. Values to filter to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Required. The field to filter on. + * @return value or {@code null} for none + */ + public Field getField() { + return field; + } + + /** + * Required. The field to filter on. + * @param field field or {@code null} for none + */ + public FieldFilter setField(Field field) { + this.field = field; + return this; + } + + /** + * Required. The operation of this filter. + * @return value or {@code null} for none + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Required. The operation of this filter. + * @param operation operation or {@code null} for none + */ + public FieldFilter setOperation(java.lang.String operation) { + this.operation = operation; + return this; + } + + /** + * Required. Values to filter to. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Required. Values to filter to. + * @param values values or {@code null} for none + */ + public FieldFilter setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public FieldFilter set(String fieldName, Object value) { + return (FieldFilter) super.set(fieldName, value); + } + + @Override + public FieldFilter clone() { + return (FieldFilter) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Filter.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Filter.java new file mode 100644 index 00000000000..1a7634240a1 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Filter.java @@ -0,0 +1,139 @@ +/* + * 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.curationpartners.v1.model; + +/** + * A filter over one or more fields. + * + *

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 Curation Partners 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 Filter extends com.google.api.client.json.GenericJson { + + /** + * A list of filters whose results are AND-ed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FilterList andFilter; + + /** + * A filter on a single field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FieldFilter fieldFilter; + + /** + * A filter whose result is negated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Filter notFilter; + + /** + * A list of filters whose results are OR-ed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FilterList orFilter; + + /** + * A list of filters whose results are AND-ed. + * @return value or {@code null} for none + */ + public FilterList getAndFilter() { + return andFilter; + } + + /** + * A list of filters whose results are AND-ed. + * @param andFilter andFilter or {@code null} for none + */ + public Filter setAndFilter(FilterList andFilter) { + this.andFilter = andFilter; + return this; + } + + /** + * A filter on a single field. + * @return value or {@code null} for none + */ + public FieldFilter getFieldFilter() { + return fieldFilter; + } + + /** + * A filter on a single field. + * @param fieldFilter fieldFilter or {@code null} for none + */ + public Filter setFieldFilter(FieldFilter fieldFilter) { + this.fieldFilter = fieldFilter; + return this; + } + + /** + * A filter whose result is negated. + * @return value or {@code null} for none + */ + public Filter getNotFilter() { + return notFilter; + } + + /** + * A filter whose result is negated. + * @param notFilter notFilter or {@code null} for none + */ + public Filter setNotFilter(Filter notFilter) { + this.notFilter = notFilter; + return this; + } + + /** + * A list of filters whose results are OR-ed. + * @return value or {@code null} for none + */ + public FilterList getOrFilter() { + return orFilter; + } + + /** + * A list of filters whose results are OR-ed. + * @param orFilter orFilter or {@code null} for none + */ + public Filter setOrFilter(FilterList orFilter) { + this.orFilter = orFilter; + return this; + } + + @Override + public Filter set(String fieldName, Object value) { + return (Filter) super.set(fieldName, value); + } + + @Override + public Filter clone() { + return (Filter) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FilterList.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FilterList.java new file mode 100644 index 00000000000..6494b45a6f0 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FilterList.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.curationpartners.v1.model; + +/** + * A list of filters. + * + *

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 Curation Partners 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 FilterList extends com.google.api.client.json.GenericJson { + + /** + * Required. A list of filters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List filters; + + static { + // hack to force ProGuard to consider Filter used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Filter.class); + } + + /** + * Required. A list of filters. + * @return value or {@code null} for none + */ + public java.util.List getFilters() { + return filters; + } + + /** + * Required. A list of filters. + * @param filters filters or {@code null} for none + */ + public FilterList setFilters(java.util.List filters) { + this.filters = filters; + return this; + } + + @Override + public FilterList set(String fieldName, Object value) { + return (FilterList) super.set(fieldName, value); + } + + @Override + public FilterList clone() { + return (FilterList) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FixedDateRange.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FixedDateRange.java new file mode 100644 index 00000000000..fe9c18924bb --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FixedDateRange.java @@ -0,0 +1,91 @@ +/* + * 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.curationpartners.v1.model; + +/** + * A date range between two fixed dates (inclusive of end date). + * + *

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 Curation Partners 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 FixedDateRange extends com.google.api.client.json.GenericJson { + + /** + * Required. The end date (inclusive) of this date range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date endDate; + + /** + * Required. The start date of this date range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date startDate; + + /** + * Required. The end date (inclusive) of this date range. + * @return value or {@code null} for none + */ + public Date getEndDate() { + return endDate; + } + + /** + * Required. The end date (inclusive) of this date range. + * @param endDate endDate or {@code null} for none + */ + public FixedDateRange setEndDate(Date endDate) { + this.endDate = endDate; + return this; + } + + /** + * Required. The start date of this date range. + * @return value or {@code null} for none + */ + public Date getStartDate() { + return startDate; + } + + /** + * Required. The start date of this date range. + * @param startDate startDate or {@code null} for none + */ + public FixedDateRange setStartDate(Date startDate) { + this.startDate = startDate; + return this; + } + + @Override + public FixedDateRange set(String fieldName, Object value) { + return (FixedDateRange) super.set(fieldName, value); + } + + @Override + public FixedDateRange clone() { + return (FixedDateRange) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/IntList.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/IntList.java new file mode 100644 index 00000000000..3244774578a --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/IntList.java @@ -0,0 +1,67 @@ +/* + * 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.curationpartners.v1.model; + +/** + * A list of integer values. + * + *

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 Curation Partners 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 IntList extends com.google.api.client.json.GenericJson { + + /** + * The values + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.List values; + + /** + * The values + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * The values + * @param values values or {@code null} for none + */ + public IntList setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public IntList set(String fieldName, Object value) { + return (IntList) super.set(fieldName, value); + } + + @Override + public IntList clone() { + return (IntList) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListCuratedPackagesResponse.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListCuratedPackagesResponse.java new file mode 100644 index 00000000000..d7147b0cf18 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListCuratedPackagesResponse.java @@ -0,0 +1,103 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Response message for ListCuratedPackages. + * + *

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 Curation Partners 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 ListCuratedPackagesResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of curated packages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List curatedPackages; + + static { + // hack to force ProGuard to consider CuratedPackage used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(CuratedPackage.class); + } + + /** + * A token to retrieve the next page of results. Pass this value in the + * ListCuratedPackagesRequest.pageToken field in the subsequent call to `ListCuratedPackages` + * method to retrieve the next page of results. If empty, then there are no more results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of curated packages. + * @return value or {@code null} for none + */ + public java.util.List getCuratedPackages() { + return curatedPackages; + } + + /** + * The list of curated packages. + * @param curatedPackages curatedPackages or {@code null} for none + */ + public ListCuratedPackagesResponse setCuratedPackages(java.util.List curatedPackages) { + this.curatedPackages = curatedPackages; + return this; + } + + /** + * A token to retrieve the next page of results. Pass this value in the + * ListCuratedPackagesRequest.pageToken field in the subsequent call to `ListCuratedPackages` + * method to retrieve the next page of results. If empty, then there are no more results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token to retrieve the next page of results. Pass this value in the + * ListCuratedPackagesRequest.pageToken field in the subsequent call to `ListCuratedPackages` + * method to retrieve the next page of results. If empty, then there are no more results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListCuratedPackagesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListCuratedPackagesResponse set(String fieldName, Object value) { + return (ListCuratedPackagesResponse) super.set(fieldName, value); + } + + @Override + public ListCuratedPackagesResponse clone() { + return (ListCuratedPackagesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListDataSegmentsResponse.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListDataSegmentsResponse.java new file mode 100644 index 00000000000..98970b3d8f7 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListDataSegmentsResponse.java @@ -0,0 +1,103 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Response message for listing data segments. + * + *

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 Curation Partners 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 ListDataSegmentsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of data segments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dataSegments; + + static { + // hack to force ProGuard to consider DataSegment used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(DataSegment.class); + } + + /** + * Continuation token for fetching the next page of results. Pass this value in the + * ListDataSegmentsRequest.pageToken field in the subsequent call to the `ListDataSegments` method + * to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of data segments. + * @return value or {@code null} for none + */ + public java.util.List getDataSegments() { + return dataSegments; + } + + /** + * The list of data segments. + * @param dataSegments dataSegments or {@code null} for none + */ + public ListDataSegmentsResponse setDataSegments(java.util.List dataSegments) { + this.dataSegments = dataSegments; + return this; + } + + /** + * Continuation token for fetching the next page of results. Pass this value in the + * ListDataSegmentsRequest.pageToken field in the subsequent call to the `ListDataSegments` method + * to retrieve the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Continuation token for fetching the next page of results. Pass this value in the + * ListDataSegmentsRequest.pageToken field in the subsequent call to the `ListDataSegments` method + * to retrieve the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListDataSegmentsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListDataSegmentsResponse set(String fieldName, Object value) { + return (ListDataSegmentsResponse) super.set(fieldName, value); + } + + @Override + public ListDataSegmentsResponse clone() { + return (ListDataSegmentsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListMediaPlannersResponse.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListMediaPlannersResponse.java new file mode 100644 index 00000000000..c912a728331 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListMediaPlannersResponse.java @@ -0,0 +1,94 @@ +/* + * 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.curationpartners.v1.model; + +/** + * A response containing media planner account information. + * + *

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 Curation Partners 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 ListMediaPlannersResponse extends com.google.api.client.json.GenericJson { + + /** + * List of media planners. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List mediaPlanners; + + /** + * A token which can be passed to a subsequent call to the ListMediaPlanners method to retrieve + * the next page of results in ListMediaPlannersRequest.page_token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * List of media planners. + * @return value or {@code null} for none + */ + public java.util.List getMediaPlanners() { + return mediaPlanners; + } + + /** + * List of media planners. + * @param mediaPlanners mediaPlanners or {@code null} for none + */ + public ListMediaPlannersResponse setMediaPlanners(java.util.List mediaPlanners) { + this.mediaPlanners = mediaPlanners; + return this; + } + + /** + * A token which can be passed to a subsequent call to the ListMediaPlanners method to retrieve + * the next page of results in ListMediaPlannersRequest.page_token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token which can be passed to a subsequent call to the ListMediaPlanners method to retrieve + * the next page of results in ListMediaPlannersRequest.page_token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListMediaPlannersResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListMediaPlannersResponse set(String fieldName, Object value) { + return (ListMediaPlannersResponse) super.set(fieldName, value); + } + + @Override + public ListMediaPlannersResponse clone() { + return (ListMediaPlannersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListReportsResponse.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListReportsResponse.java new file mode 100644 index 00000000000..0e67e80de57 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListReportsResponse.java @@ -0,0 +1,133 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Response object for `ListReportsResponse` containing matching `Report` objects. + * + *

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 Curation Partners 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 ListReportsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The `Report` objects from the specified network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reports; + + /** + * Total number of `Report` objects. If a filter was included in the request, this reflects the + * total number after the filtering is applied. `total_size` won't be calculated in the response + * unless it has been included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using the HTTP/gRPC + * header `X-Goog-FieldMask`. For more information, see https://developers.google.com/ad- + * manager/api/beta/field-masks + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalSize; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListReportsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The `Report` objects from the specified network. + * @return value or {@code null} for none + */ + public java.util.List getReports() { + return reports; + } + + /** + * The `Report` objects from the specified network. + * @param reports reports or {@code null} for none + */ + public ListReportsResponse setReports(java.util.List reports) { + this.reports = reports; + return this; + } + + /** + * Total number of `Report` objects. If a filter was included in the request, this reflects the + * total number after the filtering is applied. `total_size` won't be calculated in the response + * unless it has been included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using the HTTP/gRPC + * header `X-Goog-FieldMask`. For more information, see https://developers.google.com/ad- + * manager/api/beta/field-masks + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalSize() { + return totalSize; + } + + /** + * Total number of `Report` objects. If a filter was included in the request, this reflects the + * total number after the filtering is applied. `total_size` won't be calculated in the response + * unless it has been included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using the HTTP/gRPC + * header `X-Goog-FieldMask`. For more information, see https://developers.google.com/ad- + * manager/api/beta/field-masks + * @param totalSize totalSize or {@code null} for none + */ + public ListReportsResponse setTotalSize(java.lang.Integer totalSize) { + this.totalSize = totalSize; + return this; + } + + @Override + public ListReportsResponse set(String fieldName, Object value) { + return (ListReportsResponse) super.set(fieldName, value); + } + + @Override + public ListReportsResponse clone() { + return (ListReportsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/MediaPlanner.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/MediaPlanner.java new file mode 100644 index 00000000000..f603aa65d66 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/MediaPlanner.java @@ -0,0 +1,154 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Represents a media planner account. + * + *

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 Curation Partners 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 MediaPlanner extends com.google.api.client.json.GenericJson { + + /** + * Output only. Account ID of the media planner. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accountId; + + /** + * Output only. The ancestor names of the media planner. Format: + * `mediaPlanners/{mediaPlannerAccountId}`. Can be used to filter the response of the + * mediaPlanners.list method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ancestorNames; + + /** + * Output only. The display name of the media planner. Can be used to filter the response of the + * mediaPlanners.list method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Identifier. The unique resource name of the media planner. Format: + * `mediaPlanners/{mediaPlannerAccountId}`. Can be used to filter the response of the + * mediaPlanners.list method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Account ID of the media planner. + * @return value or {@code null} for none + */ + public java.lang.String getAccountId() { + return accountId; + } + + /** + * Output only. Account ID of the media planner. + * @param accountId accountId or {@code null} for none + */ + public MediaPlanner setAccountId(java.lang.String accountId) { + this.accountId = accountId; + return this; + } + + /** + * Output only. The ancestor names of the media planner. Format: + * `mediaPlanners/{mediaPlannerAccountId}`. Can be used to filter the response of the + * mediaPlanners.list method. + * @return value or {@code null} for none + */ + public java.util.List getAncestorNames() { + return ancestorNames; + } + + /** + * Output only. The ancestor names of the media planner. Format: + * `mediaPlanners/{mediaPlannerAccountId}`. Can be used to filter the response of the + * mediaPlanners.list method. + * @param ancestorNames ancestorNames or {@code null} for none + */ + public MediaPlanner setAncestorNames(java.util.List ancestorNames) { + this.ancestorNames = ancestorNames; + return this; + } + + /** + * Output only. The display name of the media planner. Can be used to filter the response of the + * mediaPlanners.list method. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. The display name of the media planner. Can be used to filter the response of the + * mediaPlanners.list method. + * @param displayName displayName or {@code null} for none + */ + public MediaPlanner setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Identifier. The unique resource name of the media planner. Format: + * `mediaPlanners/{mediaPlannerAccountId}`. Can be used to filter the response of the + * mediaPlanners.list method. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique resource name of the media planner. Format: + * `mediaPlanners/{mediaPlannerAccountId}`. Can be used to filter the response of the + * mediaPlanners.list method. + * @param name name or {@code null} for none + */ + public MediaPlanner setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public MediaPlanner set(String fieldName, Object value) { + return (MediaPlanner) super.set(fieldName, value); + } + + @Override + public MediaPlanner clone() { + return (MediaPlanner) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/MetricValueGroup.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/MetricValueGroup.java new file mode 100644 index 00000000000..34c87027eb8 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/MetricValueGroup.java @@ -0,0 +1,69 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Contains all metric values requested for a single date range and set of column dimension values + * (returned in the columns field of the response). The order of the metrics in each field + * corresponds to the order of the metrics specified in the request. + * + *

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 Curation Partners 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 MetricValueGroup extends com.google.api.client.json.GenericJson { + + /** + * Data for the PRIMARY MetricValueType. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List primaryValues; + + /** + * Data for the PRIMARY MetricValueType. + * @return value or {@code null} for none + */ + public java.util.List getPrimaryValues() { + return primaryValues; + } + + /** + * Data for the PRIMARY MetricValueType. + * @param primaryValues primaryValues or {@code null} for none + */ + public MetricValueGroup setPrimaryValues(java.util.List primaryValues) { + this.primaryValues = primaryValues; + return this; + } + + @Override + public MetricValueGroup set(String fieldName, Object value) { + return (MetricValueGroup) super.set(fieldName, value); + } + + @Override + public MetricValueGroup clone() { + return (MetricValueGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Money.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Money.java new file mode 100644 index 00000000000..f1a475c9360 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Money.java @@ -0,0 +1,127 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Represents an amount of money with its currency type. + * + *

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 Curation Partners 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 Money extends com.google.api.client.json.GenericJson { + + /** + * The three-letter currency code defined in ISO 4217. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currencyCode; + + /** + * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and + * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is + * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be + * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer nanos; + + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US + * dollar. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long units; + + /** + * The three-letter currency code defined in ISO 4217. + * @return value or {@code null} for none + */ + public java.lang.String getCurrencyCode() { + return currencyCode; + } + + /** + * The three-letter currency code defined in ISO 4217. + * @param currencyCode currencyCode or {@code null} for none + */ + public Money setCurrencyCode(java.lang.String currencyCode) { + this.currencyCode = currencyCode; + return this; + } + + /** + * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and + * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is + * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be + * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * @return value or {@code null} for none + */ + public java.lang.Integer getNanos() { + return nanos; + } + + /** + * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and + * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is + * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be + * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * @param nanos nanos or {@code null} for none + */ + public Money setNanos(java.lang.Integer nanos) { + this.nanos = nanos; + return this; + } + + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US + * dollar. + * @return value or {@code null} for none + */ + public java.lang.Long getUnits() { + return units; + } + + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US + * dollar. + * @param units units or {@code null} for none + */ + public Money setUnits(java.lang.Long units) { + this.units = units; + return this; + } + + @Override + public Money set(String fieldName, Object value) { + return (Money) super.set(fieldName, value); + } + + @Override + public Money clone() { + return (Money) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Operation.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Operation.java new file mode 100644 index 00000000000..21e26b692ae --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Operation.java @@ -0,0 +1,196 @@ +/* + * 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.curationpartners.v1.model; + +/** + * This resource represents a long-running operation that is the result of a network API call. + * + *

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 Curation Partners 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 Operation extends com.google.api.client.json.GenericJson { + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean done; + + /** + * The error result of the operation in case of failure or cancellation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map response; + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDone() { + return done; + } + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @param done done or {@code null} for none + */ + public Operation setDone(java.lang.Boolean done) { + this.done = done; + return this; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @param error error or {@code null} for none + */ + public Operation setError(Status error) { + this.error = error; + return this; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @param metadata metadata or {@code null} for none + */ + public Operation setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @param name name or {@code null} for none + */ + public Operation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @return value or {@code null} for none + */ + public java.util.Map getResponse() { + return response; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @param response response or {@code null} for none + */ + public Operation setResponse(java.util.Map response) { + this.response = response; + return this; + } + + @Override + public Operation set(String fieldName, Object value) { + return (Operation) super.set(fieldName, value); + } + + @Override + public Operation clone() { + return (Operation) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackagePlacementTargeting.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackagePlacementTargeting.java new file mode 100644 index 00000000000..d8c1dc60786 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackagePlacementTargeting.java @@ -0,0 +1,131 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Represents targeting about where the ads can appear, for example, certain sites or mobile + * applications. Different placement targeting types will be logically OR'ed. + * + *

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 Curation Partners 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 PackagePlacementTargeting extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of targeted mobile app categories. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.List includedMobileAppCategoryTargeting; + + /** + * Optional. The list of targeted or excluded mobile application IDs that publishers own. + * Currently, only Android and Apple apps are supported. Android App ID, for example, + * com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a + * number) can be found at the end of iTunes store URL. First party mobile applications is either + * included or excluded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StringTargetingDimension mobileAppTargeting; + + /** + * Optional. The list of targeted or excluded URLs. The domains should have the http/https + * stripped (for example, google.com), and can contain a max of 5 paths per url. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StringTargetingDimension uriTargeting; + + /** + * Optional. The list of targeted mobile app categories. + * @return value or {@code null} for none + */ + public java.util.List getIncludedMobileAppCategoryTargeting() { + return includedMobileAppCategoryTargeting; + } + + /** + * Optional. The list of targeted mobile app categories. + * @param includedMobileAppCategoryTargeting includedMobileAppCategoryTargeting or {@code null} for none + */ + public PackagePlacementTargeting setIncludedMobileAppCategoryTargeting(java.util.List includedMobileAppCategoryTargeting) { + this.includedMobileAppCategoryTargeting = includedMobileAppCategoryTargeting; + return this; + } + + /** + * Optional. The list of targeted or excluded mobile application IDs that publishers own. + * Currently, only Android and Apple apps are supported. Android App ID, for example, + * com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a + * number) can be found at the end of iTunes store URL. First party mobile applications is either + * included or excluded. + * @return value or {@code null} for none + */ + public StringTargetingDimension getMobileAppTargeting() { + return mobileAppTargeting; + } + + /** + * Optional. The list of targeted or excluded mobile application IDs that publishers own. + * Currently, only Android and Apple apps are supported. Android App ID, for example, + * com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a + * number) can be found at the end of iTunes store URL. First party mobile applications is either + * included or excluded. + * @param mobileAppTargeting mobileAppTargeting or {@code null} for none + */ + public PackagePlacementTargeting setMobileAppTargeting(StringTargetingDimension mobileAppTargeting) { + this.mobileAppTargeting = mobileAppTargeting; + return this; + } + + /** + * Optional. The list of targeted or excluded URLs. The domains should have the http/https + * stripped (for example, google.com), and can contain a max of 5 paths per url. + * @return value or {@code null} for none + */ + public StringTargetingDimension getUriTargeting() { + return uriTargeting; + } + + /** + * Optional. The list of targeted or excluded URLs. The domains should have the http/https + * stripped (for example, google.com), and can contain a max of 5 paths per url. + * @param uriTargeting uriTargeting or {@code null} for none + */ + public PackagePlacementTargeting setUriTargeting(StringTargetingDimension uriTargeting) { + this.uriTargeting = uriTargeting; + return this; + } + + @Override + public PackagePlacementTargeting set(String fieldName, Object value) { + return (PackagePlacementTargeting) super.set(fieldName, value); + } + + @Override + public PackagePlacementTargeting clone() { + return (PackagePlacementTargeting) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackagePublisherProvidedSignalsTargeting.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackagePublisherProvidedSignalsTargeting.java new file mode 100644 index 00000000000..d2878026738 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackagePublisherProvidedSignalsTargeting.java @@ -0,0 +1,131 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Represents targeting about publisher provided signals. Different publisher provided signals types + * will be logically OR'ed. + * + *

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 Curation Partners 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 PackagePublisherProvidedSignalsTargeting extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of targeted or excluded audience IDs. Based off of IAB Audience Taxonomy + * version 1.1 (https://github.com/InteractiveAdvertisingBureau/Taxonomies/blob/main/Audience%20Ta + * xonomies/Audience%20Taxonomy%201.1.tsv) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TaxonomyTargeting audienceTargeting; + + /** + * Optional. The list of targeted or excluded content IDs. Based off of IAB Content Taxonomy + * version 2.2 (https://github.com/InteractiveAdvertisingBureau/Taxonomies/blob/main/Content%20Tax + * onomies/Content%20Taxonomy%202.2.tsv) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TaxonomyTargeting contentTargeting; + + /** + * Optional. The list of targeted and excluded video and audio signals IDs. These are additional + * signals supported by publisher provided signals. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StringTargetingDimension videoAndAudioSignalsTargeting; + + /** + * Optional. The list of targeted or excluded audience IDs. Based off of IAB Audience Taxonomy + * version 1.1 (https://github.com/InteractiveAdvertisingBureau/Taxonomies/blob/main/Audience%20Ta + * xonomies/Audience%20Taxonomy%201.1.tsv) + * @return value or {@code null} for none + */ + public TaxonomyTargeting getAudienceTargeting() { + return audienceTargeting; + } + + /** + * Optional. The list of targeted or excluded audience IDs. Based off of IAB Audience Taxonomy + * version 1.1 (https://github.com/InteractiveAdvertisingBureau/Taxonomies/blob/main/Audience%20Ta + * xonomies/Audience%20Taxonomy%201.1.tsv) + * @param audienceTargeting audienceTargeting or {@code null} for none + */ + public PackagePublisherProvidedSignalsTargeting setAudienceTargeting(TaxonomyTargeting audienceTargeting) { + this.audienceTargeting = audienceTargeting; + return this; + } + + /** + * Optional. The list of targeted or excluded content IDs. Based off of IAB Content Taxonomy + * version 2.2 (https://github.com/InteractiveAdvertisingBureau/Taxonomies/blob/main/Content%20Tax + * onomies/Content%20Taxonomy%202.2.tsv) + * @return value or {@code null} for none + */ + public TaxonomyTargeting getContentTargeting() { + return contentTargeting; + } + + /** + * Optional. The list of targeted or excluded content IDs. Based off of IAB Content Taxonomy + * version 2.2 (https://github.com/InteractiveAdvertisingBureau/Taxonomies/blob/main/Content%20Tax + * onomies/Content%20Taxonomy%202.2.tsv) + * @param contentTargeting contentTargeting or {@code null} for none + */ + public PackagePublisherProvidedSignalsTargeting setContentTargeting(TaxonomyTargeting contentTargeting) { + this.contentTargeting = contentTargeting; + return this; + } + + /** + * Optional. The list of targeted and excluded video and audio signals IDs. These are additional + * signals supported by publisher provided signals. + * @return value or {@code null} for none + */ + public StringTargetingDimension getVideoAndAudioSignalsTargeting() { + return videoAndAudioSignalsTargeting; + } + + /** + * Optional. The list of targeted and excluded video and audio signals IDs. These are additional + * signals supported by publisher provided signals. + * @param videoAndAudioSignalsTargeting videoAndAudioSignalsTargeting or {@code null} for none + */ + public PackagePublisherProvidedSignalsTargeting setVideoAndAudioSignalsTargeting(StringTargetingDimension videoAndAudioSignalsTargeting) { + this.videoAndAudioSignalsTargeting = videoAndAudioSignalsTargeting; + return this; + } + + @Override + public PackagePublisherProvidedSignalsTargeting set(String fieldName, Object value) { + return (PackagePublisherProvidedSignalsTargeting) super.set(fieldName, value); + } + + @Override + public PackagePublisherProvidedSignalsTargeting clone() { + return (PackagePublisherProvidedSignalsTargeting) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackageTargeting.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackageTargeting.java new file mode 100644 index 00000000000..474fc87dcb0 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackageTargeting.java @@ -0,0 +1,601 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Targeting criteria for curated and auction packages. + * + *

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 Curation Partners 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 PackageTargeting extends com.google.api.client.json.GenericJson { + + /** + * Optional. The geo criteria IDs to be included or excluded as defined in + * https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv. If unset, inventory will be + * targeted regardless of geo. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CriteriaTargeting geoTargeting; + + /** + * Optional. The targeted accelerated mobile page type. If unset, inventory will be targeted + * regardless of AMP status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String includedAcceleratedMobilePageType; + + /** + * Optional. The list of ad sizes to target. If unset, inventory will be targeted regardless of ad + * size. Curated packages supports `PIXEL` and `INTERSTITIAL` ad sizes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedAdSizes; + + static { + // hack to force ProGuard to consider AdSize used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AdSize.class); + } + + /** + * Optional. The included list of targeted authorized seller statuses. If empty, inventory will be + * targeted regardless of seller status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedAuthorizedSellerStatuses; + + /** + * Optional. The creative format to target. If unset, all creative markup types are targeted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String includedCreativeFormat; + + /** + * Optional. The active data segments to be targeted. If unset, inventory will be targeted + * regardless of data segments. Format: `curators/{account_id}/dataSegments/{data_segment_id}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedDataSegments; + + /** + * Optional. The list of included device types to target. If empty, all device types are targeted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedDeviceTypes; + + /** + * Optional. The environment to target. If unspecified, all environments are targeted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String includedEnvironment; + + /** + * Optional. The targeted native inventory types. If empty, inventory will be targeted regardless + * of native inventory type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedNativeInventoryTypes; + + /** + * Optional. The list of targeted open measurement types. If empty, inventory will be targeted + * regardless of Open Measurement support. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedOpenMeasurementTypes; + + /** + * Optional. The list of targeted restricted categories. If empty, inventory will be targeted + * regardless of restricted categories. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedRestrictedCategories; + + /** + * Optional. The targeted rewarded type. If unset, inventory will be targeted regardless of + * rewarded type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String includedRewardedType; + + /** + * Optional. The languages to target. If unset, inventory will be targeted regardless of language. + * See https://developers.google.com/google-ads/api/data/codes-formats#languages for the list of + * supported language codes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StringTargetingDimension languageTargeting; + + /** + * Optional. The targeted minimum predicted click through rate, ranging in values [10, 10000] + * (0.01% - 10%). A value of 50 means that the configuration will only match adslots for which we + * predict at least 0.05% click through rate. An unset value indicates inventory will be targeted + * regardless of predicted click through rate. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minimumPredictedClickThroughRatePercentageMillis; + + /** + * Optional. The targeted minimum predicted viewability percentage. This value must be a multiple + * of 10 between 10 and 90 (inclusive). For example, 10 is valid, but 0, 15, and 100 are not. A + * value of 10 means that the configuration will only match adslots for which we predict at least + * 10% viewability. An unset value indicates inventory will be targeted regardless of predicted + * viewability. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minimumPredictedViewabilityPercentage; + + /** + * Optional. Placement targeting information, for example, URL, mobile applications. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PackagePlacementTargeting placementTargeting; + + /** + * Optional. The publisher provided signals to target. If unset, inventory will be targeted + * regardless of publisher provided signals. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PackagePublisherProvidedSignalsTargeting publisherProvidedSignalsTargeting; + + /** + * Optional. The targeted publishers. If unset, inventory will be targeted regardless of + * publisher. Publishers are identified by their publisher ID from ads.txt / app-ads.txt. See + * https://iabtechlab.com/ads-txt/ and https://iabtechlab.com/app-ads-txt/ for more details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StringTargetingDimension publisherTargeting; + + /** + * Optional. The verticals included or excluded as defined in + * https://developers.google.com/authorized-buyers/rtb/downloads/publisher-verticals. If unset, + * inventory will be targeted regardless of vertical. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CriteriaTargeting verticalTargeting; + + /** + * Optional. Video specific targeting criteria. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PackageVideoTargeting videoTargeting; + + /** + * Optional. The geo criteria IDs to be included or excluded as defined in + * https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv. If unset, inventory will be + * targeted regardless of geo. + * @return value or {@code null} for none + */ + public CriteriaTargeting getGeoTargeting() { + return geoTargeting; + } + + /** + * Optional. The geo criteria IDs to be included or excluded as defined in + * https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv. If unset, inventory will be + * targeted regardless of geo. + * @param geoTargeting geoTargeting or {@code null} for none + */ + public PackageTargeting setGeoTargeting(CriteriaTargeting geoTargeting) { + this.geoTargeting = geoTargeting; + return this; + } + + /** + * Optional. The targeted accelerated mobile page type. If unset, inventory will be targeted + * regardless of AMP status. + * @return value or {@code null} for none + */ + public java.lang.String getIncludedAcceleratedMobilePageType() { + return includedAcceleratedMobilePageType; + } + + /** + * Optional. The targeted accelerated mobile page type. If unset, inventory will be targeted + * regardless of AMP status. + * @param includedAcceleratedMobilePageType includedAcceleratedMobilePageType or {@code null} for none + */ + public PackageTargeting setIncludedAcceleratedMobilePageType(java.lang.String includedAcceleratedMobilePageType) { + this.includedAcceleratedMobilePageType = includedAcceleratedMobilePageType; + return this; + } + + /** + * Optional. The list of ad sizes to target. If unset, inventory will be targeted regardless of ad + * size. Curated packages supports `PIXEL` and `INTERSTITIAL` ad sizes. + * @return value or {@code null} for none + */ + public java.util.List getIncludedAdSizes() { + return includedAdSizes; + } + + /** + * Optional. The list of ad sizes to target. If unset, inventory will be targeted regardless of ad + * size. Curated packages supports `PIXEL` and `INTERSTITIAL` ad sizes. + * @param includedAdSizes includedAdSizes or {@code null} for none + */ + public PackageTargeting setIncludedAdSizes(java.util.List includedAdSizes) { + this.includedAdSizes = includedAdSizes; + return this; + } + + /** + * Optional. The included list of targeted authorized seller statuses. If empty, inventory will be + * targeted regardless of seller status. + * @return value or {@code null} for none + */ + public java.util.List getIncludedAuthorizedSellerStatuses() { + return includedAuthorizedSellerStatuses; + } + + /** + * Optional. The included list of targeted authorized seller statuses. If empty, inventory will be + * targeted regardless of seller status. + * @param includedAuthorizedSellerStatuses includedAuthorizedSellerStatuses or {@code null} for none + */ + public PackageTargeting setIncludedAuthorizedSellerStatuses(java.util.List includedAuthorizedSellerStatuses) { + this.includedAuthorizedSellerStatuses = includedAuthorizedSellerStatuses; + return this; + } + + /** + * Optional. The creative format to target. If unset, all creative markup types are targeted. + * @return value or {@code null} for none + */ + public java.lang.String getIncludedCreativeFormat() { + return includedCreativeFormat; + } + + /** + * Optional. The creative format to target. If unset, all creative markup types are targeted. + * @param includedCreativeFormat includedCreativeFormat or {@code null} for none + */ + public PackageTargeting setIncludedCreativeFormat(java.lang.String includedCreativeFormat) { + this.includedCreativeFormat = includedCreativeFormat; + return this; + } + + /** + * Optional. The active data segments to be targeted. If unset, inventory will be targeted + * regardless of data segments. Format: `curators/{account_id}/dataSegments/{data_segment_id}` + * @return value or {@code null} for none + */ + public java.util.List getIncludedDataSegments() { + return includedDataSegments; + } + + /** + * Optional. The active data segments to be targeted. If unset, inventory will be targeted + * regardless of data segments. Format: `curators/{account_id}/dataSegments/{data_segment_id}` + * @param includedDataSegments includedDataSegments or {@code null} for none + */ + public PackageTargeting setIncludedDataSegments(java.util.List includedDataSegments) { + this.includedDataSegments = includedDataSegments; + return this; + } + + /** + * Optional. The list of included device types to target. If empty, all device types are targeted. + * @return value or {@code null} for none + */ + public java.util.List getIncludedDeviceTypes() { + return includedDeviceTypes; + } + + /** + * Optional. The list of included device types to target. If empty, all device types are targeted. + * @param includedDeviceTypes includedDeviceTypes or {@code null} for none + */ + public PackageTargeting setIncludedDeviceTypes(java.util.List includedDeviceTypes) { + this.includedDeviceTypes = includedDeviceTypes; + return this; + } + + /** + * Optional. The environment to target. If unspecified, all environments are targeted. + * @return value or {@code null} for none + */ + public java.lang.String getIncludedEnvironment() { + return includedEnvironment; + } + + /** + * Optional. The environment to target. If unspecified, all environments are targeted. + * @param includedEnvironment includedEnvironment or {@code null} for none + */ + public PackageTargeting setIncludedEnvironment(java.lang.String includedEnvironment) { + this.includedEnvironment = includedEnvironment; + return this; + } + + /** + * Optional. The targeted native inventory types. If empty, inventory will be targeted regardless + * of native inventory type. + * @return value or {@code null} for none + */ + public java.util.List getIncludedNativeInventoryTypes() { + return includedNativeInventoryTypes; + } + + /** + * Optional. The targeted native inventory types. If empty, inventory will be targeted regardless + * of native inventory type. + * @param includedNativeInventoryTypes includedNativeInventoryTypes or {@code null} for none + */ + public PackageTargeting setIncludedNativeInventoryTypes(java.util.List includedNativeInventoryTypes) { + this.includedNativeInventoryTypes = includedNativeInventoryTypes; + return this; + } + + /** + * Optional. The list of targeted open measurement types. If empty, inventory will be targeted + * regardless of Open Measurement support. + * @return value or {@code null} for none + */ + public java.util.List getIncludedOpenMeasurementTypes() { + return includedOpenMeasurementTypes; + } + + /** + * Optional. The list of targeted open measurement types. If empty, inventory will be targeted + * regardless of Open Measurement support. + * @param includedOpenMeasurementTypes includedOpenMeasurementTypes or {@code null} for none + */ + public PackageTargeting setIncludedOpenMeasurementTypes(java.util.List includedOpenMeasurementTypes) { + this.includedOpenMeasurementTypes = includedOpenMeasurementTypes; + return this; + } + + /** + * Optional. The list of targeted restricted categories. If empty, inventory will be targeted + * regardless of restricted categories. + * @return value or {@code null} for none + */ + public java.util.List getIncludedRestrictedCategories() { + return includedRestrictedCategories; + } + + /** + * Optional. The list of targeted restricted categories. If empty, inventory will be targeted + * regardless of restricted categories. + * @param includedRestrictedCategories includedRestrictedCategories or {@code null} for none + */ + public PackageTargeting setIncludedRestrictedCategories(java.util.List includedRestrictedCategories) { + this.includedRestrictedCategories = includedRestrictedCategories; + return this; + } + + /** + * Optional. The targeted rewarded type. If unset, inventory will be targeted regardless of + * rewarded type. + * @return value or {@code null} for none + */ + public java.lang.String getIncludedRewardedType() { + return includedRewardedType; + } + + /** + * Optional. The targeted rewarded type. If unset, inventory will be targeted regardless of + * rewarded type. + * @param includedRewardedType includedRewardedType or {@code null} for none + */ + public PackageTargeting setIncludedRewardedType(java.lang.String includedRewardedType) { + this.includedRewardedType = includedRewardedType; + return this; + } + + /** + * Optional. The languages to target. If unset, inventory will be targeted regardless of language. + * See https://developers.google.com/google-ads/api/data/codes-formats#languages for the list of + * supported language codes. + * @return value or {@code null} for none + */ + public StringTargetingDimension getLanguageTargeting() { + return languageTargeting; + } + + /** + * Optional. The languages to target. If unset, inventory will be targeted regardless of language. + * See https://developers.google.com/google-ads/api/data/codes-formats#languages for the list of + * supported language codes. + * @param languageTargeting languageTargeting or {@code null} for none + */ + public PackageTargeting setLanguageTargeting(StringTargetingDimension languageTargeting) { + this.languageTargeting = languageTargeting; + return this; + } + + /** + * Optional. The targeted minimum predicted click through rate, ranging in values [10, 10000] + * (0.01% - 10%). A value of 50 means that the configuration will only match adslots for which we + * predict at least 0.05% click through rate. An unset value indicates inventory will be targeted + * regardless of predicted click through rate. + * @return value or {@code null} for none + */ + public java.lang.Long getMinimumPredictedClickThroughRatePercentageMillis() { + return minimumPredictedClickThroughRatePercentageMillis; + } + + /** + * Optional. The targeted minimum predicted click through rate, ranging in values [10, 10000] + * (0.01% - 10%). A value of 50 means that the configuration will only match adslots for which we + * predict at least 0.05% click through rate. An unset value indicates inventory will be targeted + * regardless of predicted click through rate. + * @param minimumPredictedClickThroughRatePercentageMillis minimumPredictedClickThroughRatePercentageMillis or {@code null} for none + */ + public PackageTargeting setMinimumPredictedClickThroughRatePercentageMillis(java.lang.Long minimumPredictedClickThroughRatePercentageMillis) { + this.minimumPredictedClickThroughRatePercentageMillis = minimumPredictedClickThroughRatePercentageMillis; + return this; + } + + /** + * Optional. The targeted minimum predicted viewability percentage. This value must be a multiple + * of 10 between 10 and 90 (inclusive). For example, 10 is valid, but 0, 15, and 100 are not. A + * value of 10 means that the configuration will only match adslots for which we predict at least + * 10% viewability. An unset value indicates inventory will be targeted regardless of predicted + * viewability. + * @return value or {@code null} for none + */ + public java.lang.Long getMinimumPredictedViewabilityPercentage() { + return minimumPredictedViewabilityPercentage; + } + + /** + * Optional. The targeted minimum predicted viewability percentage. This value must be a multiple + * of 10 between 10 and 90 (inclusive). For example, 10 is valid, but 0, 15, and 100 are not. A + * value of 10 means that the configuration will only match adslots for which we predict at least + * 10% viewability. An unset value indicates inventory will be targeted regardless of predicted + * viewability. + * @param minimumPredictedViewabilityPercentage minimumPredictedViewabilityPercentage or {@code null} for none + */ + public PackageTargeting setMinimumPredictedViewabilityPercentage(java.lang.Long minimumPredictedViewabilityPercentage) { + this.minimumPredictedViewabilityPercentage = minimumPredictedViewabilityPercentage; + return this; + } + + /** + * Optional. Placement targeting information, for example, URL, mobile applications. + * @return value or {@code null} for none + */ + public PackagePlacementTargeting getPlacementTargeting() { + return placementTargeting; + } + + /** + * Optional. Placement targeting information, for example, URL, mobile applications. + * @param placementTargeting placementTargeting or {@code null} for none + */ + public PackageTargeting setPlacementTargeting(PackagePlacementTargeting placementTargeting) { + this.placementTargeting = placementTargeting; + return this; + } + + /** + * Optional. The publisher provided signals to target. If unset, inventory will be targeted + * regardless of publisher provided signals. + * @return value or {@code null} for none + */ + public PackagePublisherProvidedSignalsTargeting getPublisherProvidedSignalsTargeting() { + return publisherProvidedSignalsTargeting; + } + + /** + * Optional. The publisher provided signals to target. If unset, inventory will be targeted + * regardless of publisher provided signals. + * @param publisherProvidedSignalsTargeting publisherProvidedSignalsTargeting or {@code null} for none + */ + public PackageTargeting setPublisherProvidedSignalsTargeting(PackagePublisherProvidedSignalsTargeting publisherProvidedSignalsTargeting) { + this.publisherProvidedSignalsTargeting = publisherProvidedSignalsTargeting; + return this; + } + + /** + * Optional. The targeted publishers. If unset, inventory will be targeted regardless of + * publisher. Publishers are identified by their publisher ID from ads.txt / app-ads.txt. See + * https://iabtechlab.com/ads-txt/ and https://iabtechlab.com/app-ads-txt/ for more details. + * @return value or {@code null} for none + */ + public StringTargetingDimension getPublisherTargeting() { + return publisherTargeting; + } + + /** + * Optional. The targeted publishers. If unset, inventory will be targeted regardless of + * publisher. Publishers are identified by their publisher ID from ads.txt / app-ads.txt. See + * https://iabtechlab.com/ads-txt/ and https://iabtechlab.com/app-ads-txt/ for more details. + * @param publisherTargeting publisherTargeting or {@code null} for none + */ + public PackageTargeting setPublisherTargeting(StringTargetingDimension publisherTargeting) { + this.publisherTargeting = publisherTargeting; + return this; + } + + /** + * Optional. The verticals included or excluded as defined in + * https://developers.google.com/authorized-buyers/rtb/downloads/publisher-verticals. If unset, + * inventory will be targeted regardless of vertical. + * @return value or {@code null} for none + */ + public CriteriaTargeting getVerticalTargeting() { + return verticalTargeting; + } + + /** + * Optional. The verticals included or excluded as defined in + * https://developers.google.com/authorized-buyers/rtb/downloads/publisher-verticals. If unset, + * inventory will be targeted regardless of vertical. + * @param verticalTargeting verticalTargeting or {@code null} for none + */ + public PackageTargeting setVerticalTargeting(CriteriaTargeting verticalTargeting) { + this.verticalTargeting = verticalTargeting; + return this; + } + + /** + * Optional. Video specific targeting criteria. + * @return value or {@code null} for none + */ + public PackageVideoTargeting getVideoTargeting() { + return videoTargeting; + } + + /** + * Optional. Video specific targeting criteria. + * @param videoTargeting videoTargeting or {@code null} for none + */ + public PackageTargeting setVideoTargeting(PackageVideoTargeting videoTargeting) { + this.videoTargeting = videoTargeting; + return this; + } + + @Override + public PackageTargeting set(String fieldName, Object value) { + return (PackageTargeting) super.set(fieldName, value); + } + + @Override + public PackageTargeting clone() { + return (PackageTargeting) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackageVideoTargeting.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackageVideoTargeting.java new file mode 100644 index 00000000000..728a434a01f --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackageVideoTargeting.java @@ -0,0 +1,271 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Video specific targeting criteria. + * + *

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 Curation Partners 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 PackageVideoTargeting extends com.google.api.client.json.GenericJson { + + /** + * Optional. The targeted video delivery method. If unset, inventory will be targeted regardless + * of video delivery method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String includedContentDeliveryMethod; + + /** + * Optional. The targeted maximum video ad duration. If unset, inventory will be targeted + * regardless of maximum video ad duration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String includedMaximumAdDurationTargeting; + + /** + * Optional. The list of targeted video mime types using the IANA published MIME type strings + * (https://www.iana.org/assignments/media-types/media-types.xhtml). If empty, inventory will be + * targeted regardless of video mime type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedMimeTypes; + + /** + * Optional. The list of targeted video playback methods. If empty, inventory will be targeted + * regardless of video playback method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedPlaybackMethods; + + /** + * Optional. The targeted video player size. If unset, inventory will be targeted regardless of + * video player size. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VideoPlayerSizeTargeting includedPlayerSizeTargeting; + + /** + * Optional. The targeted video ad position types. If empty, inventory will be targeted regardless + * of video ad position type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedPositionTypes; + + /** + * Optional. The targeted minimum predicted completion rate percentage. This value must be a + * multiple of 10 between 10 and 90 (inclusive). For example, 10 is valid, but 0, 15, and 100 are + * not. A value of 10 means that the configuration will only match adslots for which we predict at + * least 10% completion rate. An unset value indicates inventory will be targeted regardless of + * predicted completion rate. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minimumPredictedCompletionRatePercentage; + + /** + * Optional. The targeted video plcmt types. If unset, inventory will be targeted regardless of + * video plcmt type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VideoPlcmtTargeting plcmtTargeting; + + /** + * Optional. The targeted video delivery method. If unset, inventory will be targeted regardless + * of video delivery method. + * @return value or {@code null} for none + */ + public java.lang.String getIncludedContentDeliveryMethod() { + return includedContentDeliveryMethod; + } + + /** + * Optional. The targeted video delivery method. If unset, inventory will be targeted regardless + * of video delivery method. + * @param includedContentDeliveryMethod includedContentDeliveryMethod or {@code null} for none + */ + public PackageVideoTargeting setIncludedContentDeliveryMethod(java.lang.String includedContentDeliveryMethod) { + this.includedContentDeliveryMethod = includedContentDeliveryMethod; + return this; + } + + /** + * Optional. The targeted maximum video ad duration. If unset, inventory will be targeted + * regardless of maximum video ad duration. + * @return value or {@code null} for none + */ + public java.lang.String getIncludedMaximumAdDurationTargeting() { + return includedMaximumAdDurationTargeting; + } + + /** + * Optional. The targeted maximum video ad duration. If unset, inventory will be targeted + * regardless of maximum video ad duration. + * @param includedMaximumAdDurationTargeting includedMaximumAdDurationTargeting or {@code null} for none + */ + public PackageVideoTargeting setIncludedMaximumAdDurationTargeting(java.lang.String includedMaximumAdDurationTargeting) { + this.includedMaximumAdDurationTargeting = includedMaximumAdDurationTargeting; + return this; + } + + /** + * Optional. The list of targeted video mime types using the IANA published MIME type strings + * (https://www.iana.org/assignments/media-types/media-types.xhtml). If empty, inventory will be + * targeted regardless of video mime type. + * @return value or {@code null} for none + */ + public java.util.List getIncludedMimeTypes() { + return includedMimeTypes; + } + + /** + * Optional. The list of targeted video mime types using the IANA published MIME type strings + * (https://www.iana.org/assignments/media-types/media-types.xhtml). If empty, inventory will be + * targeted regardless of video mime type. + * @param includedMimeTypes includedMimeTypes or {@code null} for none + */ + public PackageVideoTargeting setIncludedMimeTypes(java.util.List includedMimeTypes) { + this.includedMimeTypes = includedMimeTypes; + return this; + } + + /** + * Optional. The list of targeted video playback methods. If empty, inventory will be targeted + * regardless of video playback method. + * @return value or {@code null} for none + */ + public java.util.List getIncludedPlaybackMethods() { + return includedPlaybackMethods; + } + + /** + * Optional. The list of targeted video playback methods. If empty, inventory will be targeted + * regardless of video playback method. + * @param includedPlaybackMethods includedPlaybackMethods or {@code null} for none + */ + public PackageVideoTargeting setIncludedPlaybackMethods(java.util.List includedPlaybackMethods) { + this.includedPlaybackMethods = includedPlaybackMethods; + return this; + } + + /** + * Optional. The targeted video player size. If unset, inventory will be targeted regardless of + * video player size. + * @return value or {@code null} for none + */ + public VideoPlayerSizeTargeting getIncludedPlayerSizeTargeting() { + return includedPlayerSizeTargeting; + } + + /** + * Optional. The targeted video player size. If unset, inventory will be targeted regardless of + * video player size. + * @param includedPlayerSizeTargeting includedPlayerSizeTargeting or {@code null} for none + */ + public PackageVideoTargeting setIncludedPlayerSizeTargeting(VideoPlayerSizeTargeting includedPlayerSizeTargeting) { + this.includedPlayerSizeTargeting = includedPlayerSizeTargeting; + return this; + } + + /** + * Optional. The targeted video ad position types. If empty, inventory will be targeted regardless + * of video ad position type. + * @return value or {@code null} for none + */ + public java.util.List getIncludedPositionTypes() { + return includedPositionTypes; + } + + /** + * Optional. The targeted video ad position types. If empty, inventory will be targeted regardless + * of video ad position type. + * @param includedPositionTypes includedPositionTypes or {@code null} for none + */ + public PackageVideoTargeting setIncludedPositionTypes(java.util.List includedPositionTypes) { + this.includedPositionTypes = includedPositionTypes; + return this; + } + + /** + * Optional. The targeted minimum predicted completion rate percentage. This value must be a + * multiple of 10 between 10 and 90 (inclusive). For example, 10 is valid, but 0, 15, and 100 are + * not. A value of 10 means that the configuration will only match adslots for which we predict at + * least 10% completion rate. An unset value indicates inventory will be targeted regardless of + * predicted completion rate. + * @return value or {@code null} for none + */ + public java.lang.Long getMinimumPredictedCompletionRatePercentage() { + return minimumPredictedCompletionRatePercentage; + } + + /** + * Optional. The targeted minimum predicted completion rate percentage. This value must be a + * multiple of 10 between 10 and 90 (inclusive). For example, 10 is valid, but 0, 15, and 100 are + * not. A value of 10 means that the configuration will only match adslots for which we predict at + * least 10% completion rate. An unset value indicates inventory will be targeted regardless of + * predicted completion rate. + * @param minimumPredictedCompletionRatePercentage minimumPredictedCompletionRatePercentage or {@code null} for none + */ + public PackageVideoTargeting setMinimumPredictedCompletionRatePercentage(java.lang.Long minimumPredictedCompletionRatePercentage) { + this.minimumPredictedCompletionRatePercentage = minimumPredictedCompletionRatePercentage; + return this; + } + + /** + * Optional. The targeted video plcmt types. If unset, inventory will be targeted regardless of + * video plcmt type. + * @return value or {@code null} for none + */ + public VideoPlcmtTargeting getPlcmtTargeting() { + return plcmtTargeting; + } + + /** + * Optional. The targeted video plcmt types. If unset, inventory will be targeted regardless of + * video plcmt type. + * @param plcmtTargeting plcmtTargeting or {@code null} for none + */ + public PackageVideoTargeting setPlcmtTargeting(VideoPlcmtTargeting plcmtTargeting) { + this.plcmtTargeting = plcmtTargeting; + return this; + } + + @Override + public PackageVideoTargeting set(String fieldName, Object value) { + return (PackageVideoTargeting) super.set(fieldName, value); + } + + @Override + public PackageVideoTargeting clone() { + return (PackageVideoTargeting) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Report.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Report.java new file mode 100644 index 00000000000..30176235e73 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Report.java @@ -0,0 +1,217 @@ +/* + * 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.curationpartners.v1.model; + +/** + * The `Report` 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 Curation Partners 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 Report extends com.google.api.client.json.GenericJson { + + /** + * Output only. The instant this report was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Display name for the report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. The locale of this report. Locale is set from the user's locale at the time of the + * request. Locale can't be modified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locale; + + /** + * Identifier. The resource name of the report. Report resource name have the form: + * `curators/{account_id}/reports/{report_id}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The report definition of the report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReportDefinition reportDefinition; + + /** + * Output only. Report ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long reportId; + + /** + * Output only. The instant this report was last modified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The instant this report was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The instant this report was created. + * @param createTime createTime or {@code null} for none + */ + public Report setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Display name for the report. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Display name for the report. + * @param displayName displayName or {@code null} for none + */ + public Report setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. The locale of this report. Locale is set from the user's locale at the time of the + * request. Locale can't be modified. + * @return value or {@code null} for none + */ + public java.lang.String getLocale() { + return locale; + } + + /** + * Output only. The locale of this report. Locale is set from the user's locale at the time of the + * request. Locale can't be modified. + * @param locale locale or {@code null} for none + */ + public Report setLocale(java.lang.String locale) { + this.locale = locale; + return this; + } + + /** + * Identifier. The resource name of the report. Report resource name have the form: + * `curators/{account_id}/reports/{report_id}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the report. Report resource name have the form: + * `curators/{account_id}/reports/{report_id}` + * @param name name or {@code null} for none + */ + public Report setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The report definition of the report. + * @return value or {@code null} for none + */ + public ReportDefinition getReportDefinition() { + return reportDefinition; + } + + /** + * Required. The report definition of the report. + * @param reportDefinition reportDefinition or {@code null} for none + */ + public Report setReportDefinition(ReportDefinition reportDefinition) { + this.reportDefinition = reportDefinition; + return this; + } + + /** + * Output only. Report ID. + * @return value or {@code null} for none + */ + public java.lang.Long getReportId() { + return reportId; + } + + /** + * Output only. Report ID. + * @param reportId reportId or {@code null} for none + */ + public Report setReportId(java.lang.Long reportId) { + this.reportId = reportId; + return this; + } + + /** + * Output only. The instant this report was last modified. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The instant this report was last modified. + * @param updateTime updateTime or {@code null} for none + */ + public Report setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Report set(String fieldName, Object value) { + return (Report) super.set(fieldName, value); + } + + @Override + public Report clone() { + return (Report) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ReportDefinition.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ReportDefinition.java new file mode 100644 index 00000000000..e3b97932911 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ReportDefinition.java @@ -0,0 +1,259 @@ +/* + * 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.curationpartners.v1.model; + +/** + * The definition of how a report should be run. + * + *

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 Curation Partners 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 ReportDefinition extends com.google.api.client.json.GenericJson { + + /** + * Optional. The ISO 4217 currency code for this report. Defaults to account currency code if not + * specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currencyCode; + + /** + * Required. The primary date range of this report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DateRange dateRange; + + /** + * Required. The list of dimensions to report on. If empty, the report will have no dimensions, + * and any metrics will be totals. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dimensions; + + /** + * Optional. The filters for this report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List filters; + + static { + // hack to force ProGuard to consider Filter used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Filter.class); + } + + /** + * Required. The list of metrics to report on. If empty, the report will have no metrics. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metrics; + + /** + * Optional. Default sorts to apply to this report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sorts; + + /** + * Optional. If time_zone_source is PROVIDED, this is the time zone to use for this report. Leave + * empty for any other time zone source. Time zone in IANA format. For example, + * "America/New_York". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeZone; + + /** + * Optional. Where to get the time zone for this report. Defaults to using the Pacific time zone + * (PT). If source is PROVIDED, the time_zone field in the report definition must also set a time + * zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeZoneSource; + + /** + * Optional. The ISO 4217 currency code for this report. Defaults to account currency code if not + * specified. + * @return value or {@code null} for none + */ + public java.lang.String getCurrencyCode() { + return currencyCode; + } + + /** + * Optional. The ISO 4217 currency code for this report. Defaults to account currency code if not + * specified. + * @param currencyCode currencyCode or {@code null} for none + */ + public ReportDefinition setCurrencyCode(java.lang.String currencyCode) { + this.currencyCode = currencyCode; + return this; + } + + /** + * Required. The primary date range of this report. + * @return value or {@code null} for none + */ + public DateRange getDateRange() { + return dateRange; + } + + /** + * Required. The primary date range of this report. + * @param dateRange dateRange or {@code null} for none + */ + public ReportDefinition setDateRange(DateRange dateRange) { + this.dateRange = dateRange; + return this; + } + + /** + * Required. The list of dimensions to report on. If empty, the report will have no dimensions, + * and any metrics will be totals. + * @return value or {@code null} for none + */ + public java.util.List getDimensions() { + return dimensions; + } + + /** + * Required. The list of dimensions to report on. If empty, the report will have no dimensions, + * and any metrics will be totals. + * @param dimensions dimensions or {@code null} for none + */ + public ReportDefinition setDimensions(java.util.List dimensions) { + this.dimensions = dimensions; + return this; + } + + /** + * Optional. The filters for this report. + * @return value or {@code null} for none + */ + public java.util.List getFilters() { + return filters; + } + + /** + * Optional. The filters for this report. + * @param filters filters or {@code null} for none + */ + public ReportDefinition setFilters(java.util.List filters) { + this.filters = filters; + return this; + } + + /** + * Required. The list of metrics to report on. If empty, the report will have no metrics. + * @return value or {@code null} for none + */ + public java.util.List getMetrics() { + return metrics; + } + + /** + * Required. The list of metrics to report on. If empty, the report will have no metrics. + * @param metrics metrics or {@code null} for none + */ + public ReportDefinition setMetrics(java.util.List metrics) { + this.metrics = metrics; + return this; + } + + /** + * Optional. Default sorts to apply to this report. + * @return value or {@code null} for none + */ + public java.util.List getSorts() { + return sorts; + } + + /** + * Optional. Default sorts to apply to this report. + * @param sorts sorts or {@code null} for none + */ + public ReportDefinition setSorts(java.util.List sorts) { + this.sorts = sorts; + return this; + } + + /** + * Optional. If time_zone_source is PROVIDED, this is the time zone to use for this report. Leave + * empty for any other time zone source. Time zone in IANA format. For example, + * "America/New_York". + * @return value or {@code null} for none + */ + public java.lang.String getTimeZone() { + return timeZone; + } + + /** + * Optional. If time_zone_source is PROVIDED, this is the time zone to use for this report. Leave + * empty for any other time zone source. Time zone in IANA format. For example, + * "America/New_York". + * @param timeZone timeZone or {@code null} for none + */ + public ReportDefinition setTimeZone(java.lang.String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * Optional. Where to get the time zone for this report. Defaults to using the Pacific time zone + * (PT). If source is PROVIDED, the time_zone field in the report definition must also set a time + * zone. + * @return value or {@code null} for none + */ + public java.lang.String getTimeZoneSource() { + return timeZoneSource; + } + + /** + * Optional. Where to get the time zone for this report. Defaults to using the Pacific time zone + * (PT). If source is PROVIDED, the time_zone field in the report definition must also set a time + * zone. + * @param timeZoneSource timeZoneSource or {@code null} for none + */ + public ReportDefinition setTimeZoneSource(java.lang.String timeZoneSource) { + this.timeZoneSource = timeZoneSource; + return this; + } + + @Override + public ReportDefinition set(String fieldName, Object value) { + return (ReportDefinition) super.set(fieldName, value); + } + + @Override + public ReportDefinition clone() { + return (ReportDefinition) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ReportValue.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ReportValue.java new file mode 100644 index 00000000000..2cfef7537ba --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ReportValue.java @@ -0,0 +1,263 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Represents a single value in a report. + * + *

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 Curation Partners 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 ReportValue extends com.google.api.client.json.GenericJson { + + /** + * For boolean values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean boolValue; + + /** + * For bytes values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bytesValue; + + /** + * For lists of double values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DoubleList doubleListValue; + + /** + * For double values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double doubleValue; + + /** + * For lists of integer values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private IntList intListValue; + + /** + * For integer values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long intValue; + + /** + * For lists of string values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StringList stringListValue; + + /** + * For string values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stringValue; + + /** + * For boolean values. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBoolValue() { + return boolValue; + } + + /** + * For boolean values. + * @param boolValue boolValue or {@code null} for none + */ + public ReportValue setBoolValue(java.lang.Boolean boolValue) { + this.boolValue = boolValue; + return this; + } + + /** + * For bytes values. + * @see #decodeBytesValue() + * @return value or {@code null} for none + */ + public java.lang.String getBytesValue() { + return bytesValue; + } + + /** + * For bytes values. + * @see #getBytesValue() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeBytesValue() { + return com.google.api.client.util.Base64.decodeBase64(bytesValue); + } + + /** + * For bytes values. + * @see #encodeBytesValue() + * @param bytesValue bytesValue or {@code null} for none + */ + public ReportValue setBytesValue(java.lang.String bytesValue) { + this.bytesValue = bytesValue; + return this; + } + + /** + * For bytes values. + * @see #setBytesValue() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ReportValue encodeBytesValue(byte[] bytesValue) { + this.bytesValue = com.google.api.client.util.Base64.encodeBase64URLSafeString(bytesValue); + return this; + } + + /** + * For lists of double values. + * @return value or {@code null} for none + */ + public DoubleList getDoubleListValue() { + return doubleListValue; + } + + /** + * For lists of double values. + * @param doubleListValue doubleListValue or {@code null} for none + */ + public ReportValue setDoubleListValue(DoubleList doubleListValue) { + this.doubleListValue = doubleListValue; + return this; + } + + /** + * For double values. + * @return value or {@code null} for none + */ + public java.lang.Double getDoubleValue() { + return doubleValue; + } + + /** + * For double values. + * @param doubleValue doubleValue or {@code null} for none + */ + public ReportValue setDoubleValue(java.lang.Double doubleValue) { + this.doubleValue = doubleValue; + return this; + } + + /** + * For lists of integer values. + * @return value or {@code null} for none + */ + public IntList getIntListValue() { + return intListValue; + } + + /** + * For lists of integer values. + * @param intListValue intListValue or {@code null} for none + */ + public ReportValue setIntListValue(IntList intListValue) { + this.intListValue = intListValue; + return this; + } + + /** + * For integer values. + * @return value or {@code null} for none + */ + public java.lang.Long getIntValue() { + return intValue; + } + + /** + * For integer values. + * @param intValue intValue or {@code null} for none + */ + public ReportValue setIntValue(java.lang.Long intValue) { + this.intValue = intValue; + return this; + } + + /** + * For lists of string values. + * @return value or {@code null} for none + */ + public StringList getStringListValue() { + return stringListValue; + } + + /** + * For lists of string values. + * @param stringListValue stringListValue or {@code null} for none + */ + public ReportValue setStringListValue(StringList stringListValue) { + this.stringListValue = stringListValue; + return this; + } + + /** + * For string values. + * @return value or {@code null} for none + */ + public java.lang.String getStringValue() { + return stringValue; + } + + /** + * For string values. + * @param stringValue stringValue or {@code null} for none + */ + public ReportValue setStringValue(java.lang.String stringValue) { + this.stringValue = stringValue; + return this; + } + + @Override + public ReportValue set(String fieldName, Object value) { + return (ReportValue) super.set(fieldName, value); + } + + @Override + public ReportValue clone() { + return (ReportValue) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Row.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Row.java new file mode 100644 index 00000000000..b545f12e591 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Row.java @@ -0,0 +1,121 @@ +/* + * 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.curationpartners.v1.model; + +/** + * A row of report data. + * + *

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 Curation Partners 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 Row extends com.google.api.client.json.GenericJson { + + /** + * The order of the dimension values is the same as the order of the dimensions specified in the + * request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dimensionValues; + + static { + // hack to force ProGuard to consider ReportValue used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ReportValue.class); + } + + /** + * The length of the metric_value_groups field will be equal to the length of the date_ranges + * field in the fetch response. The metric_value_groups field is ordered such that each index + * corresponds to the date_range at the same index. For example, given date_ranges [x, y], + * metric_value_groups will have a length of two. The first entry in metric_value_groups + * represents the metrics for date x and the second entry in metric_value_groups represents the + * metrics for date y. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metricValueGroups; + + static { + // hack to force ProGuard to consider MetricValueGroup used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(MetricValueGroup.class); + } + + /** + * The order of the dimension values is the same as the order of the dimensions specified in the + * request. + * @return value or {@code null} for none + */ + public java.util.List getDimensionValues() { + return dimensionValues; + } + + /** + * The order of the dimension values is the same as the order of the dimensions specified in the + * request. + * @param dimensionValues dimensionValues or {@code null} for none + */ + public Row setDimensionValues(java.util.List dimensionValues) { + this.dimensionValues = dimensionValues; + return this; + } + + /** + * The length of the metric_value_groups field will be equal to the length of the date_ranges + * field in the fetch response. The metric_value_groups field is ordered such that each index + * corresponds to the date_range at the same index. For example, given date_ranges [x, y], + * metric_value_groups will have a length of two. The first entry in metric_value_groups + * represents the metrics for date x and the second entry in metric_value_groups represents the + * metrics for date y. + * @return value or {@code null} for none + */ + public java.util.List getMetricValueGroups() { + return metricValueGroups; + } + + /** + * The length of the metric_value_groups field will be equal to the length of the date_ranges + * field in the fetch response. The metric_value_groups field is ordered such that each index + * corresponds to the date_range at the same index. For example, given date_ranges [x, y], + * metric_value_groups will have a length of two. The first entry in metric_value_groups + * represents the metrics for date x and the second entry in metric_value_groups represents the + * metrics for date y. + * @param metricValueGroups metricValueGroups or {@code null} for none + */ + public Row setMetricValueGroups(java.util.List metricValueGroups) { + this.metricValueGroups = metricValueGroups; + return this; + } + + @Override + public Row set(String fieldName, Object value) { + return (Row) super.set(fieldName, value); + } + + @Override + public Row clone() { + return (Row) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/RunReportMetadata.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/RunReportMetadata.java new file mode 100644 index 00000000000..c6c1a7388ee --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/RunReportMetadata.java @@ -0,0 +1,94 @@ +/* + * 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.curationpartners.v1.model; + +/** + * `RunReport` operation metadata. + * + *

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 Curation Partners 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 RunReportMetadata extends com.google.api.client.json.GenericJson { + + /** + * An estimate of how close this report is to being completed. Will always be 100 for failed and + * completed reports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer percentComplete; + + /** + * The result's parent report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String report; + + /** + * An estimate of how close this report is to being completed. Will always be 100 for failed and + * completed reports. + * @return value or {@code null} for none + */ + public java.lang.Integer getPercentComplete() { + return percentComplete; + } + + /** + * An estimate of how close this report is to being completed. Will always be 100 for failed and + * completed reports. + * @param percentComplete percentComplete or {@code null} for none + */ + public RunReportMetadata setPercentComplete(java.lang.Integer percentComplete) { + this.percentComplete = percentComplete; + return this; + } + + /** + * The result's parent report. + * @return value or {@code null} for none + */ + public java.lang.String getReport() { + return report; + } + + /** + * The result's parent report. + * @param report report or {@code null} for none + */ + public RunReportMetadata setReport(java.lang.String report) { + this.report = report; + return this; + } + + @Override + public RunReportMetadata set(String fieldName, Object value) { + return (RunReportMetadata) super.set(fieldName, value); + } + + @Override + public RunReportMetadata clone() { + return (RunReportMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/RunReportRequest.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/RunReportRequest.java new file mode 100644 index 00000000000..0cc91159259 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/RunReportRequest.java @@ -0,0 +1,43 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Request message for a running a report. + * + *

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 Curation Partners 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 RunReportRequest extends com.google.api.client.json.GenericJson { + + @Override + public RunReportRequest set(String fieldName, Object value) { + return (RunReportRequest) super.set(fieldName, value); + } + + @Override + public RunReportRequest clone() { + return (RunReportRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/RunReportResponse.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/RunReportResponse.java new file mode 100644 index 00000000000..e951b8004f9 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/RunReportResponse.java @@ -0,0 +1,67 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Response message for a completed `RunReport` operation. + * + *

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 Curation Partners 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 RunReportResponse extends com.google.api.client.json.GenericJson { + + /** + * The unique name of the generated result. Use with `FetchReportResultRows` to retrieve data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reportResult; + + /** + * The unique name of the generated result. Use with `FetchReportResultRows` to retrieve data. + * @return value or {@code null} for none + */ + public java.lang.String getReportResult() { + return reportResult; + } + + /** + * The unique name of the generated result. Use with `FetchReportResultRows` to retrieve data. + * @param reportResult reportResult or {@code null} for none + */ + public RunReportResponse setReportResult(java.lang.String reportResult) { + this.reportResult = reportResult; + return this; + } + + @Override + public RunReportResponse set(String fieldName, Object value) { + return (RunReportResponse) super.set(fieldName, value); + } + + @Override + public RunReportResponse clone() { + return (RunReportResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Sort.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Sort.java new file mode 100644 index 00000000000..ce3fb4eafbe --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Sort.java @@ -0,0 +1,91 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Represents a sorting in a report. + * + *

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 Curation Partners 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 Sort extends com.google.api.client.json.GenericJson { + + /** + * Optional. The sort order. If true the sort will be descending. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean descending; + + /** + * Required. A field (dimension or metric) to sort by. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Field field; + + /** + * Optional. The sort order. If true the sort will be descending. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDescending() { + return descending; + } + + /** + * Optional. The sort order. If true the sort will be descending. + * @param descending descending or {@code null} for none + */ + public Sort setDescending(java.lang.Boolean descending) { + this.descending = descending; + return this; + } + + /** + * Required. A field (dimension or metric) to sort by. + * @return value or {@code null} for none + */ + public Field getField() { + return field; + } + + /** + * Required. A field (dimension or metric) to sort by. + * @param field field or {@code null} for none + */ + public Sort setField(Field field) { + this.field = field; + return this; + } + + @Override + public Sort set(String fieldName, Object value) { + return (Sort) super.set(fieldName, value); + } + + @Override + public Sort clone() { + return (Sort) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Status.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Status.java new file mode 100644 index 00000000000..72e533dc610 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Status.java @@ -0,0 +1,128 @@ +/* + * 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.curationpartners.v1.model; + +/** + * The `Status` type defines a logical error model that is suitable for different programming + * environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). + * Each `Status` message contains three pieces of data: error code, error message, and error + * details. You can find out more about this error model and how to work with it in the [API Design + * Guide](https://cloud.google.com/apis/design/errors). + * + *

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 Curation Partners 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 Status extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List> details; + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @return value or {@code null} for none + */ + public java.lang.Integer getCode() { + return code; + } + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @param code code or {@code null} for none + */ + public Status setCode(java.lang.Integer code) { + this.code = code; + return this; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @return value or {@code null} for none + */ + public java.util.List> getDetails() { + return details; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @param details details or {@code null} for none + */ + public Status setDetails(java.util.List> details) { + this.details = details; + return this; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @param message message or {@code null} for none + */ + public Status setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Status set(String fieldName, Object value) { + return (Status) super.set(fieldName, value); + } + + @Override + public Status clone() { + return (Status) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/StringList.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/StringList.java new file mode 100644 index 00000000000..ac5f4a670bf --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/StringList.java @@ -0,0 +1,67 @@ +/* + * 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.curationpartners.v1.model; + +/** + * A list of string values. + * + *

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 Curation Partners 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 StringList extends com.google.api.client.json.GenericJson { + + /** + * The values + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * The values + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * The values + * @param values values or {@code null} for none + */ + public StringList setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public StringList set(String fieldName, Object value) { + return (StringList) super.set(fieldName, value); + } + + @Override + public StringList clone() { + return (StringList) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/StringTargetingDimension.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/StringTargetingDimension.java new file mode 100644 index 00000000000..b1353a05df1 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/StringTargetingDimension.java @@ -0,0 +1,91 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Generic targeting with string values. + * + *

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 Curation Partners 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 StringTargetingDimension extends com.google.api.client.json.GenericJson { + + /** + * Required. How the items in this list should be targeted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selectionType; + + /** + * Required. The values specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Required. How the items in this list should be targeted. + * @return value or {@code null} for none + */ + public java.lang.String getSelectionType() { + return selectionType; + } + + /** + * Required. How the items in this list should be targeted. + * @param selectionType selectionType or {@code null} for none + */ + public StringTargetingDimension setSelectionType(java.lang.String selectionType) { + this.selectionType = selectionType; + return this; + } + + /** + * Required. The values specified. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Required. The values specified. + * @param values values or {@code null} for none + */ + public StringTargetingDimension setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public StringTargetingDimension set(String fieldName, Object value) { + return (StringTargetingDimension) super.set(fieldName, value); + } + + @Override + public StringTargetingDimension clone() { + return (StringTargetingDimension) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/TaxonomyTargeting.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/TaxonomyTargeting.java new file mode 100644 index 00000000000..b67ed268763 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/TaxonomyTargeting.java @@ -0,0 +1,91 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Defines targeting criteria for handling the IAB audience and content Taxonomy ID space. + * + *

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 Curation Partners 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 TaxonomyTargeting extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of excluded content taxonomy IDs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List excludedTaxonomyIds; + + /** + * Optional. The list of targeted content taxonomy IDs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetedTaxonomyIds; + + /** + * Optional. The list of excluded content taxonomy IDs. + * @return value or {@code null} for none + */ + public java.util.List getExcludedTaxonomyIds() { + return excludedTaxonomyIds; + } + + /** + * Optional. The list of excluded content taxonomy IDs. + * @param excludedTaxonomyIds excludedTaxonomyIds or {@code null} for none + */ + public TaxonomyTargeting setExcludedTaxonomyIds(java.util.List excludedTaxonomyIds) { + this.excludedTaxonomyIds = excludedTaxonomyIds; + return this; + } + + /** + * Optional. The list of targeted content taxonomy IDs. + * @return value or {@code null} for none + */ + public java.util.List getTargetedTaxonomyIds() { + return targetedTaxonomyIds; + } + + /** + * Optional. The list of targeted content taxonomy IDs. + * @param targetedTaxonomyIds targetedTaxonomyIds or {@code null} for none + */ + public TaxonomyTargeting setTargetedTaxonomyIds(java.util.List targetedTaxonomyIds) { + this.targetedTaxonomyIds = targetedTaxonomyIds; + return this; + } + + @Override + public TaxonomyTargeting set(String fieldName, Object value) { + return (TaxonomyTargeting) super.set(fieldName, value); + } + + @Override + public TaxonomyTargeting clone() { + return (TaxonomyTargeting) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/VideoPlayerSizeTargeting.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/VideoPlayerSizeTargeting.java new file mode 100644 index 00000000000..22ccd956937 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/VideoPlayerSizeTargeting.java @@ -0,0 +1,92 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Represents the size of the video player that can be targeted. Both width and height are required + * to be set to non-zero values. + * + *

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 Curation Partners 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 VideoPlayerSizeTargeting extends com.google.api.client.json.GenericJson { + + /** + * Required. The minimum height of the video player in pixels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minimumHeight; + + /** + * Required. The minimum width of the video player in pixels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minimumWidth; + + /** + * Required. The minimum height of the video player in pixels. + * @return value or {@code null} for none + */ + public java.lang.Long getMinimumHeight() { + return minimumHeight; + } + + /** + * Required. The minimum height of the video player in pixels. + * @param minimumHeight minimumHeight or {@code null} for none + */ + public VideoPlayerSizeTargeting setMinimumHeight(java.lang.Long minimumHeight) { + this.minimumHeight = minimumHeight; + return this; + } + + /** + * Required. The minimum width of the video player in pixels. + * @return value or {@code null} for none + */ + public java.lang.Long getMinimumWidth() { + return minimumWidth; + } + + /** + * Required. The minimum width of the video player in pixels. + * @param minimumWidth minimumWidth or {@code null} for none + */ + public VideoPlayerSizeTargeting setMinimumWidth(java.lang.Long minimumWidth) { + this.minimumWidth = minimumWidth; + return this; + } + + @Override + public VideoPlayerSizeTargeting set(String fieldName, Object value) { + return (VideoPlayerSizeTargeting) super.set(fieldName, value); + } + + @Override + public VideoPlayerSizeTargeting clone() { + return (VideoPlayerSizeTargeting) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/VideoPlcmtTargeting.java b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/VideoPlcmtTargeting.java new file mode 100644 index 00000000000..324af89317e --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/VideoPlcmtTargeting.java @@ -0,0 +1,95 @@ +/* + * 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.curationpartners.v1.model; + +/** + * Defines targeting criteria based on the video placement type, often corresponding to the IAB + * OpenRTB 'plcmt' field. + * + *

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 Curation Partners 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 VideoPlcmtTargeting extends com.google.api.client.json.GenericJson { + + /** + * Required. The selection type for the list of video plcmts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selectionType; + + /** + * Required. The list of targeted video plcmts types. If empty, inventory will be targeted + * regardless of video plcmt type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List videoPlcmtTypes; + + /** + * Required. The selection type for the list of video plcmts. + * @return value or {@code null} for none + */ + public java.lang.String getSelectionType() { + return selectionType; + } + + /** + * Required. The selection type for the list of video plcmts. + * @param selectionType selectionType or {@code null} for none + */ + public VideoPlcmtTargeting setSelectionType(java.lang.String selectionType) { + this.selectionType = selectionType; + return this; + } + + /** + * Required. The list of targeted video plcmts types. If empty, inventory will be targeted + * regardless of video plcmt type. + * @return value or {@code null} for none + */ + public java.util.List getVideoPlcmtTypes() { + return videoPlcmtTypes; + } + + /** + * Required. The list of targeted video plcmts types. If empty, inventory will be targeted + * regardless of video plcmt type. + * @param videoPlcmtTypes videoPlcmtTypes or {@code null} for none + */ + public VideoPlcmtTargeting setVideoPlcmtTypes(java.util.List videoPlcmtTypes) { + this.videoPlcmtTypes = videoPlcmtTypes; + return this; + } + + @Override + public VideoPlcmtTargeting set(String fieldName, Object value) { + return (VideoPlcmtTargeting) super.set(fieldName, value); + } + + @Override + public VideoPlcmtTargeting clone() { + return (VideoPlcmtTargeting) super.clone(); + } + +} diff --git a/clients/google-api-services-curationpartners/v1/2.0.0/pom.xml b/clients/google-api-services-curationpartners/v1/2.0.0/pom.xml new file mode 100644 index 00000000000..4024ae841a2 --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/2.0.0/pom.xml @@ -0,0 +1,219 @@ + + 4.0.0 + + org.sonatype.oss + oss-parent + 7 + + + com.google.apis + google-api-services-curationpartners + v1-rev20260828-2.0.0 + Curation Partners API v1-rev20260828-2.0.0 + jar + + 2011 + + + + GoogleAPIs + GoogleAPIs + googleapis@googlegroups.com + Google + https://www.google.com + + + + + Google + http://www.google.com/ + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + ossrh + https://google.oss.sonatype.org/content/repositories/snapshots + + + + + + + maven-compiler-plugin + 3.9.0 + + 1.7 + 1.7 + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.2 + + + + com.google.api.services.curationpartners + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + + attach-javadocs + + jar + + + + + none + Curation Partners API ${project.version} + Curation Partners API ${project.version} + + http://docs.oracle.com/javase/7/docs/api + https://googleapis.dev/java/google-http-client/${httpClientLibrary}/ + https://googleapis.dev/java/google-oauth-client/${oauthClientLibrary}/ + https://googleapis.dev/java/google-api-client/2.7.2/ + + + + + org.codehaus.mojo + clirr-maven-plugin + 2.8 + + clirr-ignored-differences.xml + true + + + + + check + + + + + + . + + + ./resources + + + + + + + com.google.api-client + google-api-client + 2.7.2 + + + + + UTF-8 + + + + + + release-sonatype + + + + !artifact-registry-url + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + + release-gcp-artifact-registry + + artifactregistry://please-define-artifact-registry-url-property + + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + \ No newline at end of file diff --git a/clients/google-api-services-curationpartners/v1/README.md b/clients/google-api-services-curationpartners/v1/README.md new file mode 100644 index 00000000000..fdd3d49bbbb --- /dev/null +++ b/clients/google-api-services-curationpartners/v1/README.md @@ -0,0 +1,44 @@ +# Curation Partners API Client Library for Java + +Curation partners API is an externally available HTTP API for curators to programmatically manage their data segments and curated packages used by ad agencies. + +This page contains information about getting started with the Curation Partners API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the Curation Partners API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the Curation Partners API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-curationpartners + v1-rev20260828-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-curationpartners:v1-rev20260828-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-curationpartners/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/curationpartners/v1/