diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/README.md b/clients/google-api-services-agenciesandbrands/v1/2.0.0/README.md new file mode 100644 index 00000000000..c746a584b63 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/README.md @@ -0,0 +1,44 @@ +# Agencies and Brands API Client Library for Java + +Agencies and brands API is an externally available HTTP API for ad agencies and brands to programmatically manage their deals and spending with Google Ad Manager publishers. + +This page contains information about getting started with the Agencies and Brands 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 Agencies and Brands 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 Agencies and Brands API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-agenciesandbrands + v1-rev20260828-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-agenciesandbrands:v1-rev20260828-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-agenciesandbrands/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/agenciesandbrands/v1/ diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/AgenciesAndBrands.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/AgenciesAndBrands.java new file mode 100644 index 00000000000..1024edc4369 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/AgenciesAndBrands.java @@ -0,0 +1,1661 @@ +/* + * 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.agenciesandbrands.v1; + +/** + * Service definition for AgenciesAndBrands (v1). + * + *

+ * Agencies and brands API is an externally available HTTP API for ad agencies and brands to programmatically manage their deals and spending with Google Ad Manager publishers. + *

+ * + *

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

+ * + *

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

+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class AgenciesAndBrands 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 Agencies and Brands 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://agenciesandbrands.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://agenciesandbrands.mtls.googleapis.com/"; + + /** + * The default encoded service path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_SERVICE_PATH = ""; + + /** + * The default encoded batch path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.23 + */ + public static final String DEFAULT_BATCH_PATH = "batch"; + + /** + * The default encoded base URL of the service. This is determined when the library is generated + * and normally should not be changed. + */ + public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; + + /** + * Constructor. + * + *

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

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

The typical use is:

+ *
+   *   {@code AgenciesAndBrands agenciesandbrands = new AgenciesAndBrands(...);}
+   *   {@code AgenciesAndBrands.Agencies.List request = agenciesandbrands.agencies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Agencies agencies() { + return new Agencies(); + } + + /** + * The "agencies" collection of methods. + */ + public class Agencies { + + /** + * An accessor for creating requests from the Reports collection. + * + *

The typical use is:

+ *
+     *   {@code AgenciesAndBrands agenciesandbrands = new AgenciesAndBrands(...);}
+     *   {@code AgenciesAndBrands.Reports.List request = agenciesandbrands.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 agenciesandbrands 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: `agencies/{account_id}` + * @param content the {@link com.google.api.services.agenciesandbrands.v1.model.Report} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.agenciesandbrands.v1.model.Report content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AgenciesAndBrandsRequest { + + private static final String REST_PATH = "v1/{+parent}/reports"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^agencies/[^/]+$"); + + /** + * Creates a `Report` object. + * + * Create a request for the method "reports.create". + * + * This request holds the parameters needed by the the agenciesandbrands server. After setting + * any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. The parent resource where this `Report` will be created. Format: `agencies/{account_id}` + * @param content the {@link com.google.api.services.agenciesandbrands.v1.model.Report} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.agenciesandbrands.v1.model.Report content) { + super(AgenciesAndBrands.this, "POST", REST_PATH, content, com.google.api.services.agenciesandbrands.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 " + + "^agencies/[^/]+$"); + } + } + + @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: + * `agencies/{account_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this `Report` will be created. Format: `agencies/{account_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this `Report` will be created. Format: + * `agencies/{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 " + + "^agencies/[^/]+$"); + } + 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 agenciesandbrands 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: `agencies/{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 AgenciesAndBrandsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^agencies/[^/]+/reports/[^/]+$"); + + /** + * Deletes a `Report` object. + * + * Create a request for the method "reports.delete". + * + * This request holds the parameters needed by the the agenciesandbrands server. After setting + * any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Required. Resource name of the report to delete. Format: `agencies/{account_id}/reports/{report_id}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AgenciesAndBrands.this, "DELETE", REST_PATH, null, com.google.api.services.agenciesandbrands.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 " + + "^agencies/[^/]+/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: + * `agencies/{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: + `agencies/{account_id}/reports/{report_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name of the report to delete. Format: + * `agencies/{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 " + + "^agencies/[^/]+/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 agenciesandbrands 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: `agencies/{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 AgenciesAndBrandsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^agencies/[^/]+/reports/[^/]+$"); + + /** + * Retrieves a `Report` object. + * + * Create a request for the method "reports.get". + * + * This request holds the parameters needed by the the agenciesandbrands server. After setting + * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The resource name of the report. Format: `agencies/{account_id}/reports/{report_id}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgenciesAndBrands.this, "GET", REST_PATH, null, com.google.api.services.agenciesandbrands.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 " + + "^agencies/[^/]+/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: + * `agencies/{account_id}/reports/{report_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the report. Format: `agencies/{account_id}/reports/{report_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the report. Format: + * `agencies/{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 " + + "^agencies/[^/]+/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 agenciesandbrands 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: `agencies/{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 AgenciesAndBrandsRequest { + + private static final String REST_PATH = "v1/{+parent}/reports"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^agencies/[^/]+$"); + + /** + * Lists `Report` objects. + * + * Create a request for the method "reports.list". + * + * This request holds the parameters needed by the the agenciesandbrands server. After setting + * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The parent, which owns this collection of reports. Format: `agencies/{account_id}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AgenciesAndBrands.this, "GET", REST_PATH, null, com.google.api.services.agenciesandbrands.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 " + + "^agencies/[^/]+$"); + } + } + + @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: + * `agencies/{account_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent, which owns this collection of reports. Format: `agencies/{account_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent, which owns this collection of reports. Format: + * `agencies/{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 " + + "^agencies/[^/]+$"); + } + 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 agenciesandbrands 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: + * `agencies/{account_id}/reports/{report_id}` + * @param content the {@link com.google.api.services.agenciesandbrands.v1.model.Report} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.agenciesandbrands.v1.model.Report content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AgenciesAndBrandsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^agencies/[^/]+/reports/[^/]+$"); + + /** + * Updates a `Report` object. + * + * Create a request for the method "reports.patch". + * + * This request holds the parameters needed by the the agenciesandbrands server. After setting + * any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Identifier. The resource name of the report. Report resource name have the form: + * `agencies/{account_id}/reports/{report_id}` + * @param content the {@link com.google.api.services.agenciesandbrands.v1.model.Report} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.agenciesandbrands.v1.model.Report content) { + super(AgenciesAndBrands.this, "PATCH", REST_PATH, content, com.google.api.services.agenciesandbrands.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 " + + "^agencies/[^/]+/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: + * `agencies/{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: + `agencies/{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: + * `agencies/{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 " + + "^agencies/[^/]+/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 agenciesandbrands 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: `agencies/{account_id}/reports/{report_id}` + * @param content the {@link com.google.api.services.agenciesandbrands.v1.model.RunReportRequest} + * @return the request + */ + public Run run(java.lang.String name, com.google.api.services.agenciesandbrands.v1.model.RunReportRequest content) throws java.io.IOException { + Run result = new Run(name, content); + initialize(result); + return result; + } + + public class Run extends AgenciesAndBrandsRequest { + + private static final String REST_PATH = "v1/{+name}:run"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^agencies/[^/]+/reports/[^/]+$"); + + /** + * Initiates the execution of an existing report asynchronously. Users can get the report by + * polling this operation using `OperationsService.GetOperation`. Poll every 5 seconds initially, + * with an exponential backoff. Once a report is complete, the operation will contain a + * `RunReportResponse` in its response field containing a report_result that can be passed to the + * `FetchReportResultRows` method to retrieve the report data. + * + * Create a request for the method "reports.run". + * + * This request holds the parameters needed by the the agenciesandbrands server. After setting + * any optional parameters, call the {@link Run#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The report to run. Format: `agencies/{account_id}/reports/{report_id}` + * @param content the {@link com.google.api.services.agenciesandbrands.v1.model.RunReportRequest} + * @since 1.13 + */ + protected Run(java.lang.String name, com.google.api.services.agenciesandbrands.v1.model.RunReportRequest content) { + super(AgenciesAndBrands.this, "POST", REST_PATH, content, com.google.api.services.agenciesandbrands.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 " + + "^agencies/[^/]+/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: `agencies/{account_id}/reports/{report_id}` */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The report to run. Format: `agencies/{account_id}/reports/{report_id}` + */ + public java.lang.String getName() { + return name; + } + + /** Required. The report to run. Format: `agencies/{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 " + + "^agencies/[^/]+/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 AgenciesAndBrands agenciesandbrands = new AgenciesAndBrands(...);}
+       *   {@code AgenciesAndBrands.Operations.List request = agenciesandbrands.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 agenciesandbrands 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 AgenciesAndBrandsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^agencies/[^/]+/reports/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the agenciesandbrands server. After setting + * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + *

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

+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgenciesAndBrands.this, "GET", REST_PATH, null, com.google.api.services.agenciesandbrands.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 " + + "^agencies/[^/]+/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 " + + "^agencies/[^/]+/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 AgenciesAndBrands agenciesandbrands = new AgenciesAndBrands(...);}
+       *   {@code AgenciesAndBrands.Results.List request = agenciesandbrands.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 agenciesandbrands 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: + * `agencies/{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 AgenciesAndBrandsRequest { + + private static final String REST_PATH = "v1/{+name}:fetchRows"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^agencies/[^/]+/reports/[^/]+/results/[^/]+$"); + + /** + * Returns the result rows from a completed report. The caller must have previously called + * `RunReport` and waited for that operation to complete. The rows will be returned according to + * the order specified by the `sorts` member of the report definition. + * + * Create a request for the method "results.fetchRows". + * + * This request holds the parameters needed by the the agenciesandbrands server. After setting + * any optional parameters, call the {@link FetchRows#execute()} method to invoke the remote + * operation.

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

+ * + * @param name The report result being fetched. Format: + * `agencies/{account_id}/reports/{report_id}/results/{report_result_id}` + * @since 1.13 + */ + protected FetchRows(java.lang.String name) { + super(AgenciesAndBrands.this, "GET", REST_PATH, null, com.google.api.services.agenciesandbrands.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 " + + "^agencies/[^/]+/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: + * `agencies/{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: + `agencies/{account_id}/reports/{report_id}/results/{report_result_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * The report result being fetched. Format: + * `agencies/{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 " + + "^agencies/[^/]+/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); + } + } + + } + } + } + + /** + * Builder for {@link AgenciesAndBrands}. + * + *

+ * Implementation is not thread-safe. + *

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

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

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

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

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

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

+ * + *
+  public static class MyRequestInitializer extends AgenciesAndBrandsRequestInitializer {
+
+    {@literal @}Override
+    public void initializeAgenciesAndBrandsRequest(AgenciesAndBrandsRequest{@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 AgenciesAndBrandsRequestInitializer {
+
+    public MyKeyRequestInitializer() {
+      super(KEY, USER_IP);
+    }
+
+    {@literal @}Override
+    public void initializeAgenciesAndBrandsRequest(AgenciesAndBrandsRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Subclasses should be thread-safe. + *

+ * + * @since 1.12 + */ +public class AgenciesAndBrandsRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public AgenciesAndBrandsRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public AgenciesAndBrandsRequestInitializer(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 AgenciesAndBrandsRequestInitializer(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); + initializeAgenciesAndBrandsRequest((AgenciesAndBrandsRequest) request); + } + + /** + * Initializes AgenciesAndBrands 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 initializeAgenciesAndBrandsRequest(AgenciesAndBrandsRequest request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/AgenciesAndBrandsScopes.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/AgenciesAndBrandsScopes.java new file mode 100644 index 00000000000..ebbaf99f93a --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/AgenciesAndBrandsScopes.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.agenciesandbrands.v1; + +/** + * Available OAuth 2.0 scopes for use with the Agencies and Brands API. + * + * @since 1.4 + */ +public class AgenciesAndBrandsScopes { + + /** View, create, edit, and delete data entities in your Agency account.. */ + public static final String AGENCIES_AND_BRANDS = "https://www.googleapis.com/auth/agencies-and-brands"; + + /** + * Returns an unmodifiable set that contains all scopes declared by this class. + * + * @since 1.16 + */ + public static java.util.Set all() { + java.util.Set set = new java.util.HashSet(); + set.add(AGENCIES_AND_BRANDS); + return java.util.Collections.unmodifiableSet(set); + } + + private AgenciesAndBrandsScopes() { + } +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Date.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Date.java new file mode 100644 index 00000000000..96f2045e03b --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands 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-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/DateRange.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/DateRange.java new file mode 100644 index 00000000000..eb52b5658bc --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands 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-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/DoubleList.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/DoubleList.java new file mode 100644 index 00000000000..83c82bf8e9c --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DoubleList extends com.google.api.client.json.GenericJson { + + /** + * The values + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * The values + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * The values + * @param values values or {@code null} for none + */ + public DoubleList setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public DoubleList set(String fieldName, Object value) { + return (DoubleList) super.set(fieldName, value); + } + + @Override + public DoubleList clone() { + return (DoubleList) super.clone(); + } + +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Empty.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Empty.java new file mode 100644 index 00000000000..6caef44aaee --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Empty.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agenciesandbrands.v1.model; + +/** + * A generic empty message that you can re-use to avoid defining duplicated empty messages in your + * APIs. A typical example is to use it as the request or the response type of an API method. For + * instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agencies and Brands 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-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/FetchReportResultRowsResponse.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/FetchReportResultRowsResponse.java new file mode 100644 index 00000000000..4cfac76abe5 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FetchReportResultRowsResponse extends com.google.api.client.json.GenericJson { + + /** + * The computed fixed date ranges this report includes. Only returned with the first page of + * results (when page_token is not included in the request). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dateRanges; + + /** + * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Up to `page_size` rows of report data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rows; + + /** + * The time at which the report was scheduled to run. For non-scheduled reports, this is the time + * at which the report was requested to be run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String runTime; + + /** + * The total number of rows available from this report. Useful for pagination. Only returned with + * the first page of results (when page_token is not included in the request). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalRowCount; + + /** + * The computed fixed date ranges this report includes. Only returned with the first page of + * results (when page_token is not included in the request). + * @return value or {@code null} for none + */ + public java.util.List getDateRanges() { + return dateRanges; + } + + /** + * The computed fixed date ranges this report includes. Only returned with the first page of + * results (when page_token is not included in the request). + * @param dateRanges dateRanges or {@code null} for none + */ + public FetchReportResultRowsResponse setDateRanges(java.util.List dateRanges) { + this.dateRanges = dateRanges; + return this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public FetchReportResultRowsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Up to `page_size` rows of report data. + * @return value or {@code null} for none + */ + public java.util.List getRows() { + return rows; + } + + /** + * Up to `page_size` rows of report data. + * @param rows rows or {@code null} for none + */ + public FetchReportResultRowsResponse setRows(java.util.List rows) { + this.rows = rows; + return this; + } + + /** + * The time at which the report was scheduled to run. For non-scheduled reports, this is the time + * at which the report was requested to be run. + * @return value or {@code null} for none + */ + public String getRunTime() { + return runTime; + } + + /** + * The time at which the report was scheduled to run. For non-scheduled reports, this is the time + * at which the report was requested to be run. + * @param runTime runTime or {@code null} for none + */ + public FetchReportResultRowsResponse setRunTime(String runTime) { + this.runTime = runTime; + return this; + } + + /** + * The total number of rows available from this report. Useful for pagination. Only returned with + * the first page of results (when page_token is not included in the request). + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalRowCount() { + return totalRowCount; + } + + /** + * The total number of rows available from this report. Useful for pagination. Only returned with + * the first page of results (when page_token is not included in the request). + * @param totalRowCount totalRowCount or {@code null} for none + */ + public FetchReportResultRowsResponse setTotalRowCount(java.lang.Integer totalRowCount) { + this.totalRowCount = totalRowCount; + return this; + } + + @Override + public FetchReportResultRowsResponse set(String fieldName, Object value) { + return (FetchReportResultRowsResponse) super.set(fieldName, value); + } + + @Override + public FetchReportResultRowsResponse clone() { + return (FetchReportResultRowsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Field.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Field.java new file mode 100644 index 00000000000..9ee24673a1c --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Field.java @@ -0,0 +1,91 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agenciesandbrands.v1.model; + +/** + * A dimension or a metric in a report. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agencies and Brands 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-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/FieldFilter.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/FieldFilter.java new file mode 100644 index 00000000000..b00ad242716 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FieldFilter extends com.google.api.client.json.GenericJson { + + /** + * Required. The field to filter on. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Field field; + + /** + * Required. The operation of this filter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** + * Required. Values to filter to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Required. The field to filter on. + * @return value or {@code null} for none + */ + public Field getField() { + return field; + } + + /** + * Required. The field to filter on. + * @param field field or {@code null} for none + */ + public FieldFilter setField(Field field) { + this.field = field; + return this; + } + + /** + * Required. The operation of this filter. + * @return value or {@code null} for none + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Required. The operation of this filter. + * @param operation operation or {@code null} for none + */ + public FieldFilter setOperation(java.lang.String operation) { + this.operation = operation; + return this; + } + + /** + * Required. Values to filter to. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Required. Values to filter to. + * @param values values or {@code null} for none + */ + public FieldFilter setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public FieldFilter set(String fieldName, Object value) { + return (FieldFilter) super.set(fieldName, value); + } + + @Override + public FieldFilter clone() { + return (FieldFilter) super.clone(); + } + +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Filter.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Filter.java new file mode 100644 index 00000000000..f65d6db821f --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Filter.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agenciesandbrands.v1.model; + +/** + * A filter over one or more fields. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agencies and Brands 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-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/FilterList.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/FilterList.java new file mode 100644 index 00000000000..abab98b2c78 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FilterList extends com.google.api.client.json.GenericJson { + + /** + * Required. A list of filters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List filters; + + static { + // hack to force ProGuard to consider Filter used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Filter.class); + } + + /** + * Required. A list of filters. + * @return value or {@code null} for none + */ + public java.util.List getFilters() { + return filters; + } + + /** + * Required. A list of filters. + * @param filters filters or {@code null} for none + */ + public FilterList setFilters(java.util.List filters) { + this.filters = filters; + return this; + } + + @Override + public FilterList set(String fieldName, Object value) { + return (FilterList) super.set(fieldName, value); + } + + @Override + public FilterList clone() { + return (FilterList) super.clone(); + } + +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/FixedDateRange.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/FixedDateRange.java new file mode 100644 index 00000000000..824f1c3c200 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/FixedDateRange.java @@ -0,0 +1,91 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agenciesandbrands.v1.model; + +/** + * A date range between two fixed dates (inclusive of end date). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agencies and Brands 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-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/IntList.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/IntList.java new file mode 100644 index 00000000000..13f8b88c2f6 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class IntList extends com.google.api.client.json.GenericJson { + + /** + * The values + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.List values; + + /** + * The values + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * The values + * @param values values or {@code null} for none + */ + public IntList setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public IntList set(String fieldName, Object value) { + return (IntList) super.set(fieldName, value); + } + + @Override + public IntList clone() { + return (IntList) super.clone(); + } + +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/ListReportsResponse.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/ListReportsResponse.java new file mode 100644 index 00000000000..cf341551a35 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/ListReportsResponse.java @@ -0,0 +1,133 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agenciesandbrands.v1.model; + +/** + * Response object for `ListReportsResponse` containing matching `Report` objects. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agencies and Brands API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListReportsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The `Report` objects from the specified network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reports; + + /** + * Total number of `Report` objects. If a filter was included in the request, this reflects the + * total number after the filtering is applied. `total_size` won't be calculated in the response + * unless it has been included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using the HTTP/gRPC + * header `X-Goog-FieldMask`. For more information, see https://developers.google.com/ad- + * manager/api/beta/field-masks + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalSize; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListReportsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The `Report` objects from the specified network. + * @return value or {@code null} for none + */ + public java.util.List getReports() { + return reports; + } + + /** + * The `Report` objects from the specified network. + * @param reports reports or {@code null} for none + */ + public ListReportsResponse setReports(java.util.List reports) { + this.reports = reports; + return this; + } + + /** + * Total number of `Report` objects. If a filter was included in the request, this reflects the + * total number after the filtering is applied. `total_size` won't be calculated in the response + * unless it has been included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using the HTTP/gRPC + * header `X-Goog-FieldMask`. For more information, see https://developers.google.com/ad- + * manager/api/beta/field-masks + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalSize() { + return totalSize; + } + + /** + * Total number of `Report` objects. If a filter was included in the request, this reflects the + * total number after the filtering is applied. `total_size` won't be calculated in the response + * unless it has been included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using the HTTP/gRPC + * header `X-Goog-FieldMask`. For more information, see https://developers.google.com/ad- + * manager/api/beta/field-masks + * @param totalSize totalSize or {@code null} for none + */ + public ListReportsResponse setTotalSize(java.lang.Integer totalSize) { + this.totalSize = totalSize; + return this; + } + + @Override + public ListReportsResponse set(String fieldName, Object value) { + return (ListReportsResponse) super.set(fieldName, value); + } + + @Override + public ListReportsResponse clone() { + return (ListReportsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/MetricValueGroup.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/MetricValueGroup.java new file mode 100644 index 00000000000..3458302faf1 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/MetricValueGroup.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agenciesandbrands.v1.model; + +/** + * Contains all metric values requested for a single date range and set of column dimension values + * (returned in the columns field of the response). The order of the metrics in each field + * corresponds to the order of the metrics specified in the request. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agencies and Brands API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class MetricValueGroup extends com.google.api.client.json.GenericJson { + + /** + * Data for the PRIMARY MetricValueType. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List primaryValues; + + /** + * Data for the PRIMARY MetricValueType. + * @return value or {@code null} for none + */ + public java.util.List getPrimaryValues() { + return primaryValues; + } + + /** + * Data for the PRIMARY MetricValueType. + * @param primaryValues primaryValues or {@code null} for none + */ + public MetricValueGroup setPrimaryValues(java.util.List primaryValues) { + this.primaryValues = primaryValues; + return this; + } + + @Override + public MetricValueGroup set(String fieldName, Object value) { + return (MetricValueGroup) super.set(fieldName, value); + } + + @Override + public MetricValueGroup clone() { + return (MetricValueGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Operation.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Operation.java new file mode 100644 index 00000000000..53312e93eb8 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Operation extends com.google.api.client.json.GenericJson { + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean done; + + /** + * The error result of the operation in case of failure or cancellation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map response; + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDone() { + return done; + } + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @param done done or {@code null} for none + */ + public Operation setDone(java.lang.Boolean done) { + this.done = done; + return this; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @param error error or {@code null} for none + */ + public Operation setError(Status error) { + this.error = error; + return this; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @param metadata metadata or {@code null} for none + */ + public Operation setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @param name name or {@code null} for none + */ + public Operation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @return value or {@code null} for none + */ + public java.util.Map getResponse() { + return response; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @param response response or {@code null} for none + */ + public Operation setResponse(java.util.Map response) { + this.response = response; + return this; + } + + @Override + public Operation set(String fieldName, Object value) { + return (Operation) super.set(fieldName, value); + } + + @Override + public Operation clone() { + return (Operation) super.clone(); + } + +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Report.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Report.java new file mode 100644 index 00000000000..ac48d2fce83 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Report.java @@ -0,0 +1,217 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agenciesandbrands.v1.model; + +/** + * The `Report` resource. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agencies and Brands 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: + * `agencies/{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: + * `agencies/{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: + * `agencies/{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-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/ReportDefinition.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/ReportDefinition.java new file mode 100644 index 00000000000..a58db4ee717 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ReportDefinition extends com.google.api.client.json.GenericJson { + + /** + * Optional. The ISO 4217 currency code for this report. Defaults to account currency code if not + * specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currencyCode; + + /** + * Required. The primary date range of this report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DateRange dateRange; + + /** + * Required. The list of dimensions to report on. If empty, the report will have no dimensions, + * and any metrics will be totals. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dimensions; + + /** + * Optional. The filters for this report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List filters; + + static { + // hack to force ProGuard to consider Filter used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Filter.class); + } + + /** + * Required. The list of metrics to report on. If empty, the report will have no metrics. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metrics; + + /** + * Optional. Default sorts to apply to this report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sorts; + + /** + * Optional. If time_zone_source is PROVIDED, this is the time zone to use for this report. Leave + * empty for any other time zone source. Time zone in IANA format. For example, + * "America/New_York". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeZone; + + /** + * Optional. Where to get the time zone for this report. Defaults to using the Pacific time zone + * (PT). If source is PROVIDED, the time_zone field in the report definition must also set a time + * zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeZoneSource; + + /** + * Optional. The ISO 4217 currency code for this report. Defaults to account currency code if not + * specified. + * @return value or {@code null} for none + */ + public java.lang.String getCurrencyCode() { + return currencyCode; + } + + /** + * Optional. The ISO 4217 currency code for this report. Defaults to account currency code if not + * specified. + * @param currencyCode currencyCode or {@code null} for none + */ + public ReportDefinition setCurrencyCode(java.lang.String currencyCode) { + this.currencyCode = currencyCode; + return this; + } + + /** + * Required. The primary date range of this report. + * @return value or {@code null} for none + */ + public DateRange getDateRange() { + return dateRange; + } + + /** + * Required. The primary date range of this report. + * @param dateRange dateRange or {@code null} for none + */ + public ReportDefinition setDateRange(DateRange dateRange) { + this.dateRange = dateRange; + return this; + } + + /** + * Required. The list of dimensions to report on. If empty, the report will have no dimensions, + * and any metrics will be totals. + * @return value or {@code null} for none + */ + public java.util.List getDimensions() { + return dimensions; + } + + /** + * Required. The list of dimensions to report on. If empty, the report will have no dimensions, + * and any metrics will be totals. + * @param dimensions dimensions or {@code null} for none + */ + public ReportDefinition setDimensions(java.util.List dimensions) { + this.dimensions = dimensions; + return this; + } + + /** + * Optional. The filters for this report. + * @return value or {@code null} for none + */ + public java.util.List getFilters() { + return filters; + } + + /** + * Optional. The filters for this report. + * @param filters filters or {@code null} for none + */ + public ReportDefinition setFilters(java.util.List filters) { + this.filters = filters; + return this; + } + + /** + * Required. The list of metrics to report on. If empty, the report will have no metrics. + * @return value or {@code null} for none + */ + public java.util.List getMetrics() { + return metrics; + } + + /** + * Required. The list of metrics to report on. If empty, the report will have no metrics. + * @param metrics metrics or {@code null} for none + */ + public ReportDefinition setMetrics(java.util.List metrics) { + this.metrics = metrics; + return this; + } + + /** + * Optional. Default sorts to apply to this report. + * @return value or {@code null} for none + */ + public java.util.List getSorts() { + return sorts; + } + + /** + * Optional. Default sorts to apply to this report. + * @param sorts sorts or {@code null} for none + */ + public ReportDefinition setSorts(java.util.List sorts) { + this.sorts = sorts; + return this; + } + + /** + * Optional. If time_zone_source is PROVIDED, this is the time zone to use for this report. Leave + * empty for any other time zone source. Time zone in IANA format. For example, + * "America/New_York". + * @return value or {@code null} for none + */ + public java.lang.String getTimeZone() { + return timeZone; + } + + /** + * Optional. If time_zone_source is PROVIDED, this is the time zone to use for this report. Leave + * empty for any other time zone source. Time zone in IANA format. For example, + * "America/New_York". + * @param timeZone timeZone or {@code null} for none + */ + public ReportDefinition setTimeZone(java.lang.String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * Optional. Where to get the time zone for this report. Defaults to using the Pacific time zone + * (PT). If source is PROVIDED, the time_zone field in the report definition must also set a time + * zone. + * @return value or {@code null} for none + */ + public java.lang.String getTimeZoneSource() { + return timeZoneSource; + } + + /** + * Optional. Where to get the time zone for this report. Defaults to using the Pacific time zone + * (PT). If source is PROVIDED, the time_zone field in the report definition must also set a time + * zone. + * @param timeZoneSource timeZoneSource or {@code null} for none + */ + public ReportDefinition setTimeZoneSource(java.lang.String timeZoneSource) { + this.timeZoneSource = timeZoneSource; + return this; + } + + @Override + public ReportDefinition set(String fieldName, Object value) { + return (ReportDefinition) super.set(fieldName, value); + } + + @Override + public ReportDefinition clone() { + return (ReportDefinition) super.clone(); + } + +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/ReportValue.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/ReportValue.java new file mode 100644 index 00000000000..c566ce2f48f --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/ReportValue.java @@ -0,0 +1,263 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agenciesandbrands.v1.model; + +/** + * Represents a single value in a report. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agencies and Brands 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-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Row.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Row.java new file mode 100644 index 00000000000..02b67e2c812 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Row extends com.google.api.client.json.GenericJson { + + /** + * The order of the dimension values is the same as the order of the dimensions specified in the + * request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dimensionValues; + + static { + // hack to force ProGuard to consider ReportValue used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ReportValue.class); + } + + /** + * The length of the metric_value_groups field will be equal to the length of the date_ranges + * field in the fetch response. The metric_value_groups field is ordered such that each index + * corresponds to the date_range at the same index. For example, given date_ranges [x, y], + * metric_value_groups will have a length of two. The first entry in metric_value_groups + * represents the metrics for date x and the second entry in metric_value_groups represents the + * metrics for date y. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metricValueGroups; + + static { + // hack to force ProGuard to consider MetricValueGroup used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(MetricValueGroup.class); + } + + /** + * The order of the dimension values is the same as the order of the dimensions specified in the + * request. + * @return value or {@code null} for none + */ + public java.util.List getDimensionValues() { + return dimensionValues; + } + + /** + * The order of the dimension values is the same as the order of the dimensions specified in the + * request. + * @param dimensionValues dimensionValues or {@code null} for none + */ + public Row setDimensionValues(java.util.List dimensionValues) { + this.dimensionValues = dimensionValues; + return this; + } + + /** + * The length of the metric_value_groups field will be equal to the length of the date_ranges + * field in the fetch response. The metric_value_groups field is ordered such that each index + * corresponds to the date_range at the same index. For example, given date_ranges [x, y], + * metric_value_groups will have a length of two. The first entry in metric_value_groups + * represents the metrics for date x and the second entry in metric_value_groups represents the + * metrics for date y. + * @return value or {@code null} for none + */ + public java.util.List getMetricValueGroups() { + return metricValueGroups; + } + + /** + * The length of the metric_value_groups field will be equal to the length of the date_ranges + * field in the fetch response. The metric_value_groups field is ordered such that each index + * corresponds to the date_range at the same index. For example, given date_ranges [x, y], + * metric_value_groups will have a length of two. The first entry in metric_value_groups + * represents the metrics for date x and the second entry in metric_value_groups represents the + * metrics for date y. + * @param metricValueGroups metricValueGroups or {@code null} for none + */ + public Row setMetricValueGroups(java.util.List metricValueGroups) { + this.metricValueGroups = metricValueGroups; + return this; + } + + @Override + public Row set(String fieldName, Object value) { + return (Row) super.set(fieldName, value); + } + + @Override + public Row clone() { + return (Row) super.clone(); + } + +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/RunReportMetadata.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/RunReportMetadata.java new file mode 100644 index 00000000000..6895fddb322 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/RunReportMetadata.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agenciesandbrands.v1.model; + +/** + * `RunReport` operation metadata. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agencies and Brands 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-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/RunReportRequest.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/RunReportRequest.java new file mode 100644 index 00000000000..981899736ab --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands 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-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/RunReportResponse.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/RunReportResponse.java new file mode 100644 index 00000000000..9ee980ee61d --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands 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-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Sort.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Sort.java new file mode 100644 index 00000000000..550d9afdc06 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands 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-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Status.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/Status.java new file mode 100644 index 00000000000..abce02b2285 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/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.agenciesandbrands.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 Agencies and Brands API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Status extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List> details; + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @return value or {@code null} for none + */ + public java.lang.Integer getCode() { + return code; + } + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @param code code or {@code null} for none + */ + public Status setCode(java.lang.Integer code) { + this.code = code; + return this; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @return value or {@code null} for none + */ + public java.util.List> getDetails() { + return details; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @param details details or {@code null} for none + */ + public Status setDetails(java.util.List> details) { + this.details = details; + return this; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @param message message or {@code null} for none + */ + public Status setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Status set(String fieldName, Object value) { + return (Status) super.set(fieldName, value); + } + + @Override + public Status clone() { + return (Status) super.clone(); + } + +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/StringList.java b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/StringList.java new file mode 100644 index 00000000000..34719b0d902 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/com/google/api/services/agenciesandbrands/v1/model/StringList.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agenciesandbrands.v1.model; + +/** + * A list of string values. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agencies and Brands API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StringList extends com.google.api.client.json.GenericJson { + + /** + * The values + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * The values + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * The values + * @param values values or {@code null} for none + */ + public StringList setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public StringList set(String fieldName, Object value) { + return (StringList) super.set(fieldName, value); + } + + @Override + public StringList clone() { + return (StringList) super.clone(); + } + +} diff --git a/clients/google-api-services-agenciesandbrands/v1/2.0.0/pom.xml b/clients/google-api-services-agenciesandbrands/v1/2.0.0/pom.xml new file mode 100644 index 00000000000..e5b803fd024 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/2.0.0/pom.xml @@ -0,0 +1,219 @@ + + 4.0.0 + + org.sonatype.oss + oss-parent + 7 + + + com.google.apis + google-api-services-agenciesandbrands + v1-rev20260828-2.0.0 + Agencies and Brands API v1-rev20260828-2.0.0 + jar + + 2011 + + + + GoogleAPIs + GoogleAPIs + googleapis@googlegroups.com + Google + https://www.google.com + + + + + Google + http://www.google.com/ + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + ossrh + https://google.oss.sonatype.org/content/repositories/snapshots + + + + + + + maven-compiler-plugin + 3.9.0 + + 1.7 + 1.7 + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.2 + + + + com.google.api.services.agenciesandbrands + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + + attach-javadocs + + jar + + + + + none + Agencies and Brands API ${project.version} + Agencies and Brands API ${project.version} + + http://docs.oracle.com/javase/7/docs/api + https://googleapis.dev/java/google-http-client/${httpClientLibrary}/ + https://googleapis.dev/java/google-oauth-client/${oauthClientLibrary}/ + https://googleapis.dev/java/google-api-client/2.7.2/ + + + + + org.codehaus.mojo + clirr-maven-plugin + 2.8 + + clirr-ignored-differences.xml + true + + + + + check + + + + + + . + + + ./resources + + + + + + + com.google.api-client + google-api-client + 2.7.2 + + + + + UTF-8 + + + + + + release-sonatype + + + + !artifact-registry-url + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + + release-gcp-artifact-registry + + artifactregistry://please-define-artifact-registry-url-property + + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + \ No newline at end of file diff --git a/clients/google-api-services-agenciesandbrands/v1/README.md b/clients/google-api-services-agenciesandbrands/v1/README.md new file mode 100644 index 00000000000..c746a584b63 --- /dev/null +++ b/clients/google-api-services-agenciesandbrands/v1/README.md @@ -0,0 +1,44 @@ +# Agencies and Brands API Client Library for Java + +Agencies and brands API is an externally available HTTP API for ad agencies and brands to programmatically manage their deals and spending with Google Ad Manager publishers. + +This page contains information about getting started with the Agencies and Brands 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 Agencies and Brands 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 Agencies and Brands API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-agenciesandbrands + v1-rev20260828-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-agenciesandbrands:v1-rev20260828-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-agenciesandbrands/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/agenciesandbrands/v1/