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

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

Merged
merged 9 commits into from
Jun 24, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.debugger.v2;

import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.debugger.v2.stub.Controller2Stub;
Expand Down Expand Up @@ -137,7 +136,6 @@ public static final Controller2Client create(Controller2Settings settings) throw
* Constructs an instance of Controller2Client, using the given stub for making calls. This is for
* advanced usage - prefer using create(Controller2Settings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final Controller2Client create(Controller2Stub stub) {
return new Controller2Client(stub);
}
Expand All @@ -152,7 +150,6 @@ protected Controller2Client(Controller2Settings settings) throws IOException {
this.stub = ((Controller2StubSettings) settings.getStubSettings()).createStub();
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected Controller2Client(Controller2Stub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -162,7 +159,6 @@ public final Controller2Settings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public Controller2Stub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.debugger.v2;

import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.debugger.v2.stub.Debugger2Stub;
Expand Down Expand Up @@ -137,7 +136,6 @@ public static final Debugger2Client create(Debugger2Settings settings) throws IO
* Constructs an instance of Debugger2Client, using the given stub for making calls. This is for
* advanced usage - prefer using create(Debugger2Settings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final Debugger2Client create(Debugger2Stub stub) {
return new Debugger2Client(stub);
}
Expand All @@ -151,7 +149,6 @@ protected Debugger2Client(Debugger2Settings settings) throws IOException {
this.stub = ((Debugger2StubSettings) settings.getStubSettings()).createStub();
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected Debugger2Client(Debugger2Stub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -161,7 +158,6 @@ public final Debugger2Settings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public Debugger2Stub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ public class Controller2StubSettings extends StubSettings<Controller2StubSetting
return updateActiveBreakpointSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public Controller2Stub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ public UnaryCallSettings<ListDebuggeesRequest, ListDebuggeesResponse> listDebugg
return listDebuggeesSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public Debugger2Stub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() {
* <code>string alias_name = 3 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=97
* google/devtools/source/v1/source_context.proto;l=95
* @return Whether the aliasName field is set.
*/
@java.lang.Deprecated
Expand All @@ -346,7 +346,7 @@ public boolean hasAliasName() {
* <code>string alias_name = 3 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=97
* google/devtools/source/v1/source_context.proto;l=95
* @return The aliasName.
*/
@java.lang.Deprecated
Expand Down Expand Up @@ -376,7 +376,7 @@ public java.lang.String getAliasName() {
* <code>string alias_name = 3 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=97
* google/devtools/source/v1/source_context.proto;l=95
* @return The bytes for aliasName.
*/
@java.lang.Deprecated
Expand Down Expand Up @@ -1213,7 +1213,7 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) {
* <code>string alias_name = 3 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=97
* google/devtools/source/v1/source_context.proto;l=95
* @return Whether the aliasName field is set.
*/
@java.lang.Override
Expand All @@ -1231,7 +1231,7 @@ public boolean hasAliasName() {
* <code>string alias_name = 3 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=97
* google/devtools/source/v1/source_context.proto;l=95
* @return The aliasName.
*/
@java.lang.Override
Expand Down Expand Up @@ -1262,7 +1262,7 @@ public java.lang.String getAliasName() {
* <code>string alias_name = 3 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=97
* google/devtools/source/v1/source_context.proto;l=95
* @return The bytes for aliasName.
*/
@java.lang.Override
Expand Down Expand Up @@ -1293,7 +1293,7 @@ public com.google.protobuf.ByteString getAliasNameBytes() {
* <code>string alias_name = 3 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=97
* google/devtools/source/v1/source_context.proto;l=95
* @param value The aliasName to set.
* @return This builder for chaining.
*/
Expand All @@ -1317,7 +1317,7 @@ public Builder setAliasName(java.lang.String value) {
* <code>string alias_name = 3 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=97
* google/devtools/source/v1/source_context.proto;l=95
* @return This builder for chaining.
*/
@java.lang.Deprecated
Expand All @@ -1339,7 +1339,7 @@ public Builder clearAliasName() {
* <code>string alias_name = 3 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=97
* google/devtools/source/v1/source_context.proto;l=95
* @param value The bytes for aliasName to set.
* @return This builder for chaining.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public interface CloudRepoSourceContextOrBuilder
* <code>string alias_name = 3 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=97
* google/devtools/source/v1/source_context.proto;l=95
* @return Whether the aliasName field is set.
*/
@java.lang.Deprecated
Expand All @@ -120,7 +120,7 @@ public interface CloudRepoSourceContextOrBuilder
* <code>string alias_name = 3 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=97
* google/devtools/source/v1/source_context.proto;l=95
* @return The aliasName.
*/
@java.lang.Deprecated
Expand All @@ -135,7 +135,7 @@ public interface CloudRepoSourceContextOrBuilder
* <code>string alias_name = 3 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=97
* google/devtools/source/v1/source_context.proto;l=95
* @return The bytes for aliasName.
*/
@java.lang.Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() {
* <code>string alias_name = 4 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=131
* google/devtools/source/v1/source_context.proto;l=129
* @return Whether the aliasName field is set.
*/
@java.lang.Deprecated
Expand All @@ -402,7 +402,7 @@ public boolean hasAliasName() {
* <code>string alias_name = 4 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=131
* google/devtools/source/v1/source_context.proto;l=129
* @return The aliasName.
*/
@java.lang.Deprecated
Expand Down Expand Up @@ -432,7 +432,7 @@ public java.lang.String getAliasName() {
* <code>string alias_name = 4 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=131
* google/devtools/source/v1/source_context.proto;l=129
* @return The bytes for aliasName.
*/
@java.lang.Deprecated
Expand Down Expand Up @@ -1309,7 +1309,7 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) {
* <code>string alias_name = 4 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=131
* google/devtools/source/v1/source_context.proto;l=129
* @return Whether the aliasName field is set.
*/
@java.lang.Override
Expand All @@ -1327,7 +1327,7 @@ public boolean hasAliasName() {
* <code>string alias_name = 4 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=131
* google/devtools/source/v1/source_context.proto;l=129
* @return The aliasName.
*/
@java.lang.Override
Expand Down Expand Up @@ -1358,7 +1358,7 @@ public java.lang.String getAliasName() {
* <code>string alias_name = 4 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=131
* google/devtools/source/v1/source_context.proto;l=129
* @return The bytes for aliasName.
*/
@java.lang.Override
Expand Down Expand Up @@ -1389,7 +1389,7 @@ public com.google.protobuf.ByteString getAliasNameBytes() {
* <code>string alias_name = 4 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=131
* google/devtools/source/v1/source_context.proto;l=129
* @param value The aliasName to set.
* @return This builder for chaining.
*/
Expand All @@ -1413,7 +1413,7 @@ public Builder setAliasName(java.lang.String value) {
* <code>string alias_name = 4 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=131
* google/devtools/source/v1/source_context.proto;l=129
* @return This builder for chaining.
*/
@java.lang.Deprecated
Expand All @@ -1435,7 +1435,7 @@ public Builder clearAliasName() {
* <code>string alias_name = 4 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=131
* google/devtools/source/v1/source_context.proto;l=129
* @param value The bytes for aliasName to set.
* @return This builder for chaining.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public interface GerritSourceContextOrBuilder
* <code>string alias_name = 4 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=131
* google/devtools/source/v1/source_context.proto;l=129
* @return Whether the aliasName field is set.
*/
@java.lang.Deprecated
Expand All @@ -139,7 +139,7 @@ public interface GerritSourceContextOrBuilder
* <code>string alias_name = 4 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=131
* google/devtools/source/v1/source_context.proto;l=129
* @return The aliasName.
*/
@java.lang.Deprecated
Expand All @@ -154,7 +154,7 @@ public interface GerritSourceContextOrBuilder
* <code>string alias_name = 4 [deprecated = true];</code>
*
* @deprecated google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See
* google/devtools/source/v1/source_context.proto;l=131
* google/devtools/source/v1/source_context.proto;l=129
* @return The bytes for aliasName.
*/
@java.lang.Deprecated
Expand Down
Loading