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 #237

Merged
merged 13 commits into from
Jun 24, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
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 @@ -141,7 +140,6 @@ public static final GkeHubClient create(GkeHubSettings settings) throws IOExcept
* Constructs an instance of GkeHubClient, using the given stub for making calls. This is for
* advanced usage - prefer using create(GkeHubSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final GkeHubClient create(GkeHubStub stub) {
return new GkeHubClient(stub);
}
Expand All @@ -156,7 +154,6 @@ protected GkeHubClient(GkeHubSettings 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 GkeHubClient(GkeHubStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -167,7 +164,6 @@ public final GkeHubSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public GkeHubStub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ public UnaryCallSettings<UpdateFeatureRequest, Operation> updateFeatureSettings(
return generateConnectManifestSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public GkeHubStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ public static final GkeHubClient create(GkeHubSettings settings) throws IOExcept
* Constructs an instance of GkeHubClient, using the given stub for making calls. This is for
* advanced usage - prefer using create(GkeHubSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final GkeHubClient create(GkeHubStub stub) {
return new GkeHubClient(stub);
}
Expand All @@ -157,7 +156,6 @@ protected GkeHubClient(GkeHubSettings 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 GkeHubClient(GkeHubStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -168,7 +166,6 @@ public final GkeHubSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public GkeHubStub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ public UnaryCallSettings<UpdateFeatureRequest, Operation> updateFeatureSettings(
return updateFeatureOperationSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public GkeHubStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ public static final GkeHubClient create(GkeHubSettings settings) throws IOExcept
* Constructs an instance of GkeHubClient, using the given stub for making calls. This is for
* advanced usage - prefer using create(GkeHubSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final GkeHubClient create(GkeHubStub stub) {
return new GkeHubClient(stub);
}
Expand All @@ -151,7 +150,6 @@ protected GkeHubClient(GkeHubSettings 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 GkeHubClient(GkeHubStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -162,7 +160,6 @@ public final GkeHubSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public GkeHubStub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ public UnaryCallSettings<InitializeHubRequest, InitializeHubResponse> initialize
return initializeHubSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public GkeHubStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ public static final GkeHubClient create(GkeHubSettings settings) throws IOExcept
* Constructs an instance of GkeHubClient, using the given stub for making calls. This is for
* advanced usage - prefer using create(GkeHubSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final GkeHubClient create(GkeHubStub stub) {
return new GkeHubClient(stub);
}
Expand All @@ -157,7 +156,6 @@ protected GkeHubClient(GkeHubSettings 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 GkeHubClient(GkeHubStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -168,7 +166,6 @@ public final GkeHubSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public GkeHubStub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ public UnaryCallSettings<UpdateFeatureRequest, Operation> updateFeatureSettings(
return updateFeatureOperationSettings;
}

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

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected GkeHubMembershipServiceClient(GkeHubMembershipServiceStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -170,7 +168,6 @@ public final GkeHubMembershipServiceSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public GkeHubMembershipServiceStub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ public UnaryCallSettings<UpdateMembershipRequest, Operation> updateMembershipSet
return generateExclusivityManifestSettings;
}

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