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

fix: update gapic-generator-java with mock service generation fixes #646

Merged
merged 2 commits into from
Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from all 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,6 +18,7 @@

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.httpjson.longrunning.OperationsClient;
import com.google.api.gax.longrunning.OperationFuture;
Expand Down Expand Up @@ -206,6 +207,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() {
* Returns the OperationsClient that can be used to query the status of a long-running operation
* returned by another API method call.
*/
@BetaApi
public final OperationsClient getHttpJsonOperationsClient() {
return httpJsonOperationsClient;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() {
* Returns the OperationsClient that can be used to query the status of a long-running operation
* returned by another API method call.
*/
@BetaApi
public final OperationsClient getHttpJsonOperationsClient() {
return httpJsonOperationsClient;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.memcache.v1.samples;

// [START
// memcache_v1_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync]
// [START memcache_v1_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync]
import com.google.cloud.memcache.v1.CloudMemcacheClient;
import com.google.cloud.memcache.v1.Instance;
import com.google.cloud.memcache.v1.InstanceName;
Expand All @@ -41,5 +40,4 @@ public static void syncApplyParametersInstancenameListstringBoolean() throws Exc
}
}
}
// [END
// memcache_v1_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync]
// [END memcache_v1_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.google.cloud.memcache.v1.CloudMemcacheClient;
import com.google.cloud.memcache.v1.DeleteInstanceRequest;
import com.google.cloud.memcache.v1.InstanceName;
import com.google.protobuf.Empty;

public class SyncDeleteInstance {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// [START memcache_v1_generated_cloudmemcacheclient_deleteinstance_instancename_sync]
import com.google.cloud.memcache.v1.CloudMemcacheClient;
import com.google.cloud.memcache.v1.InstanceName;
import com.google.protobuf.Empty;

public class SyncDeleteInstanceInstancename {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// [START memcache_v1_generated_cloudmemcacheclient_deleteinstance_string_sync]
import com.google.cloud.memcache.v1.CloudMemcacheClient;
import com.google.cloud.memcache.v1.InstanceName;
import com.google.protobuf.Empty;

public class SyncDeleteInstanceString {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.memcache.v1.samples;

// [START
// memcache_v1_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync]
// [START memcache_v1_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync]
import com.google.cloud.memcache.v1.CloudMemcacheClient;
import com.google.cloud.memcache.v1.Instance;
import com.google.cloud.memcache.v1.InstanceName;
Expand All @@ -43,5 +42,4 @@ public static void syncUpdateParametersInstancenameFieldmaskMemcacheparameters()
}
}
}
// [END
// memcache_v1_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync]
// [END memcache_v1_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.memcache.v1.samples;

// [START
// memcache_v1_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync]
// [START memcache_v1_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync]
import com.google.cloud.memcache.v1.CloudMemcacheClient;
import com.google.cloud.memcache.v1.Instance;
import com.google.cloud.memcache.v1.InstanceName;
Expand All @@ -42,5 +41,4 @@ public static void syncUpdateParametersStringFieldmaskMemcacheparameters() throw
}
}
}
// [END
// memcache_v1_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync]
// [END memcache_v1_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.memcache.v1beta2.samples;

// [START
// memcache_v1beta2_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync]
// [START memcache_v1beta2_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync]
import com.google.cloud.memcache.v1beta2.CloudMemcacheClient;
import com.google.cloud.memcache.v1beta2.Instance;
import com.google.cloud.memcache.v1beta2.InstanceName;
Expand All @@ -41,5 +40,4 @@ public static void syncApplyParametersInstancenameListstringBoolean() throws Exc
}
}
}
// [END
// memcache_v1beta2_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync]
// [END memcache_v1beta2_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.memcache.v1beta2.samples;

// [START
// memcache_v1beta2_generated_cloudmemcacheclient_applyparameters_stringliststringboolean_sync]
// [START memcache_v1beta2_generated_cloudmemcacheclient_applyparameters_stringliststringboolean_sync]
import com.google.cloud.memcache.v1beta2.CloudMemcacheClient;
import com.google.cloud.memcache.v1beta2.Instance;
import com.google.cloud.memcache.v1beta2.InstanceName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.memcache.v1beta2.samples;

// [START
// memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_instancenameliststringboolean_sync]
// [START memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_instancenameliststringboolean_sync]
import com.google.cloud.memcache.v1beta2.CloudMemcacheClient;
import com.google.cloud.memcache.v1beta2.Instance;
import com.google.cloud.memcache.v1beta2.InstanceName;
Expand All @@ -42,5 +41,4 @@ public static void syncApplySoftwareUpdateInstancenameListstringBoolean() throws
}
}
}
// [END
// memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_instancenameliststringboolean_sync]
// [END memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_instancenameliststringboolean_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.memcache.v1beta2.samples;

// [START
// memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_stringliststringboolean_sync]
// [START memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_stringliststringboolean_sync]
import com.google.cloud.memcache.v1beta2.CloudMemcacheClient;
import com.google.cloud.memcache.v1beta2.Instance;
import com.google.cloud.memcache.v1beta2.InstanceName;
Expand All @@ -42,5 +41,4 @@ public static void syncApplySoftwareUpdateStringListstringBoolean() throws Excep
}
}
}
// [END
// memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_stringliststringboolean_sync]
// [END memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_stringliststringboolean_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.memcache.v1beta2.samples;

// [START
// memcache_v1beta2_generated_cloudmemcacheclient_createinstance_locationnamestringinstance_sync]
// [START memcache_v1beta2_generated_cloudmemcacheclient_createinstance_locationnamestringinstance_sync]
import com.google.cloud.memcache.v1beta2.CloudMemcacheClient;
import com.google.cloud.memcache.v1beta2.Instance;
import com.google.cloud.memcache.v1beta2.LocationName;
Expand All @@ -40,5 +39,4 @@ public static void syncCreateInstanceLocationnameStringInstance() throws Excepti
}
}
}
// [END
// memcache_v1beta2_generated_cloudmemcacheclient_createinstance_locationnamestringinstance_sync]
// [END memcache_v1beta2_generated_cloudmemcacheclient_createinstance_locationnamestringinstance_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.google.cloud.memcache.v1beta2.CloudMemcacheClient;
import com.google.cloud.memcache.v1beta2.DeleteInstanceRequest;
import com.google.cloud.memcache.v1beta2.InstanceName;
import com.google.protobuf.Empty;

public class SyncDeleteInstance {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// [START memcache_v1beta2_generated_cloudmemcacheclient_deleteinstance_instancename_sync]
import com.google.cloud.memcache.v1beta2.CloudMemcacheClient;
import com.google.cloud.memcache.v1beta2.InstanceName;
import com.google.protobuf.Empty;

public class SyncDeleteInstanceInstancename {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// [START memcache_v1beta2_generated_cloudmemcacheclient_deleteinstance_string_sync]
import com.google.cloud.memcache.v1beta2.CloudMemcacheClient;
import com.google.cloud.memcache.v1beta2.InstanceName;
import com.google.protobuf.Empty;

public class SyncDeleteInstanceString {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.memcache.v1beta2.samples;

// [START
// memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync]
// [START memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync]
import com.google.cloud.memcache.v1beta2.CloudMemcacheClient;
import com.google.cloud.memcache.v1beta2.Instance;
import com.google.cloud.memcache.v1beta2.InstanceName;
Expand All @@ -43,5 +42,4 @@ public static void syncUpdateParametersInstancenameFieldmaskMemcacheparameters()
}
}
}
// [END
// memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync]
// [END memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.memcache.v1beta2.samples;

// [START
// memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync]
// [START memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync]
import com.google.cloud.memcache.v1beta2.CloudMemcacheClient;
import com.google.cloud.memcache.v1beta2.Instance;
import com.google.cloud.memcache.v1beta2.InstanceName;
Expand All @@ -42,5 +41,4 @@ public static void syncUpdateParametersStringFieldmaskMemcacheparameters() throw
}
}
}
// [END
// memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync]
// [END memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync]