Skip to content

Commit

Permalink
mvn formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cindy-peng committed Oct 14, 2024
1 parent 3a09f72 commit ea51804
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,21 @@ public void deleteNamespace() {

/** Creates a {@code RemoteStorageHelper} object. */
public static RemoteDatastoreHelper create() {
return create("", DatastoreOptions.getDefaultHttpTransportOptions(), /*openTelemetrySdk=*/ null);
return create(
"", DatastoreOptions.getDefaultHttpTransportOptions(), /*openTelemetrySdk=*/ null);
}

public static RemoteDatastoreHelper create(String databaseId) {
return create(databaseId, DatastoreOptions.getDefaultHttpTransportOptions(), /*openTelemetrySdk=*/ null);
return create(
databaseId, DatastoreOptions.getDefaultHttpTransportOptions(), /*openTelemetrySdk=*/ null);
}

public static RemoteDatastoreHelper create(TransportOptions transportOptions) {
return create("", transportOptions, /*openTelemetrySdk=*/ null);
}

public static RemoteDatastoreHelper create(String databaseId, @Nullable OpenTelemetrySdk openTelemetrySdk) {
public static RemoteDatastoreHelper create(
String databaseId, @Nullable OpenTelemetrySdk openTelemetrySdk) {
return create(databaseId, DatastoreOptions.getDefaultHttpTransportOptions(), openTelemetrySdk);
}

Expand All @@ -100,15 +103,18 @@ public static RemoteDatastoreHelper create(String databaseId, TransportOptions t

/** Creates a {@code RemoteStorageHelper} object. */
public static RemoteDatastoreHelper create(
String databaseId, TransportOptions transportOptions, @Nullable OpenTelemetrySdk openTelemetrySdk) {
String databaseId,
TransportOptions transportOptions,
@Nullable OpenTelemetrySdk openTelemetrySdk) {
DatastoreOptions.Builder datastoreOptionBuilder =
DatastoreOptions.newBuilder()
.setDatabaseId(databaseId)
.setNamespace(UUID.randomUUID().toString())
.setRetrySettings(retrySettings())
.setTransportOptions(transportOptions);
if (transportOptions instanceof GrpcTransportOptions) {
datastoreOptionBuilder = datastoreOptionBuilder.setTransportOptions((GrpcTransportOptions) transportOptions);
datastoreOptionBuilder =
datastoreOptionBuilder.setTransportOptions((GrpcTransportOptions) transportOptions);
} else {
datastoreOptionBuilder = datastoreOptionBuilder.setTransportOptions(transportOptions);
}
Expand Down

0 comments on commit ea51804

Please sign in to comment.