Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
a40b760
fix!: removed fields from SafeSearchAnnotation message
gcf-owl-bot[bot] May 6, 2022
db63089
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] May 6, 2022
010edbe
fix!: Product search related messages and enums changed in an incompa…
gcf-owl-bot[bot] May 6, 2022
29ad868
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] May 6, 2022
88e23b9
fix!: BatchAnnotateImagesRequest.requests is required
gcf-owl-bot[bot] May 6, 2022
5669068
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] May 6, 2022
c90c30d
chore(deps): upgrade gapic-generator-java to 2.8.0 and update gax-jav…
gcf-owl-bot[bot] May 24, 2022
c5c77af
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] May 24, 2022
c707b17
chore: Integrate new gapic-generator-java and rules_gapic
gcf-owl-bot[bot] Jun 10, 2022
0eaa75c
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jun 10, 2022
79abf7f
feat: Enable REST transport for most of Java and Go clients
gcf-owl-bot[bot] Jun 23, 2022
d85fcde
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jun 23, 2022
2aac29d
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jun 23, 2022
50ebcb3
Merge branch 'owl-bot-copy' of https://github.com/googleapis/java-vis…
gcf-owl-bot[bot] Jun 23, 2022
6920bd8
Update pom.xml
Neenu1995 Jun 23, 2022
11d3033
Merge branch 'main' into owl-bot-copy
meltsufin Jun 27, 2022
dbc590b
fix: update gapic-generator-java with mock service generation fixes
gcf-owl-bot[bot] Jun 27, 2022
0330605
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jun 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ If you are using Maven without BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies

```Groovy
implementation platform('com.google.cloud:libraries-bom:25.2.0')
implementation platform('com.google.cloud:libraries-bom:25.4.0')

implementation 'com.google.cloud:google-cloud-vision'
```
If you are using Gradle without BOM, add this to your dependencies

```Groovy
implementation 'com.google.cloud:google-cloud-vision:2.0.29'
implementation 'com.google.cloud:google-cloud-vision:2.1.1'
```

If you are using SBT, add this to your dependencies

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "2.0.29"
libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "2.1.1"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.vision.v1;

import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.longrunning.OperationFuture;
import com.google.api.gax.rpc.OperationCallable;
Expand Down Expand Up @@ -122,7 +121,6 @@ public static final ImageAnnotatorClient create(ImageAnnotatorSettings settings)
* Constructs an instance of ImageAnnotatorClient, using the given stub for making calls. This is
* for advanced usage - prefer using create(ImageAnnotatorSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final ImageAnnotatorClient create(ImageAnnotatorStub stub) {
return new ImageAnnotatorClient(stub);
}
Expand All @@ -138,7 +136,6 @@ protected ImageAnnotatorClient(ImageAnnotatorSettings settings) throws IOExcepti
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected ImageAnnotatorClient(ImageAnnotatorStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -149,7 +146,6 @@ public final ImageAnnotatorSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ImageAnnotatorStub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.longrunning.OperationFuture;
import com.google.api.gax.paging.AbstractFixedSizeCollection;
Expand Down Expand Up @@ -341,7 +340,6 @@ public static final ProductSearchClient create(ProductSearchSettings settings)
* Constructs an instance of ProductSearchClient, using the given stub for making calls. This is
* for advanced usage - prefer using create(ProductSearchSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final ProductSearchClient create(ProductSearchStub stub) {
return new ProductSearchClient(stub);
}
Expand All @@ -357,7 +355,6 @@ protected ProductSearchClient(ProductSearchSettings settings) throws IOException
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected ProductSearchClient(ProductSearchStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -368,7 +365,6 @@ public final ProductSearchSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ProductSearchStub getStub() {
return stub;
}
Expand Down Expand Up @@ -696,7 +692,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest
* while (true) {
* ListProductSetsResponse response =
* productSearchClient.listProductSetsCallable().call(request);
* for (ProductSet element : response.getResponsesList()) {
* for (ProductSet element : response.getProductSetsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1373,7 +1369,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request)
* .build();
* while (true) {
* ListProductsResponse response = productSearchClient.listProductsCallable().call(request);
* for (Product element : response.getResponsesList()) {
* for (Product element : response.getProductsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -2257,7 +2253,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages(
* while (true) {
* ListReferenceImagesResponse response =
* productSearchClient.listReferenceImagesCallable().call(request);
* for (ReferenceImage element : response.getResponsesList()) {
* for (ReferenceImage element : response.getReferenceImagesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -2981,7 +2977,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
* while (true) {
* ListProductsInProductSetResponse response =
* productSearchClient.listProductsInProductSetCallable().call(request);
* for (Product element : response.getResponsesList()) {
* for (Product element : response.getProductsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/

/**
* The interfaces provided are listed below, along with usage samples.
* A client to Cloud Vision API
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>======================= ImageAnnotatorClient =======================
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ public class ImageAnnotatorStubSettings extends StubSettings<ImageAnnotatorStubS
return asyncBatchAnnotateFilesOperationSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ImageAnnotatorStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,6 @@ public UnaryCallSettings<PurgeProductsRequest, Operation> purgeProductsSettings(
return purgeProductsOperationSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ProductSearchStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ public static final ImageAnnotatorClient create(ImageAnnotatorSettings settings)
* Constructs an instance of ImageAnnotatorClient, using the given stub for making calls. This is
* for advanced usage - prefer using create(ImageAnnotatorSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final ImageAnnotatorClient create(ImageAnnotatorStub stub) {
return new ImageAnnotatorClient(stub);
}
Expand All @@ -133,7 +132,6 @@ protected ImageAnnotatorClient(ImageAnnotatorSettings settings) throws IOExcepti
this.stub = ((ImageAnnotatorStubSettings) settings.getStubSettings()).createStub();
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected ImageAnnotatorClient(ImageAnnotatorStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -143,7 +141,6 @@ public final ImageAnnotatorSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ImageAnnotatorStub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ public class ImageAnnotatorStubSettings extends StubSettings<ImageAnnotatorStubS
return batchAnnotateImagesSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ImageAnnotatorStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ public static final ImageAnnotatorClient create(ImageAnnotatorSettings settings)
* Constructs an instance of ImageAnnotatorClient, using the given stub for making calls. This is
* for advanced usage - prefer using create(ImageAnnotatorSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final ImageAnnotatorClient create(ImageAnnotatorStub stub) {
return new ImageAnnotatorClient(stub);
}
Expand All @@ -139,7 +138,6 @@ protected ImageAnnotatorClient(ImageAnnotatorSettings settings) throws IOExcepti
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected ImageAnnotatorClient(ImageAnnotatorStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -150,7 +148,6 @@ public final ImageAnnotatorSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ImageAnnotatorStub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ public class ImageAnnotatorStubSettings extends StubSettings<ImageAnnotatorStubS
return asyncBatchAnnotateFilesOperationSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ImageAnnotatorStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ public static final ImageAnnotatorClient create(ImageAnnotatorSettings settings)
* Constructs an instance of ImageAnnotatorClient, using the given stub for making calls. This is
* for advanced usage - prefer using create(ImageAnnotatorSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final ImageAnnotatorClient create(ImageAnnotatorStub stub) {
return new ImageAnnotatorClient(stub);
}
Expand All @@ -139,7 +138,6 @@ protected ImageAnnotatorClient(ImageAnnotatorSettings settings) throws IOExcepti
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected ImageAnnotatorClient(ImageAnnotatorStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -150,7 +148,6 @@ public final ImageAnnotatorSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ImageAnnotatorStub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ public static final ProductSearchClient create(ProductSearchSettings settings)
* Constructs an instance of ProductSearchClient, using the given stub for making calls. This is
* for advanced usage - prefer using create(ProductSearchSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final ProductSearchClient create(ProductSearchStub stub) {
return new ProductSearchClient(stub);
}
Expand All @@ -162,7 +161,6 @@ protected ProductSearchClient(ProductSearchSettings settings) throws IOException
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected ProductSearchClient(ProductSearchStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -173,7 +171,6 @@ public final ProductSearchSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ProductSearchStub getStub() {
return stub;
}
Expand Down Expand Up @@ -501,7 +498,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest
* while (true) {
* ListProductSetsResponse response =
* productSearchClient.listProductSetsCallable().call(request);
* for (ProductSet element : response.getResponsesList()) {
* for (ProductSet element : response.getProductSetsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1202,7 +1199,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request)
* .build();
* while (true) {
* ListProductsResponse response = productSearchClient.listProductsCallable().call(request);
* for (Product element : response.getResponsesList()) {
* for (Product element : response.getProductsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -2134,7 +2131,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages(
* while (true) {
* ListReferenceImagesResponse response =
* productSearchClient.listReferenceImagesCallable().call(request);
* for (ReferenceImage element : response.getResponsesList()) {
* for (ReferenceImage element : response.getReferenceImagesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -2894,7 +2891,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
* while (true) {
* ListProductsInProductSetResponse response =
* productSearchClient.listProductsInProductSetCallable().call(request);
* for (Product element : response.getResponsesList()) {
* for (Product element : response.getProductsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ public class ImageAnnotatorStubSettings extends StubSettings<ImageAnnotatorStubS
return asyncBatchAnnotateFilesOperationSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ImageAnnotatorStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,6 @@ public UnaryCallSettings<ImportProductSetsRequest, Operation> importProductSetsS
return importProductSetsOperationSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ProductSearchStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ public static final ImageAnnotatorClient create(ImageAnnotatorSettings settings)
* Constructs an instance of ImageAnnotatorClient, using the given stub for making calls. This is
* for advanced usage - prefer using create(ImageAnnotatorSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final ImageAnnotatorClient create(ImageAnnotatorStub stub) {
return new ImageAnnotatorClient(stub);
}
Expand All @@ -139,7 +138,6 @@ protected ImageAnnotatorClient(ImageAnnotatorSettings settings) throws IOExcepti
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected ImageAnnotatorClient(ImageAnnotatorStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -150,7 +148,6 @@ public final ImageAnnotatorSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ImageAnnotatorStub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ public static final ProductSearchClient create(ProductSearchSettings settings)
* Constructs an instance of ProductSearchClient, using the given stub for making calls. This is
* for advanced usage - prefer using create(ProductSearchSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final ProductSearchClient create(ProductSearchStub stub) {
return new ProductSearchClient(stub);
}
Expand All @@ -162,7 +161,6 @@ protected ProductSearchClient(ProductSearchSettings settings) throws IOException
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected ProductSearchClient(ProductSearchStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -173,7 +171,6 @@ public final ProductSearchSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ProductSearchStub getStub() {
return stub;
}
Expand Down Expand Up @@ -501,7 +498,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest
* while (true) {
* ListProductSetsResponse response =
* productSearchClient.listProductSetsCallable().call(request);
* for (ProductSet element : response.getResponsesList()) {
* for (ProductSet element : response.getProductSetsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1178,7 +1175,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request)
* .build();
* while (true) {
* ListProductsResponse response = productSearchClient.listProductsCallable().call(request);
* for (Product element : response.getResponsesList()) {
* for (Product element : response.getProductsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -2062,7 +2059,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages(
* while (true) {
* ListReferenceImagesResponse response =
* productSearchClient.listReferenceImagesCallable().call(request);
* for (ReferenceImage element : response.getResponsesList()) {
* for (ReferenceImage element : response.getReferenceImagesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -2786,7 +2783,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
* while (true) {
* ListProductsInProductSetResponse response =
* productSearchClient.listProductsInProductSetCallable().call(request);
* for (Product element : response.getResponsesList()) {
* for (Product element : response.getProductsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Loading