Skip to content

Commit

Permalink
feat: remove @BetaApi annotations from get/setDatabaseId methods (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kolea2 authored Jan 3, 2024
1 parent 5f9c961 commit 2bd9a51
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import static com.google.cloud.datastore.Validator.validateNamespace;
import static com.google.cloud.datastore.Validator.validateProjectId;

import com.google.api.core.BetaApi;
import com.google.common.base.MoreObjects;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
Expand Down Expand Up @@ -117,7 +116,6 @@ public B setNamespace(String namespace) {
}

/** Sets the database id of the key. */
@BetaApi
public B setDatabaseId(String databaseId) {
this.databaseId = databaseId;
return self();
Expand Down Expand Up @@ -148,7 +146,6 @@ public String getNamespace() {
return namespace;
}

@BetaApi
public String getDatabaseId() {
return databaseId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import static com.google.cloud.datastore.Validator.validateNamespace;

import com.google.api.core.BetaApi;
import com.google.cloud.ServiceDefaults;
import com.google.cloud.ServiceOptions;
import com.google.cloud.ServiceRpc;
Expand Down Expand Up @@ -97,7 +96,6 @@ public Builder setNamespace(String namespace) {
return this;
}

@BetaApi
public Builder setDatabaseId(String databaseId) {
this.databaseId = databaseId;
return this;
Expand Down Expand Up @@ -155,7 +153,6 @@ public String getNamespace() {
return namespace;
}

@BetaApi
public String getDatabaseId() {
return this.databaseId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.datastore;

import com.google.api.core.BetaApi;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import java.util.List;
Expand Down Expand Up @@ -107,7 +106,6 @@ public static Builder newBuilder(String projectId, String kind) {
return new Builder(projectId, kind);
}

@BetaApi
public static Builder newBuilderWithDatabaseId(String projectId, String kind, String databaseId) {
return new Builder(projectId, kind, databaseId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import static java.nio.charset.StandardCharsets.UTF_8;

import com.google.api.core.BetaApi;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.protobuf.TextFormat;
Expand Down Expand Up @@ -180,7 +179,6 @@ public static Builder newBuilder(String projectId, String kind, String name) {
return new Builder(projectId, kind, name);
}

@BetaApi
public static Builder newBuilder(String projectId, String kind, String name, String databaseId) {
return new Builder(projectId, kind, name, databaseId);
}
Expand All @@ -189,7 +187,6 @@ public static Builder newBuilder(String projectId, String kind, long id) {
return new Builder(projectId, kind, id);
}

@BetaApi
public static Builder newBuilder(String projectId, String kind, long id, String databaseId) {
return new Builder(projectId, kind, id, databaseId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.datastore;

import com.google.api.core.BetaApi;
import com.google.common.collect.ImmutableList;

/**
Expand All @@ -37,7 +36,6 @@ public KeyFactory(String projectId, String namespace) {
this(projectId, namespace, "");
}

@BetaApi
public KeyFactory(String projectId, String namespace, String databaseId) {
super(projectId);
setNamespace(namespace);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.datastore.testing;

import com.google.api.core.BetaApi;
import com.google.api.core.InternalApi;
import com.google.api.gax.retrying.RetrySettings;
import com.google.cloud.datastore.Datastore;
Expand Down Expand Up @@ -79,7 +78,6 @@ public static RemoteDatastoreHelper create() {
}

/** Creates a {@code RemoteStorageHelper} object. */
@BetaApi
public static RemoteDatastoreHelper create(String databaseId) {
HttpTransportOptions transportOptions = DatastoreOptions.getDefaultHttpTransportOptions();
transportOptions =
Expand Down

0 comments on commit 2bd9a51

Please sign in to comment.