From 1a9340c3c9528e69e2ed949a435dae6c44451d1e Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Tue, 27 Oct 2026 17:50:27 -0700 Subject: [PATCH] chore: regenerate deepreview client --- .../v1/2.0.0/README.md | 4 +- .../services/deepreview/v1/DeepReview.java | 137 +++++++++++++++++ .../deepreview/v1/DeepReviewScopes.java | 4 + .../v1/model/EstimateReviewCostRequest.java | 69 +++++++++ .../v1/model/EstimateReviewCostResponse.java | 140 ++++++++++++++++++ .../services/deepreview/v1/model/Money.java | 126 ++++++++++++++++ .../v1/2.0.0/pom.xml | 4 +- .../v1/README.md | 4 +- 8 files changed, 482 insertions(+), 6 deletions(-) create mode 100644 clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/model/EstimateReviewCostRequest.java create mode 100644 clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/model/EstimateReviewCostResponse.java create mode 100644 clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/model/Money.java diff --git a/clients/google-api-services-deepreview/v1/2.0.0/README.md b/clients/google-api-services-deepreview/v1/2.0.0/README.md index 3c23f635144..7817362ea84 100644 --- a/clients/google-api-services-deepreview/v1/2.0.0/README.md +++ b/clients/google-api-services-deepreview/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-deepreview - v1-rev20261020-2.9.2 + v1-rev20261027-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-deepreview:v1-rev20261020-2.9.2' + implementation 'com.google.apis:google-api-services-deepreview:v1-rev20261027-2.9.2' } ``` diff --git a/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/DeepReview.java b/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/DeepReview.java index 2dcb9b8df9c..002cdf6dddc 100644 --- a/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/DeepReview.java +++ b/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/DeepReview.java @@ -318,6 +318,143 @@ public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } + /** + * Estimates what a review of a document would cost on the caller's Gemini API key. The estimate + * comes from what past reviews with the same model and depth cost, adjusted to this document's size + * and repriced at the Gemini API's current list prices. It covers one review attempt that runs to + * completion, and doesn't include retries after errors. + * + * Create a request for the method "documents.estimateReviewCost". + * + * This request holds the parameters needed by the deepreview server. After setting any optional + * parameters, call the {@link EstimateReviewCost#execute()} method to invoke the remote operation. + * + * @param document Required. The document to review. Format: `documents/{document}` + * @param content the {@link com.google.api.services.deepreview.v1.model.EstimateReviewCostRequest} + * @return the request + */ + public EstimateReviewCost estimateReviewCost(java.lang.String document, com.google.api.services.deepreview.v1.model.EstimateReviewCostRequest content) throws java.io.IOException { + EstimateReviewCost result = new EstimateReviewCost(document, content); + initialize(result); + return result; + } + + public class EstimateReviewCost extends DeepReviewRequest { + + private static final String REST_PATH = "v1/{+document}:estimateReviewCost"; + + private final java.util.regex.Pattern DOCUMENT_PATTERN = + java.util.regex.Pattern.compile("^documents/[^/]+$"); + + /** + * Estimates what a review of a document would cost on the caller's Gemini API key. The estimate + * comes from what past reviews with the same model and depth cost, adjusted to this document's + * size and repriced at the Gemini API's current list prices. It covers one review attempt that + * runs to completion, and doesn't include retries after errors. + * + * Create a request for the method "documents.estimateReviewCost". + * + * This request holds the parameters needed by the the deepreview server. After setting any + * optional parameters, call the {@link EstimateReviewCost#execute()} method to invoke the remote + * operation.

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

+ * + * @param document Required. The document to review. Format: `documents/{document}` + * @param content the {@link com.google.api.services.deepreview.v1.model.EstimateReviewCostRequest} + * @since 1.13 + */ + protected EstimateReviewCost(java.lang.String document, com.google.api.services.deepreview.v1.model.EstimateReviewCostRequest content) { + super(DeepReview.this, "POST", REST_PATH, content, com.google.api.services.deepreview.v1.model.EstimateReviewCostResponse.class); + this.document = com.google.api.client.util.Preconditions.checkNotNull(document, "Required parameter document must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DOCUMENT_PATTERN.matcher(document).matches(), + "Parameter document must conform to the pattern " + + "^documents/[^/]+$"); + } + } + + @Override + public EstimateReviewCost set$Xgafv(java.lang.String $Xgafv) { + return (EstimateReviewCost) super.set$Xgafv($Xgafv); + } + + @Override + public EstimateReviewCost setAccessToken(java.lang.String accessToken) { + return (EstimateReviewCost) super.setAccessToken(accessToken); + } + + @Override + public EstimateReviewCost setAlt(java.lang.String alt) { + return (EstimateReviewCost) super.setAlt(alt); + } + + @Override + public EstimateReviewCost setCallback(java.lang.String callback) { + return (EstimateReviewCost) super.setCallback(callback); + } + + @Override + public EstimateReviewCost setFields(java.lang.String fields) { + return (EstimateReviewCost) super.setFields(fields); + } + + @Override + public EstimateReviewCost setKey(java.lang.String key) { + return (EstimateReviewCost) super.setKey(key); + } + + @Override + public EstimateReviewCost setOauthToken(java.lang.String oauthToken) { + return (EstimateReviewCost) super.setOauthToken(oauthToken); + } + + @Override + public EstimateReviewCost setPrettyPrint(java.lang.Boolean prettyPrint) { + return (EstimateReviewCost) super.setPrettyPrint(prettyPrint); + } + + @Override + public EstimateReviewCost setQuotaUser(java.lang.String quotaUser) { + return (EstimateReviewCost) super.setQuotaUser(quotaUser); + } + + @Override + public EstimateReviewCost setUploadType(java.lang.String uploadType) { + return (EstimateReviewCost) super.setUploadType(uploadType); + } + + @Override + public EstimateReviewCost setUploadProtocol(java.lang.String uploadProtocol) { + return (EstimateReviewCost) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The document to review. Format: `documents/{document}` */ + @com.google.api.client.util.Key + private java.lang.String document; + + /** Required. The document to review. Format: `documents/{document}` + */ + public java.lang.String getDocument() { + return document; + } + + /** Required. The document to review. Format: `documents/{document}` */ + public EstimateReviewCost setDocument(java.lang.String document) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DOCUMENT_PATTERN.matcher(document).matches(), + "Parameter document must conform to the pattern " + + "^documents/[^/]+$"); + } + this.document = document; + return this; + } + + @Override + public EstimateReviewCost set(String parameterName, Object value) { + return (EstimateReviewCost) super.set(parameterName, value); + } + } /** * Retrieves document metadata and review history. * diff --git a/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/DeepReviewScopes.java b/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/DeepReviewScopes.java index 3b87339c04a..5c32bff81ae 100644 --- a/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/DeepReviewScopes.java +++ b/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/DeepReviewScopes.java @@ -23,6 +23,9 @@ */ public class DeepReviewScopes { + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ + public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** See, edit, create, and delete only the specific Google Drive files you use with this app. */ public static final String DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"; @@ -33,6 +36,7 @@ public class DeepReviewScopes { */ public static java.util.Set all() { java.util.Set set = new java.util.HashSet(); + set.add(CLOUD_PLATFORM); set.add(DRIVE_FILE); return java.util.Collections.unmodifiableSet(set); } diff --git a/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/model/EstimateReviewCostRequest.java b/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/model/EstimateReviewCostRequest.java new file mode 100644 index 00000000000..7872e1a6062 --- /dev/null +++ b/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/model/EstimateReviewCostRequest.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.deepreview.v1.model; + +/** + * Request message for estimating what a review would cost. + * + *

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 Deep Review 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 EstimateReviewCostRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The review to estimate, as it would be passed to `CreateReview`. Only its + * `run_config` is read, and `run_config.gemini_api_key` is ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Review review; + + /** + * Required. The review to estimate, as it would be passed to `CreateReview`. Only its + * `run_config` is read, and `run_config.gemini_api_key` is ignored. + * @return value or {@code null} for none + */ + public Review getReview() { + return review; + } + + /** + * Required. The review to estimate, as it would be passed to `CreateReview`. Only its + * `run_config` is read, and `run_config.gemini_api_key` is ignored. + * @param review review or {@code null} for none + */ + public EstimateReviewCostRequest setReview(Review review) { + this.review = review; + return this; + } + + @Override + public EstimateReviewCostRequest set(String fieldName, Object value) { + return (EstimateReviewCostRequest) super.set(fieldName, value); + } + + @Override + public EstimateReviewCostRequest clone() { + return (EstimateReviewCostRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/model/EstimateReviewCostResponse.java b/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/model/EstimateReviewCostResponse.java new file mode 100644 index 00000000000..f2a7afd6bae --- /dev/null +++ b/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/model/EstimateReviewCostResponse.java @@ -0,0 +1,140 @@ +/* + * 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.deepreview.v1.model; + +/** + * Response message for estimating what a review would cost. When the cost can't be estimated, for + * example because too few past reviews used the same model and depth, the costs are unset and + * `past_review_count` is 0. + * + *

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 Deep Review 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 EstimateReviewCostResponse extends com.google.api.client.json.GenericJson { + + /** + * The 95th percentile of what comparable past reviews would cost for this document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Money highCost; + + /** + * The 20th percentile of what comparable past reviews would cost for this document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Money lowCost; + + /** + * The median of what comparable past reviews would cost for this document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Money medianCost; + + /** + * Number of past reviews the estimate is based on. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer pastReviewCount; + + /** + * The 95th percentile of what comparable past reviews would cost for this document. + * @return value or {@code null} for none + */ + public Money getHighCost() { + return highCost; + } + + /** + * The 95th percentile of what comparable past reviews would cost for this document. + * @param highCost highCost or {@code null} for none + */ + public EstimateReviewCostResponse setHighCost(Money highCost) { + this.highCost = highCost; + return this; + } + + /** + * The 20th percentile of what comparable past reviews would cost for this document. + * @return value or {@code null} for none + */ + public Money getLowCost() { + return lowCost; + } + + /** + * The 20th percentile of what comparable past reviews would cost for this document. + * @param lowCost lowCost or {@code null} for none + */ + public EstimateReviewCostResponse setLowCost(Money lowCost) { + this.lowCost = lowCost; + return this; + } + + /** + * The median of what comparable past reviews would cost for this document. + * @return value or {@code null} for none + */ + public Money getMedianCost() { + return medianCost; + } + + /** + * The median of what comparable past reviews would cost for this document. + * @param medianCost medianCost or {@code null} for none + */ + public EstimateReviewCostResponse setMedianCost(Money medianCost) { + this.medianCost = medianCost; + return this; + } + + /** + * Number of past reviews the estimate is based on. + * @return value or {@code null} for none + */ + public java.lang.Integer getPastReviewCount() { + return pastReviewCount; + } + + /** + * Number of past reviews the estimate is based on. + * @param pastReviewCount pastReviewCount or {@code null} for none + */ + public EstimateReviewCostResponse setPastReviewCount(java.lang.Integer pastReviewCount) { + this.pastReviewCount = pastReviewCount; + return this; + } + + @Override + public EstimateReviewCostResponse set(String fieldName, Object value) { + return (EstimateReviewCostResponse) super.set(fieldName, value); + } + + @Override + public EstimateReviewCostResponse clone() { + return (EstimateReviewCostResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/model/Money.java b/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/model/Money.java new file mode 100644 index 00000000000..b9b168210b3 --- /dev/null +++ b/clients/google-api-services-deepreview/v1/2.0.0/com/google/api/services/deepreview/v1/model/Money.java @@ -0,0 +1,126 @@ +/* + * 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.deepreview.v1.model; + +/** + * Represents an amount of money with its currency type. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Money extends com.google.api.client.json.GenericJson { + + /** + * The three-letter currency code defined in ISO 4217. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currencyCode; + + /** + * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and + * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is + * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be + * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer nanos; + + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US + * dollar. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long units; + + /** + * The three-letter currency code defined in ISO 4217. + * @return value or {@code null} for none + */ + public java.lang.String getCurrencyCode() { + return currencyCode; + } + + /** + * The three-letter currency code defined in ISO 4217. + * @param currencyCode currencyCode or {@code null} for none + */ + public Money setCurrencyCode(java.lang.String currencyCode) { + this.currencyCode = currencyCode; + return this; + } + + /** + * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and + * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is + * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be + * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * @return value or {@code null} for none + */ + public java.lang.Integer getNanos() { + return nanos; + } + + /** + * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and + * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is + * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be + * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * @param nanos nanos or {@code null} for none + */ + public Money setNanos(java.lang.Integer nanos) { + this.nanos = nanos; + return this; + } + + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US + * dollar. + * @return value or {@code null} for none + */ + public java.lang.Long getUnits() { + return units; + } + + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US + * dollar. + * @param units units or {@code null} for none + */ + public Money setUnits(java.lang.Long units) { + this.units = units; + return this; + } + + @Override + public Money set(String fieldName, Object value) { + return (Money) super.set(fieldName, value); + } + + @Override + public Money clone() { + return (Money) super.clone(); + } + +} diff --git a/clients/google-api-services-deepreview/v1/2.0.0/pom.xml b/clients/google-api-services-deepreview/v1/2.0.0/pom.xml index 67d985a9f7b..1ecdd23bc55 100644 --- a/clients/google-api-services-deepreview/v1/2.0.0/pom.xml +++ b/clients/google-api-services-deepreview/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-deepreview - v1-rev20261020-2.9.2 - Deep Review API v1-rev20261020-2.9.2 + v1-rev20261027-2.9.2 + Deep Review API v1-rev20261027-2.9.2 jar 2011 diff --git a/clients/google-api-services-deepreview/v1/README.md b/clients/google-api-services-deepreview/v1/README.md index 3c23f635144..7817362ea84 100644 --- a/clients/google-api-services-deepreview/v1/README.md +++ b/clients/google-api-services-deepreview/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-deepreview - v1-rev20261020-2.9.2 + v1-rev20261027-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-deepreview:v1-rev20261020-2.9.2' + implementation 'com.google.apis:google-api-services-deepreview:v1-rev20261027-2.9.2' } ```