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

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 @@ -187,6 +188,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 @@ -189,6 +189,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 @@ -189,6 +189,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.domains.v1.samples;

// [START
// domains_v1_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync]
// [START domains_v1_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync]
import com.google.cloud.domains.v1.ContactSettings;
import com.google.cloud.domains.v1.DomainsClient;
import com.google.cloud.domains.v1.Registration;
Expand Down Expand Up @@ -46,5 +45,4 @@ public static void syncConfigureContactSettingsRegistrationnameContactsettingsFi
}
}
}
// [END
// domains_v1_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync]
// [END domains_v1_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// domains_v1_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync]
// [START domains_v1_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync]
import com.google.cloud.domains.v1.ContactSettings;
import com.google.cloud.domains.v1.DomainsClient;
import com.google.cloud.domains.v1.Registration;
Expand Down Expand Up @@ -45,5 +44,4 @@ public static void syncConfigureContactSettingsStringContactsettingsFieldmask()
}
}
}
// [END
// domains_v1_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync]
// [END domains_v1_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// domains_v1_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync]
// [START domains_v1_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync]
import com.google.cloud.domains.v1.DnsSettings;
import com.google.cloud.domains.v1.DomainsClient;
import com.google.cloud.domains.v1.Registration;
Expand All @@ -44,5 +43,4 @@ public static void syncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask(
}
}
}
// [END
// domains_v1_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync]
// [END domains_v1_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// domains_v1_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync]
// [START domains_v1_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync]
import com.google.cloud.domains.v1.DomainsClient;
import com.google.cloud.domains.v1.ManagementSettings;
import com.google.cloud.domains.v1.Registration;
Expand Down Expand Up @@ -46,5 +45,4 @@ public static void syncConfigureManagementSettingsRegistrationnameManagementsett
}
}
}
// [END
// domains_v1_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync]
// [END domains_v1_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// domains_v1_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync]
// [START domains_v1_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync]
import com.google.cloud.domains.v1.DomainsClient;
import com.google.cloud.domains.v1.ManagementSettings;
import com.google.cloud.domains.v1.Registration;
Expand Down Expand Up @@ -46,5 +45,4 @@ public static void syncConfigureManagementSettingsStringManagementsettingsFieldm
}
}
}
// [END
// domains_v1_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync]
// [END domains_v1_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.google.cloud.domains.v1.DeleteRegistrationRequest;
import com.google.cloud.domains.v1.DomainsClient;
import com.google.cloud.domains.v1.RegistrationName;
import com.google.protobuf.Empty;

public class SyncDeleteRegistration {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// [START domains_v1_generated_domainsclient_deleteregistration_registrationname_sync]
import com.google.cloud.domains.v1.DomainsClient;
import com.google.cloud.domains.v1.RegistrationName;
import com.google.protobuf.Empty;

public class SyncDeleteRegistrationRegistrationname {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// [START domains_v1_generated_domainsclient_deleteregistration_string_sync]
import com.google.cloud.domains.v1.DomainsClient;
import com.google.cloud.domains.v1.RegistrationName;
import com.google.protobuf.Empty;

public class SyncDeleteRegistrationString {

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

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

// [START
// domains_v1_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync]
// [START domains_v1_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync]
import com.google.cloud.domains.v1.AuthorizationCode;
import com.google.cloud.domains.v1.DomainsClient;
import com.google.cloud.domains.v1.LocationName;
Expand Down Expand Up @@ -46,5 +45,4 @@ public static void syncTransferDomainLocationnameRegistrationMoneyAuthorizationc
}
}
}
// [END
// domains_v1_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync]
// [END domains_v1_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// domains_v1_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync]
// [START domains_v1_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync]
import com.google.cloud.domains.v1.AuthorizationCode;
import com.google.cloud.domains.v1.DomainsClient;
import com.google.cloud.domains.v1.LocationName;
Expand Down Expand Up @@ -45,5 +44,4 @@ public static void syncTransferDomainStringRegistrationMoneyAuthorizationcode()
}
}
}
// [END
// domains_v1_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync]
// [END domains_v1_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.domains.v1alpha2.samples;

// [START
// domains_v1alpha2_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync]
// [START domains_v1alpha2_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync]
import com.google.cloud.domains.v1alpha2.ContactSettings;
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.Registration;
Expand Down Expand Up @@ -46,5 +45,4 @@ public static void syncConfigureContactSettingsRegistrationnameContactsettingsFi
}
}
}
// [END
// domains_v1alpha2_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync]
// [END domains_v1alpha2_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.domains.v1alpha2.samples;

// [START
// domains_v1alpha2_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync]
// [START domains_v1alpha2_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync]
import com.google.cloud.domains.v1alpha2.ContactSettings;
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.Registration;
Expand Down Expand Up @@ -45,5 +44,4 @@ public static void syncConfigureContactSettingsStringContactsettingsFieldmask()
}
}
}
// [END
// domains_v1alpha2_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync]
// [END domains_v1alpha2_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.domains.v1alpha2.samples;

// [START
// domains_v1alpha2_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync]
// [START domains_v1alpha2_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync]
import com.google.cloud.domains.v1alpha2.DnsSettings;
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.Registration;
Expand All @@ -44,5 +43,4 @@ public static void syncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask(
}
}
}
// [END
// domains_v1alpha2_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync]
// [END domains_v1alpha2_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.domains.v1alpha2.samples;

// [START
// domains_v1alpha2_generated_domainsclient_configurednssettings_stringdnssettingsfieldmask_sync]
// [START domains_v1alpha2_generated_domainsclient_configurednssettings_stringdnssettingsfieldmask_sync]
import com.google.cloud.domains.v1alpha2.DnsSettings;
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.Registration;
Expand All @@ -43,5 +42,4 @@ public static void syncConfigureDnsSettingsStringDnssettingsFieldmask() throws E
}
}
}
// [END
// domains_v1alpha2_generated_domainsclient_configurednssettings_stringdnssettingsfieldmask_sync]
// [END domains_v1alpha2_generated_domainsclient_configurednssettings_stringdnssettingsfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.domains.v1alpha2.samples;

// [START
// domains_v1alpha2_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync]
// [START domains_v1alpha2_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync]
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.ManagementSettings;
import com.google.cloud.domains.v1alpha2.Registration;
Expand Down Expand Up @@ -46,5 +45,4 @@ public static void syncConfigureManagementSettingsRegistrationnameManagementsett
}
}
}
// [END
// domains_v1alpha2_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync]
// [END domains_v1alpha2_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.domains.v1alpha2.samples;

// [START
// domains_v1alpha2_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync]
// [START domains_v1alpha2_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync]
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.ManagementSettings;
import com.google.cloud.domains.v1alpha2.Registration;
Expand Down Expand Up @@ -46,5 +45,4 @@ public static void syncConfigureManagementSettingsStringManagementsettingsFieldm
}
}
}
// [END
// domains_v1alpha2_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync]
// [END domains_v1alpha2_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest;
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.RegistrationName;
import com.google.protobuf.Empty;

public class SyncDeleteRegistration {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// [START domains_v1alpha2_generated_domainsclient_deleteregistration_registrationname_sync]
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.RegistrationName;
import com.google.protobuf.Empty;

public class SyncDeleteRegistrationRegistrationname {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// [START domains_v1alpha2_generated_domainsclient_deleteregistration_string_sync]
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.RegistrationName;
import com.google.protobuf.Empty;

public class SyncDeleteRegistrationString {

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

package com.google.cloud.domains.v1alpha2.samples;

// [START
// domains_v1alpha2_generated_domainsclient_registerdomain_locationnameregistrationmoney_sync]
// [START domains_v1alpha2_generated_domainsclient_registerdomain_locationnameregistrationmoney_sync]
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.LocationName;
import com.google.cloud.domains.v1alpha2.Registration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.domains.v1alpha2.samples;

// [START
// domains_v1alpha2_generated_domainsclient_retrieveregisterparameters_locationnamestring_sync]
// [START domains_v1alpha2_generated_domainsclient_retrieveregisterparameters_locationnamestring_sync]
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.LocationName;
import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.domains.v1alpha2.samples;

// [START
// domains_v1alpha2_generated_domainsclient_retrievetransferparameters_locationnamestring_sync]
// [START domains_v1alpha2_generated_domainsclient_retrievetransferparameters_locationnamestring_sync]
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.LocationName;
import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.domains.v1alpha2.samples;

// [START
// domains_v1alpha2_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync]
// [START domains_v1alpha2_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync]
import com.google.cloud.domains.v1alpha2.AuthorizationCode;
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.LocationName;
Expand Down Expand Up @@ -46,5 +45,4 @@ public static void syncTransferDomainLocationnameRegistrationMoneyAuthorizationc
}
}
}
// [END
// domains_v1alpha2_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync]
// [END domains_v1alpha2_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.domains.v1alpha2.samples;

// [START
// domains_v1alpha2_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync]
// [START domains_v1alpha2_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync]
import com.google.cloud.domains.v1alpha2.AuthorizationCode;
import com.google.cloud.domains.v1alpha2.DomainsClient;
import com.google.cloud.domains.v1alpha2.LocationName;
Expand Down Expand Up @@ -45,5 +44,4 @@ public static void syncTransferDomainStringRegistrationMoneyAuthorizationcode()
}
}
}
// [END
// domains_v1alpha2_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync]
// [END domains_v1alpha2_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.domains.v1beta1.samples;

// [START
// domains_v1beta1_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync]
// [START domains_v1beta1_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync]
import com.google.cloud.domains.v1beta1.ContactSettings;
import com.google.cloud.domains.v1beta1.DomainsClient;
import com.google.cloud.domains.v1beta1.Registration;
Expand Down Expand Up @@ -46,5 +45,4 @@ public static void syncConfigureContactSettingsRegistrationnameContactsettingsFi
}
}
}
// [END
// domains_v1beta1_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync]
// [END domains_v1beta1_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.domains.v1beta1.samples;

// [START
// domains_v1beta1_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync]
// [START domains_v1beta1_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync]
import com.google.cloud.domains.v1beta1.ContactSettings;
import com.google.cloud.domains.v1beta1.DomainsClient;
import com.google.cloud.domains.v1beta1.Registration;
Expand Down Expand Up @@ -45,5 +44,4 @@ public static void syncConfigureContactSettingsStringContactsettingsFieldmask()
}
}
}
// [END
// domains_v1beta1_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync]
// [END domains_v1beta1_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync]
Loading