Skip to content

Commit

Permalink
feat: promote gRPC transport to GA
Browse files Browse the repository at this point in the history
Remove beta annotations from artifact versions and class/methods on the public api.
  • Loading branch information
BenWhitehead committed Oct 9, 2024
1 parent c517798 commit 8fa7f66
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 151 deletions.
2 changes: 1 addition & 1 deletion gapic-google-cloud-storage-v2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.api.grpc</groupId>
<artifactId>gapic-google-cloud-storage-v2</artifactId>
<version>2.43.3-beta-SNAPSHOT</version><!-- {x-version-update:gapic-google-cloud-storage-v2:current} -->
<version>2.43.3-SNAPSHOT</version><!-- {x-version-update:gapic-google-cloud-storage-v2:current} -->
<name>gapic-google-cloud-storage-v2</name>
<description>GRPC library for gapic-google-cloud-storage-v2</description>
<parent>
Expand Down
6 changes: 3 additions & 3 deletions google-cloud-storage-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>gapic-google-cloud-storage-v2</artifactId>
<version>2.43.3-beta-SNAPSHOT</version><!-- {x-version-update:gapic-google-cloud-storage-v2:current} -->
<version>2.43.3-SNAPSHOT</version><!-- {x-version-update:gapic-google-cloud-storage-v2:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-storage-v2</artifactId>
<version>2.43.3-beta-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-storage-v2:current} -->
<version>2.43.3-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-storage-v2:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-storage-v2</artifactId>
<version>2.43.3-beta-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-storage-v2:current} -->
<version>2.43.3-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-storage-v2:current} -->
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import static com.google.common.base.Preconditions.checkNotNull;

import com.google.api.core.BetaApi;
import com.google.auth.ServiceAccountSigner;
import com.google.auth.ServiceAccountSigner.SigningException;
import com.google.cloud.ReadChannel;
Expand Down Expand Up @@ -168,7 +167,6 @@ public static BlobSourceOption shouldReturnRawInputStream(boolean shouldReturnRa
* Deduplicate any options which are the same parameter. The value which comes last in {@code
* os} will be the value included in the return.
*/
@BetaApi
public static BlobSourceOption[] dedupe(BlobSourceOption... os) {
return Option.dedupe(BlobSourceOption[]::new, os);
}
Expand All @@ -180,7 +178,6 @@ public static BlobSourceOption[] dedupe(BlobSourceOption... os) {
* in the return. All options from {@code os} will override their counterparts in {@code
* collection}.
*/
@BetaApi
public static BlobSourceOption[] dedupe(
Collection<BlobSourceOption> collection, BlobSourceOption... os) {
return Option.dedupe(BlobSourceOption[]::new, collection, os);
Expand All @@ -193,7 +190,6 @@ public static BlobSourceOption[] dedupe(
* in the return. All options from {@code os} will override their counterparts in {@code
* collection}.
*/
@BetaApi
public static BlobSourceOption[] dedupe(BlobSourceOption[] array, BlobSourceOption... os) {
return Option.dedupe(BlobSourceOption[]::new, array, os);
}
Expand Down Expand Up @@ -1228,9 +1224,8 @@ public final int hashCode() {
/**
* Drop the held {@link Storage} instance.
*
* @since 2.14.0 This new api is in preview and is subject to breaking changes.
* @since 2.14.0
*/
@BetaApi
public BlobInfo asBlobInfo() {
return this.toBuilder().infoBuilder.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import static com.google.common.base.Preconditions.checkNotNull;

import com.google.api.core.BetaApi;
import com.google.api.gax.paging.Page;
import com.google.cloud.storage.Acl.Entity;
import com.google.cloud.storage.Storage.BlobGetOption;
Expand Down Expand Up @@ -103,7 +102,6 @@ public static BucketSourceOption userProject(@NonNull String userProject) {
* Deduplicate any options which are the same parameter. The value which comes last in {@code
* os} will be the value included in the return.
*/
@BetaApi
public static BucketSourceOption[] dedupe(BucketSourceOption... os) {
return Option.dedupe(BucketSourceOption[]::new, os);
}
Expand All @@ -115,7 +113,6 @@ public static BucketSourceOption[] dedupe(BucketSourceOption... os) {
* in the return. All options from {@code os} will override their counterparts in {@code
* collection}.
*/
@BetaApi
public static BucketSourceOption[] dedupe(
Collection<BucketSourceOption> collection, BucketSourceOption... os) {
return Option.dedupe(BucketSourceOption[]::new, collection, os);
Expand All @@ -128,7 +125,6 @@ public static BucketSourceOption[] dedupe(
* in the return. All options from {@code os} will override their counterparts in {@code
* collection}.
*/
@BetaApi
public static BucketSourceOption[] dedupe(
BucketSourceOption[] array, BucketSourceOption... os) {
return Option.dedupe(BucketSourceOption[]::new, array, os);
Expand Down Expand Up @@ -286,7 +282,6 @@ public static BlobTargetOption overrideUnlockedRetention(boolean overrideUnlocke
* Deduplicate any options which are the same parameter. The value which comes last in {@code
* os} will be the value included in the return.
*/
@BetaApi
public static BlobTargetOption[] dedupe(BlobTargetOption... os) {
return Option.dedupe(BlobTargetOption[]::new, os);
}
Expand All @@ -298,7 +293,6 @@ public static BlobTargetOption[] dedupe(BlobTargetOption... os) {
* in the return. All options from {@code os} will override their counterparts in {@code
* collection}.
*/
@BetaApi
public static BlobTargetOption[] dedupe(
Collection<BlobTargetOption> collection, BlobTargetOption... os) {
return Option.dedupe(BlobTargetOption[]::new, collection, os);
Expand All @@ -311,7 +305,6 @@ public static BlobTargetOption[] dedupe(
* in the return. All options from {@code os} will override their counterparts in {@code
* collection}.
*/
@BetaApi
public static BlobTargetOption[] dedupe(BlobTargetOption[] array, BlobTargetOption... os) {
return Option.dedupe(BlobTargetOption[]::new, array, os);
}
Expand Down Expand Up @@ -449,7 +442,6 @@ public static BlobWriteOption userProject(@NonNull String userProject) {
* Deduplicate any options which are the same parameter. The value which comes last in {@code
* os} will be the value included in the return.
*/
@BetaApi
public static BlobWriteOption[] dedupe(BlobWriteOption... os) {
return Option.dedupe(BlobWriteOption[]::new, os);
}
Expand All @@ -461,7 +453,6 @@ public static BlobWriteOption[] dedupe(BlobWriteOption... os) {
* in the return. All options from {@code os} will override their counterparts in {@code
* collection}.
*/
@BetaApi
public static BlobWriteOption[] dedupe(
Collection<BlobWriteOption> collection, BlobWriteOption... os) {
return Option.dedupe(BlobWriteOption[]::new, collection, os);
Expand All @@ -474,7 +465,6 @@ public static BlobWriteOption[] dedupe(
* in the return. All options from {@code os} will override their counterparts in {@code
* collection}.
*/
@BetaApi
public static BlobWriteOption[] dedupe(BlobWriteOption[] array, BlobWriteOption... os) {
return Option.dedupe(BlobWriteOption[]::new, array, os);
}
Expand Down Expand Up @@ -1541,9 +1531,8 @@ public final int hashCode() {
/**
* Drop the held {@link Storage} instance.
*
* @since 2.14.0 This new api is in preview and is subject to breaking changes.
* @since 2.14.0
*/
@BetaApi
public BucketInfo asBucketInfo() {
return this.toBuilder().infoBuilder.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;

@BetaApi
final class GrpcStorageImpl extends BaseService<StorageOptions>
implements Storage, StorageInternal {

Expand Down
Loading

0 comments on commit 8fa7f66

Please sign in to comment.