Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

feat: Enable REST transport for most of Java and Go clients #311

Merged
merged 7 commits into from
Jun 28, 2022
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.paging.AbstractFixedSizeCollection;
import com.google.api.gax.paging.AbstractPage;
Expand Down Expand Up @@ -123,7 +122,6 @@ public static final ExecutionsClient create(ExecutionsSettings settings) throws
* Constructs an instance of ExecutionsClient, using the given stub for making calls. This is for
* advanced usage - prefer using create(ExecutionsSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final ExecutionsClient create(ExecutionsStub stub) {
return new ExecutionsClient(stub);
}
Expand All @@ -137,7 +135,6 @@ protected ExecutionsClient(ExecutionsSettings settings) throws IOException {
this.stub = ((ExecutionsStubSettings) settings.getStubSettings()).createStub();
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected ExecutionsClient(ExecutionsStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -147,7 +144,6 @@ public final ExecutionsSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ExecutionsStub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ public UnaryCallSettings<CancelExecutionRequest, Execution> cancelExecutionSetti
return cancelExecutionSettings;
}

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

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

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ExecutionsStub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ public UnaryCallSettings<CancelExecutionRequest, Execution> cancelExecutionSetti
return cancelExecutionSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ExecutionsStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down