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
+
+ * 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: + *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{@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{@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{@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{@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{@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{@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{@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{@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: + *+ * 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.SetThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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