From 4de0c2834c332f67e9f5ad97308dfc3e2ceff313 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Sat, 29 Aug 2026 18:25:52 -0700
Subject: [PATCH] chore: regenerate curationpartners client
---
.../v1/2.0.0/README.md | 44 +
.../curationpartners/v1/CurationPartners.java | 3819 +++++++++++++++++
.../v1/CurationPartnersRequest.java | 267 ++
.../CurationPartnersRequestInitializer.java | 119 +
.../v1/CurationPartnersScopes.java | 42 +
.../v1/model/AccessControlSettings.java | 76 +
.../model/ActivateCuratedPackageRequest.java | 43 +
.../v1/model/ActivateDataSegmentRequest.java | 43 +
.../curationpartners/v1/model/AdSize.java | 115 +
.../v1/model/CriteriaTargeting.java | 92 +
.../v1/model/CuratedPackage.java | 364 ++
.../v1/model/DataSegment.java | 240 ++
.../curationpartners/v1/model/Date.java | 124 +
.../curationpartners/v1/model/DateRange.java | 91 +
.../DeactivateCuratedPackageRequest.java | 43 +
.../model/DeactivateDataSegmentRequest.java | 43 +
.../curationpartners/v1/model/DoubleList.java | 67 +
.../curationpartners/v1/model/Empty.java | 45 +
.../model/FetchReportResultRowsResponse.java | 175 +
.../curationpartners/v1/model/Field.java | 91 +
.../v1/model/FieldFilter.java | 115 +
.../curationpartners/v1/model/Filter.java | 139 +
.../curationpartners/v1/model/FilterList.java | 73 +
.../v1/model/FixedDateRange.java | 91 +
.../curationpartners/v1/model/IntList.java | 67 +
.../v1/model/ListCuratedPackagesResponse.java | 103 +
.../v1/model/ListDataSegmentsResponse.java | 103 +
.../v1/model/ListMediaPlannersResponse.java | 94 +
.../v1/model/ListReportsResponse.java | 133 +
.../v1/model/MediaPlanner.java | 154 +
.../v1/model/MetricValueGroup.java | 69 +
.../curationpartners/v1/model/Money.java | 127 +
.../curationpartners/v1/model/Operation.java | 196 +
.../v1/model/PackagePlacementTargeting.java | 131 +
...kagePublisherProvidedSignalsTargeting.java | 131 +
.../v1/model/PackageTargeting.java | 601 +++
.../v1/model/PackageVideoTargeting.java | 271 ++
.../curationpartners/v1/model/Report.java | 217 +
.../v1/model/ReportDefinition.java | 259 ++
.../v1/model/ReportValue.java | 263 ++
.../curationpartners/v1/model/Row.java | 121 +
.../v1/model/RunReportMetadata.java | 94 +
.../v1/model/RunReportRequest.java | 43 +
.../v1/model/RunReportResponse.java | 67 +
.../curationpartners/v1/model/Sort.java | 91 +
.../curationpartners/v1/model/Status.java | 128 +
.../curationpartners/v1/model/StringList.java | 67 +
.../v1/model/StringTargetingDimension.java | 91 +
.../v1/model/TaxonomyTargeting.java | 91 +
.../v1/model/VideoPlayerSizeTargeting.java | 92 +
.../v1/model/VideoPlcmtTargeting.java | 95 +
.../v1/2.0.0/pom.xml | 219 +
.../v1/README.md | 44 +
53 files changed, 10523 insertions(+)
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/README.md
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartners.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartnersRequest.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartnersRequestInitializer.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/CurationPartnersScopes.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/AccessControlSettings.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ActivateCuratedPackageRequest.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ActivateDataSegmentRequest.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/AdSize.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/CriteriaTargeting.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/CuratedPackage.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DataSegment.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Date.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DateRange.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DeactivateCuratedPackageRequest.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DeactivateDataSegmentRequest.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/DoubleList.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Empty.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FetchReportResultRowsResponse.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Field.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FieldFilter.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Filter.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FilterList.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/FixedDateRange.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/IntList.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListCuratedPackagesResponse.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListDataSegmentsResponse.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListMediaPlannersResponse.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ListReportsResponse.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/MediaPlanner.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/MetricValueGroup.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Money.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Operation.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackagePlacementTargeting.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackagePublisherProvidedSignalsTargeting.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackageTargeting.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/PackageVideoTargeting.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Report.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ReportDefinition.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/ReportValue.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Row.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/RunReportMetadata.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/RunReportRequest.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/RunReportResponse.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Sort.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/Status.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/StringList.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/StringTargetingDimension.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/TaxonomyTargeting.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/VideoPlayerSizeTargeting.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/com/google/api/services/curationpartners/v1/model/VideoPlcmtTargeting.java
create mode 100644 clients/google-api-services-curationpartners/v1/2.0.0/pom.xml
create mode 100644 clients/google-api-services-curationpartners/v1/README.md
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
+
+ * 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: + *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{@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{@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{@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+ * {@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+ * {@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{@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{@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{@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{@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+ * {@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+ * {@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{@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{@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{@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+ * {@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+ * {@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{@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+ * {@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+ * {@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{@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+ * {@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: + *+ * 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.SetThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.MapThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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